From c0bf89a75a29619ad60643ee84d777433f94101e Mon Sep 17 00:00:00 2001 From: "Egon.io Bot" Date: Thu, 18 Jan 2024 15:49:45 +0000 Subject: [PATCH] Deploy latest build --- app-latest/index.html | 2 +- .../{main.4cbd7f13f569e3d5.js => main.9cb03e8a852c7eb0.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app-latest/{main.4cbd7f13f569e3d5.js => main.9cb03e8a852c7eb0.js} (99%) diff --git a/app-latest/index.html b/app-latest/index.html index 7d1371c..d35256f 100644 --- a/app-latest/index.html +++ b/app-latest/index.html @@ -398,5 +398,5 @@

{{=it.title || 'to be defined'}}

- + diff --git a/app-latest/main.4cbd7f13f569e3d5.js b/app-latest/main.9cb03e8a852c7eb0.js similarity index 99% rename from app-latest/main.4cbd7f13f569e3d5.js rename to app-latest/main.9cb03e8a852c7eb0.js index 935ee6e..732e70c 100644 --- a/app-latest/main.4cbd7f13f569e3d5.js +++ b/app-latest/main.9cb03e8a852c7eb0.js @@ -1 +1 @@ -(self.webpackChunkegon=self.webpackChunkegon||[]).push([[179],{131:(ze,X,J)=>{"use strict";var B=J(876),le=J(685),Ee=le(B("String.prototype.indexOf"));ze.exports=function(ee,se){var ae=B(ee,!!se);return"function"==typeof ae&&Ee(ee,".prototype.")>-1?le(ae):ae}},685:(ze,X,J)=>{"use strict";var B=J(617),le=J(876),Ee=J(431),Re=le("%TypeError%"),ee=le("%Function.prototype.apply%"),se=le("%Function.prototype.call%"),ae=le("%Reflect.apply%",!0)||B.call(se,ee),ne=le("%Object.defineProperty%",!0),te=le("%Math.max%");if(ne)try{ne({},"a",{value:1})}catch{ne=null}ze.exports=function(Oe){if("function"!=typeof Oe)throw new Re("a function is required");var Ye=ae(B,se,arguments);return Ee(Ye,1+te(0,Oe.length-(arguments.length-1)),!0)};var De=function(){return ae(B,ee,arguments)};ne?ne(ze.exports,"apply",{value:De}):ze.exports.apply=De},298:function(ze){var X;X=typeof global<"u"?global:this,ze.exports=function(X){if(X.CSS&&X.CSS.escape)return X.CSS.escape;var J=function(B){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var ee,le=String(B),Ee=le.length,Re=-1,se="",ae=le.charCodeAt(0);++Re=1&&ee<=31||127==ee||0==Re&&ee>=48&&ee<=57||1==Re&&ee>=48&&ee<=57&&45==ae?"\\"+ee.toString(16)+" ":0==Re&&1==Ee&&45==ee||!(ee>=128||45==ee||95==ee||ee>=48&&ee<=57||ee>=65&&ee<=90||ee>=97&&ee<=122)?"\\"+le.charAt(Re):le.charAt(Re):se+="\ufffd";return se};return X.CSS||(X.CSS={}),X.CSS.escape=J,J}(X)},491:(ze,X,J)=>{"use strict";var B=J(65)(),le=J(876),Ee=B&&le("%Object.defineProperty%",!0);if(Ee)try{Ee({},"a",{value:1})}catch{Ee=!1}var Re=le("%SyntaxError%"),ee=le("%TypeError%"),se=J(108);ze.exports=function(ne,te,De){if(!ne||"object"!=typeof ne&&"function"!=typeof ne)throw new ee("`obj` must be an object or a function`");if("string"!=typeof te&&"symbol"!=typeof te)throw new ee("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new ee("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new ee("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new ee("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new ee("`loose`, if provided, must be a boolean");var Te=arguments.length>3?arguments[3]:null,Oe=arguments.length>4?arguments[4]:null,Ye=arguments.length>5?arguments[5]:null,Ue=arguments.length>6&&arguments[6],it=!!se&&se(ne,te);if(Ee)Ee(ne,te,{configurable:null===Ye&&it?it.configurable:!Ye,enumerable:null===Te&&it?it.enumerable:!Te,value:De,writable:null===Oe&&it?it.writable:!Oe});else{if(!Ue&&(Te||Oe||Ye))throw new Re("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");ne[te]=De}}},625:(ze,X,J)=>{var B;!function(){"use strict";var Ee,le={name:"doT",version:"1.1.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0,log:!0,encodeHTMLSource:function(ne){var te={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},De=ne?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(Te){return Te?Te.toString().replace(De,function(Oe){return te[Oe]||Oe}):""}}};Ee=function(){return this||(0,eval)("this")}(),ze.exports?ze.exports=le:void 0!==(B=function(){return le}.call(X,J,X,ze))&&(ze.exports=B);var Re={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},ee=/$^/;function se(ne,te,De){return("string"==typeof te?te:te.toString()).replace(ne.define||ee,function(Te,Oe,Ye,Ue){return 0===Oe.indexOf("def.")&&(Oe=Oe.substring(4)),Oe in De||(":"===Ye?(ne.defineParams&&Ue.replace(ne.defineParams,function(it,Qe,Ke){De[Oe]={arg:Qe,text:Ke}}),Oe in De||(De[Oe]=Ue)):new Function("def","def['"+Oe+"']="+Ue)(De)),""}).replace(ne.use||ee,function(Te,Oe){ne.useParams&&(Oe=Oe.replace(ne.useParams,function(Ue,it,Qe,Ke){if(De[Qe]&&De[Qe].arg&&Ke){var Ne=(Qe+":"+Ke).replace(/'|\\/g,"_");return De.__exp=De.__exp||{},De.__exp[Ne]=De[Qe].text.replace(new RegExp("(^|[^\\w$])"+De[Qe].arg+"([^\\w$])","g"),"$1"+Ke+"$2"),it+"def.__exp['"+Ne+"']"}}));var Ye=new Function("def","return "+Oe)(De);return Ye&&se(ne,Ye,De)})}function ae(ne){return ne.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}le.template=function(ne,te,De){var Oe,Ue,Te=(te=te||le.templateSettings).append?Re.append:Re.split,Ye=0,it=te.use||te.define?se(te,ne,De||{}):ne;it=("var out='"+(te.strip?it.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):it).replace(/'|\\/g,"\\$&").replace(te.interpolate||ee,function(Qe,Ke){return Te.start+ae(Ke)+Te.end}).replace(te.encode||ee,function(Qe,Ke){return Oe=!0,Te.startencode+ae(Ke)+Te.end}).replace(te.conditional||ee,function(Qe,Ke,Ne){return Ke?Ne?"';}else if("+ae(Ne)+"){out+='":"';}else{out+='":Ne?"';if("+ae(Ne)+"){out+='":"';}out+='"}).replace(te.iterate||ee,function(Qe,Ke,Ne,nt){return Ke?(Ye+=1,Ue=nt||"i"+Ye,Ke=ae(Ke),"';var arr"+Ye+"="+Ke+";if(arr"+Ye+"){var "+Ne+","+Ue+"=-1,l"+Ye+"=arr"+Ye+".length-1;while("+Ue+"{"use strict";var B=J(331),le=Object.prototype.toString,Ee=Object.prototype.hasOwnProperty;ze.exports=function(te,De,Te){if(!B(De))throw new TypeError("iterator must be a function");var Oe;arguments.length>=3&&(Oe=Te),"[object Array]"===le.call(te)?function(te,De,Te){for(var Oe=0,Ye=te.length;Oe{"use strict";var J=Object.prototype.toString,B=Math.max,Ee=function(ae,ne){for(var te=[],De=0;De{"use strict";var B=J(222);ze.exports=Function.prototype.bind||B},876:(ze,X,J)=>{"use strict";var B,le=SyntaxError,Ee=Function,Re=TypeError,ee=function(dn){try{return Ee('"use strict"; return ('+dn+").constructor;")()}catch{}},se=Object.getOwnPropertyDescriptor;if(se)try{se({},"")}catch{se=null}var ae=function(){throw new Re},ne=se?function(){try{return ae}catch{try{return se(arguments,"callee").get}catch{return ae}}}():ae,te=J(939)(),De=J(315)(),Te=Object.getPrototypeOf||(De?function(dn){return dn.__proto__}:null),Oe={},Ye=typeof Uint8Array>"u"||!Te?B:Te(Uint8Array),Ue={"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":te&&Te?Te([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":Oe,"%AsyncGenerator%":Oe,"%AsyncGeneratorFunction%":Oe,"%AsyncIteratorPrototype%":Oe,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":Ee,"%GeneratorFunction%":Oe,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&Te?Te(Te([][Symbol.iterator]())):B,"%JSON%":"object"==typeof JSON?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!te||!Te?B:Te((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!te||!Te?B:Te((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&Te?Te(""[Symbol.iterator]()):B,"%Symbol%":te?Symbol:B,"%SyntaxError%":le,"%ThrowTypeError%":ne,"%TypedArray%":Ye,"%TypeError%":Re,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet};if(Te)try{null.error}catch(dn){var it=Te(Te(dn));Ue["%Error.prototype%"]=it}var Qe=function dn(Ot){var nn;if("%AsyncFunction%"===Ot)nn=ee("async function () {}");else if("%GeneratorFunction%"===Ot)nn=ee("function* () {}");else if("%AsyncGeneratorFunction%"===Ot)nn=ee("async function* () {}");else if("%AsyncGenerator%"===Ot){var Gt=dn("%AsyncGeneratorFunction%");Gt&&(nn=Gt.prototype)}else if("%AsyncIteratorPrototype%"===Ot){var pt=dn("%AsyncGenerator%");pt&&Te&&(nn=Te(pt.prototype))}return Ue[Ot]=nn,nn},Ke={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ne=J(617),nt=J(926),Pn=Ne.call(Function.call,Array.prototype.concat),Gn=Ne.call(Function.apply,Array.prototype.splice),Ci=Ne.call(Function.call,String.prototype.replace),Si=Ne.call(Function.call,String.prototype.slice),Nn=Ne.call(Function.call,RegExp.prototype.exec),vi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fn=/\\(\\)?/g,Wn=function(Ot,nn){var pt,Gt=Ot;if(nt(Ke,Gt)&&(Gt="%"+(pt=Ke[Gt])[0]+"%"),nt(Ue,Gt)){var zn=Ue[Gt];if(zn===Oe&&(zn=Qe(Gt)),typeof zn>"u"&&!nn)throw new Re("intrinsic "+Ot+" exists, but is not available. Please file an issue!");return{alias:pt,name:Gt,value:zn}}throw new le("intrinsic "+Ot+" does not exist!")};ze.exports=function(Ot,nn){if("string"!=typeof Ot||0===Ot.length)throw new Re("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof nn)throw new Re('"allowMissing" argument must be a boolean');if(null===Nn(/^%?[^%]*%?$/,Ot))throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Gt=function(Ot){var nn=Si(Ot,0,1),Gt=Si(Ot,-1);if("%"===nn&&"%"!==Gt)throw new le("invalid intrinsic syntax, expected closing `%`");if("%"===Gt&&"%"!==nn)throw new le("invalid intrinsic syntax, expected opening `%`");var pt=[];return Ci(Ot,vi,function(zn,Di,H,ie){pt[pt.length]=H?Ci(ie,Fn,"$1"):Di||zn}),pt}(Ot),pt=Gt.length>0?Gt[0]:"",zn=Wn("%"+pt+"%",nn),Di=zn.name,H=zn.value,ie=!1,Y=zn.alias;Y&&(pt=Y[0],Gn(Gt,Pn([0,1],Y)));for(var M=1,U=!0;M=Gt.length){var ce=se(H,G);H=(U=!!ce)&&"get"in ce&&!("originalValue"in ce.get)?ce.get:H[G]}else U=nt(H,G),H=H[G];U&&!ie&&(Ue[Di]=H)}}return H}},108:(ze,X,J)=>{"use strict";var le=J(876)("%Object.getOwnPropertyDescriptor%",!0);if(le)try{le([],"length")}catch{le=null}ze.exports=le},490:(ze,X,J)=>{var B;!function(le,Ee,Re,ee){"use strict";var Qe,se=["","webkit","Moz","MS","ms","o"],ae=Ee.createElement("div"),ne="function",te=Math.round,De=Math.abs,Te=Date.now;function Oe(y,w,O){return setTimeout(Pn(y,O),w)}function Ye(y,w,O){return!!Array.isArray(y)&&(Ue(y,O[w],O),!0)}function Ue(y,w,O){var K;if(y)if(y.forEach)y.forEach(w,O);else if(y.length!==ee)for(K=0;K\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",q=le.console&&(le.console.warn||le.console.log);return q&&q.call(le.console,K,We),y.apply(this,arguments)}}Qe="function"!=typeof Object.assign?function(w){if(w===ee||null===w)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(w),K=1;K-1}function _i(y){return y.trim().split(/\s+/g)}function Wn(y,w,O){if(y.indexOf&&!O)return y.indexOf(w);for(var K=0;Kwt[w]}):K.sort()),K}function nn(y,w){for(var O,K,xe=w[0].toUpperCase()+w.slice(1),We=0;We1&&!O.firstMultiple?O.firstMultiple=hl(w):1===xe&&(O.firstMultiple=!1);var We=O.firstInput,q=O.firstMultiple,Yn=q?q.center:We.center,Je=w.center=Sr(K);w.timeStamp=Te(),w.deltaTime=w.timeStamp-We.timeStamp,w.angle=gs(Yn,Je),w.distance=Aa(Yn,Je),function Su(y,w){var O=w.center,K=y.offsetDelta||{},xe=y.prevDelta||{},We=y.prevInput||{};(w.eventType===ce||We.eventType===me)&&(xe=y.prevDelta={x:We.deltaX||0,y:We.deltaY||0},K=y.offsetDelta={x:O.x,y:O.y}),w.deltaX=xe.x+(O.x-K.x),w.deltaY=xe.y+(O.y-K.y)}(O,w),w.offsetDirection=fl(w.deltaX,w.deltaY);var wt=cc(w.deltaTime,w.deltaX,w.deltaY);w.overallVelocityX=wt.x,w.overallVelocityY=wt.y,w.overallVelocity=De(wt.x)>De(wt.y)?wt.x:wt.y,w.scale=q?function ml(y,w){return Aa(w[0],w[1],Bt)/Aa(y[0],y[1],Bt)}(q.pointers,K):1,w.rotation=q?function pl(y,w){return gs(w[1],w[0],Bt)+gs(y[1],y[0],Bt)}(q.pointers,K):0,w.maxPointers=O.prevInput?w.pointers.length>O.prevInput.maxPointers?w.pointers.length:O.prevInput.maxPointers:w.pointers.length,function Du(y,w){var xe,We,q,Yn,O=y.lastInterval||w,K=w.timeStamp-O.timeStamp;if(w.eventType!=Ie&&(K>ke||O.velocity===ee)){var Je=w.deltaX-O.deltaX,wt=w.deltaY-O.deltaY,Zr=cc(K,Je,wt);We=Zr.x,q=Zr.y,xe=De(Zr.x)>De(Zr.y)?Zr.x:Zr.y,Yn=fl(Je,wt),y.lastInterval=w}else xe=O.velocity,We=O.velocityX,q=O.velocityY,Yn=O.direction;w.velocity=xe,w.velocityX=We,w.velocityY=q,w.direction=Yn}(O,w);var Zr=y.element;vi(w.srcEvent.target,Zr)&&(Zr=w.srcEvent.target),w.target=Zr}(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function hl(y){for(var w=[],O=0;O=De(w)?y<0?he:_e:w<0?ft:xt}function Aa(y,w,O){O||(O=En);var K=w[O[0]]-y[O[0]],xe=w[O[1]]-y[O[1]];return Math.sqrt(K*K+xe*xe)}function gs(y,w,O){return O||(O=En),180*Math.atan2(w[O[1]]-y[O[1]],w[O[0]]-y[O[0]])/Math.PI}an.prototype={handler:function(){},init:function(){this.evEl&&Si(this.element,this.evEl,this.domHandler),this.evTarget&&Si(this.target,this.evTarget,this.domHandler),this.evWin&&Si(zn(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Nn(this.element,this.evEl,this.domHandler),this.evTarget&&Nn(this.target,this.evTarget,this.domHandler),this.evWin&&Nn(zn(this.element),this.evWin,this.domHandler)}};var gl={mousedown:ce,mousemove:2,mouseup:me},Qo="mousedown",vl="mousemove mouseup";function Ma(){this.evEl=Qo,this.evWin=vl,this.pressed=!1,an.apply(this,arguments)}nt(Ma,an,{handler:function(w){var O=gl[w.type];O&ce&&0===w.button&&(this.pressed=!0),2&O&&1!==w.which&&(O=me),this.pressed&&(O&me&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[w],changedPointers:[w],pointerType:G,srcEvent:w}))}});var _l={pointerdown:ce,pointermove:2,pointerup:me,pointercancel:Ie,pointerout:Ie},qr={2:M,3:"pen",4:G,5:"kinect"},yl="pointerdown",bl="pointermove pointerup pointercancel";function Jo(){this.evEl=yl,this.evWin=bl,an.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}le.MSPointerEvent&&!le.PointerEvent&&(yl="MSPointerDown",bl="MSPointerMove MSPointerUp MSPointerCancel"),nt(Jo,an,{handler:function(w){var O=this.store,K=!1,xe=w.type.toLowerCase().replace("ms",""),We=_l[xe],q=qr[w.pointerType]||w.pointerType,Yn=q==M,Je=Wn(O,w.pointerId,"pointerId");We&ce&&(0===w.button||Yn)?Je<0&&(O.push(w),Je=O.length-1):We&(me|Ie)&&(K=!0),!(Je<0)&&(O[Je]=w,this.callback(this.manager,We,{pointers:O,changedPointers:[w],pointerType:q,srcEvent:w}),K&&O.splice(Je,1))}});var Ia={touchstart:ce,touchmove:2,touchend:me,touchcancel:Ie};function ku(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,an.apply(this,arguments)}function Ty(y,w){var O=dn(y.touches),K=dn(y.changedTouches);return w&(me|Ie)&&(O=Ot(O.concat(K),"identifier",!0)),[O,K]}nt(ku,an,{handler:function(w){var O=Ia[w.type];if(O===ce&&(this.started=!0),this.started){var K=Ty.call(this,w,O);O&(me|Ie)&&K[0].length-K[1].length==0&&(this.started=!1),this.callback(this.manager,O,{pointers:K[0],changedPointers:K[1],pointerType:M,srcEvent:w})}}});var Sp={touchstart:ce,touchmove:2,touchend:me,touchcancel:Ie},Dp="touchstart touchmove touchend touchcancel";function lc(){this.evTarget=Dp,this.targetIds={},an.apply(this,arguments)}function kp(y,w){var O=dn(y.touches),K=this.targetIds;if(w&(2|ce)&&1===O.length)return K[O[0].identifier]=!0,[O,O];var xe,We,q=dn(y.changedTouches),Yn=[],Je=this.target;if(We=O.filter(function(wt){return vi(wt.target,Je)}),w===ce)for(xe=0;xe-1&&K.splice(We,1)},ji)}}function Mp(y){for(var w=y.srcEvent.clientX,O=y.srcEvent.clientY,K=0;K-1&&this.requireFail.splice(w,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var w=this,O=this.state;function K(xe){w.manager.emit(xe,y)}O<8&&K(w.options.event+Mu(O)),K(w.options.event),y.additionalEvent&&K(y.additionalEvent),O>=8&&K(w.options.event+Mu(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=32},canEmit:function(){for(var y=0;yw.threshold&&xe&w.direction},attrTest:function(y){return ki.prototype.attrTest.call(this,y)&&(2&this.state||!(2&this.state)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var w=Np(y.direction);w&&(y.additionalEvent=this.options.event+w),this._super.emit.call(this,y)}}),nt(Qt,ki,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ea]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||2&this.state)},emit:function(y){1!==y.scale&&(y.additionalEvent=this.options.event+(y.scale<1?"in":"out")),this._super.emit.call(this,y)}}),nt(vs,ko,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(y){var w=this.options,O=y.pointers.length===w.pointers,K=y.distancew.time;if(this._input=y,!K||!O||y.eventType&(me|Ie)&&!xe)this.reset();else if(y.eventType&ce)this.reset(),this._timer=Oe(function(){this.state=8,this.tryEmit()},w.time,this);else if(y.eventType&me)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(y){8===this.state&&(y&&y.eventType&me?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=Te(),this.manager.emit(this.options.event,this._input)))}}),nt(hc,ki,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ea]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||2&this.state)}}),nt(fc,ki,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|_n,pointers:1},getTouchAction:function(){return To.prototype.getTouchAction.call(this)},attrTest:function(y){var O,w=this.options.direction;return w&(Nt|_n)?O=y.overallVelocity:w&Nt?O=y.overallVelocityX:w&_n&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&w&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&De(O)>this.options.velocity&&y.eventType&me},emit:function(y){var w=Np(y.offsetDirection);w&&this.manager.emit(this.options.event+w,y),this.manager.emit(this.options.event,y)}}),nt(kl,ko,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[dc]},process:function(y){var w=this.options,O=y.pointers.length===w.pointers,K=y.distance{"use strict";var le=J(876)("%Object.defineProperty%",!0),Ee=function(){if(le)try{return le({},"a",{value:1}),!0}catch{return!1}return!1};Ee.hasArrayLengthDefineBug=function(){if(!Ee())return null;try{return 1!==le([],"length",{value:1}).length}catch{return!0}},ze.exports=Ee},315:ze=>{"use strict";var X={foo:{}},J=Object;ze.exports=function(){return{__proto__:X}.foo===X.foo&&!({__proto__:null}instanceof J)}},939:(ze,X,J)=>{"use strict";var B=typeof Symbol<"u"&&Symbol,le=J(324);ze.exports=function(){return"function"==typeof B&&"function"==typeof Symbol&&"symbol"==typeof B("foo")&&"symbol"==typeof Symbol("bar")&&le()}},324:ze=>{"use strict";ze.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var J={},B=Symbol("test"),le=Object(B);if("string"==typeof B||"[object Symbol]"!==Object.prototype.toString.call(B)||"[object Symbol]"!==Object.prototype.toString.call(le))return!1;for(B in J[B]=42,J)return!1;if("function"==typeof Object.keys&&0!==Object.keys(J).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(J).length)return!1;var Re=Object.getOwnPropertySymbols(J);if(1!==Re.length||Re[0]!==B||!Object.prototype.propertyIsEnumerable.call(J,B))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ee=Object.getOwnPropertyDescriptor(J,B);if(42!==ee.value||!0!==ee.enumerable)return!1}return!0}},72:(ze,X,J)=>{"use strict";var B=J(324);ze.exports=function(){return B()&&!!Symbol.toStringTag}},926:(ze,X,J)=>{"use strict";var B=Function.prototype.call,le=Object.prototype.hasOwnProperty,Ee=J(617);ze.exports=Ee.call(B,le)},767:ze=>{ze.exports="function"==typeof Object.create?function(J,B){B&&(J.super_=B,J.prototype=Object.create(B.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}))}:function(J,B){if(B){J.super_=B;var le=function(){};le.prototype=B.prototype,J.prototype=new le,J.prototype.constructor=J}}},22:(ze,X,J)=>{"use strict";var B=J(72)(),Ee=J(131)("Object.prototype.toString"),Re=function(ne){return!(B&&ne&&"object"==typeof ne&&Symbol.toStringTag in ne)&&"[object Arguments]"===Ee(ne)},ee=function(ne){return!!Re(ne)||null!==ne&&"object"==typeof ne&&"number"==typeof ne.length&&ne.length>=0&&"[object Array]"!==Ee(ne)&&"[object Function]"===Ee(ne.callee)},se=function(){return Re(arguments)}();Re.isLegacyArguments=ee,ze.exports=se?Re:ee},331:ze=>{"use strict";var B,le,X=Function.prototype.toString,J="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof J&&"function"==typeof Object.defineProperty)try{B=Object.defineProperty({},"length",{get:function(){throw le}}),le={},J(function(){throw 42},null,B)}catch(Ke){Ke!==le&&(J=null)}else J=null;var Ee=/^\s*class\b/,Re=function(Ne){try{var nt=X.call(Ne);return Ee.test(nt)}catch{return!1}},ee=function(Ne){try{return!Re(Ne)&&(X.call(Ne),!0)}catch{return!1}},se=Object.prototype.toString,Ye="function"==typeof Symbol&&!!Symbol.toStringTag,Ue=!(0 in[,]),it=function(){return!1};if("object"==typeof document){var Qe=document.all;se.call(Qe)===se.call(document.all)&&(it=function(Ne){if((Ue||!Ne)&&(typeof Ne>"u"||"object"==typeof Ne))try{var nt=se.call(Ne);return("[object HTMLAllCollection]"===nt||"[object HTML document.all class]"===nt||"[object HTMLCollection]"===nt||"[object Object]"===nt)&&null==Ne("")}catch{}return!1})}ze.exports=J?function(Ne){if(it(Ne))return!0;if(!Ne||"function"!=typeof Ne&&"object"!=typeof Ne)return!1;try{J(Ne,null,B)}catch(nt){if(nt!==le)return!1}return!Re(Ne)&&ee(Ne)}:function(Ne){if(it(Ne))return!0;if(!Ne||"function"!=typeof Ne&&"object"!=typeof Ne)return!1;if(Ye)return ee(Ne);if(Re(Ne))return!1;var nt=se.call(Ne);return!("[object Function]"!==nt&&"[object GeneratorFunction]"!==nt&&!/^\[object HTML/.test(nt))&&ee(Ne)}},605:(ze,X,J)=>{"use strict";var ae,B=Object.prototype.toString,le=Function.prototype.toString,Ee=/^\s*(?:function)?\*/,Re=J(72)(),ee=Object.getPrototypeOf;ze.exports=function(te){if("function"!=typeof te)return!1;if(Ee.test(le.call(te)))return!0;if(!Re)return"[object GeneratorFunction]"===B.call(te);if(!ee)return!1;if(typeof ae>"u"){var Te=function(){if(!Re)return!1;try{return Function("return function*() {}")()}catch{}}();ae=!!Te&&ee(Te)}return ee(te)===ae}},540:(ze,X,J)=>{"use strict";var B=J(63);ze.exports=function(Ee){return!!B(Ee)}},235:(ze,X,J)=>{ze.exports=J(639),ze.exports.Collection=J(933)},933:ze=>{"use strict";ze.exports.extend=function X(B,le,Ee,Re){var ee=Ee.inverse;return Object.defineProperty(B,"remove",{value:function(se){var ae=this.indexOf(se);return-1!==ae&&(this.splice(ae,1),le.unset(se,ee,Re)),se}}),Object.defineProperty(B,"contains",{value:function(se){return-1!==this.indexOf(se)}}),Object.defineProperty(B,"add",{value:function(se,ae){var ne=this.indexOf(se);if(typeof ae>"u"){if(-1!==ne)return;ae=this.length}-1!==ne&&this.splice(ne,1),this.splice(ae,0,se),-1===ne&&le.set(se,ee,Re)}}),Object.defineProperty(B,"__refs_collection",{value:!0}),B},ze.exports.isExtended=function J(B){return!0===B.__refs_collection}},639:(ze,X,J)=>{"use strict";var B=J(933);function Ee(se,ae,ne){var te=B.extend(ne[ae.name]||[],se,ae,ne);Object.defineProperty(ne,ae.name,{enumerable:ae.enumerable,value:te}),te.length&&te.forEach(function(De){se.set(De,ae.inverse,ne)})}function ee(se,ae){if(!(this instanceof ee))return new ee(se,ae);se.inverse=ae,ae.inverse=se,this.props={},this.props[se.name]=se,this.props[ae.name]=ae}ee.prototype.bind=function(se,ae){if("string"==typeof ae){if(!this.props[ae])throw new Error("no property <"+ae+"> in ref");ae=this.props[ae]}ae.collection?Ee(this,ae,se):function Re(se,ae,ne){var te=ae.inverse,De=ne[ae.name];Object.defineProperty(ne,ae.name,{configurable:ae.configurable,enumerable:ae.enumerable,get:function(){return De},set:function(Te){if(Te!==De){var Oe=De;De=null,Oe&&se.unset(Oe,te,ne),se.set(De=Te,te,ne)}}})}(this,ae,se)},ee.prototype.ensureRefsCollection=function(se,ae){var ne=se[ae.name];return B.isExtended(ne)||Ee(this,ae,se),ne},ee.prototype.ensureBound=function(se,ae){(function le(se,ae){return Object.prototype.hasOwnProperty.call(se,ae.name||ae)})(se,ae)||this.bind(se,ae)},ee.prototype.unset=function(se,ae,ne){se&&(this.ensureBound(se,ae),ae.collection?this.ensureRefsCollection(se,ae).remove(ne):se[ae.name]=void 0)},ee.prototype.set=function(se,ae,ne){se&&(this.ensureBound(se,ae),ae.collection?this.ensureRefsCollection(se,ae).add(ne):se[ae.name]=ne)},ze.exports=ee},641:ze=>{"use strict";var X=/,?([a-z]),?/gi,J=parseFloat,B=Math,le=B.PI,Ee=B.min,Re=B.max,ee=B.pow,se=B.abs,ae=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,ne=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,te=Array.isArray||function(H){return H instanceof Array};function De(H,ie){return Object.prototype.hasOwnProperty.call(H,ie)}function Te(H){if("function"==typeof H||Object(H)!==H)return H;var ie=new H.constructor;for(var Y in H)De(H,Y)&&(ie[Y]=Te(H[Y]));return ie}function it(H){var ie=it.ps=it.ps||{};return ie[H]?ie[H].sleep=100:ie[H]={sleep:100},setTimeout(function(){for(var Y in ie)De(ie,Y)&&Y!=H&&(ie[Y].sleep--,!ie[Y].sleep&&delete ie[Y])}),ie[H]}function Qe(H,ie,Y,M){return 1===arguments.length&&(ie=H.y,Y=H.width,M=H.height,H=H.x),{x:H,y:ie,width:Y,height:M,x2:H+Y,y2:ie+M}}function Ke(){return this.join(",").replace(X,"$1")}function Ne(H){var ie=Te(H);return ie.toString=Ke,ie}function nt(H,ie,Y,M,U,G,ue,ke,ce){var re=1-ce,me=ee(re,3),Ie=ee(re,2),he=ce*ce*ce,ft=me*ie+3*Ie*ce*M+3*re*ce*ce*G+he*ke;return{x:Fn(me*H+3*Ie*ce*Y+3*re*ce*ce*U+he*ue),y:Fn(ft)}}function Pn(H){var ie=zn.apply(null,H);return Qe(ie.x0,ie.y0,ie.x1-ie.x0,ie.y1-ie.y0)}function Gn(H,ie,Y){return ie>=H.x&&ie<=H.x+H.width&&Y>=H.y&&Y<=H.y+H.height}function Si(H,ie,Y,M,U){return H*(H*(-3*ie+9*Y-9*M+3*U)+6*ie-12*Y+6*M)-3*ie+3*Y}function Nn(H,ie,Y,M,U,G,ue,ke,ce){null==ce&&(ce=1);for(var re=(ce=ce>1?1:ce<0?0:ce)/2,Ie=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],tt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],he=0,_e=0;_e<12;_e++){var ft=re*Ie[_e]+re,xt=Si(ft,H,Y,U,ue),Nt=Si(ft,ie,M,G,ke);he+=tt[_e]*B.sqrt(xt*xt+Nt*Nt)}return re*he}function vi(H,ie,Y,M,U,G,ue,ke){if(!(Re(H,Y)Re(U,ue)||Re(ie,M)Re(G,ke))){var re=(H*M-ie*Y)*(G-ke)-(ie-M)*(U*ke-G*ue),me=(H-Y)*(G-ke)-(ie-M)*(U-ue);if(me){var Ie=Fn(((H*M-ie*Y)*(U-ue)-(H-Y)*(U*ke-G*ue))/me),tt=Fn(re/me),he=+Ie.toFixed(2),_e=+tt.toFixed(2);if(!(he<+Ee(H,Y).toFixed(2)||he>+Re(H,Y).toFixed(2)||he<+Ee(U,ue).toFixed(2)||he>+Re(U,ue).toFixed(2)||_e<+Ee(ie,M).toFixed(2)||_e>+Re(ie,M).toFixed(2)||_e<+Ee(G,ke).toFixed(2)||_e>+Re(G,ke).toFixed(2)))return{x:Ie,y:tt}}}}function Fn(H){return Math.round(1e11*H)/1e11}function _i(H,ie,Y){if(!function Ci(H,ie){return H=Qe(H),Gn(ie=Qe(ie),H.x,H.y)||Gn(ie,H.x2,H.y)||Gn(ie,H.x,H.y2)||Gn(ie,H.x2,H.y2)||Gn(H,ie.x,ie.y)||Gn(H,ie.x2,ie.y)||Gn(H,ie.x,ie.y2)||Gn(H,ie.x2,ie.y2)||(H.xie.x||ie.xH.x)&&(H.yie.y||ie.yH.y)}(Pn(H),Pn(ie)))return Y?0:[];for(var G=Nn.apply(0,H),ue=Nn.apply(0,ie),ke=Ot(H)?1:~~(G/5)||1,ce=Ot(ie)?1:~~(ue/5)||1,re=[],me=[],Ie={},tt=Y?0:[],he=0;he=0&&un<=1&&Yr>=0&&Yr<=1&&(Y?tt++:tt.push({x:an.x,y:an.y,t1:un,t2:Yr}))}}return tt}function Ot(H){return H[0]===H[2]&&H[1]===H[3]&&H[4]===H[6]&&H[5]===H[7]}function nn(H,ie,Y,M){return[H,ie,Y,M,Y,M]}function Gt(H,ie,Y,M,U,G){var ue=.3333333333333333,ke=2/3;return[ue*H+ke*Y,ue*ie+ke*M,ue*U+ke*Y,ue*G+ke*M,U,G]}function pt(H,ie,Y,M,U,G,ue,ke,ce,re){var he,me=120*le/180,Ie=le/180*(+U||0),tt=[],_e=function Ye(H){return function ie(){var Y=Array.prototype.slice.call(arguments,0),M=Y.join("\u2400"),U=ie.cache=ie.cache||{},G=ie.count=ie.count||[];return De(U,M)?(function Oe(H,ie){for(var Y=0,M=H.length;Y=1e3&&delete U[G.shift()],G.push(M),U[M]=H.apply(0,Y),U[M])}}(function(bl,Jo,Ia){return{x:bl*B.cos(Ia)-Jo*B.sin(Ia),y:bl*B.sin(Ia)+Jo*B.cos(Ia)}});if(re)Ln=re[0],un=re[1],Bt=re[2],an=re[3];else{ie=(he=_e(H,ie,-Ie)).y;var ft=((H=he.x)-(ke=(he=_e(ke,ce,-Ie)).x))/2,xt=(ie-(ce=he.y))/2,Nt=ft*ft/(Y*Y)+xt*xt/(M*M);Nt>1&&(Y*=Nt=B.sqrt(Nt),M*=Nt);var _n=Y*Y,oe=M*M,En=(G==ue?-1:1)*B.sqrt(se((_n*oe-_n*xt*xt-oe*ft*ft)/(_n*xt*xt+oe*ft*ft))),Bt=En*Y*xt/M+(H+ke)/2,an=En*-M*ft/Y+(ie+ce)/2,Ln=B.asin(((ie-an)/M).toFixed(9)),un=B.asin(((ce-an)/M).toFixed(9));(Ln=Hun&&(Ln-=2*le),!ue&&un>Ln&&(un-=2*le)}var Yr=un-Ln;if(se(Yr)>me){var Su=un,Du=ke,hl=ce;tt=pt(ke=Bt+Y*B.cos(un=Ln+me*(ue&&un>Ln?1:-1)),ce=an+M*B.sin(un),Y,M,U,0,ue,Du,hl,[un,Su,Bt,an])}Yr=un-Ln;var Sr=B.cos(Ln),cc=B.sin(Ln),fl=B.cos(un),Aa=B.sin(un),gs=B.tan(Yr/4),pl=4/3*Y*gs,ml=4/3*M*gs,gl=[H,ie],Qo=[H+pl*cc,ie-ml*Sr],vl=[ke+pl*Aa,ce-ml*fl],Ma=[ke,ce];if(Qo[0]=2*gl[0]-Qo[0],Qo[1]=2*gl[1]-Qo[1],re)return[Qo,vl,Ma].concat(tt);for(var _l=[],qr=0,yl=(tt=[Qo,vl,Ma].concat(tt).join().split(",")).length;qr2&&(M.push([G].concat(ke.splice(0,2))),ce="l",G="m"==G?"l":"L");ke.length>=Y[ce]&&(M.push([G].concat(ke.splice(0,Y[ce]))),Y[ce]););}),M.toString=it.toString,ie.arr=Te(M),M}(H)),!H||!H.length)return[["M",0,0]];var ce,Y=[],M=0,U=0,G=0,ue=0,ke=0;"M"==H[0][0]&&(G=M=+H[0][1],ue=U=+H[0][2],ke++,Y[0]=["M",M,U]);for(var re,me,Ie=ke,tt=H.length;Ie7){he[_e].shift();for(var ft=he[_e];ft.length;)ue[_e]="A",he.splice(_e++,0,["C"].concat(ft.splice(0,6)));he.splice(_e,1),me=Y.length}},ue=[],ke="",ce="",re=0,me=Y.length;re{var J,B,X=ze.exports={};function le(){throw new Error("setTimeout has not been defined")}function Ee(){throw new Error("clearTimeout has not been defined")}function Re(Ue){if(J===setTimeout)return setTimeout(Ue,0);if((J===le||!J)&&setTimeout)return J=setTimeout,setTimeout(Ue,0);try{return J(Ue,0)}catch{try{return J.call(null,Ue,0)}catch{return J.call(this,Ue,0)}}}!function(){try{J="function"==typeof setTimeout?setTimeout:le}catch{J=le}try{B="function"==typeof clearTimeout?clearTimeout:Ee}catch{B=Ee}}();var ne,se=[],ae=!1,te=-1;function De(){!ae||!ne||(ae=!1,ne.length?se=ne.concat(se):te=-1,se.length&&Te())}function Te(){if(!ae){var Ue=Re(De);ae=!0;for(var it=se.length;it;){for(ne=se,se=[];++te1)for(var Qe=1;Qe{"use strict";var B=J(876),le=J(491),Ee=J(65)(),Re=J(108),ee=B("%TypeError%"),se=B("%Math.floor%");ze.exports=function(ne,te){if("function"!=typeof ne)throw new ee("`fn` is not a function");if("number"!=typeof te||te<0||te>4294967295||se(te)!==te)throw new ee("`length` must be a positive 32-bit integer");var De=arguments.length>2&&!!arguments[2],Te=!0,Oe=!0;if("length"in ne&&Re){var Ye=Re(ne,"length");Ye&&!Ye.configurable&&(Te=!1),Ye&&!Ye.writable&&(Oe=!1)}return(Te||Oe||!De)&&(Ee?le(ne,"length",te,!0,!0):le(ne,"length",te)),ne}},386:ze=>{ze.exports=function(J){return J&&"object"==typeof J&&"function"==typeof J.copy&&"function"==typeof J.fill&&"function"==typeof J.readUInt8}},172:(ze,X,J)=>{"use strict";var B=J(22),le=J(605),Ee=J(63),Re=J(540);function ee(oe){return oe.call.bind(oe)}var se=typeof BigInt<"u",ae=typeof Symbol<"u",ne=ee(Object.prototype.toString),te=ee(Number.prototype.valueOf),De=ee(String.prototype.valueOf),Te=ee(Boolean.prototype.valueOf);if(se)var Oe=ee(BigInt.prototype.valueOf);if(ae)var Ye=ee(Symbol.prototype.valueOf);function Ue(oe,En){if("object"!=typeof oe)return!1;try{return En(oe),!0}catch{return!1}}function Wn(oe){return"[object Map]"===ne(oe)}function Ot(oe){return"[object Set]"===ne(oe)}function Gt(oe){return"[object WeakMap]"===ne(oe)}function zn(oe){return"[object WeakSet]"===ne(oe)}function H(oe){return"[object ArrayBuffer]"===ne(oe)}function ie(oe){return!(typeof ArrayBuffer>"u")&&(H.working?H(oe):oe instanceof ArrayBuffer)}function Y(oe){return"[object DataView]"===ne(oe)}function M(oe){return!(typeof DataView>"u")&&(Y.working?Y(oe):oe instanceof DataView)}X.isArgumentsObject=B,X.isGeneratorFunction=le,X.isTypedArray=Re,X.isPromise=function it(oe){return typeof Promise<"u"&&oe instanceof Promise||null!==oe&&"object"==typeof oe&&"function"==typeof oe.then&&"function"==typeof oe.catch},X.isArrayBufferView=function Qe(oe){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(oe):Re(oe)||M(oe)},X.isUint8Array=function Ke(oe){return"Uint8Array"===Ee(oe)},X.isUint8ClampedArray=function Ne(oe){return"Uint8ClampedArray"===Ee(oe)},X.isUint16Array=function nt(oe){return"Uint16Array"===Ee(oe)},X.isUint32Array=function Pn(oe){return"Uint32Array"===Ee(oe)},X.isInt8Array=function Gn(oe){return"Int8Array"===Ee(oe)},X.isInt16Array=function Ci(oe){return"Int16Array"===Ee(oe)},X.isInt32Array=function Si(oe){return"Int32Array"===Ee(oe)},X.isFloat32Array=function Nn(oe){return"Float32Array"===Ee(oe)},X.isFloat64Array=function vi(oe){return"Float64Array"===Ee(oe)},X.isBigInt64Array=function Fn(oe){return"BigInt64Array"===Ee(oe)},X.isBigUint64Array=function _i(oe){return"BigUint64Array"===Ee(oe)},Wn.working=typeof Map<"u"&&Wn(new Map),X.isMap=function dn(oe){return!(typeof Map>"u")&&(Wn.working?Wn(oe):oe instanceof Map)},Ot.working=typeof Set<"u"&&Ot(new Set),X.isSet=function nn(oe){return!(typeof Set>"u")&&(Ot.working?Ot(oe):oe instanceof Set)},Gt.working=typeof WeakMap<"u"&&Gt(new WeakMap),X.isWeakMap=function pt(oe){return!(typeof WeakMap>"u")&&(Gt.working?Gt(oe):oe instanceof WeakMap)},zn.working=typeof WeakSet<"u"&&zn(new WeakSet),X.isWeakSet=function Di(oe){return zn(oe)},H.working=typeof ArrayBuffer<"u"&&H(new ArrayBuffer),X.isArrayBuffer=ie,Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1)),X.isDataView=M;var U=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function G(oe){return"[object SharedArrayBuffer]"===ne(oe)}function ue(oe){return!(typeof U>"u")&&(typeof G.working>"u"&&(G.working=G(new U)),G.working?G(oe):oe instanceof U)}function tt(oe){return Ue(oe,te)}function he(oe){return Ue(oe,De)}function _e(oe){return Ue(oe,Te)}function ft(oe){return se&&Ue(oe,Oe)}function xt(oe){return ae&&Ue(oe,Ye)}X.isSharedArrayBuffer=ue,X.isAsyncFunction=function ke(oe){return"[object AsyncFunction]"===ne(oe)},X.isMapIterator=function ce(oe){return"[object Map Iterator]"===ne(oe)},X.isSetIterator=function re(oe){return"[object Set Iterator]"===ne(oe)},X.isGeneratorObject=function me(oe){return"[object Generator]"===ne(oe)},X.isWebAssemblyCompiledModule=function Ie(oe){return"[object WebAssembly.Module]"===ne(oe)},X.isNumberObject=tt,X.isStringObject=he,X.isBooleanObject=_e,X.isBigIntObject=ft,X.isSymbolObject=xt,X.isBoxedPrimitive=function Nt(oe){return tt(oe)||he(oe)||_e(oe)||ft(oe)||xt(oe)},X.isAnyArrayBuffer=function _n(oe){return typeof Uint8Array<"u"&&(ie(oe)||ue(oe))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(oe){Object.defineProperty(X,oe,{enumerable:!1,value:function(){throw new Error(oe+" is not supported in userland")}})})},302:(ze,X,J)=>{var B=J(116),le=Object.getOwnPropertyDescriptors||function(U){for(var G=Object.keys(U),ue={},ke=0;ke=ke)return me;switch(me){case"%s":return String(ue[G++]);case"%d":return Number(ue[G++]);case"%j":try{return JSON.stringify(ue[G++])}catch{return"[Circular]"}default:return me}}),re=ue[G];G"u")return function(){return X.deprecate(M,U).apply(this,arguments)};var G=!1;return function ue(){if(!G){if(B.throwDeprecation)throw new Error(U);B.traceDeprecation?console.trace(U):console.error(U),G=!0}return M.apply(this,arguments)}};var Re={},ee=/^$/;if(B.env.NODE_DEBUG){var se=B.env.NODE_DEBUG;se=se.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+se+"$","i")}function ae(M,U){var G={seen:[],stylize:te};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),Ne(U)?G.showHidden=U:U&&X._extend(G,U),Nn(G.showHidden)&&(G.showHidden=!1),Nn(G.depth)&&(G.depth=2),Nn(G.colors)&&(G.colors=!1),Nn(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=ne),Te(G,M,G.depth)}function ne(M,U){var G=ae.styles[U];return G?"\x1b["+ae.colors[G][0]+"m"+M+"\x1b["+ae.colors[G][1]+"m":M}function te(M,U){return M}function Te(M,U,G){if(M.customInspect&&U&&dn(U.inspect)&&U.inspect!==X.inspect&&(!U.constructor||U.constructor.prototype!==U)){var ue=U.inspect(G,M);return Ci(ue)||(ue=Te(M,ue,G)),ue}var ke=function Oe(M,U){if(Nn(U))return M.stylize("undefined","undefined");if(Ci(U)){var G="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(G,"string")}return Gn(U)?M.stylize(""+U,"number"):Ne(U)?M.stylize(""+U,"boolean"):nt(U)?M.stylize("null","null"):void 0}(M,U);if(ke)return ke;var ce=Object.keys(U),re=function De(M){var U={};return M.forEach(function(G,ue){U[G]=!0}),U}(ce);if(M.showHidden&&(ce=Object.getOwnPropertyNames(U)),Wn(U)&&(ce.indexOf("message")>=0||ce.indexOf("description")>=0))return Ye(U);if(0===ce.length){if(dn(U))return M.stylize("[Function"+(U.name?": "+U.name:"")+"]","special");if(vi(U))return M.stylize(RegExp.prototype.toString.call(U),"regexp");if(_i(U))return M.stylize(Date.prototype.toString.call(U),"date");if(Wn(U))return Ye(U)}var ft,Ie="",tt=!1,he=["{","}"];return Ke(U)&&(tt=!0,he=["[","]"]),dn(U)&&(Ie=" [Function"+(U.name?": "+U.name:"")+"]"),vi(U)&&(Ie=" "+RegExp.prototype.toString.call(U)),_i(U)&&(Ie=" "+Date.prototype.toUTCString.call(U)),Wn(U)&&(Ie=" "+Ye(U)),0!==ce.length||tt&&0!=U.length?G<0?vi(U)?M.stylize(RegExp.prototype.toString.call(U),"regexp"):M.stylize("[Object]","special"):(M.seen.push(U),ft=tt?function Ue(M,U,G,ue,ke){for(var ce=[],re=0,me=U.length;re60?G[0]+(""===U?"":U+"\n ")+" "+M.join(",\n ")+" "+G[1]:G[0]+U+" "+M.join(", ")+" "+G[1]}(ft,Ie,he)):he[0]+Ie+he[1]}function Ye(M){return"["+Error.prototype.toString.call(M)+"]"}function it(M,U,G,ue,ke,ce){var re,me,Ie;if((Ie=Object.getOwnPropertyDescriptor(U,ke)||{value:U[ke]}).get?me=M.stylize(Ie.set?"[Getter/Setter]":"[Getter]","special"):Ie.set&&(me=M.stylize("[Setter]","special")),Di(ue,ke)||(re="["+ke+"]"),me||(M.seen.indexOf(Ie.value)<0?(me=nt(G)?Te(M,Ie.value,null):Te(M,Ie.value,G-1)).indexOf("\n")>-1&&(me=ce?me.split("\n").map(function(tt){return" "+tt}).join("\n").slice(2):"\n"+me.split("\n").map(function(tt){return" "+tt}).join("\n")):me=M.stylize("[Circular]","special")),Nn(re)){if(ce&&ke.match(/^\d+$/))return me;(re=JSON.stringify(""+ke)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.slice(1,-1),re=M.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=M.stylize(re,"string"))}return re+": "+me}function Ke(M){return Array.isArray(M)}function Ne(M){return"boolean"==typeof M}function nt(M){return null===M}function Gn(M){return"number"==typeof M}function Ci(M){return"string"==typeof M}function Nn(M){return void 0===M}function vi(M){return Fn(M)&&"[object RegExp]"===nn(M)}function Fn(M){return"object"==typeof M&&null!==M}function _i(M){return Fn(M)&&"[object Date]"===nn(M)}function Wn(M){return Fn(M)&&("[object Error]"===nn(M)||M instanceof Error)}function dn(M){return"function"==typeof M}function nn(M){return Object.prototype.toString.call(M)}function Gt(M){return M<10?"0"+M.toString(10):M.toString(10)}X.debuglog=function(M){if(M=M.toUpperCase(),!Re[M])if(ee.test(M)){var U=B.pid;Re[M]=function(){var G=X.format.apply(X,arguments);console.error("%s %d: %s",M,U,G)}}else Re[M]=function(){};return Re[M]},X.inspect=ae,ae.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ae.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},X.types=J(172),X.isArray=Ke,X.isBoolean=Ne,X.isNull=nt,X.isNullOrUndefined=function Pn(M){return null==M},X.isNumber=Gn,X.isString=Ci,X.isSymbol=function Si(M){return"symbol"==typeof M},X.isUndefined=Nn,X.isRegExp=vi,X.types.isRegExp=vi,X.isObject=Fn,X.isDate=_i,X.types.isDate=_i,X.isError=Wn,X.types.isNativeError=Wn,X.isFunction=dn,X.isPrimitive=function Ot(M){return null===M||"boolean"==typeof M||"number"==typeof M||"string"==typeof M||"symbol"==typeof M||typeof M>"u"},X.isBuffer=J(386);var pt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Di(M,U){return Object.prototype.hasOwnProperty.call(M,U)}X.log=function(){console.log("%s - %s",function zn(){var M=new Date,U=[Gt(M.getHours()),Gt(M.getMinutes()),Gt(M.getSeconds())].join(":");return[M.getDate(),pt[M.getMonth()],U].join(" ")}(),X.format.apply(X,arguments))},X.inherits=J(767),X._extend=function(M,U){if(!U||!Fn(U))return M;for(var G=Object.keys(U),ue=G.length;ue--;)M[G[ue]]=U[G[ue]];return M};var H=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ie(M,U){if(!M){var G=new Error("Promise was rejected with a falsy value");G.reason=M,M=G}return U(M)}X.promisify=function(U){if("function"!=typeof U)throw new TypeError('The "original" argument must be of type Function');if(H&&U[H]){var G;if("function"!=typeof(G=U[H]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,H,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var ue,ke,ce=new Promise(function(Ie,tt){ue=Ie,ke=tt}),re=[],me=0;me{"use strict";var B=J(216),le=J(17),Ee=J(685),Re=J(131),ee=J(108),se=Re("Object.prototype.toString"),ae=J(72)(),ne=typeof globalThis>"u"?global:globalThis,te=le(),De=Re("String.prototype.slice"),Te=Object.getPrototypeOf,Oe=Re("Array.prototype.indexOf",!0)||function(Ke,Ne){for(var nt=0;nt-1?Ne:"Object"===Ne&&function(Ke){var Ne=!1;return B(Ye,function(nt,Pn){if(!Ne)try{nt(Ke),Ne=De(Pn,1)}catch{}}),Ne}(Ke)}return ee?function(Ke){var Ne=!1;return B(Ye,function(nt,Pn){if(!Ne)try{"$"+nt(Ke)===Pn&&(Ne=De(Pn,1))}catch{}}),Ne}(Ke):null}},650:(ze,X,J)=>{"use strict";function B(e){return"function"==typeof e}function le(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Ee=le(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Re(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ee{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(B(i))try{i()}catch(o){n=o instanceof Ee?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{ne(o)}catch(a){n=n??[],a instanceof Ee?n=[...n,...a.errors]:n.push(a)}}if(n)throw new Ee(n)}}add(n){var t;if(n&&n!==this)if(this.closed)ne(n);else{if(n instanceof ee){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Re(t,n)}remove(n){const{_finalizers:t}=this;t&&Re(t,n),n instanceof ee&&n._removeParent(this)}}ee.EMPTY=(()=>{const e=new ee;return e.closed=!0,e})();const se=ee.EMPTY;function ae(e){return e instanceof ee||e&&"closed"in e&&B(e.remove)&&B(e.add)&&B(e.unsubscribe)}function ne(e){B(e)?e():e.unsubscribe()}const te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},De={setTimeout(e,n,...t){const{delegate:i}=De;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=De;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Te(e){De.setTimeout(()=>{const{onUnhandledError:n}=te;if(!n)throw e;n(e)})}function Oe(){}const Ye=Qe("C",void 0,void 0);function Qe(e,n,t){return{kind:e,value:n,error:t}}let Ke=null;function Ne(e){if(te.useDeprecatedSynchronousErrorHandling){const n=!Ke;if(n&&(Ke={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ke;if(Ke=null,t)throw i}}else e()}class Pn extends ee{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,ae(n)&&n.add(this)):this.destination=Wn}static create(n,t,i){return new Nn(n,t,i)}next(n){this.isStopped?_i(function it(e){return Qe("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?_i(function Ue(e){return Qe("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?_i(Ye,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Gn=Function.prototype.bind;function Ci(e,n){return Gn.call(e,n)}class Si{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){vi(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){vi(i)}else vi(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){vi(t)}}}class Nn extends Pn{constructor(n,t,i){let r;if(super(),B(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&te.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Ci(n.next,o),error:n.error&&Ci(n.error,o),complete:n.complete&&Ci(n.complete,o)}):r=n}this.destination=new Si(r)}}function vi(e){te.useDeprecatedSynchronousErrorHandling?function nt(e){te.useDeprecatedSynchronousErrorHandling&&Ke&&(Ke.errorThrown=!0,Ke.error=e)}(e):Te(e)}function _i(e,n){const{onStoppedNotification:t}=te;t&&De.setTimeout(()=>t(e,n))}const Wn={closed:!0,next:Oe,error:function Fn(e){throw e},complete:Oe},dn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ot(e){return e}let pt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function H(e){return e&&e instanceof Pn||function Di(e){return e&&B(e.next)&&B(e.error)&&B(e.complete)}(e)&&ae(e)}(t)?t:new Nn(t,i,r);return Ne(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=zn(i))((r,o)=>{const a=new Nn({next:s=>{try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[dn](){return this}pipe(...t){return function Gt(e){return 0===e.length?Ot:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=zn(t))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return e.create=n=>new e(n),e})();function zn(e){var n;return null!==(n=e??te.Promise)&&void 0!==n?n:Promise}const ie=le(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Y=(()=>{class e extends pt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new M(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ie}next(t){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?se:(this.currentObservers=null,o.push(t),new ee(()=>{this.currentObservers=null,Re(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new pt;return t.source=this,t}}return e.create=(n,t)=>new M(n,t),e})();class M extends Y{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:se}}function G(e){return n=>{if(function U(e){return B(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(e,n,t,i,r){return new ke(e,n,t,i,r)}class ke extends Pn{constructor(n,t,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ce(e,n){return G((t,i)=>{let r=0;t.subscribe(ue(i,o=>{i.next(e.call(n,o,r++))}))})}function Sr(e){return this instanceof Sr?(this.v=e,this):new Sr(e)}function Aa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function un(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=e[o](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Jo=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ia(e){return B(e?.then)}function xl(e){return B(e[dn])}function wl(e){return Symbol.asyncIterator&&B(e?.[Symbol.asyncIterator])}function ku(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sp=function Ty(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dp(e){return B(e?.[Sp])}function lc(e){return function cc(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof Sr?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(i[h](f))}catch(p){u(o[0][3],p)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield Sr(t.read());if(r)return yield Sr(void 0);yield yield Sr(i)}}finally{t.releaseLock()}})}function kp(e){return B(e?.getReader)}function ji(e){if(e instanceof pt)return e;if(null!=e){if(xl(e))return function Tp(e){return new pt(n=>{const t=e[dn]();if(B(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Jo(e))return function Tu(e){return new pt(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Te)})}(e);if(wl(e))return Mp(e);if(Dp(e))return function Ap(e){return new pt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(kp(e))return function Ip(e){return Mp(lc(e))}(e)}throw ku(e)}function Mp(e){return new pt(n=>{(function Op(e,n){var t,i,r,o;return function En(e,n,t,i){return new(t||(t=Promise))(function(o,a){function s(d){try{l(i.next(d))}catch(u){a(u)}}function c(d){try{l(i.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(a){a(o)})}(d.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Aa(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Kr(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function dc(e,n,t=1/0){return B(n)?dc((i,r)=>ce((o,a)=>n(i,o,r,a))(ji(e(i,r))),t):("number"==typeof n&&(t=n),G((i,r)=>function Rp(e,n,t,i,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&n.complete()},f=g=>l{o&&n.next(g),l++;let v=!1;ji(t(g,d++)).subscribe(ue(n,k=>{r?.(k),o?f(k):n.next(k)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lp(k)):p(k)}h()}catch(k){n.error(k)}}))};return e.subscribe(ue(n,f,()=>{u=!0,h()})),()=>{s?.()}}(i,r,e,t)))}function ea(e=1/0){return dc(Ot,e)}const Co=new pt(e=>e.complete());function Sl(e){return e&&B(e.schedule)}function Au(e){return e[e.length-1]}function Pp(e){return B(Au(e))?e.pop():void 0}function ta(e){return Sl(Au(e))?e.pop():void 0}function Oa(e,n=0){return G((t,i)=>{t.subscribe(ue(i,r=>Kr(i,e,()=>i.next(r),n),()=>Kr(i,e,()=>i.complete(),n),r=>Kr(i,e,()=>i.error(r),n)))})}function So(e,n=0){return G((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function Mu(e,n){if(!e)throw new Error("Iterable cannot be null");return new pt(t=>{Kr(t,n,()=>{const i=e[Symbol.asyncIterator]();Kr(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function ki(e,n){return n?function Dl(e,n){if(null!=e){if(xl(e))return function Do(e,n){return ji(e).pipe(So(n),Oa(n))}(e,n);if(Jo(e))return function Xr(e,n){return new pt(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(Ia(e))return function uc(e,n){return ji(e).pipe(So(n),Oa(n))}(e,n);if(wl(e))return Mu(e,n);if(Dp(e))return function ko(e,n){return new pt(t=>{let i;return Kr(t,n,()=>{i=e[Sp](),Kr(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void t.error(a)}o?t.complete():t.next(r)},0,!0)}),()=>B(i?.return)&&i.return()})}(e,n);if(kp(e))return function Np(e,n){return Mu(lc(e),n)}(e,n)}throw ku(e)}(e,n):ji(e)}function To(...e){const n=ta(e),t=function hr(e,n){return"number"==typeof Au(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?ji(i[0]):ea(t)(ki(i,n)):Co}class Qt extends Y{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function vs(...e){return ki(e,ta(e))}function hc(e={}){const{connector:n=(()=>new Y),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},p=()=>{const g=a;f(),g?.unsubscribe()};return G((g,v)=>{l++,!u&&!d&&h();const k=c=c??n();v.add(()=>{l--,0===l&&!u&&!d&&(s=fc(p,r))}),k.subscribe(v),!a&&l>0&&(a=new Nn({next:E=>k.next(E),error:E=>{u=!0,h(),s=fc(f,t,E),k.error(E)},complete:()=>{d=!0,h(),s=fc(f,i),k.complete()}}),ji(g).subscribe(a))})(o)}}function fc(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Nn({next:()=>{i.unsubscribe(),e()}});return ji(n(...t)).subscribe(i)}function Ao(e,n=Ot){return e=e??My,G((t,i)=>{let r,o=!0;t.subscribe(ue(i,a=>{const s=n(a);(o||!e(r,s))&&(o=!1,r=s,i.next(a))}))})}function My(e,n){return e===n}function sn(e){for(let n in e)if(e[n]===sn)return n;throw Error("Could not find renamed property on target object.")}function _s(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Qn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Iu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Iy=sn({__forward_ref__:sn});function y(e){return e.__forward_ref__=y,e.toString=function(){return Qn(this())},e}function w(e){return O(e)?e():e}function O(e){return"function"==typeof e&&e.hasOwnProperty(Iy)&&e.__forward_ref__===y}function K(e){return e&&!!e.\u0275providers}const We="https://g.co/ng/security#xss";class q extends Error{constructor(n,t){super(function Yn(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Je(e){return"string"==typeof e?e:null==e?"":String(e)}function Oy(e,n){throw new q(-201,!1)}function Qr(e,n){null==e&&function mt(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fp(e){return NS(e,Bp)||NS(e,FS)}function NS(e,n){return e.hasOwnProperty(n)?e[n]:null}function Lp(e){return e&&(e.hasOwnProperty(Ry)||e.hasOwnProperty(H6))?e[Ry]:null}const Bp=sn({\u0275prov:sn}),Ry=sn({\u0275inj:sn}),FS=sn({ngInjectableDef:sn}),H6=sn({ngInjectorDef:sn});var Zt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Zt||{});let Py;function fr(e){const n=Py;return Py=e,n}function BS(e,n,t){const i=Fp(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Zt.Optional?null:void 0!==n?n:void Oy(Qn(e))}const An=globalThis;class Ce{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Se({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ou={},Vy="__NG_DI_FLAG__",Vp="ngTempTokenPath",G6=/\n/gm,jS="__source";let Tl;function ys(e){const n=Tl;return Tl=e,n}function q6(e,n=Zt.Default){if(void 0===Tl)throw new q(-203,!1);return null===Tl?BS(e,void 0,n):Tl.get(e,n&Zt.Optional?null:void 0,n)}function N(e,n=Zt.Default){return(function LS(){return Py}()||q6)(w(e),n)}function vt(e,n=Zt.Default){return N(e,jp(n))}function jp(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function jy(e){const n=[];for(let t=0;tn){a=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==US(f,l,0)||2&i&&l!==h){if(Mo(i))return!1;a=!0}}}}else{if(!a&&!Mo(i)&&!Mo(c))return!1;if(a&&Mo(c))continue;a=!1,i=c|1&i}}return Mo(i)||a}function Mo(e){return 0==(1&e)}function t8(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Mo(a)&&(n+=ZS(o,r),r=""),i=a,o=o||!Mo(i);t++}return""!==r&&(n+=ZS(o,r)),n}function Tt(e){return Ra(()=>{const n=JS(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Jr.Emulated,styles:e.styles||cn,_:null,schemas:e.schemas||null,tView:null,id:""};eD(t);const i=e.dependencies;return t.directiveDefs=$p(i,!1),t.pipeDefs=$p(i,!0),t.id=function p8(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function d8(e){return Jt(e)||Ii(e)}function u8(e){return null!==e}function Rt(e){return Ra(()=>({type:e.type,bootstrap:e.bootstrap||cn,declarations:e.declarations||cn,imports:e.imports||cn,exports:e.exports||cn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QS(e,n){if(null==e)return na;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}function Me(e){return Ra(()=>{const n=JS(e);return eD(n),n})}function pr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jt(e){return e[Hp]||null}function Ii(e){return e[zy]||null}function Ki(e){return e[Hy]||null}function JS(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||na,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||cn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:QS(e.inputs,n),outputs:QS(e.outputs)}}function eD(e){e.features?.forEach(n=>n(e))}function $p(e,n){if(!e)return null;const t=n?Ki:d8;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(u8)}const Jn=0,Ge=1,At=2,Hn=3,Io=4,Lu=5,zi=6,Al=7,ni=8,bs=9,Ml=10,Et=11,Bu=12,tD=13,Il=14,ii=15,Vu=16,Ol=17,ia=18,ju=19,nD=20,xs=21,Na=22,zu=23,Hu=24,Wt=25,Uy=1,iD=2,ra=7,Rl=9,Oi=11;function mr(e){return Array.isArray(e)&&"object"==typeof e[Uy]}function Xi(e){return Array.isArray(e)&&!0===e[Uy]}function Gy(e){return 0!=(4&e.flags)}function mc(e){return e.componentOffset>-1}function Gp(e){return 1==(1&e.flags)}function Oo(e){return!!e.template}function Wy(e){return 0!=(512&e[At])}function gc(e,n){return e.hasOwnProperty(Pa)?e[Pa]:null}let Ri=null,Wp=!1;function eo(e){const n=Ri;return Ri=e,n}const aD={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function cD(e){if(!Uu(e)||e.dirty){if(!e.producerMustRecompute(e)&&!uD(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function dD(e){e.dirty=!0,function lD(e){if(void 0===e.liveConsumerNode)return;const n=Wp;Wp=!0;try{for(const t of e.liveConsumerNode)t.dirty||dD(t)}finally{Wp=n}}(e),e.consumerMarkedDirty?.(e)}function qy(e){return e&&(e.nextProducerIndex=0),eo(e)}function Ky(e,n){if(eo(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Uu(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function uD(e){Pl(e);for(let n=0;n0}function Pl(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let mD=null;function _D(e){const n=eo(null);try{return e()}finally{eo(n)}}const yD=()=>{},k8=(()=>({...aD,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:yD}))();class T8{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Tr(){return bD}function bD(e){return e.type.prototype.ngOnChanges&&(e.setInput=M8),A8}function A8(){const e=wD(this),n=e?.current;if(n){const t=e.previous;if(t===na)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function M8(e,n,t,i){const r=this.declaredInputs[t],o=wD(e)||function I8(e,n){return e[xD]=n}(e,{previous:na,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new T8(c&&c.currentValue,n,s===na),e[i]=n}Tr.ngInherit=!0;const xD="__ngSimpleChanges__";function wD(e){return e[xD]||null}const oa=function(e,n,t){};function Mn(e){for(;Array.isArray(e);)e=e[Jn];return e}function qp(e,n){return Mn(n[e])}function gr(e,n){return Mn(n[e.index])}function SD(e,n){return e.data[n]}function Nl(e,n){return e[n]}function Ar(e,n){const t=n[e];return mr(t)?t:t[Jn]}function Es(e,n){return null==n?null:e[n]}function DD(e){e[Ol]=0}function L8(e){1024&e[At]||(e[At]|=1024,TD(e,1))}function kD(e){1024&e[At]&&(e[At]&=-1025,TD(e,-1))}function TD(e,n){let t=e[Hn];if(null===t)return;t[Lu]+=n;let i=t;for(t=t[Hn];null!==t&&(1===n&&1===i[Lu]||-1===n&&0===i[Lu]);)t[Lu]+=n,i=t,t=t[Hn]}const gt={lFrame:VD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ID(){return gt.bindingsEnabled}function Fl(){return null!==gt.skipHydrationRootTNode}function pe(){return gt.lFrame.lView}function en(){return gt.lFrame.tView}function yn(e){return gt.lFrame.contextLView=e,e[ni]}function bn(e){return gt.lFrame.contextLView=null,e}function Pi(){let e=OD();for(;null!==e&&64===e.type;)e=e.parent;return e}function OD(){return gt.lFrame.currentTNode}function aa(e,n){const t=gt.lFrame;t.currentTNode=e,t.isParent=n}function eb(){return gt.lFrame.isParent}function tb(){gt.lFrame.isParent=!1}function Ll(){return gt.lFrame.bindingIndex++}function La(e){const n=gt.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function K8(e,n){const t=gt.lFrame;t.bindingIndex=t.bindingRootIndex=e,nb(n)}function nb(e){gt.lFrame.currentDirectiveIndex=e}function ib(e){const n=gt.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function FD(){return gt.lFrame.currentQueryIndex}function rb(e){gt.lFrame.currentQueryIndex=e}function Z8(e){const n=e[Ge];return 2===n.type?n.declTNode:1===n.type?e[zi]:null}function LD(e,n,t){if(t&Zt.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&Zt.Host||(r=Z8(o),null===r||(o=o[Il],10&r.type))););if(null===r)return!1;n=r,e=o}const i=gt.lFrame=BD();return i.currentTNode=n,i.lView=e,!0}function ob(e){const n=BD(),t=e[Ge];gt.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function BD(){const e=gt.lFrame,n=null===e?null:e.child;return null===n?VD(e):n}function VD(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function jD(){const e=gt.lFrame;return gt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zD=jD;function ab(){const e=jD();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Qi(){return gt.lFrame.selectedIndex}function vc(e){gt.lFrame.selectedIndex=e}function qn(){const e=gt.lFrame;return SD(e.tView,e.selectedIndex)}let $D=!0;function Kp(){return $D}function Cs(e){$D=e}function Xp(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[c]<0&&(e[Ol]+=65536),(s>13>16&&(3&e[At])===n&&(e[At]+=8192,GD(s,o)):GD(s,o)}const Bl=-1;class Wu{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function ub(e){return e!==Bl}function Yu(e){return 32767&e}function qu(e,n){let t=function sV(e){return e>>16}(e),i=n;for(;t>0;)i=i[Il],t--;return i}let hb=!0;function Jp(e){const n=hb;return hb=e,n}const WD=255,YD=5;let cV=0;const sa={};function em(e,n){const t=qD(e,n);if(-1!==t)return t;const i=n[Ge];i.firstCreatePass&&(e.injectorIndex=n.length,fb(i.data,e),fb(n,null),fb(i.blueprint,null));const r=tm(e,n),o=e.injectorIndex;if(ub(r)){const a=Yu(r),s=qu(r,n),c=s[Ge].data;for(let l=0;l<8;l++)n[o+l]=s[a+l]|c[a+l]}return n[o+8]=r,o}function fb(e,n){e.push(0,0,0,0,0,0,0,0,n)}function qD(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function tm(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=t2(r),null===i)return Bl;if(t++,r=r[Il],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return Bl}function pb(e,n,t){!function lV(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Pu)&&(i=t[Pu]),null==i&&(i=t[Pu]=cV++);const r=i&WD;n.data[e+(r>>YD)]|=1<=0?n&WD:pV:n}(t);if("function"==typeof o){if(!LD(n,e,i))return i&Zt.Host?KD(r,0,i):XD(n,t,i,r);try{let a;if(a=o(i),null!=a||i&Zt.Optional)return a;Oy()}finally{zD()}}else if("number"==typeof o){let a=null,s=qD(e,n),c=Bl,l=i&Zt.Host?n[ii][zi]:null;for((-1===s||i&Zt.SkipSelf)&&(c=-1===s?tm(e,n):n[s+8],c!==Bl&&e2(i,!1)?(a=n[Ge],s=Yu(c),n=qu(c,n)):s=-1);-1!==s;){const d=n[Ge];if(JD(o,s,d.data)){const u=uV(s,n,t,a,i,l);if(u!==sa)return u}c=n[s+8],c!==Bl&&e2(i,n[Ge].data[s+8]===l)&&JD(o,s,n)?(a=d,s=Yu(c),n=qu(c,n)):s=-1}}return r}function uV(e,n,t,i,r,o){const a=n[Ge],s=a.data[e+8],d=nm(s,a,t,null==i?mc(s)&&hb:i!=a&&0!=(3&s.type),r&Zt.Host&&o===s);return null!==d?_c(n,a,d,s):sa}function nm(e,n,t,i,r){const o=e.providerIndexes,a=n.data,s=1048575&o,c=e.directiveStart,d=o>>20,h=r?s+d:e.directiveEnd;for(let f=i?s:s+d;f=c&&p.type===t)return f}if(r){const f=a[c];if(f&&Oo(f)&&f.type===t)return c}return null}function _c(e,n,t,i){let r=e[t];const o=n.data;if(function rV(e){return e instanceof Wu}(r)){const a=r;a.resolving&&function Zr(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${t}`)}(function wt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Je(e)}(o[t]));const s=Jp(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?fr(a.injectImpl):null;LD(e,i,Zt.Default);try{r=e[t]=a.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function nV(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=bD(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&fr(l),Jp(s),a.resolving=!1,zD()}}return r}function JD(e,n,t){return!!(t[n+(e>>YD)]&1<{const n=e.prototype.constructor,t=n[Pa]||mb(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Pa]||mb(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function mb(e){return O(e)?()=>{const n=mb(w(e));return n&&n()}:gc(e)}function t2(e){const n=e[Ge],t=n.type;return 2===t?n.declTNode:1===t?e[zi]:null}function Vl(e){return function dV(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r{const i=function gb(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(zl)?c[zl]:Object.defineProperty(c,zl,{value:[]})[zl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Gl(e,n){e.forEach(t=>Array.isArray(t)?Gl(t,n):n(t))}function r2(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function im(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Zu(e,n){const t=[];for(let i=0;i=0?e[1|i]=t:(i=~i,function wV(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function vb(e,n){const t=Wl(e,n);if(t>=0)return e[1|t]}function Wl(e,n){return function o2(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),a=e[o<n?r=o:i=o+1}return~(r<0&&(e[t-1][Io]=i[Io]);const o=im(e,Oi+n);!function oj(e,n){nh(e,n,n[Et],2,null,null),n[Jn]=null,n[zi]=null}(i[Ge],i);const a=o[ia];null!==a&&a.detachView(o[Ge]),i[Hn]=null,i[Io]=null,i[At]&=-129}return i}function Mb(e,n){if(!(256&n[At])){const t=n[Et];n[zu]&&hD(n[zu]),n[Hu]&&hD(n[Hu]),t.destroyNode&&nh(e,n,t,3,null,null),function cj(e){let n=e[Bu];if(!n)return Ib(e[Ge],e);for(;n;){let t=null;if(mr(n))t=n[Bu];else{const i=n[Oi];i&&(t=i)}if(!t){for(;n&&!n[Io]&&n!==e;)mr(n)&&Ib(n[Ge],n),n=n[Hn];null===n&&(n=e),mr(n)&&Ib(n[Ge],n),t=n&&n[Io]}n=t}}(n)}}function Ib(e,n){if(!(256&n[At])){n[At]&=-129,n[At]|=256,function hj(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[a]():i[-a].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[Al]=null);const r=n[xs];if(null!==r){n[xs]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===Jr.None||o===Jr.Emulated)return null}return gr(i,t)}}(e,n.parent,t)}function yc(e,n,t,i,r){e.insertBefore(n,t,i,r)}function I2(e,n,t){e.appendChild(n,t)}function O2(e,n,t,i,r){null!==i?yc(e,n,t,i,r):I2(e,n,t)}function pm(e,n){return e.parentNode(n)}function R2(e,n,t){return N2(e,n,t)}let Rb,Lb,N2=function P2(e,n,t){return 40&e.type?gr(e,t):null};function mm(e,n,t,i){const r=Ob(e,i,n),o=n[Et],s=R2(i.parent||n[zi],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c{t.push(a)};return Gl(n,a=>{const s=a;wm(s,o,[],i)&&(r||=[],r.push(s))}),void 0!==r&&ik(r,o),t}function ik(e,n){for(let t=0;t{n(o,i)})}}function wm(e,n,t,i){if(!(e=w(e)))return!1;let r=null,o=Lp(e);const a=!o&&Jt(e);if(o||a){if(a&&!a.standalone)return!1;r=e}else{const c=e.ngModule;if(o=Lp(c),!o)return!1;r=c}const s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)wm(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;i.add(r);try{Gl(o.imports,d=>{wm(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&ik(l,n)}if(!s){const l=gc(r)||(()=>new r);n({provide:r,useFactory:l,deps:cn},r),n({provide:ek,useValue:r,multi:!0},r),n({provide:xm,useValue:()=>N(r),multi:!0},r)}const c=o.providers;if(null!=c&&!s){const l=e;Ub(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function Ub(e,n){for(let t of e)K(t)&&(t=t.\u0275providers),Array.isArray(t)?Ub(t,n):n(t)}const Yj=sn({provide:String,useValue:sn});function Gb(e){return null!==e&&"object"==typeof e&&Yj in e}function bc(e){return"function"==typeof e}const Wb=new Ce("Set Injector scope."),Em={},Kj={};let Yb;function Cm(){return void 0===Yb&&(Yb=new $b),Yb}class Va{}class Jl extends Va{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kb(n,a=>this.processProvider(a)),this.records.set(J2,ed(void 0,this)),r.has("environment")&&this.records.set(Va,ed(void 0,this));const o=this.records.get(Wb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ek.multi,cn,Zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ys(this),i=fr(void 0);try{return n()}finally{ys(t),fr(i)}}get(n,t=Ou,i=Zt.Default){if(this.assertNotDestroyed(),n.hasOwnProperty($S))return n[$S](this);i=jp(i);const o=ys(this),a=fr(void 0);try{if(!(i&Zt.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function ez(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ce}(n)&&Fp(n);c=l&&this.injectableDefInScope(l)?ed(qb(n),Em):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&Zt.Self?Cm():this.parent).get(n,t=i&Zt.Optional&&t===Ou?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Vp]=s[Vp]||[]).unshift(Qn(n)),o)throw s;return function X6(e,n,t,i){const r=e[Vp];throw n[jS]&&r.unshift(n[jS]),e.message=function Z6(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Qn(n);if(Array.isArray(n))r=n.map(Qn).join(" -> ");else if("object"==typeof n){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Qn(s)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(G6,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Vp]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{fr(a),ys(o)}}resolveInjectorInitializers(){const n=ys(this),t=fr(void 0);try{const r=this.get(xm.multi,cn,Zt.Self);for(const o of r)o()}finally{ys(n),fr(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Qn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(n){let t=bc(n=w(n))?n:w(n&&n.provide);const i=function Zj(e){return Gb(e)?ed(void 0,e.useValue):ed(ak(e),Em)}(n);if(bc(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=ed(void 0,Em,!0),r.factory=()=>jy(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===Em&&(t.value=Kj,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Jj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=w(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function qb(e){const n=Fp(e),t=null!==n?n.factory:gc(e);if(null!==t)return t;if(e instanceof Ce)throw new q(204,!1);if(e instanceof Function)return function Xj(e){const n=e.length;if(n>0)throw Zu(n,"?"),new q(204,!1);const t=function z6(e){return e&&(e[Bp]||e[FS])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new q(204,!1)}function ak(e,n,t){let i;if(bc(e)){const r=w(e);return gc(r)||qb(r)}if(Gb(e))i=()=>w(e.useValue);else if(function ok(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...jy(e.deps||[]));else if(function rk(e){return!(!e||!e.useExisting)}(e))i=()=>N(w(e.useExisting));else{const r=w(e&&(e.useClass||e.provide));if(!function Qj(e){return!!e.deps}(e))return gc(r)||qb(r);i=()=>new r(...jy(e.deps))}return i}function ed(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Kb(e,n){for(const t of e)Array.isArray(t)?Kb(t,n):t&&K(t)?Kb(t.\u0275providers,n):n(t)}const Sm=new Ce("AppId",{providedIn:"root",factory:()=>tz}),tz="ng",sk=new Ce("Platform Initializer"),xc=new Ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$i=new Ce("AnimationModuleType"),Xb=new Ce("CSP nonce",{providedIn:"root",factory:()=>function Zl(){if(void 0!==Lb)return Lb;if(typeof document<"u")return document;throw new q(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let ck=(e,n,t)=>null;function o0(e,n,t=!1){return ck(e,n,t)}class uz{}class uk{}class fz{resolveComponentFactory(n){throw function hz(e){const n=Error(`No component factory found for ${Qn(e)}.`);return n.ngComponent=e,n}(n)}}let id=(()=>{class e{static#e=this.NULL=new fz}return e})();function pz(){return rd(Pi(),pe())}function rd(e,n){return new Ft(gr(e,n))}let Ft=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=pz}return e})();function mz(e){return e instanceof Ft?e.nativeElement:e}class ch{}let wc=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function gz(){const e=pe(),t=Ar(Pi().index,e);return(mr(t)?t:e)[Et]}()}return e})(),vz=(()=>{class e{static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>null})}return e})();class od{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const _z=new od("16.2.12"),c0={};function gk(e,n=null,t=null,i){const r=vk(e,n,t,i);return r.resolveInjectorInitializers(),r}function vk(e,n=null,t=null,i,r=new Set){const o=[t||cn,Wj(e)];return i=i||("object"==typeof e?void 0:Qn(e)),new Jl(o,n||Cm(),i||null,r)}let ri=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Ou;static#t=this.NULL=new $b;static create(t,i){if(Array.isArray(t))return gk({name:""},i,t,"");{const r=t.name??"";return gk({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=Se({token:e,providedIn:"any",factory:()=>N(J2)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function d0(e){return e.ngOriginalError}class ja{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&d0(n);for(;t&&d0(t);)t=d0(t);return t||null}}function h0(e){return n=>{setTimeout(e,void 0,n)}}const Xt=class Sz extends Y{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=h0(o),r&&(r=h0(r)),a&&(a=h0(a)));const s=super.subscribe({next:r,error:o,complete:a});return n instanceof ee&&n.add(s),s}};function yk(...e){}class rt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xt(!1),this.onMicrotaskEmpty=new Xt(!1),this.onStable=new Xt(!1),this.onError=new Xt(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Dz(){const e="function"==typeof An.requestAnimationFrame;let n=An[e?"requestAnimationFrame":"setTimeout"],t=An[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Az(e){const n=()=>{!function Tz(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(An,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,p0(e),e.isCheckStableRunning=!0,f0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),p0(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,a,s)=>{if(function Iz(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(s))return t.invokeTask(r,o,a,s);try{return bk(e),t.invokeTask(r,o,a,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),xk(e)}},onInvoke:(t,i,r,o,a,s,c)=>{try{return bk(e),t.invoke(r,o,a,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),xk(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,p0(e),f0(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rt.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(rt.isInAngularZone())throw new q(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,kz,yk,yk);try{return o.runTask(a,t,i)}finally{o.cancelTask(a)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const kz={};function f0(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function p0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bk(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xk(e){e._nesting--,f0(e)}class Mz{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xt,this.onMicrotaskEmpty=new Xt,this.onStable=new Xt,this.onError=new Xt}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}const wk=new Ce("",{providedIn:"root",factory:Ek});function Ek(){const e=vt(rt);let n=!0;return To(new pt(r=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(n),r.complete()})}),new pt(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const a=e.onUnstable.subscribe(()=>{rt.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),a.unsubscribe()}}).pipe(hc()))}let m0=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>new e})}return e})();function lh(e){for(;e;){e[At]|=64;const n=eh(e);if(Wy(e)&&!n)return e;e=n}return null}const Tk=new Ce("",{providedIn:"root",factory:()=>!1});let Om=null;function Ok(e,n){return e[n]??Nk()}function Rk(e,n){const t=Nk();t.producerNode?.length&&(e[n]=Om,t.lView=e,Om=Pk())}const zz={...aD,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{lh(e.lView)},lView:null};function Pk(){return Object.create(zz)}function Nk(){return Om??=Pk(),Om}const Dt={};function ye(e){Fk(en(),pe(),Qi()+e,!1)}function Fk(e,n,t,i){if(!i)if(3==(3&n[At])){const o=e.preOrderCheckHooks;null!==o&&Zp(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Qp(n,o,0,t)}vc(t)}function T(e,n=Zt.Default){const t=pe();return null===t?N(e,n):ZD(Pi(),t,w(e),n)}function Rm(){throw new Error("invalid")}function Pm(e,n,t,i,r,o,a,s,c,l,d){const u=n.blueprint.slice();return u[Jn]=r,u[At]=140|i,(null!==l||e&&2048&e[At])&&(u[At]|=2048),DD(u),u[Hn]=u[Il]=e,u[ni]=t,u[Ml]=a||e&&e[Ml],u[Et]=s||e&&e[Et],u[bs]=c||e&&e[bs]||null,u[zi]=o,u[ju]=function YV(){return WV++}(),u[Na]=d,u[nD]=l,u[ii]=2==n.type?e[ii]:u,u}function cd(e,n,t,i,r){let o=e.data[n];if(null===o)o=function g0(e,n,t,i,r){const o=OD(),a=eb(),c=e.data[n]=function Kz(e,n,t,i,r,o){let a=n?n.injectorIndex:-1,s=0;return Fl()&&(s|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(a?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,i,r),function q8(){return gt.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const a=function Gu(){const e=gt.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return aa(o,!0),o}function dh(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;oWt&&Fk(e,n,Wt,!1),oa(s?2:0,r);const l=s?o:null,d=qy(l);try{null!==l&&(l.dirty=!1),t(i,r)}finally{Ky(l,d)}}finally{s&&null===n[zu]&&Rk(n,zu),vc(a),oa(s?3:1,r)}}function v0(e,n,t){if(Gy(n)){const i=eo(null);try{const o=n.directiveEnd;for(let a=n.directiveStart;anull;function jk(e,n,t,i){for(let r in e)if(e.hasOwnProperty(r)){t=null===t?{}:t;const o=e[r];null===i?zk(t,n,r,o):i.hasOwnProperty(r)&&zk(t,n,i[r],o)}return t}function zk(e,n,t,i){e.hasOwnProperty(t)?e[t].push(n,i):e[t]=[n,i]}function Ir(e,n,t,i,r,o,a,s){const c=gr(n,t);let d,l=n.inputs;!s&&null!=l&&(d=l[i])?(S0(e,t,d,i,r),mc(n)&&function Qz(e,n){const t=Ar(n,e);16&t[At]||(t[At]|=64)}(t,n.index)):3&n.type&&(i=function Zz(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=a?a(r,n.value||"",i):r,o.setProperty(c,i,r))}function x0(e,n,t,i){if(ID()){const r=null===i?null:{"":-1},o=function rH(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=s&&a.push(s),a.push(t,i,o)}}(e,n,i,dh(e,t,r.hostVars,Dt),r)}function ca(e,n,t,i,r,o){const a=gr(e,n);!function E0(e,n,t,i,r,o,a){if(null==o)e.removeAttribute(n,r,t);else{const s=null==a?Je(o):a(o,i||"",r);e.setAttribute(n,r,s,t)}}(n[Et],a,o,e.value,t,i,r)}function dH(e,n,t,i,r,o){const a=o[n];if(null!==a)for(let s=0;s{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,i,r){const o=typeof Zone>"u"?null:Zone.current,a=function D8(e,n,t){const i=Object.create(k8);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=a=>{i.cleanupFn=a};return i.ref={notify:()=>dD(i),run:()=>{if(i.dirty=!1,i.hasRun&&!uD(i))return;i.hasRun=!0;const a=qy(i);try{i.cleanupFn(),i.cleanupFn=yD,i.fn(r)}finally{Ky(i,a)}},cleanup:()=>i.cleanupFn()},i.ref}(t,l=>{this.all.has(l)&&this.queue.set(l,o)},r);let s;this.all.add(a),a.notify();const c=()=>{a.cleanup(),s?.(),this.all.delete(a),this.queue.delete(a)};return s=i?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,i]of this.queue)this.queue.delete(t),i?i.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>new e})}return e})();function Fm(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let a=0;a0){eT(e,1);const r=t.components;null!==r&&nT(e,r,1)}}function nT(e,n,t){for(let i=0;i-1&&(fm(n,i),im(t,i))}this._attachedToViewContainer=!1}Mb(this._lView[Ge],this._lView)}onDestroy(n){!function AD(e,n){if(256==(256&e[At]))throw new q(911,!1);null===e[xs]&&(e[xs]=[]),e[xs].push(n)}(this._lView,n)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-129}reattach(){this._lView[At]|=128}detectChanges(){Lm(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function sj(e,n){nh(e,n,n[Et],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=n}}class yH extends hh{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Lm(n[Ge],n,n[ni],!1)}checkNoChanges(){}get context(){return null}}class iT extends id{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Jt(n);return new fh(t,this.ngModule)}}function rT(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class xH{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=jp(i);const r=this.injector.get(n,c0,i);return r!==c0||t===c0?r:this.parentInjector.get(n,t,i)}}class fh extends uk{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=rT(n.inputs);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return rT(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function s8(e){return e.map(a8).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){let o=(r=r||this.ngModule)instanceof Va?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new xH(n,o):n,s=a.get(ch,null);if(null===s)throw new q(407,!1);const u={rendererFactory:s,sanitizer:a.get(vz,null),effectManager:a.get(Zk,null),afterRenderEventManager:a.get(m0,null)},h=s.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=i?function Uz(e,n,t,i){const o=i.get(Tk,!1)||t===Jr.ShadowDom,a=e.selectRootElement(n,o);return function Gz(e){Vk(e)}(a),a}(h,i,this.componentDef.encapsulation,a):hm(h,f,function bH(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),k=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let E=null;null!==p&&(E=o0(p,a,!0));const C=b0(0,null,null,1,0,null,null,null,null,null,null),x=Pm(null,C,null,k,null,null,u,h,a,null,E);let D,P;ob(x);try{const V=this.componentDef;let F,Q=null;V.findHostDirectiveDefs?(F=[],Q=new Map,V.findHostDirectiveDefs(V,F,Q),F.push(V)):F=[V];const be=function EH(e,n){const t=e[Ge],i=Wt;return e[i]=n,cd(t,i,2,"#host",null)}(x,p),He=function CH(e,n,t,i,r,o,a){const s=r[Ge];!function SH(e,n,t,i){for(const r of e)n.mergedAttrs=Nu(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Fm(n,n.mergedAttrs,!0),null!==t&&z2(i,t,n))}(i,e,n,a);let c=null;null!==n&&(c=o0(n,r[bs]));const l=o.rendererFactory.createRenderer(n,t);let d=16;t.signals?d=4096:t.onPush&&(d=64);const u=Pm(r,Bk(t),null,d,r[e.index],e,o,l,null,null,c);return s.firstCreatePass&&w0(s,e,i.length-1),Nm(r,u),r[e.index]=u}(be,p,V,F,x,u,h);P=SD(C,Wt),p&&function kH(e,n,t,i){if(i)$y(e,t,["ng-version",_z.full]);else{const{attrs:r,classes:o}=function c8(e){const n=[],t=[];let i=1,r=2;for(;i0&&j2(e,t,o.join(" "))}}(h,V,p,i),void 0!==t&&function TH(e,n,t){const i=e.projection=[];for(let r=0;r=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Nu(r.hostAttrs,t=Nu(t,r.hostAttrs))}}(i)}function Bm(e){return e===na?{}:e===cn?[]:e}function IH(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function OH(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function RH(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function Vm(e){return!!function k0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Ui(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function hn(e,n,t,i){const r=pe();return Ui(r,Ll(),n)&&(en(),ca(qn(),r,e,n,t,i)),hn}function dd(e,n,t,i){return Ui(e,Ll(),t)?n+Je(t)+i:Dt}function ud(e,n,t,i,r,o){const s=function Ec(e,n,t,i){const r=Ui(e,n,t);return Ui(e,n+1,i)||r}(e,function Fa(){return gt.lFrame.bindingIndex}(),t,r);return La(2),s?n+Je(t)+i+Je(r)+o:Dt}function et(e,n,t,i,r,o,a,s){const c=pe(),l=en(),d=e+Wt,u=l.firstCreatePass?function o9(e,n,t,i,r,o,a,s,c){const l=n.consts,d=cd(n,e,4,a||null,Es(l,s));x0(n,t,d,Es(l,c)),Xp(n,d);const u=d.tView=b0(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,l,c,n,t,i,r,o,a):l.data[d];aa(u,!1);const h=xT(l,c,u,e);Kp()&&mm(l,c,h,u),Hi(h,c),Nm(c,c[d]=Gk(h,c,h,u)),Gp(u)&&_0(l,c,u),null!=a&&y0(c,u,s)}let xT=function wT(e,n,t,i){return Cs(!0),n[Et].createComment("")};function er(e){return Nl(function Y8(){return gt.lFrame.contextLView}(),Wt+e)}function Ae(e,n,t){const i=pe();return Ui(i,Ll(),n)&&Ir(en(),qn(),i,e,n,i[Et],t,!1),Ae}function R0(e,n,t,i,r){const a=r?"class":"style";S0(e,t,n.inputs[a],a,i)}function j(e,n,t,i){const r=pe(),o=en(),a=Wt+e,s=r[Et],c=o.firstCreatePass?function l9(e,n,t,i,r,o){const a=n.consts,c=cd(n,e,2,i,Es(a,r));return x0(n,t,c,Es(a,o)),null!==c.attrs&&Fm(c,c.attrs,!1),null!==c.mergedAttrs&&Fm(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(a,o,r,n,t,i):o.data[a],l=ET(o,r,c,s,n,e);r[a]=l;const d=Gp(c);return aa(c,!0),z2(s,l,c),32!=(32&c.flags)&&Kp()&&mm(o,r,l,c),0===function V8(){return gt.lFrame.elementDepthCount}()&&Hi(l,r),function j8(){gt.lFrame.elementDepthCount++}(),d&&(_0(o,r,c),v0(o,c,r)),null!==i&&y0(r,c),j}function W(){let e=Pi();eb()?tb():(e=e.parent,aa(e,!1));const n=e;(function H8(e){return gt.skipHydrationRootTNode===e})(n)&&function W8(){gt.skipHydrationRootTNode=null}(),function z8(){gt.lFrame.elementDepthCount--}();const t=en();return t.firstCreatePass&&(Xp(t,e),Gy(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function oV(e){return 0!=(8&e.flags)}(n)&&R0(t,n,pe(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function aV(e){return 0!=(16&e.flags)}(n)&&R0(t,n,pe(),n.stylesWithoutHost,!1),W}function at(e,n,t,i){return j(e,n,t,i),W(),at}let ET=(e,n,t,i,r,o)=>(Cs(!0),hm(i,r,function HD(){return gt.lFrame.currentNamespace}()));function tr(){return pe()}function Um(e){return!!e&&"function"==typeof e.then}function DT(e){return!!e&&"function"==typeof e.subscribe}function Le(e,n,t,i){const r=pe(),o=en(),a=Pi();return kT(o,r,r[Et],a,e,n,i),Le}function F0(e,n){const t=Pi(),i=pe(),r=en();return kT(r,i,Kk(ib(r.data),t,i),t,e,n),F0}function kT(e,n,t,i,r,o,a){const s=Gp(i),l=e.firstCreatePass&&qk(e),d=n[ni],u=Yk(n);let h=!0;if(3&i.type||a){const g=gr(i,n),v=a?a(g):g,k=u.length,E=a?x=>a(Mn(x[i.index])):i.index;let C=null;if(!a&&s&&(C=function m9(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,n,r,i.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=AT(i,n,d,o,!1);const x=t.listen(v,r,o);u.push(o,x),l&&l.push(r,E,k,k+1)}}else o=AT(i,n,d,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const g=p.length;if(g)for(let v=0;v-1?Ar(e.index,n):n);let c=TT(n,t,i,a),l=o.__ngNextListenerFn__;for(;l;)c=TT(n,t,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&a.preventDefault(),c}}function st(e=1){return function Q8(e){return(gt.lFrame.contextLView=function J8(e,n){for(;e>0;)n=n[Il],e--;return n}(e,gt.lFrame.contextLView))[ni]}(e)}function g9(e,n){let t=null;const i=function n8(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r>17&32767}function B0(e){return 2|e}function Sc(e){return(131068&e)>>2}function V0(e,n){return-131069&e|n<<2}function j0(e){return 1|e}function BT(e,n,t,i,r){const o=e[t+1],a=null===n;let s=i?ks(o):Sc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=e[s+1];w9(e[s],n)&&(c=!0,e[s+1]=i?j0(d):B0(d)),s=i?ks(d):Sc(d)}c&&(e[t+1]=i?B0(o):j0(o))}function w9(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Wl(e,n)>=0}function z0(e,n,t){return Ro(e,n,t,!1),z0}function Ct(e,n){return Ro(e,n,null,!0),Ct}function Ro(e,n,t,i){const r=pe(),o=en(),a=La(2);o.firstUpdatePass&&function WT(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[Qi()],a=function GT(e,n){return n>=e.expandoStartIndex}(e,t);(function XT(e,n){return 0!=(e.flags&(n?8:16))})(o,i)&&null===n&&!a&&(n=!1),n=function I9(e,n,t,i){const r=ib(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=_h(t=H0(null,e,n,t,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==r)if(t=H0(r,e,n,t,i),null===o){let c=function O9(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Sc(i))return e[ks(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=H0(null,e,n,c[1],i),c=_h(c,n.attrs,i),function R9(e,n,t,i){e[ks(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function P9(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(l=!0)):d=t,r)if(0!==c){const h=ks(e[s+1]);e[i+1]=Gm(h,s),0!==h&&(e[h+1]=V0(e[h+1],i)),e[s+1]=function _9(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=Gm(s,0),0!==s&&(e[s+1]=V0(e[s+1],i)),s=i;else e[i+1]=Gm(c,0),0===s?s=i:e[c+1]=V0(e[c+1],i),c=i;l&&(e[i+1]=B0(e[i+1])),BT(e,d,i,!0),BT(e,d,i,!1),function x9(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Wl(o,n)>=0&&(t[i+1]=j0(t[i+1]))}(n,d,e,i,o),a=Gm(s,c),o?n.classBindings=a:n.styleBindings=a}(r,o,n,t,a,i)}}(o,e,a,i),n!==Dt&&Ui(r,a,n)&&function qT(e,n,t,i,r,o,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function y9(e){return 1==(1&e)}(l)?KT(c,n,t,r,Sc(l),a):void 0;Wm(d)||(Wm(o)||function v9(e){return 2==(2&e)}(l)&&(o=KT(c,null,t,r,s,a)),function vj(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:Ss.DashCase;null==r?e.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Ss.Important),e.setStyle(t,i,r,o))}}(i,a,qp(Qi(),t),r,o))}(o,o.data[Qi()],r,r[Et],e,r[a+1]=function B9(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Qn(Ds(e)))),e}(n,t),i,a)}function H0(e,n,t,i,r){let o=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=t[r+1];h===Dt&&(h=u?cn:void 0);let f=u?vb(h,i):d===i?h:void 0;if(l&&!Wm(f)&&(f=vb(c,i)),Wm(f)&&(s=f,a))return s;const p=e[r+1];r=a?ks(p):Sc(p)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(s=vb(c,i))}return s}function Wm(e){return void 0!==e}function Fe(e,n=""){const t=pe(),i=en(),r=e+Wt,o=i.firstCreatePass?cd(i,r,1,n,null):i.data[r],a=ZT(i,t,o,n,e);t[r]=a,Kp()&&mm(i,t,a,o),aa(o,!1)}let ZT=(e,n,t,i,r)=>(Cs(!0),function um(e,n){return e.createText(n)}(n[Et],i));function io(e){return $a("",e,""),io}function $a(e,n,t){const i=pe(),r=dd(i,e,n,t);return r!==Dt&&Ha(i,Qi(),r),$a}function $0(e,n,t,i,r){const o=pe(),a=ud(o,e,n,t,i,r);return a!==Dt&&Ha(o,Qi(),a),$0}function yd(e,n,t){const i=pe();return Ui(i,Ll(),n)&&Ir(en(),qn(),i,e,n,i[Et],t,!0),yd}function U0(e,n,t){const i=pe();if(Ui(i,Ll(),n)){const o=en(),a=qn();Ir(o,a,i,e,n,Kk(ib(o.data),a,i),t,!0)}return U0}const Dc=void 0;var a7=["en",[["a","p"],["AM","PM"],Dc],[["AM","PM"],Dc,Dc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Dc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Dc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Dc,"{1} 'at' {0}",Dc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function o7(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let bd={};function nr(e){const n=function s7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=mA(n);if(t)return t;const i=n.split("-")[0];if(t=mA(i),t)return t;if("en"===i)return a7;throw new q(701,!1)}function mA(e){return e in bd||(bd[e]=An.ng&&An.ng.common&&An.ng.common.locales&&An.ng.common.locales[e]),bd[e]}var In=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(In||{});const xd="en-US";let gA=xd;function Y0(e,n,t,i,r){if(e=w(e),Array.isArray(e))for(let o=0;o>20;if(bc(e)||!e.multi){const f=new Wu(l,r,T),p=K0(c,n,r?d:d+h,u);-1===p?(pb(em(s,a),o,c),q0(o,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(f),a.push(f)):(t[p]=f,a[p]=f)}else{const f=K0(c,n,d+h,u),p=K0(c,n,d,d+h),v=p>=0&&t[p];if(r&&!v||!r&&!(f>=0&&t[f])){pb(em(s,a),o,c);const k=function o$(e,n,t,i,r){const o=new Wu(e,t,T);return o.multi=[],o.index=n,o.componentProviders=0,zA(o,r,i&&!t),o}(r?r$:i$,t.length,r,i,l);!r&&v&&(t[p].providerFactory=k),q0(o,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(k),a.push(k)}else q0(o,e,f>-1?f:p,zA(t[r?p:f],l,!r&&i));!r&&i&&v&&t[p].componentProviders++}}}function q0(e,n,t,i){const r=bc(n),o=function qj(e){return!!e.useClass}(n);if(r||o){const c=(o?w(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(t);-1===d?l.push(t,[i,c]):l[d+1].push(i,c)}else l.push(t,c)}}}function zA(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function K0(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function n$(e,n,t){const i=en();if(i.firstCreatePass){const r=Oo(e);Y0(t,i.data,i.blueprint,r,!0),Y0(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class kc{}class a${}class Z0 extends kc{constructor(n,t,i){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iT(this);const r=function kr(e,n){const t=e[HS]||null;if(!t&&!0===n)throw new Error(`Type ${Qn(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function za(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=vk(n,t,[{provide:kc,useValue:this},{provide:id,useValue:this.componentFactoryResolver},...i],Qn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Q0 extends a${constructor(n){super(),this.moduleType=n}create(n){return new Z0(this.moduleType,n,[])}}function KA(e,n,t,i,r,o){const a=n+t;return Ui(e,a,r)?function la(e,n,t){return e[n]=t}(e,a+1,o?i.call(o,r):i(r)):function Ch(e,n){const t=e[n];return t===Dt?void 0:t}(e,a+1)}function $t(e,n){const t=en();let i;const r=e+Wt;t.firstCreatePass?(i=function M$(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=gc(i.type)),s=fr(T);try{const c=Jp(!1),l=o();return Jp(c),function c9(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,pe(),r,l),l}finally{fr(s)}}function Ut(e,n,t){const i=e+Wt,r=pe(),o=Nl(r,i);return function Sh(e,n){return e[Ge].data[n].pure}(r,i)?KA(r,function Zi(){const e=gt.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}function N$(){return this._results[Symbol.iterator]()}class wd{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Xt)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=wd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=N$)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=function to(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function bV(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i0&&(t[r-1][Io]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=j$}return e})();const B$=ro,V$=class extends B${constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=function F$(e,n,t,i){const r=n.tView,s=Pm(e,r,t,4096&e[At]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);s[Vu]=e[n.index];const l=e[ia];return null!==l&&(s[ia]=l.createEmbeddedView(r)),D0(r,s,t),s}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:i});return new hh(r)}};function j$(){return Zm(Pi(),pe())}function Zm(e,n){return 4&e.type?new V$(n,e,rd(e,n)):null}let oo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=W$}return e})();function W$(){return aM(Pi(),pe())}const Y$=oo,rM=class extends Y${constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new Ji(this._hostTNode,this._hostLView)}get parentInjector(){const n=tm(this._hostTNode,this._hostLView);if(ub(n)){const t=qu(n,this._hostLView),i=Yu(n);return new Ji(t[Ge].data[i+8],t)}return new Ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=oM(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Oi}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(s,r,false),s}createComponent(n,t,i,r,o){const a=n&&!function Xu(e){return"function"==typeof e}(n);let s;if(a)s=t;else{const g=t||{};s=g.index,i=g.injector,r=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const c=a?n:new fh(Jt(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const v=(a?l:this.parentInjector).get(Va,null);v&&(o=v)}Jt(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,s,false),f}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,i){const r=n._lView;if(function F8(e){return Xi(e[Hn])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const l=r[Hn],d=new rM(l,l[zi],l[Hn]);d.detach(d.indexOf(n))}}const a=this._adjustIndex(t),s=this._lContainer;return L$(s,r,a,!i),n.attachToViewContainerRef(),r2(ex(s),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=oM(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=fm(this._lContainer,t);i&&(im(ex(this._lContainer),t),Mb(i[Ge],i))}detach(n){const t=this._adjustIndex(n,-1),i=fm(this._lContainer,t);return i&&null!=im(ex(this._lContainer),t)?new hh(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function oM(e){return e[8]}function ex(e){return e[8]||(e[8]=[])}function aM(e,n){let t;const i=n[e.index];return Xi(i)?t=i:(t=Gk(i,n,null,e),n[e.index]=t,Nm(n,t)),sM(t,n,e,i),new rM(t,e,n)}let sM=function cM(e,n,t,i){if(e[ra])return;let r;r=8&t.type?Mn(i):function q$(e,n){const t=e[Et],i=t.createComment(""),r=gr(n,e);return yc(t,pm(t,r),i,function pj(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[ra]=r};class tx{constructor(n){this.queryList=n,this.matches=null}clone(){return new tx(this.queryList)}setDirty(){this.queryList.setDirty()}}class nx{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{const l=o[s+1],d=n[-c];for(let u=Oi;u{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=vt(EU,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(Um(o))t.push(o);else if(DT(o)){const a=new Promise((s,c)=>{o.subscribe({complete:s,error:c})});t.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ha=new Ce("LocaleId",{providedIn:"root",factory:()=>vt(ha,Zt.Optional|Zt.SkipSelf)||function SU(){return typeof $localize<"u"&&$localize.locale||xd}()});let TU=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const PM=new Ce(""),tg=new Ce("");let mx,fx=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mx||(function ZU(e){mx=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(N(rt),N(px),N(tg))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),px=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return mx?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ts=null;const NM=new Ce("AllowMultipleToken"),gx=new Ce("PlatformDestroyListeners"),FM=new Ce("appBootstrapListener");function VM(e,n,t=[]){const i=`Platform: ${n}`,r=new Ce(i);return(o=[])=>{let a=vx();if(!a||a.injector.get(NM,!1)){const s=[...t,...o,{provide:r,useValue:!0}];e?e(s):function eG(e){if(Ts&&!Ts.get(NM,!1))throw new q(400,!1);(function LM(){!function x8(e){mD=e}(()=>{throw new q(600,!1)})})(),Ts=e;const n=e.get(zM);(function BM(e){e.get(sk,null)?.forEach(t=>t())})(e)}(function jM(e=[],n){return ri.create({name:n,providers:[{provide:Wb,useValue:"platform"},{provide:gx,useValue:new Set([()=>Ts=null])},...e]})}(s,i))}return function nG(e){const n=vx();if(!n)throw new q(401,!1);return n}()}}function vx(){return Ts?.get(zM)??null}let zM=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function iG(e="zone.js",n){return"noop"===e?new Mz:"zone.js"===e?new rt(n):e}(i?.ngZone,function HM(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function c$(e,n,t){return new Z0(e,n,t)}(t.moduleType,this.injector,function YM(e){return[{provide:rt,useFactory:e},{provide:xm,multi:!0,useFactory:()=>{const n=vt(oG,{optional:!0});return()=>n.initialize()}},{provide:WM,useFactory:rG},{provide:wk,useFactory:Ek}]}(()=>r)),a=o.injector.get(ja,null);return r.runOutsideAngular(()=>{const s=r.onError.subscribe({next:c=>{a.handleError(c)}});o.onDestroy(()=>{ng(this._modules,o),s.unsubscribe()})}),function $M(e,n,t){try{const i=t();return Um(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(a,r,()=>{const s=o.injector.get(dx);return s.runInitializers(),s.donePromise.then(()=>(function vA(e){Qr(e,"Expected localeId to be defined"),"string"==typeof e&&(gA=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(ha,xd)||xd),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,i=[]){const r=UM({},i);return function QU(e,n,t){const i=new Q0(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Tc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new q(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(gx,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(N(ri))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function UM(e,n){return Array.isArray(n)?n.reduce(UM,e):{...e,...n}}let Tc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=vt(WM),this.zoneIsStable=vt(wk),this.componentTypes=[],this.components=[],this.isStable=vt(TU).hasPendingTasks.pipe(function kl(e,n){return G((t,i)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&i.complete();t.subscribe(ue(i,c=>{r?.unsubscribe();let l=0;const d=o++;ji(e(c,d)).subscribe(r=ue(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}(t=>t?vs(!1):this.zoneIsStable),Ao(),hc()),this._injector=vt(Va)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof uk;if(!this._injector.get(dx).done)throw!r&&function Fu(e){const n=Jt(e)||Ii(e)||Ki(e);return null!==n&&n.standalone}(t),new q(405,!1);let a;a=r?t:this._injector.get(id).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const s=function JU(e){return e.isBoundToModule}(a)?void 0:this._injector.get(kc),l=a.create(ri.NULL,[],i||a.selector,s),d=l.location.nativeElement,u=l.injector.get(PM,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ng(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ng(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(FM,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>ng(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new q(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ng(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const WM=new Ce("",{providedIn:"root",factory:()=>vt(ja).handleError.bind(void 0)});function rG(){const e=vt(rt),n=vt(ja);return t=>e.runOutsideAngular(()=>n.handleError(t))}let oG=(()=>{class e{constructor(){this.zone=vt(rt),this.applicationRef=vt(Tc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let No=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=sG}return e})();function sG(e){return function cG(e,n,t){if(mc(e)&&!t){const i=Ar(e.index,n);return new hh(i,i)}return 47&e.type?new hh(n[ii],n):null}(Pi(),pe(),16==(16&e))}class ZM{constructor(){}supports(n){return Vm(n)}create(n){return new pG(n)}}const fG=(e,n)=>n;class pG{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||fG}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const a=!i||t&&t.currentIndex{a=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,a)?(i&&(t=this._verifyReinsertion(t,s,a,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new mG(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new QM),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new QM),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mG{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gG{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class QM{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new gG,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function JM(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{class e{static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:tI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||tI()),deps:[[e,new bb,new yb]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new q(901,!1)}}return e})();const xG=VM(null,"core",[]);let wG=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(N(Tc))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),Cx=null;function As(){return Cx}class NG{}const qt=new Ce("DocumentToken");let uI=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return vt(FG)},providedIn:"platform"})}return e})(),FG=(()=>{class e extends uI{constructor(){super(),this._doc=vt(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return As().getBaseHref(this._doc)}onPopState(t){const i=As().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=As().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function hI(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function fI(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Mc(e){return e&&"?"!==e[0]?"?"+e:e}let Sx=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return vt(BG)},providedIn:"root"})}return e})();const LG=new Ce("appBaseHref");let BG=(()=>{class e extends Sx{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??vt(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return hI(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Mc(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+Mc(o));this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+Mc(o));this._platformLocation.replaceState(t,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(uI),N(LG,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dx=(()=>{class e{constructor(t){this._subject=new Xt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function zG(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(fI(pI(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Mc(i))}normalize(t){return e.stripTrailingSlash(function jG(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,pI(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Mc(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Mc(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=Mc;static#t=this.joinWithSlash=hI;static#n=this.stripTrailingSlash=fI;static#i=this.\u0275fac=function(i){return new(i||e)(N(Sx))};static#r=this.\u0275prov=Se({token:e,factory:function(){return function VG(){return new Dx(N(Sx))}()},providedIn:"root"})}return e})();function pI(e){return e.replace(/\/index.html$/,"")}var rr=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(rr||{}),Tn=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Tn||{}),Or=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Or||{}),ai=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(ai||{});function cg(e,n){return so(nr(e)[In.DateFormat],n)}function lg(e,n){return so(nr(e)[In.TimeFormat],n)}function dg(e,n){return so(nr(e)[In.DateTimeFormat],n)}function ao(e,n){const t=nr(e),i=t[In.NumberSymbols][n];if(typeof i>"u"){if(n===ai.CurrencyDecimal)return t[In.NumberSymbols][ai.Decimal];if(n===ai.CurrencyGroup)return t[In.NumberSymbols][ai.Group]}return i}function gI(e){if(!e[In.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[In.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function so(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Tx(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const tW=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ah={},nW=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ua=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Ua||{}),fn=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(fn||{}),pn=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(pn||{});function vI(e,n,t,i){let r=function uW(e){if(bI(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,o=1,a=1]=e.split("-").map(s=>+s);return ug(r,o-1,a)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let i;if(i=e.match(tW))return function hW(e){const n=new Date(0);let t=0,i=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const a=Number(e[4]||0)-t,s=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,a,s,c,l),n}(i)}const n=new Date(e);if(!bI(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=Ga(t,n)||n;let s,a=[];for(;n;){if(s=nW.exec(n),!s){a.push(n);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;n=d}}let c=r.getTimezoneOffset();i&&(c=yI(i,c),r=function dW(e,n,t){const i=t?-1:1,r=e.getTimezoneOffset();return function lW(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,i*(yI(n,r)-r))}(r,i,!0));let l="";return a.forEach(d=>{const u=function cW(e){if(Mx[e])return Mx[e];let n;switch(e){case"G":case"GG":case"GGG":n=On(pn.Eras,Tn.Abbreviated);break;case"GGGG":n=On(pn.Eras,Tn.Wide);break;case"GGGGG":n=On(pn.Eras,Tn.Narrow);break;case"y":n=ui(fn.FullYear,1,0,!1,!0);break;case"yy":n=ui(fn.FullYear,2,0,!0,!0);break;case"yyy":n=ui(fn.FullYear,3,0,!1,!0);break;case"yyyy":n=ui(fn.FullYear,4,0,!1,!0);break;case"Y":n=mg(1);break;case"YY":n=mg(2,!0);break;case"YYY":n=mg(3);break;case"YYYY":n=mg(4);break;case"M":case"L":n=ui(fn.Month,1,1);break;case"MM":case"LL":n=ui(fn.Month,2,1);break;case"MMM":n=On(pn.Months,Tn.Abbreviated);break;case"MMMM":n=On(pn.Months,Tn.Wide);break;case"MMMMM":n=On(pn.Months,Tn.Narrow);break;case"LLL":n=On(pn.Months,Tn.Abbreviated,rr.Standalone);break;case"LLLL":n=On(pn.Months,Tn.Wide,rr.Standalone);break;case"LLLLL":n=On(pn.Months,Tn.Narrow,rr.Standalone);break;case"w":n=Ax(1);break;case"ww":n=Ax(2);break;case"W":n=Ax(1,!0);break;case"d":n=ui(fn.Date,1);break;case"dd":n=ui(fn.Date,2);break;case"c":case"cc":n=ui(fn.Day,1);break;case"ccc":n=On(pn.Days,Tn.Abbreviated,rr.Standalone);break;case"cccc":n=On(pn.Days,Tn.Wide,rr.Standalone);break;case"ccccc":n=On(pn.Days,Tn.Narrow,rr.Standalone);break;case"cccccc":n=On(pn.Days,Tn.Short,rr.Standalone);break;case"E":case"EE":case"EEE":n=On(pn.Days,Tn.Abbreviated);break;case"EEEE":n=On(pn.Days,Tn.Wide);break;case"EEEEE":n=On(pn.Days,Tn.Narrow);break;case"EEEEEE":n=On(pn.Days,Tn.Short);break;case"a":case"aa":case"aaa":n=On(pn.DayPeriods,Tn.Abbreviated);break;case"aaaa":n=On(pn.DayPeriods,Tn.Wide);break;case"aaaaa":n=On(pn.DayPeriods,Tn.Narrow);break;case"b":case"bb":case"bbb":n=On(pn.DayPeriods,Tn.Abbreviated,rr.Standalone,!0);break;case"bbbb":n=On(pn.DayPeriods,Tn.Wide,rr.Standalone,!0);break;case"bbbbb":n=On(pn.DayPeriods,Tn.Narrow,rr.Standalone,!0);break;case"B":case"BB":case"BBB":n=On(pn.DayPeriods,Tn.Abbreviated,rr.Format,!0);break;case"BBBB":n=On(pn.DayPeriods,Tn.Wide,rr.Format,!0);break;case"BBBBB":n=On(pn.DayPeriods,Tn.Narrow,rr.Format,!0);break;case"h":n=ui(fn.Hours,1,-12);break;case"hh":n=ui(fn.Hours,2,-12);break;case"H":n=ui(fn.Hours,1);break;case"HH":n=ui(fn.Hours,2);break;case"m":n=ui(fn.Minutes,1);break;case"mm":n=ui(fn.Minutes,2);break;case"s":n=ui(fn.Seconds,1);break;case"ss":n=ui(fn.Seconds,2);break;case"S":n=ui(fn.FractionalSeconds,1);break;case"SS":n=ui(fn.FractionalSeconds,2);break;case"SSS":n=ui(fn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=fg(Ua.Short);break;case"ZZZZZ":n=fg(Ua.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=fg(Ua.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=fg(Ua.Long);break;default:return null}return Mx[e]=n,n}(d);l+=u?u(r,t,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ug(e,n,t){const i=new Date(0);return i.setFullYear(e,n,t),i.setHours(0,0,0),i}function Ga(e,n){const t=function $G(e){return nr(e)[In.LocaleId]}(e);if(Ah[t]=Ah[t]||{},Ah[t][n])return Ah[t][n];let i="";switch(n){case"shortDate":i=cg(e,Or.Short);break;case"mediumDate":i=cg(e,Or.Medium);break;case"longDate":i=cg(e,Or.Long);break;case"fullDate":i=cg(e,Or.Full);break;case"shortTime":i=lg(e,Or.Short);break;case"mediumTime":i=lg(e,Or.Medium);break;case"longTime":i=lg(e,Or.Long);break;case"fullTime":i=lg(e,Or.Full);break;case"short":const r=Ga(e,"shortTime"),o=Ga(e,"shortDate");i=hg(dg(e,Or.Short),[r,o]);break;case"medium":const a=Ga(e,"mediumTime"),s=Ga(e,"mediumDate");i=hg(dg(e,Or.Medium),[a,s]);break;case"long":const c=Ga(e,"longTime"),l=Ga(e,"longDate");i=hg(dg(e,Or.Long),[c,l]);break;case"full":const d=Ga(e,"fullTime"),u=Ga(e,"fullDate");i=hg(dg(e,Or.Full),[d,u])}return i&&(Ah[t][n]=i),i}function hg(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,i){return null!=n&&i in n?n[i]:t})),e}function Fo(e,n,t="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=t));let a=String(e);for(;a.length0||s>-t)&&(s+=t),e===fn.Hours)0===s&&-12===t&&(s=12);else if(e===fn.FractionalSeconds)return function iW(e,n){return Fo(e,3).substring(0,n)}(s,n);const c=ao(a,ai.MinusSign);return Fo(s,n,c,i,r)}}function On(e,n,t=rr.Format,i=!1){return function(r,o){return function oW(e,n,t,i,r,o){switch(t){case pn.Months:return function WG(e,n,t){const i=nr(e),o=so([i[In.MonthsFormat],i[In.MonthsStandalone]],n);return so(o,t)}(n,r,i)[e.getMonth()];case pn.Days:return function GG(e,n,t){const i=nr(e),o=so([i[In.DaysFormat],i[In.DaysStandalone]],n);return so(o,t)}(n,r,i)[e.getDay()];case pn.DayPeriods:const a=e.getHours(),s=e.getMinutes();if(o){const l=function XG(e){const n=nr(e);return gI(n),(n[In.ExtraData][2]||[]).map(i=>"string"==typeof i?Tx(i):[Tx(i[0]),Tx(i[1])])}(n),d=function ZG(e,n,t){const i=nr(e);gI(i);const o=so([i[In.ExtraData][0],i[In.ExtraData][1]],n)||[];return so(o,t)||[]}(n,r,i),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,g=a>=f.hours&&s>=f.minutes,v=a0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Ua.Short:return(r>=0?"+":"")+Fo(a,2,o)+Fo(Math.abs(r%60),2,o);case Ua.ShortGMT:return"GMT"+(r>=0?"+":"")+Fo(a,1,o);case Ua.Long:return"GMT"+(r>=0?"+":"")+Fo(a,2,o)+":"+Fo(Math.abs(r%60),2,o);case Ua.Extended:return 0===i?"Z":(r>=0?"+":"")+Fo(a,2,o)+":"+Fo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const aW=0,pg=4;function _I(e){return ug(e.getFullYear(),e.getMonth(),e.getDate()+(pg-e.getDay()))}function Ax(e,n=!1){return function(t,i){let r;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,a=t.getDate();r=1+Math.floor((a+o)/7)}else{const o=_I(t),a=function sW(e){const n=ug(e,aW,1).getDay();return ug(e,0,1+(n<=pg?pg:pg+7)-n)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Fo(r,e,ao(i,ai.MinusSign))}}function mg(e,n=!1){return function(t,i){return Fo(_I(t).getFullYear(),e,ao(i,ai.MinusSign),n)}}const Mx={};function yI(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function bI(e){return e instanceof Date&&!isNaN(e.valueOf())}class kW{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let kd=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new kW(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const s=i.get(o);i.move(s,a),DI(s,r)}});for(let r=0,o=i.length;r{DI(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro),T(og))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function DI(e,n){e.context.$implicit=n.item}let co=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new TW,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){kI("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){kI("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class TW{constructor(){this.$implicit=null,this.ngIf=null}}function kI(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Qn(n)}'.`)}class Lx{constructor(n,t){this._viewContainerRef=n,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let vg=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return e})(),TI=(()=>{class e{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new Lx(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro),T(vg,9))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return e})(),Bx=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Tr]})}return e})();class OW{createSubscription(n,t){return _D(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){_D(()=>n.unsubscribe())}}class RW{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const PW=new RW,NW=new OW;let fa=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Um(t))return PW;if(DT(t))return NW;throw function Lo(e,n){return new q(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(T(No,16))};static#t=this.\u0275pipe=pr({name:"async",type:e,pure:!1,standalone:!0})}return e})(),Wa=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const II="browser";function OI(e){return"server"===e}class kY extends NG{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $x extends kY{static makeCurrent(){!function PG(e){Cx||(Cx=e)}(new $x)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function TY(){return Oh=Oh||document.querySelector("base"),Oh?Oh.getAttribute("href"):null}();return null==t?null:function AY(e){bg=bg||document.createElement("a"),bg.setAttribute("href",e);const n=bg.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Oh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function CW(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let bg,Oh=null,IY=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const Ux=new Ce("EventManagerPlugins");let LI=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new q(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ux),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class BI{constructor(n){this._doc=n}}const Gx="ng-app-id";let VI=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=OI(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Gx}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(Gx),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Gx,this.appId),a}}addStyleToHost(t,i){const r=this.getStyleElement(t,i);t.appendChild(r);const o=this.styleRef,a=o.get(i)?.elements;a?a.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Sm),N(Xb,8),N(xc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const Wx={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Yx=/%COMP%/g,NY=new Ce("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function zI(e,n){return n.map(t=>t.replace(Yx,e))}let qx=(()=>{class e{constructor(t,i,r,o,a,s,c,l=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=OI(s),this.defaultRenderer=new Kx(t,a,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Jr.ShadowDom&&(i={...i,encapsulation:Jr.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof $I?r.applyToHost(t):r instanceof Xx&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.doc,s=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case Jr.Emulated:o=new $I(c,l,i,this.appId,d,a,s,u);break;case Jr.ShadowDom:return new VY(c,l,t,i,a,s,this.nonce,u);default:o=new Xx(c,l,i,d,a,s,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(N(LI),N(VI),N(Sm),N(NY),N(qt),N(xc),N(rt),N(Xb))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class Kx{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Wx[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(HI(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(HI(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new q(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=Wx[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Wx[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Ss.DashCase|Ss.Important)?n.style.setProperty(t,i,r&Ss.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Ss.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=As().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function HI(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class VY extends Kx{constructor(n,t,i,r,o,a,s,c){super(n,o,a,c),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=zI(r.id,r.styles);for(const d of l){const u=document.createElement("style");s&&u.setAttribute("nonce",s),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Xx extends Kx{constructor(n,t,i,r,o,a,s,c){super(n,o,a,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?zI(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $I extends Xx{constructor(n,t,i,r,o,a,s,c){const l=r+"-"+i.id;super(n,t,i,o,a,s,c,l),this.contentAttr=function FY(e){return"_ngcontent-%COMP%".replace(Yx,e)}(l),this.hostAttr=function LY(e){return"_nghost-%COMP%".replace(Yx,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let jY=(()=>{class e extends BI{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const UI=["alt","control","meta","shift"],zY={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},HY={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $Y=(()=>{class e extends BI{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),a=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>As().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),UI.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(t,i){let r=zY[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UI.forEach(a=>{a!==r&&(0,HY[a])(t)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const YY=VM(xG,"browser",[{provide:xc,useValue:II},{provide:sk,useValue:function UY(){$x.makeCurrent()},multi:!0},{provide:qt,useFactory:function WY(){return function wj(e){Lb=e}(document),document},deps:[]}]),qY=new Ce(""),YI=[{provide:tg,useClass:class MY{addToWindow(n){An.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new q(5103,!1);return o},An.getAllAngularTestabilities=()=>n.getAllTestabilities(),An.getAllAngularRootElements=()=>n.getAllRootElements(),An.frameworkStabilizers||(An.frameworkStabilizers=[]),An.frameworkStabilizers.push(i=>{const r=An.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&i(a)};r.forEach(c=>{c.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?As().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:PM,useClass:fx,deps:[rt,px,tg]},{provide:fx,useClass:fx,deps:[rt,px,tg]}],qI=[{provide:Wb,useValue:"root"},{provide:ja,useFactory:function GY(){return new ja},deps:[]},{provide:Ux,useClass:jY,multi:!0,deps:[qt,rt,xc]},{provide:Ux,useClass:$Y,multi:!0,deps:[qt]},qx,VI,LI,{provide:ch,useExisting:qx},{provide:class rY{},useClass:IY,deps:[]},[]];let KI=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Sm,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(N(qY,12))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[...qI,...YI],imports:[Wa,wG]})}return e})();typeof window<"u"&&window;const{isArray:tq}=Array,{getPrototypeOf:nq,prototype:iq,keys:rq}=Object;function JI(e){if(1===e.length){const n=e[0];if(tq(n))return{args:n,keys:null};if(function oq(e){return e&&"object"==typeof e&&nq(e)===iq}(n)){const t=rq(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:aq}=Array;function Qx(e){return ce(n=>function sq(e,n){return aq(n)?e(...n):e(n)}(e,n))}function eO(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let tO=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(wc),T(Ft))};static#t=this.\u0275dir=Me({type:e})}return e})(),Ic=(()=>{class e extends tO{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,features:[dt]})}return e})();const Rr=new Ce("NgValueAccessor"),lq={provide:Rr,useExisting:y(()=>Jx),multi:!0};let Jx=(()=>{class e extends Ic{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){1&i&&Le("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[Yt([lq]),dt]})}return e})();const dq={provide:Rr,useExisting:y(()=>Rh),multi:!0},hq=new Ce("CompositionEventMode");let Rh=(()=>{class e extends tO{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function uq(){const e=As()?As().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(wc),T(Ft),T(hq,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&Le("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Yt([dq]),dt]})}return e})();function Is(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function nO(e){return null!=e&&"number"==typeof e.length}const Ni=new Ce("NgValidators"),Os=new Ce("NgAsyncValidators"),fq=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class pq{static min(n){return function iO(e){return n=>{if(Is(n.value)||Is(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Is(n.value)||Is(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function oO(e){return Is(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function aO(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function sO(e){return Is(e.value)||fq.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function cO(e){return n=>Is(n.value)||!nO(n.value)?null:n.value.length{if(Is(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return gO(n)}static composeAsync(n){return vO(n)}}function lO(e){return n=>nO(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function xg(e){return null}function uO(e){return null!=e}function hO(e){return Um(e)?ki(e):e}function fO(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function pO(e,n){return n.map(t=>t(e))}function mO(e){return e.map(n=>function mq(e){return!e.validate}(n)?n:t=>n.validate(t))}function gO(e){if(!e)return null;const n=e.filter(uO);return 0==n.length?null:function(t){return fO(pO(t,n))}}function ew(e){return null!=e?gO(mO(e)):null}function vO(e){if(!e)return null;const n=e.filter(uO);return 0==n.length?null:function(t){return function cq(...e){const n=Pp(e),{args:t,keys:i}=JI(e),r=new pt(o=>{const{length:a}=t;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?eO(i,s):s),o.complete())}))}});return n?r.pipe(Qx(n)):r}(pO(t,n).map(hO)).pipe(ce(fO))}}function tw(e){return null!=e?vO(mO(e)):null}function _O(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function yO(e){return e._rawValidators}function bO(e){return e._rawAsyncValidators}function nw(e){return e?Array.isArray(e)?e:[e]:[]}function wg(e,n){return Array.isArray(e)?e.includes(n):e===n}function xO(e,n){const t=nw(n);return nw(e).forEach(r=>{wg(t,r)||t.push(r)}),t}function wO(e,n){return nw(n).filter(t=>!wg(e,t))}class EO{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=ew(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=tw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class or extends EO{get formDirective(){return null}get path(){return null}}class Ya extends EO{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let iw=(()=>{class e extends CO{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ya,2))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[dt]})}return e})(),Eg=(()=>{class e extends CO{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(or,10))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[dt]})}return e})();const Ph="VALID",Sg="INVALID",Td="PENDING",Nh="DISABLED";function aw(e){return(Dg(e)?e.validators:e)||null}function sw(e,n){return(Dg(n)?n.asyncValidators:e)||null}function Dg(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function DO(e,n,t){const i=e.controls;if(!(n?Object.keys(i):i).length)throw new q(1e3,"");if(!i[t])throw new q(1001,"")}function kO(e,n,t){e._forEachChild((i,r)=>{if(void 0===t[r])throw new q(1002,"")})}class kg{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ph}get invalid(){return this.status===Sg}get pending(){return this.status==Td}get disabled(){return this.status===Nh}get enabled(){return this.status!==Nh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(xO(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(xO(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(wO(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(wO(n,this._rawAsyncValidators))}hasValidator(n){return wg(this._rawValidators,n)}hasAsyncValidator(n){return wg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Td,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Nh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ph,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ph||this.status===Td)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nh:Ph}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Td,this._hasOwnPendingAsyncValidator=!0;const t=hO(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Xt,this.statusChanges=new Xt}_calculateStatus(){return this._allControlsDisabled()?Nh:this.errors?Sg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Td)?Td:this._anyControlsHaveStatus(Sg)?Sg:Ph}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Dg(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function yq(e){return Array.isArray(e)?ew(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function bq(e){return Array.isArray(e)?tw(e):e||null}(this._rawAsyncValidators)}}class Fh extends kg{constructor(n,t,i){super(aw(t),sw(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){kO(this,0,n),Object.keys(n).forEach(i=>{DO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class TO extends Fh{}const Oc=new Ce("CallSetDisabledState",{providedIn:"root",factory:()=>Lh}),Lh="always";function Bh(e,n,t=Lh){cw(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function wq(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&AO(e,n)})}(e,n),function Cq(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function Eq(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&AO(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function xq(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Ag(e,n,t=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ig(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Mg(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function cw(e,n){const t=yO(e);null!==n.validator?e.setValidators(_O(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=bO(e);null!==n.asyncValidator?e.setAsyncValidators(_O(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Mg(n._rawValidators,r),Mg(n._rawAsyncValidators,r)}function Ig(e,n){let t=!1;if(null!==e){if(null!==n.validator){const r=yO(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.validator);o.length!==r.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const r=bO(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(t=!0,e.setAsyncValidators(o))}}}const i=()=>{};return Mg(n._rawValidators,i),Mg(n._rawAsyncValidators,i),t}function AO(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function MO(e,n){cw(e,n)}function IO(e,n){e._syncPendingControls(),n.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const Aq={provide:or,useExisting:y(()=>jh)},Vh=(()=>Promise.resolve())();let jh=(()=>{class e extends or{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Xt,this.form=new Fh({},ew(t),tw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Vh.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),Bh(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Vh.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Vh.then(()=>{const i=this._findContainer(t.path),r=new Fh({});MO(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Vh.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){Vh.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,IO(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ni,10),T(Os,10),T(Oc,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&Le("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([Aq]),dt]})}return e})();function OO(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function RO(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const zh=class extends kg{constructor(n=null,t,i){super(aw(t),sw(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dg(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=RO(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){OO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){OO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){RO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Og=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Rq={provide:Rr,useExisting:y(()=>hw),multi:!0};let hw=(()=>{class e extends Ic{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&Le("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Yt([Rq]),dt]})}return e})(),BO=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const fw=new Ce("NgModelWithFormControlWarning"),Bq={provide:or,useExisting:y(()=>Ad)};let Ad=(()=>{class e extends or{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Xt,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ig(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return Bh(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){Ag(t.control||null,t,!1),function Tq(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,IO(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(Ag(i||null,t),(e=>e instanceof zh)(r)&&(Bh(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);MO(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function Sq(e,n){return Ig(e,n)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){cw(this.form,this),this._oldForm&&Ig(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ni,10),T(Os,10),T(Oc,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&Le("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([Bq]),dt,Tr]})}return e})();const zq={provide:Ya,useExisting:y(()=>Rg)};let Rg=(()=>{class e extends Ya{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Xt,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function uw(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Rh?t=o:function kq(e){return Object.getPrototypeOf(e.constructor)===Ic}(o)?i=o:r=o}),r||i||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function dw(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Tg(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||e)(T(or,13),T(Ni,10),T(Os,10),T(Rr,10),T(fw,8))};static#n=this.\u0275dir=Me({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Yt([zq]),dt,Tr]})}return e})();let Rc=(()=>{class e{constructor(){this._validator=xg}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):xg,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,features:[Tr]})}return e})();const eK={provide:Ni,useExisting:y(()=>bw),multi:!0};let bw=(()=>{class e extends Rc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function GO(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>lO(t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&hn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Yt([eK]),dt]})}return e})(),QO=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[BO]})}return e})();class JO extends kg{constructor(n,t,i){super(aw(t),sw(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){kO(this,0,n),n.forEach((i,r)=>{DO(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function eR(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let ww,nK=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,i=null){const r=this._reduceControls(t);let o={};return eR(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Fh(r,o)}record(t,i=null){const r=this._reduceControls(t);return new TO(r,i)}control(t,i,r){let o={};return this.useNonNullable?(eR(i)?o=i:(o.validators=i,o.asyncValidators=r),new zh(t,{...o,nonNullable:!0})):new zh(t,i,r)}array(t,i,r){const o=t.map(a=>this._createControl(a));return new JO(o,i,r)}_reduceControls(t){const i={};return Object.keys(t).forEach(r=>{i[r]=this._createControl(t[r])}),i}_createControl(t){return t instanceof zh||t instanceof kg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xw=(()=>{class e extends nK{group(t,i=null){return super.group(t,i)}control(t,i,r){return super.control(t,i,r)}array(t,i,r){return super.array(t,i,r)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),tR=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oc,useValue:t.callSetDisabledState??Lh}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[QO]})}return e})(),iK=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:fw,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Oc,useValue:t.callSetDisabledState??Lh}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[QO]})}return e})();try{ww=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ww=!1}let Md,Xn=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function nY(e){return e===II}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!ww)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||e)(N(xc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const nR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function iR(){if(Md)return Md;if("object"!=typeof document||!document)return Md=new Set(nR),Md;let e=document.createElement("input");return Md=new Set(nR.filter(n=>(e.setAttribute("type",n),e.type===n))),Md}let Hh,Pc,Ew;function $h(e){return function rK(){if(null==Hh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hh=!0}))}finally{Hh=Hh||!1}return Hh}()?e:!!e.capture}function oK(){if(null==Pc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pc=!1,Pc;if("scrollBehavior"in document.documentElement.style)Pc=!0;else{const e=Element.prototype.scrollTo;Pc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Pc}function Ng(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}function Rs(e){return e.composedPath?e.composedPath()[0]:e.target}function Cw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Uh(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class DK extends ee{constructor(n,t){super()}schedule(n,t=0){return this}}const Fg={setInterval(e,n,...t){const{delegate:i}=Fg;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Fg;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class Sw extends DK{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return Fg.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Fg.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Re(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const Dw={now:()=>(Dw.delegate||Date).now(),delegate:void 0};class Gh{constructor(n,t=Gh.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Gh.now=Dw.now;class kw extends Gh{constructor(n,t=Gh.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const Tw=new kw(Sw),kK=Tw;function Aw(e,n=Tw){return G((t,i)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,i.next(l)}};function c(){const l=a+e,d=n.now();if(d{o=l,a=n.now(),r||(r=n.schedule(c,e),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Pr(e,n){return G((t,i)=>{let r=0;t.subscribe(ue(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Ps(e){return e<=0?()=>Co:G((n,t)=>{let i=0;n.subscribe(ue(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function cR(e){return Pr((n,t)=>e<=t)}function Bo(e){return G((n,t)=>{ji(e).subscribe(ue(t,()=>t.complete(),Oe)),!t.closed&&n.subscribe(t)})}function rn(e){return null!=e&&"false"!=`${e}`}function pa(e,n=0){return function TK(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):n}function Lg(e){return Array.isArray(e)?e:[e]}function hi(e){return null==e?"":"string"==typeof e?e:`${e}px`}function qa(e){return e instanceof Ft?e.nativeElement:e}let lR=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),AK=(()=>{class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=qa(t);return new pt(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new Y,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}static#e=this.\u0275fac=function(i){return new(i||e)(N(lR))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dR=(()=>{class e{get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pa(t),this._subscribe()}constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new Xt,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Aw(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(T(AK),T(Ft),T(rt))};static#t=this.\u0275dir=Me({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return e})(),Mw=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[lR]})}return e})();function uR(...e){const n=ta(e),t=Pp(e),{args:i,keys:r}=JI(e);if(0===i.length)return ki([],n);const o=new pt(function MK(e,n,t=Ot){return i=>{hR(n,()=>{const{length:r}=e,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=ki(e[c],n);let d=!1;l.subscribe(ue(i,u=>{o[c]=u,d||(d=!0,s--),s||i.next(t(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>eO(r,a):Ot));return t?o.pipe(Qx(t)):o}function hR(e,n,t){e?Kr(t,e,n):n()}function Iw(...e){return function IK(){return ea(1)}()(ki(e,ta(e)))}function Wh(...e){const n=ta(e);return G((t,i)=>{(n?Iw(e,t,n):Iw(e,t)).subscribe(i)})}const fR=new Set;let Nc,OK=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):PK}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function RK(e,n){if(!fR.has(e))try{Nc||(Nc=document.createElement("style"),n&&(Nc.nonce=n),Nc.setAttribute("type","text/css"),document.head.appendChild(Nc)),Nc.sheet&&(Nc.sheet.insertRule(`@media ${e} {body{ }}`,0),fR.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(Xb,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PK(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Ow=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return pR(Lg(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=uR(pR(Lg(t)).map(a=>this._registerQuery(a).observable));return o=Iw(o.pipe(Ps(1)),o.pipe(cR(1),Aw(0))),o.pipe(ce(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new pt(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Wh(i),ce(({matches:a})=>({query:t,matches:a})),Bo(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(i){return new(i||e)(N(OK),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pR(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}class BK{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=ee.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,n instanceof wd&&(this._itemChangesSubscription=n.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(function SK(e,n,t){const i=B(e)||n||t?{next:e,error:n,complete:t}:e;return i?G((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;r.subscribe(ue(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):Ot}(t=>this._pressedLetters.push(t)),Aw(n),Pr(()=>this._pressedLetters.length>0),ce(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const t=this._getItemsArray(),i="number"==typeof n?n:t.indexOf(n);this._activeItem=t[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+n*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,t){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=t])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof wd?this._items.toArray():this._items}}class vR extends BK{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Bg=(()=>{class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function jK(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function VK(e){try{return e.frameElement}catch{return null}}(function qK(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=yR(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function WK(e){let n=e.nodeName.toLowerCase(),t="input"===n&&e.type;return"text"===t||"password"===t||"select"===n||"textarea"===n}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function YK(e){return!function HK(e){return function UK(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function zK(e){let n=e.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(e)||function $K(e){return function GK(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||_R(e))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _R(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let n=e.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(e){if(!_R(e))return null;const n=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class KK{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,t,i,r,o=!1){this._element=n,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,t=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const t=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const i=this._getFirstTabbableElement(t);return i?.focus(n),!!i}return t.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const t=this._getRegionBoundary("start");return t&&t.focus(n),!!t}focusLastTabbableElement(n){const t=this._getRegionBoundary("end");return t&&t.focus(n),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const t=n.children;for(let i=0;i=0;i--){const r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,t){n?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Ps(1)).subscribe(n)}}let Rw=(()=>{class e{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new KK(t,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Bg),N(rt),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bR(e){return 0===e.buttons||0===e.detail}function xR(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const XK=new Ce("cdk-input-modality-detector-options"),ZK={ignoreKeys:[18,17,224,91,16]},Id=$h({passive:!0,capture:!0});let QK=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Qt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Rs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bR(a)?"keyboard":"mouse"),this._mostRecentTarget=Rs(a))},this._onTouchstart=a=>{xR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rs(a))},this._options={...ZK,...o},this.modalityDetected=this._modality.pipe(cR(1)),this.modalityChanged=this.modalityDetected.pipe(Ao()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Id),r.addEventListener("mousedown",this._onMousedown,Id),r.addEventListener("touchstart",this._onTouchstart,Id)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Id),document.removeEventListener("mousedown",this._onMousedown,Id),document.removeEventListener("touchstart",this._onTouchstart,Id))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt),N(qt),N(XK,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const JK=new Ce("liveAnnouncerElement",{providedIn:"root",factory:function eX(){return null}}),tX=new Ce("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let nX=0,ER=(()=>{class e{constructor(t,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",i=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class e{constructor(t,i,r,o,a){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=s=>{for(let l=Rs(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,i=!1){const r=qa(t);if(!this._platform.isBrowser||1!==r.nodeType)return vs();const o=function sK(e){if(function aK(){if(null==Ew){const e=typeof document<"u"?document.head:null;Ew=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Ew}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new Y,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){const i=qa(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=qa(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Rs(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vg),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vg)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Bo(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vg),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vg),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let a=0;a{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=vt(Ow).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Pw,CR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(Pw,CR):2===i&&t.add(Pw,SR)}}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rX=(()=>{class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||e)(N(DR))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Mw]})}return e})();const oX=new Ce("cdk-dir-doc",{providedIn:"root",factory:function aX(){return vt(qt)}}),sX=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Yh=(()=>{class e{constructor(t){this.value="ltr",this.change=new Xt,t&&(this.value=function cX(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?sX.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||e)(N(oX,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qh=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const dX=new Ce("mat-sanity-checks",{providedIn:"root",factory:function lX(){return!0}});let Cn=(()=>{class e{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Cw()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(i){return new(i||e)(N(DR),N(dX,8),N(qt))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[qh,qh]})}return e})();function AR(e){return class extends e{get disabled(){return this._disabled}set disabled(n){this._disabled=rn(n)}constructor(...n){super(...n),this._disabled=!1}}}function Nw(e,n){return class extends e{get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...t){super(...t),this.defaultColor=n,this.color=n}}}function Fw(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=rn(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function MR(e,n=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?pa(t):this.defaultTabIndex}constructor(...t){super(...t),this._tabIndex=n,this.defaultTabIndex=n}}}function uX(e){return class extends e{updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}let fX=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();class pX{constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const OR=$h({passive:!0,capture:!0});class mX{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=Rs(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,i,r){const o=this._events.get(t);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,OR)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,OR)))}}const RR={enterDuration:225,exitDuration:150},PR=$h({passive:!0,capture:!0}),NR=["mousedown","touchstart"],FR=["mouseup","mouseleave","touchend","touchcancel"];class Xh{static#e=this._eventManager=new mX;constructor(n,t,i,r){this._target=n,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qa(i))}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...RR,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const a=i.radius||function vX(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),s=n-r.left,c=t-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new pX(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",g.state=0,i.persistent||(this._mostRecentTransientRipple=g);let v=null;return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const k=()=>this._finishRippleTransition(g),E=()=>this._destroyRipple(g);d.addEventListener("transitionend",k),d.addEventListener("transitioncancel",E),v={onTransitionEnd:k,onTransitionCancel:E}}),this._activeRipples.set(g,v),(p||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,i={...RR,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=qa(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,NR.forEach(i=>{Xh._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{FR.forEach(t=>{this._triggerElement.addEventListener(t,this,PR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=bR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(NR.forEach(t=>Xh._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&FR.forEach(t=>n.removeEventListener(t,this,PR)))}}const Zh=new Ce("mat-ripple-global-options");let jg=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Xh(this,i,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})(),zg=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})(),_X=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn]})}return e})();const LR={capture:!0},BR=["focus","click","mouseenter","touchstart"],Lw="mat-ripple-loader-uninitialized",Bw="mat-ripple-loader-class-name",VR="mat-ripple-loader-centered",Hg="mat-ripple-loader-disabled";let yX=(()=>{class e{constructor(){this._document=vt(qt,{optional:!0}),this._animationMode=vt($i,{optional:!0}),this._globalRippleOptions=vt(Zh,{optional:!0}),this._platform=vt(Xn),this._ngZone=vt(rt),this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;const r=t.target.closest(`[${Lw}]`);r&&this.createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const t of BR)this._document?.addEventListener(t,this._onInteraction,LR)})}ngOnDestroy(){for(const t of BR)this._document?.removeEventListener(t,this._onInteraction,LR)}configureRipple(t,i){t.setAttribute(Lw,""),(i.className||!t.hasAttribute(Bw))&&t.setAttribute(Bw,i.className||""),i.centered&&t.setAttribute(VR,""),i.disabled&&t.setAttribute(Hg,"")}getRipple(t){return t.matRipple?t.matRipple:this.createRipple(t)}setDisabled(t,i){const r=t.matRipple;r?r.disabled=i:i?t.setAttribute(Hg,""):t.removeAttribute(Hg)}createRipple(t){if(!this._document)return;t.querySelector(".mat-ripple")?.remove();const i=this._document.createElement("span");i.classList.add("mat-ripple",t.getAttribute(Bw)),t.append(i);const r=new jg(new Ft(i),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=t,r.centered=t.hasAttribute(VR),r.disabled=t.hasAttribute(Hg),this.attachRipple(t,r),r}attachRipple(t,i){t.removeAttribute(Lw),t.matRipple=i}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jR=new Ce("mat-checkbox-default-options",{providedIn:"root",factory:function zR(){return{color:"accent",clickAction:"check-indeterminate"}}});let $R=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),UR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,$R,Cn,$R]})}return e})();class GR{}class IX{}const Ka="*";function Qh(e,n){return{type:7,name:e,definitions:n,options:{}}}function Fc(e,n=null){return{type:4,styles:n,timings:e}}function YR(e,n=null){return{type:2,steps:e,options:n}}function ar(e){return{type:6,styles:e,offset:null}}function Xa(e,n,t){return{type:0,name:e,styles:n,options:t}}function Lc(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}class Jh{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class XR{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function ZR(e){return new q(3e3,!1)}function Ns(e){switch(e.length){case 0:return new Jh;case 1:return e[0];default:return new XR(e)}}function QR(e,n,t=new Map,i=new Map){const r=[],o=[];let a=-1,s=null;if(n.forEach(c=>{const l=c.get("offset"),d=l==a,u=d&&s||new Map;c.forEach((h,f)=>{let p=f,g=h;if("offset"!==f)switch(p=e.normalizePropertyName(p,r),g){case"!":g=t.get(f);break;case Ka:g=i.get(f);break;default:g=e.normalizeStyleValue(f,p,g,r)}u.set(p,g)}),d||o.push(u),s=u,a=l}),r.length)throw function eZ(e){return new q(3502,!1)}();return o}function jw(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&zw(t,"start",e)));break;case"done":e.onDone(()=>i(t&&zw(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&zw(t,"destroy",e)))}}function zw(e,n,t){const o=Hw(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),a=e._data;return null!=a&&(o._data=a),o}function Hw(e,n,t,i,r="",o=0,a){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Nr(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function JR(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const hZ=(()=>typeof document>"u"?null:document.documentElement)();function $w(e){const n=e.parentNode||e.host||null;return n===hZ?null:n}let Bc=null,eP=!1;function tP(e,n){for(;n;){if(n===e)return!0;n=$w(n)}return!1}function nP(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let iP=(()=>{class e{validateStyleProperty(t){return function pZ(e){Bc||(Bc=function mZ(){return typeof document<"u"?document.body:null}()||{},eP=!!Bc.style&&"WebkitAppearance"in Bc.style);let n=!0;return Bc.style&&!function fZ(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Bc.style,!n&&eP&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Bc.style)),n}(t)}matchesElement(t,i){return!1}containsElement(t,i){return tP(t,i)}getParentElement(t){return $w(t)}query(t,i,r){return nP(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,a,s=[],c){return new Jh(r,o)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),Uw=(()=>{class e{static#e=this.NOOP=new iP}return e})();const gZ=1e3,Gw="ng-enter",$g="ng-leave",Ug="ng-trigger",Gg=".ng-trigger",oP="ng-animating",Ww=".ng-animating";function Za(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Yw(parseFloat(n[1]),n[2])}function Yw(e,n){return"s"===n?e*gZ:e}function Wg(e,n,t){return e.hasOwnProperty("duration")?e:function _Z(e,n,t){let r,o=0,a="";if("string"==typeof e){const s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(ZR()),{duration:0,delay:0,easing:""};r=Yw(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=Yw(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=e;if(!t){let s=!1,c=n.length;r<0&&(n.push(function OX(){return new q(3100,!1)}()),s=!0),o<0&&(n.push(function RX(){return new q(3101,!1)}()),s=!0),s&&n.splice(c,0,ZR())}return{duration:r,delay:o,easing:a}}(e,n,t)}function ef(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function aP(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function Fs(e,n=new Map,t){if(t)for(let[i,r]of t)n.set(i,r);for(let[i,r]of e)n.set(i,r);return n}function ma(e,n,t){n.forEach((i,r)=>{const o=Kw(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function Vc(e,n){n.forEach((t,i)=>{const r=Kw(i);e.style[r]=""})}function tf(e){return Array.isArray(e)?1==e.length?e[0]:YR(e):e}const qw=new RegExp("{{\\s*(.+?)\\s*}}","g");function cP(e){let n=[];if("string"==typeof e){let t;for(;t=qw.exec(e);)n.push(t[1]);qw.lastIndex=0}return n}function nf(e,n,t){const i=e.toString(),r=i.replace(qw,(o,a)=>{let s=n[a];return null==s&&(t.push(function NX(e){return new q(3003,!1)}()),s=""),s.toString()});return r==i?e:r}function Yg(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const xZ=/-+([a-z0-9])/g;function Kw(e){return e.replace(xZ,(...n)=>n[1].toUpperCase())}function Fr(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function FX(e){return new q(3004,!1)}()}}const qg="*";function CZ(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function SZ(e,n,t){if(":"==e[0]){const c=function DZ(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function KX(e){return new q(3015,!1)}()),n;const r=i[1],o=i[2],a=i[3];n.push(dP(r,a));"<"==o[0]&&!(r==qg&&a==qg)&&n.push(dP(a,r))}(i,t,n)):t.push(e),t}const Kg=new Set(["true","1"]),Xg=new Set(["false","0"]);function dP(e,n){const t=Kg.has(e)||Xg.has(e),i=Kg.has(n)||Xg.has(n);return(r,o)=>{let a=e==qg||e==r,s=n==qg||n==o;return!a&&t&&"boolean"==typeof r&&(a=r?Kg.has(e):Xg.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?Kg.has(n):Xg.has(n)),a&&s}}const kZ=new RegExp("s*:selfs*,?","g");function Xw(e,n,t,i){return new TZ(e).build(n,t,i)}class TZ{constructor(n){this._driver=n}build(n,t,i){const r=new IZ(t);return this._resetContextStyleTimingState(r),Fr(this,tf(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],a=[];return"@"==n.name.charAt(0)&&t.errors.push(function BX(){return new q(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(t),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,t))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,t);i+=c.queryCount,r+=c.depCount,a.push(c)}else t.errors.push(function VX(){return new q(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{cP(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(Yg(o.values()),t.errors.push(function jX(e,n){return new q(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Fr(this,tf(n.animation),t);return{type:1,matchers:CZ(n.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:jc(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(i=>Fr(this,i,t)),options:jc(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(a=>{t.currentTime=i;const s=Fr(this,a,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:o,options:jc(n.options)}}visitAnimate(n,t){const i=function RZ(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Zw(Wg(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Zw(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Wg(t,n);return Zw(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:ar({});if(5==o.type)r=this.visitKeyframes(o,t);else{let a=n.styles,s=!1;if(!a){s=!0;const l={};i.easing&&(l.easing=i.easing),a=ar(l)}t.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,t);c.isEmptyStep=s,r=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)"string"==typeof s?s===Ka?i.push(s):t.errors.push(new q(3002,!1)):i.push(aP(s));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function HX(e,n,t,i,r){return new q(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),t.options&&function bZ(e,n,t){const i=n.params||{},r=cP(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function PX(e){return new q(3001,!1)}())})}(s,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function $X(){return new q(3011,!1)}()),i;let o=0;const a=[];let s=!1,c=!1,l=0;const d=n.steps.map(k=>{const E=this._makeStyleAst(k,t);let C=null!=E.offset?E.offset:function OZ(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(E.styles),x=0;return null!=C&&(o++,x=E.offset=C),c=c||x<0||x>1,s=s||x0&&o{const C=h>0?E==f?1:h*E:a[E],x=C*v;t.currentTime=p+g.delay+x,g.duration=x,this._validateStyleAst(k,t),k.offset=C,i.styles.push(k)}),i}visitReference(n,t){return{type:8,animation:Fr(this,tf(n.animation),t),options:jc(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:jc(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:jc(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,a]=function AZ(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(kZ,"")),e=e.replace(/@\*/g,Gg).replace(/@\w+/g,t=>Gg+"-"+t.slice(1)).replace(/:animating/g,Ww),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,Nr(t.collectedStyles,t.currentQuerySelector,new Map);const s=Fr(this,tf(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:jc(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function YX(){return new q(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Wg(n.timings,t.errors,!0);return{type:12,animation:Fr(this,tf(n.animation),t),timings:i,options:null}}}class IZ{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function jc(e){return e?(e=ef(e)).params&&(e.params=function MZ(e){return e?ef(e):null}(e.params)):e={},e}function Zw(e,n,t){return{duration:e,delay:n,easing:t}}function Qw(e,n,t,i,r,o,a=null,s=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class Zg{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const FZ=new RegExp(":enter","g"),BZ=new RegExp(":leave","g");function Jw(e,n,t,i,r,o=new Map,a=new Map,s,c,l=[]){return(new VZ).buildKeyframes(e,n,t,i,r,o,a,s,c,l)}class VZ{buildKeyframes(n,t,i,r,o,a,s,c,l,d=[]){l=l||new Zg;const u=new e1(n,t,l,r,o,d,[]);u.options=c;const h=c.delay?Za(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),Fr(this,i,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&s.size){let p;for(let g=f.length-1;g>=0;g--){const v=f[g];if(v.element===t){p=v;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([s],null,u.errors,c)}return f.length?f.map(p=>p.buildKeyframes()):[Qw(t,[],[],[],0,h,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&t.transformIntoNewTimeline(a)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const a="number"==typeof o?o:Za(nf(o,r?.params??{},t.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const a=null!=i.duration?Za(i.duration):null,s=null!=i.delay?Za(i.delay):null;return 0!==a&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Fr(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qg);const a=Za(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Fr(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Za(n.options.delay):0;n.steps.forEach(a=>{const s=t.createSubContext(n.options);o&&s.delayNextStep(o),Fr(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return Wg(t.params?nf(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,s=t.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Za(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Qg);let a=i;const s=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,l);o&&u.delayNextStep(o),l===t.element&&(c=u.currentTimeline),Fr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(t.currentQueryTotal-1);let c=a*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const d=t.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;Fr(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const Qg={};class e1{constructor(n,t,i,r,o,a,s,c){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Jg(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Za(i.duration)),null!=i.delay&&(r.delay=Za(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!t||!a.hasOwnProperty(s))&&(a[s]=nf(o[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new e1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qg,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new jZ(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=(n=n.replace(FZ,"."+this._enterClassName)).replace(BZ,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),s.push(...l)}return!o&&0==s.length&&a.push(function qX(e){return new q(3014,!1)}()),s}}class Jg{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Jg(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Ka),this._currentKeyframe.set(t,Ka);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},a=function zZ(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)t.set(o,Ka)}else Fs(r,t)}),t}(n,this._globalTimelineStyles);for(let[s,c]of a){const l=nf(c,o,i);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ka),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=Fs(s,new Map,this._backFill);l.forEach((d,u)=>{"!"===d?n.add(u):d===Ka&&t.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});const o=n.size?Yg(n.values()):[],a=t.size?Yg(t.values()):[];if(i){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return Qw(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class jZ extends Jg{constructor(n,t,i,r,o,a,s=!1){super(n,t,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],a=i+t,s=t/a,c=Fs(n[0]);c.set("offset",0),o.push(c);const l=Fs(n[0]);l.set("offset",fP(s)),o.push(l);const d=n.length-1;for(let u=1;u<=d;u++){let h=Fs(n[u]);const f=h.get("offset");h.set("offset",fP((t+f*i)/a)),o.push(h)}i=a,t=0,r="",n=o}return Qw(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function fP(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class t1{}const HZ=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $Z extends t1{normalizePropertyName(n,t){return Kw(n)}normalizeStyleValue(n,t,i,r){let o="";const a=i.toString().trim();if(HZ.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function LX(e,n){return new q(3005,!1)}())}return a+o}}function pP(e,n,t,i,r,o,a,s,c,l,d,u,h){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const n1={};class mP{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function UZ(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||n1,p=this.buildStyles(i,s&&s.params||n1,u),g=c&&c.params||n1,v=this.buildStyles(r,g,u),k=new Set,E=new Map,C=new Map,x="void"===r,D={params:GZ(g,h),delay:this.ast.options?.delay},P=d?[]:Jw(n,t,this.ast.animation,o,a,p,v,D,l,u);let V=0;if(P.forEach(Q=>{V=Math.max(Q.duration+Q.delay,V)}),u.length)return pP(t,this._triggerName,i,r,x,p,v,[],[],E,C,V,u);P.forEach(Q=>{const be=Q.element,He=Nr(E,be,new Set);Q.preStyleProps.forEach(we=>He.add(we));const de=Nr(C,be,new Set);Q.postStyleProps.forEach(we=>de.add(we)),be!==t&&k.add(be)});const F=Yg(k.values());return pP(t,this._triggerName,i,r,x,p,v,P,F,E,C,V)}}function GZ(e,n){const t=ef(n);for(const i in e)e.hasOwnProperty(i)&&null!=e[i]&&(t[i]=e[i]);return t}class WZ{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=ef(this.defaultParams);return Object.keys(n).forEach(o=>{const a=n[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=nf(a,r,t));const c=this.normalizer.normalizePropertyName(s,t);a=this.normalizer.normalizeStyleValue(s,c,a,t),i.set(s,a)})}),i}}class qZ{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new WZ(r.style,r.options&&r.options.params||{},i))}),gP(this.states,"true","1"),gP(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new mP(n,r,this.states))}),this.fallbackTransition=function KZ(e,n,t){return new mP(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(a=>a.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function gP(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const XZ=new Zg;class ZZ{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=Xw(this._driver,t,i,[]);if(i.length)throw function tZ(e){return new q(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=QR(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let a;const s=new Map;if(o?(a=Jw(this._driver,t,o,Gw,$g,new Map,new Map,i,XZ,r),a.forEach(d=>{const u=Nr(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function nZ(){return new q(3300,!1)}()),a=[]),r.length)throw function iZ(e){return new q(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Ka))})});const l=Ns(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function rZ(e){return new q(3301,!1)}();return t}listen(n,t,i,r){const o=Hw(t,"","","");return jw(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const vP="ng-animate-queued",r1="ng-animate-disabled",nQ=[],_P={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vo="__ng_removed";class o1{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function sQ(e){return e??null}(i?n.value:n),i){const o=ef(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const rf="void",a1=new o1(rf);class rQ{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,lo(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function oZ(e,n){return new q(3302,!1)}();if(null==i||0==i.length)throw function aZ(e){return new q(3303,!1)}();if(!function cQ(e){return"start"==e||"done"==e}(i))throw function sZ(e,n){return new q(3400,!1)}();const o=Nr(this._elementListeners,n,[]),a={name:t,phase:i,callback:r};o.push(a);const s=Nr(this._engine.statesByElement,n,new Map);return s.has(t)||(lo(n,Ug),lo(n,Ug+"-"+t),s.set(t,a1)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(t)||s.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function cZ(e){return new q(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),a=new s1(this.id,t,n);let s=this._engine.statesByElement.get(n);s||(lo(n,Ug),lo(n,Ug+"-"+t),this._engine.statesByElement.set(n,s=new Map));let c=s.get(t);const l=new o1(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(t,l),c||(c=a1),l.value!==rf&&c.value===l.value){if(!function uQ(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{Vc(n,v),ma(n,k)})}return}const h=Nr(this._engine.playersByElement,n,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,n,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:p}),p||(lo(n,vP),a.onStart(()=>{Rd(n,vP)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const v=this._engine.playersByElement.get(n);if(v){let k=v.indexOf(a);k>=0&&v.splice(k,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,Gg,!0);i.forEach(r=>{if(r[Vo])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(n,l,rf,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,a),i&&Ns(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=i.get(a)||a1,d=new o1(rf),u=new s1(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[Vo];(!o||o===_P)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){lo(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=Hw(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,jw(i.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class oQ{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new rQ(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(t);for(;s;){const c=r.get(s);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(ev(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!ev(t))return;const o=t[Vo];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),lo(n,r1)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Rd(n,r1))}removeNode(n,t,i){if(ev(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[Vo]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return ev(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Gg,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Ww,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ns(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[Vo];if(t&&t.setForRemoval){if(n[Vo]=_P,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(r1)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ns(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function lZ(e){return new q(3402,!1)}()}_flushAnimations(n,t){const i=new Zg,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(fe=>{d.add(fe);const ve=this.driver.query(fe,".ng-animate-queued",!0);for(let _=0;_{const _=Gw+g++;p.set(ve,_),fe.forEach(m=>lo(m,_))});const v=[],k=new Set,E=new Set;for(let fe=0;fek.add(m)):E.add(ve))}const C=new Map,x=xP(h,Array.from(k));x.forEach((fe,ve)=>{const _=$g+g++;C.set(ve,_),fe.forEach(m=>lo(m,_))}),n.push(()=>{f.forEach((fe,ve)=>{const _=p.get(ve);fe.forEach(m=>Rd(m,_))}),x.forEach((fe,ve)=>{const _=C.get(ve);fe.forEach(m=>Rd(m,_))}),v.forEach(fe=>{this.processLeaveNode(fe)})});const D=[],P=[];for(let fe=this._namespaceList.length-1;fe>=0;fe--)this._namespaceList[fe].drainQueuedTransitions(t).forEach(_=>{const m=_.player,S=_.element;if(D.push(m),this.collectedEnterElements.length){const bt=S[Vo];if(bt&&bt.setForMove){if(bt.previousTriggersValues&&bt.previousTriggersValues.has(_.triggerName)){const xn=bt.previousTriggersValues.get(_.triggerName),gn=this.statesByElement.get(_.element);if(gn&&gn.has(_.triggerName)){const Sn=gn.get(_.triggerName);Sn.value=xn,gn.set(_.triggerName,Sn)}}return void m.destroy()}}const A=!u||!this.driver.containsElement(u,S),z=C.get(S),L=p.get(S),$=this._buildInstruction(_,i,L,z,A);if($.errors&&$.errors.length)return void P.push($);if(A)return m.onStart(()=>Vc(S,$.fromStyles)),m.onDestroy(()=>ma(S,$.toStyles)),void r.push(m);if(_.isFallbackTransition)return m.onStart(()=>Vc(S,$.fromStyles)),m.onDestroy(()=>ma(S,$.toStyles)),void r.push(m);const Pe=[];$.timelines.forEach(bt=>{bt.stretchStartingKeyframe=!0,this.disabledNodes.has(bt.element)||Pe.push(bt)}),$.timelines=Pe,i.append(S,$.timelines),a.push({instruction:$,player:m,element:S}),$.queriedElements.forEach(bt=>Nr(s,bt,[]).push(m)),$.preStyleProps.forEach((bt,xn)=>{if(bt.size){let gn=c.get(xn);gn||c.set(xn,gn=new Set),bt.forEach((Sn,ur)=>gn.add(ur))}}),$.postStyleProps.forEach((bt,xn)=>{let gn=l.get(xn);gn||l.set(xn,gn=new Set),bt.forEach((Sn,ur)=>gn.add(ur))})});if(P.length){const fe=[];P.forEach(ve=>{fe.push(function dZ(e,n){return new q(3505,!1)}())}),D.forEach(ve=>ve.destroy()),this.reportError(fe)}const V=new Map,F=new Map;a.forEach(fe=>{const ve=fe.element;i.has(ve)&&(F.set(ve,ve),this._beforeAnimationBuild(fe.player.namespaceId,fe.instruction,V))}),r.forEach(fe=>{const ve=fe.element;this._getPreviousPlayers(ve,!1,fe.namespaceId,fe.triggerName,null).forEach(m=>{Nr(V,ve,[]).push(m),m.destroy()})});const Q=v.filter(fe=>EP(fe,c,l)),be=new Map;bP(be,this.driver,E,l,Ka).forEach(fe=>{EP(fe,c,l)&&Q.push(fe)});const de=new Map;f.forEach((fe,ve)=>{bP(de,this.driver,new Set(fe),c,"!")}),Q.forEach(fe=>{const ve=be.get(fe),_=de.get(fe);be.set(fe,new Map([...ve?.entries()??[],..._?.entries()??[]]))});const we=[],je=[],Ht={};a.forEach(fe=>{const{element:ve,player:_,instruction:m}=fe;if(i.has(ve)){if(d.has(ve))return _.onDestroy(()=>ma(ve,m.toStyles)),_.disabled=!0,_.overrideTotalTime(m.totalTime),void r.push(_);let S=Ht;if(F.size>1){let z=ve;const L=[];for(;z=z.parentNode;){const $=F.get(z);if($){S=$;break}L.push(z)}L.forEach($=>F.set($,S))}const A=this._buildAnimation(_.namespaceId,m,V,o,de,be);if(_.setRealPlayer(A),S===Ht)we.push(_);else{const z=this.playersByElement.get(S);z&&z.length&&(_.parentPlayer=Ns(z)),r.push(_)}}else Vc(ve,m.fromStyles),_.onDestroy(()=>ma(ve,m.toStyles)),je.push(_),d.has(ve)&&r.push(_)}),je.forEach(fe=>{const ve=o.get(fe.element);if(ve&&ve.length){const _=Ns(ve);fe.setRealPlayer(_)}}),r.forEach(fe=>{fe.parentPlayer?fe.syncPlayerEvents(fe.parentPlayer):fe.destroy()});for(let fe=0;fe!A.destroyed);S.length?lQ(this,ve,S):this.processLeaveNode(ve)}return v.length=0,we.forEach(fe=>{this.players.push(fe),fe.onDone(()=>{fe.destroy();const ve=this.players.indexOf(fe);this.players.splice(ve,1)}),fe.play()}),we}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let a=[];if(t){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!o||o==rf;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(n,t,i){const o=t.element,a=t.isRemovalTransition?void 0:n,s=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,d=l!==o,u=Nr(i,l,[]);this._getPreviousPlayers(l,d,a,s,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}Vc(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,a){const s=t.triggerName,c=t.element,l=[],d=new Set,u=new Set,h=t.timelines.map(p=>{const g=p.element;d.add(g);const v=g[Vo];if(v&&v.removedBeforeQueried)return new Jh(p.duration,p.delay);const k=g!==c,E=function dQ(e){const n=[];return wP(e,n),n}((i.get(g)||nQ).map(V=>V.getRealPlayer())).filter(V=>!!V.element&&V.element===g),C=o.get(g),x=a.get(g),D=QR(this._normalizer,p.keyframes,C,x),P=this._buildPlayer(p,D,E);if(p.subTimeline&&r&&u.add(g),k){const V=new s1(n,s,g);V.setRealPlayer(P),l.push(V)}return P});l.forEach(p=>{Nr(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function aQ(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>lo(p,oP));const f=Ns(h);return f.onDestroy(()=>{d.forEach(p=>Rd(p,oP)),ma(c,t.toStyles)}),u.forEach(p=>{Nr(r,p,[]).push(f)}),f}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Jh(n.duration,n.delay)}}class s1{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new Jh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>jw(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){Nr(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function ev(e){return e&&1===e.nodeType}function yP(e,n){const t=e.style.display;return e.style.display=n??"none",t}function bP(e,n,t,i,r){const o=[];t.forEach(c=>o.push(yP(c)));const a=[];i.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=n.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Vo]=iQ,a.push(l))}),e.set(l,d)});let s=0;return t.forEach(c=>yP(c,o[s++])),a}function xP(e,n){const t=new Map;if(e.forEach(s=>t.set(s,[])),0==n.length)return t;const r=new Set(n),o=new Map;function a(s){if(!s)return 1;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=t.has(l)?l:r.has(l)?1:a(l),o.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&t.get(c).push(s)}),t}function lo(e,n){e.classList?.add(n)}function Rd(e,n){e.classList?.remove(n)}function lQ(e,n,t){Ns(t).onDone(()=>e.processLeaveNode(n))}function wP(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class tv{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new oQ(n,t,i),this._timelineEngine=new ZZ(n,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const a=n+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],d=Xw(this._driver,o,c,[]);if(c.length)throw function JX(e,n){return new q(3404,!1)}();s=function YZ(e,n,t){return new qZ(e,n,t)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(t,r,s)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,a]=JR(i);this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[a,s]=JR(i);return this._timelineEngine.listen(a,t,s,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let gQ=(()=>{class e extends GR{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Jr.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?YR(t):t;return SP(this._renderer,null,i,"register",[r]),new vQ(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||e)(N(ch),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class vQ extends IX{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new _Q(this._id,n,t||{},this._renderer)}}class _Q{constructor(n,t,i,r){this.id=n,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return SP(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function SP(e,n,t,i,r){return e.setProperty(n,`@@${t}:${i}`,r)}const DP="@.disabled";let yQ=(()=>{class e{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(o);return d||(d=new kP("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,t,d.name,d)};return i.data.animation.forEach(c),new bQ(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&ti(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(i){return new(i||e)(N(ch),N(tv),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class kP{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==DP?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class bQ extends kP{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==DP?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function xQ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function wQ(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,t,i)}}const AP=[{provide:Uw,useClass:iP},{provide:$i,useValue:"NoopAnimations"},...[{provide:GR,useClass:gQ},{provide:t1,useFactory:function CQ(){return new $Z}},{provide:tv,useClass:(()=>{class e extends tv{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Uw),N(t1),N(Tc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})()},{provide:ch,useFactory:function SQ(e,n,t){return new yQ(e,n,t)},deps:[qx,tv,rt]}]];let kQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:AP,imports:[KI]})}return e})();const TQ=["addListener","removeListener"],AQ=["addEventListener","removeEventListener"],MQ=["on","off"];function iv(e,n,t,i){if(B(t)&&(i=t,t=void 0),i)return iv(e,n,t).pipe(Qx(i));const[r,o]=function RQ(e){return B(e.addEventListener)&&B(e.removeEventListener)}(e)?AQ.map(a=>s=>e[a](n,s,t)):function IQ(e){return B(e.addListener)&&B(e.removeListener)}(e)?TQ.map(MP(e,n)):function OQ(e){return B(e.on)&&B(e.off)}(e)?MQ.map(MP(e,n)):[];if(!r&&Jo(e))return dc(a=>iv(a,n,t))(ji(e));if(!r)throw new TypeError("Invalid event target");return new pt(a=>{const s=(...c)=>a.next(1o(s)})}function MP(e,n){return t=>i=>e[t](n,i)}const af={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=af;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new ee(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=af;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=af;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class NQ extends kw{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class PQ extends Sw{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=af.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(af.cancelAnimationFrame(t),n._scheduled=void 0)}});let l1,LQ=1;const rv={};function IP(e){return e in rv&&(delete rv[e],!0)}const BQ={setImmediate(e){const n=LQ++;return rv[n]=!0,l1||(l1=Promise.resolve()),l1.then(()=>IP(n)&&e()),n},clearImmediate(e){IP(e)}},{setImmediate:VQ,clearImmediate:jQ}=BQ,ov={setImmediate(...e){const{delegate:n}=ov;return(n?.setImmediate||VQ)(...e)},clearImmediate(e){const{delegate:n}=ov;return(n?.clearImmediate||jQ)(e)},delegate:void 0};new class HQ extends kw{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class zQ extends Sw{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=ov.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(ov.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function d1(e,n=Tw){return function UQ(e){return G((n,t)=>{let i=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const l=r;r=null,t.next(l)}a&&t.complete()},c=()=>{o=null,a&&t.complete()};n.subscribe(ue(t,l=>{i=!0,r=l,o||ji(e(l)).subscribe(o=ue(t,s,c))},()=>{a=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>function WQ(e=0,n,t=kK){let i=-1;return null!=n&&(Sl(n)?t=n:i=n),new pt(r=>{let o=function GQ(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let a=0;return t.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(e,n))}let qQ=(()=>{class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new pt(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(d1(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):vs()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Pr(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=qa(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>iv(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||e)(N(rt),N(Xn),N(qt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OP=(()=>{class e{constructor(t,i,r){this._platform=t,this._change=new Y,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(d1(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt),N(qt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),PP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[qh,RP,qh,RP]})}return e})();class u1{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class sf extends u1{constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class av extends u1{constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class XQ extends u1{constructor(n){super(),this.element=n instanceof Ft?n.nativeElement:n}}class sv{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof sf?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof av?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof XQ?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ZQ extends sv{constructor(n,t,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ri.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Pd=(()=>{class e extends sv{constructor(t,i,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Xt,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=i.createComponent(o,i.length,t.injector||i.injector,t.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static#e=this.\u0275fac=function(i){return new(i||e)(T(id),T(oo),T(qt))};static#t=this.\u0275dir=Me({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[dt]})}return e})(),Nd=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const NP=oK();class QQ{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=hi(-this._previousScrollPosition.left),n.style.top=hi(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),NP&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),NP&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class JQ{constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Pr(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class FP{enable(){}disable(){}attach(){}}function h1(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function LP(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class eJ{constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();h1(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let tJ=(()=>{class e{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new FP,this.close=a=>new JQ(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new QQ(this._viewportRuler,this._document),this.reposition=a=>new eJ(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static#e=this.\u0275fac=function(i){return new(i||e)(N(qQ),N(OP),N(rt),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class f1{constructor(n){if(this.scrollStrategy=new FP,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class nJ{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let BP=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),iJ=(()=>{class e extends BP{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(rt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rJ=(()=>{class e extends BP{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Rs(o)},this._clickListener=o=>{const a=Rs(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(a)||d.overlayElement.contains(s))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Xn),N(rt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cv=(()=>{class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Cw()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ps(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=hi(this._config.width),n.height=hi(this._config.height),n.minWidth=hi(this._config.minWidth),n.minHeight=hi(this._config.minHeight),n.maxWidth=hi(this._config.maxWidth),n.maxHeight=hi(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,i){const r=Lg(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Bo(To(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const VP="cdk-overlay-connected-position-bounding-box",oJ=/([A-Za-z%]+)$/;class aJ{get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Y,this._resizeSubscription=ee.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(VP),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,r,s),l=this._getOverlayPoint(c,t,s),d=this._getOverlayFit(l,t,i,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,i)?o.push({position:s,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&zc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(VP),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r="start"==i.originX?a:s}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=zP(t);let{x:a,y:s}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-i.height,p=this._subtractOverflows(o.width,0-a,a+o.width-i.width),g=this._subtractOverflows(o.height,h,f),v=p*g;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,a=jP(this._overlayRef.getConfig().minHeight),s=jP(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=r)&&(n.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=zP(t),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-n.x+this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=hi(i.height),r.top=hi(i.top),r.bottom=hi(i.bottom),r.width=hi(i.width),r.left=hi(i.left),r.right=hi(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=hi(o)),a&&(r.maxWidth=hi(a))}this._lastBoundingBoxSize=i,zc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){zc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){zc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();zc(i,this._getExactOverlayY(t,n,d)),zc(i,this._getExactOverlayX(t,n,d))}else i.position="static";let s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=hi(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=hi(a.maxWidth):o&&(i.maxWidth="")),zc(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=hi(o.y),r}_getExactOverlayX(n,t,i){let a,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=hi(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:LP(n,i),isOriginOutsideView:h1(n,i),isOverlayClipped:LP(t,i),isOverlayOutsideView:h1(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Lg(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ft)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function zc(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function jP(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(oJ);return t&&"px"!==t?null:parseFloat(n)}return e||null}function zP(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const HP="cdk-global-overlay-wrapper";class sJ{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(HP),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",g="";c?g="flex-start":"center"===d?(g="center",h?p=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",p=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=c?"0":f,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":p,t.justifyContent=g,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(HP),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let cJ=(()=>{class e{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new sJ}flexibleConnectedTo(t){return new aJ(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||e)(N(OP),N(qt),N(Xn),N(cv))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lJ=0,Ls=(()=>{class e{constructor(t,i,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new f1(t);return a.direction=a.direction||this._directionality.value,new cf(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+lJ++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Tc)),new ZQ(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||e)(N(tJ),N(cv),N(id),N(cJ),N(iJ),N(ri),N(rt),N(qt),N(Yh),N(Dx),N(rJ),N($i,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const hJ={provide:new Ce("cdk-connected-overlay-scroll-strategy"),deps:[Ls],useFactory:function uJ(e){return()=>e.scrollStrategies.reposition()}};let p1=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[Ls,hJ],imports:[qh,Nd,PP,PP]})}return e})();function $P(e){return new pt(n=>{ji(e()).subscribe(n)})}function fJ(e,n){}class lv{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let UP=(()=>{class e extends sv{constructor(t,i,r,o,a,s,c,l){super(),this._elementRef=t,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(i)}_focusByCssSelector(t,i){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,i)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let i=null;if("string"==typeof t?i=this._document.querySelector(t):"boolean"==typeof t?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Ng(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,i=Ng();return t===i||t.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ng())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(lv),T(Bg),T(rt),T(cf),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&wi(Pd,7),2&i){let o;Vt(o=jt())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&hn("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[dt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&et(0,fJ,0,0,"ng-template",0)},dependencies:[Pd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return e})();class m1{constructor(n,t){this.overlayRef=n,this.config=t,this.closed=new Y,this.disableClose=t.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Uh(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==t.closeOnOverlayDetachments&&this.close()})}close(n,t){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",t=""){return this.overlayRef.updateSize({width:n,height:t}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const GP=new Ce("DialogScrollStrategy"),pJ=new Ce("DialogData"),mJ=new Ce("DefaultDialogConfig"),vJ={provide:GP,deps:[Ls],useFactory:function gJ(e){return()=>e.scrollStrategies.block()}};let _J=0,WP=(()=>{class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,i,r,o,a,s){this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=$P(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wh(void 0))),this._scrollStrategy=s}open(t,i){(i={...this._defaultOptions||new lv,...i}).id=i.id||"cdk-dialog-"+_J++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),a=this._overlay.create(o),s=new m1(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(t,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){g1(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){g1(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),g1(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const i=new f1({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:lv,useValue:r},{provide:m1,useValue:i},{provide:cf,useValue:t}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=UP;const c=new sf(s,r.viewContainerRef,ri.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return t.attach(c).instance}_attachDialogContent(t,i,r,o){if(t instanceof ro){const a=this._createInjector(o,i,r,void 0);let s={$implicit:o.data,dialogRef:i};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new av(t,null,s,a))}else{const a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new sf(t,o.viewContainerRef,a,o.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(t,i,r,o){const a=t.injector||t.viewContainerRef?.injector,s=[{provide:pJ,useValue:t.data},{provide:m1,useValue:i}];return t.providers&&("function"==typeof t.providers?s.push(...t.providers(i,t,r)):s.push(...t.providers)),t.direction&&(!a||!a.get(Yh,null,{optional:!0}))&&s.push({provide:Yh,useValue:{value:t.direction,change:vs()}}),ri.create({parent:a||o,providers:s})}_removeOpenDialog(t,i){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const i=t.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ri),N(mJ,8),N(e,12),N(cv),N(GP))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();function g1(e,n){let t=e.length;for(;t--;)n(e[t])}let yJ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[WP,vJ],imports:[p1,Nd,rX,Nd]})}return e})();function bJ(e,n){}class uo{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const v1="mdc-dialog--open",YP="mdc-dialog--opening",qP="mdc-dialog--closing";let EJ=(()=>{class e extends UP{constructor(t,i,r,o,a,s,c,l){super(t,i,r,o,a,s,c,l),this._animationStateChanged=new Xt}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(uo),T(Bg),T(rt),T(cf),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["ng-component"]],features:[dt],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})();const KP="--mat-dialog-transition-duration";function XP(e){return null==e?null:"number"==typeof e?e:e.endsWith("ms")?pa(e.substring(0,e.length-2)):e.endsWith("s")?1e3*pa(e.substring(0,e.length-1)):"0"===e?0:null}let CJ=(()=>{class e extends EJ{constructor(t,i,r,o,a,s,c,l,d){super(t,i,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?XP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?XP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(YP,v1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(v1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(v1),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(qP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(YP,qP)}_waitForAnimationToComplete(t,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(t):t()})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(uo),T(Bg),T(rt),T(cf),T($i,8),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,r){2&i&&(yd("id",r._config.id),hn("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Ct("_mat-animation-noopable",!r._animationsEnabled))},features:[dt],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1),et(2,bJ,0,0,"ng-template",2),W()())},dependencies:[Pd],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return e})();class Fd{constructor(n,t,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Y,this._beforeClosed=new Y,this._state=0,this.disableClose=t.disableClose,this.id=n.id,i._animationStateChanged.pipe(Pr(r=>"opened"===r.state),Ps(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Pr(r=>"closed"===r.state),Ps(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),To(this.backdropClick(),this.keydownEvents().pipe(Pr(r=>27===r.keyCode&&!this.disableClose&&!Uh(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function SJ(e,n,t){e._closeInteractionType=n,e.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Pr(t=>"closing"===t.state),Ps(1)).subscribe(t=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let t=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?t.left(n.left):t.right(n.right):t.centerHorizontally(),n&&(n.top||n.bottom)?n.top?t.top(n.top):t.bottom(n.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",t=""){return this._ref.updateSize(n,t),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const dv=new Ce("MatMdcDialogData"),DJ=new Ce("mat-mdc-dialog-default-options"),ZP=new Ce("mat-mdc-dialog-scroll-strategy"),TJ={provide:ZP,deps:[Ls],useFactory:function kJ(e){return()=>e.scrollStrategies.block()}};let AJ=0,MJ=(()=>{class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,i,r,o,a,s,c,l,d,u){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._idPrefix="mat-dialog-",this.dialogConfigClass=uo,this.afterAllClosed=$P(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wh(void 0))),this._scrollStrategy=s,this._dialog=i.get(WP)}open(t,i){let r;(i={...this._defaultOptions||new uo,...i}).id=i.id||`${this._idPrefix}${AJ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:lv,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}static#e=this.\u0275fac=function(i){Rm()};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),QP=(()=>{class e extends MJ{constructor(t,i,r,o,a,s,c,l){super(t,i,o,s,c,a,Fd,CJ,dv,l),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ri),N(Dx,8),N(DJ,8),N(ZP),N(e,12),N(cv),N($i,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),Ld=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return e})(),lf=(()=>{class e{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-mdc-dialog-actions-align-center","center"===r.align)("mat-mdc-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"}})}return e})(),JP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[QP,TJ],imports:[yJ,p1,Nd,Cn,Cn]})}return e})();class uv{constructor(n,t,i,r=!1,o){this.title=n,this.infoText=t,this.isInfo=i,this.isLink=r,this.linkText=o}}function IJ(e,n){if(1&e&&(j(0,"span",5),Fe(1),W()),2&e){const t=st();ye(1),$a("",t.infoText," ")}}function OJ(e,n){if(1&e&&(j(0,"a",6),Fe(1),W()),2&e){const t=st();Cc("href",t.linkText,bm),ye(1),io(t.linkText)}}function RJ(e,n){if(1&e){const t=tr();j(0,"mat-dialog-actions")(1,"button",7),Le("click",function(){return yn(t),bn(st().close())}),Fe(2,"Close"),W()()}}let hv=(()=>{class e{constructor(t,i){this.dialogRef=t,this.title=i.title,this.infoText=i.infoText,this.showConfirmButton=!i.isInfo,this.hasLink=i.isLink,this.linkText=i.linkText||""}ngAfterViewInit(){const t=document.getElementsByClassName("readOnlyText")[0];t.style.height=t.scrollHeight+"px"}close(){this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-info-dialog"]],decls:6,vars:4,consts:[[1,"content"],["id","info-dialog-title"],["class","readOnlyText",4,"ngIf"],[3,"href",4,"ngIf"],[4,"ngIf"],[1,"readOnlyText"],[3,"href"],[1,"mat-raised-button",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content",0)(1,"h2",1),Fe(2),W(),et(3,IJ,2,1,"span",2),et(4,OJ,2,2,"a",3),W(),et(5,RJ,3,0,"mat-dialog-actions",4)),2&i&&(ye(2),io(r.title),ye(1),Ae("ngIf",""!=r.infoText),ye(1),Ae("ngIf",r.hasLink),ye(1),Ae("ngIf",r.showConfirmButton))},dependencies:[co,Ld,lf],styles:[".readOnlyText[_ngcontent-%COMP%]{display:block;border:none;resize:none;width:100%;overflow:hidden;white-space:pre-wrap}.content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:30vw;overflow:hidden}"]})}return e})();const fv_version="f1d81d17da489f02eca69391b7a4429018342735";let _1=(()=>{class e{constructor(){this.showSettings=new Qt(!1),this.showSettings$=this.showSettings.asObservable()}close(){this.showSettings.next(!1)}open(){this.showSettings.next(!0)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),df=(()=>{class e{constructor(t){this.matDialog=t}openDialog(t,i){this.matDialog.open(t,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(QP))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pv="< title >",mv="< description >",Bd="[icons: default]",tN="domainConfigurationTag",Lr=2e3,y1="snackbar_success",nN="snackbar_error",Bs="snackbar_info";let b1=(()=>{class e{constructor(){}setCommandStack(t){this.commandStack=t}execute(t,i){this.commandStack.execute(t,i)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Br=(()=>{class e{constructor(t){this.commandStackService=t,this.titleSubject=new Qt(pv),this.descriptionSubject=new Qt(mv),this.domainNameSubject=new Qt(Bd),this.showDescriptionSubject=new Qt(!0),this.title$=this.titleSubject.asObservable(),this.description$=this.descriptionSubject.asObservable(),this.showDescription$=this.showDescriptionSubject.asObservable(),this.domainName$=this.domainNameSubject.asObservable()}updateTitleAndDescription(t,i,r){r?this.fireTitleAndDescriptionUpdate(t,i):(this.updateTitle(t),this.updateDescription(i))}reset(){this.updateTitleAndDescription(pv,mv,!1)}updateTitle(t){this.titleSubject.next(t??this.titleSubject.value),document.title=t??this.titleSubject.value+" - egon.io"}updateDescription(t){this.descriptionSubject.next(t??this.descriptionSubject.value)}setShowDescription(t){this.showDescriptionSubject.next(t)}setDomainName(t){this.domainNameSubject.next(t)}getTitle(){return this.titleSubject.value}getDescription(){return this.descriptionSubject.value}getDomainName(){return this.domainNameSubject.value}getVersion(){return fv_version}fireTitleAndDescriptionUpdate(t,i){this.commandStackService.execute("story.updateHeadlineAndDescription",{newTitle:t,newDescription:i})}static#e=this.\u0275fac=function(i){return new(i||e)(N(b1))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uf(e){const n={"/":"","\\":"",":":"","*":"","?":"",'"':"","<":"",">":"","|":""};return e?e.replace(/[/\\:*?"<>|]/gi,i=>n[i]):""}function Vd(e){const n={"/":"","\\":"",":":"","*":"","?":"",'"':"","<":"",">":"","|":"","(":"",")":""," ":"-",".":"_"};return e?e.replace(/[/\\:*?"<>|() .]/gi,i=>n[i]):""}function iN(e,n){let t;const a=".dst",s=".svg";let c=e.replace(n?/_\d+-\d+-\d+( ?_?-?\(\d+\))?(-?\d)?(.dst|.egn).svg/:/_\d+-\d+-\d+( ?_?-?\(\d+\))?(-?\d)?(.dst|.egn)/,"");return c.includes(n?s:a)&&(c=c.replace(s,"").replace(a,"").replace(".egn","")),t=c,t}class BJ{constructor(n,t){this.domain=n,this.dst=t}}JSON.parse('{"name":"","actors":{"Person":"","Group":"","System":""},"workObjects":{"Document":"","Folder":"","Call":"","Email":"","Conversation":"","Info":""}}');class tn{constructor(){this.entries=[]}get length(){return this.entries.length}all(){return this.entries}size(){return this.entries.length}isEmpty(){return this.entries.length<=0}has(n){return this.entries.some(t=>t.key===n)}set(n,t){this.has(n)||this.entries.push(new rN(t,n))}add(n,t){this.set(t,n)}putEntry(n){this.has(n.key)||this.entries.push(new rN(n.value,n.key))}keysArray(){return this.entries.map(n=>n.key)}addEach(n){Object.keys(n).forEach(t=>{this.set(t,n[t])})}appendDict(n){n.entries.forEach(t=>this.putEntry(t))}clear(){this.entries=[]}delete(n){this.entries=this.entries.filter(t=>t.key!==n)}get(n){const t=this.entries.filter(i=>i.key===n);return t[0]?t[0].value:null}sort(n){this.entries.sort(n)}sortByName(){this.entries.sort((n,t)=>n.key.includes("_custom")==t.key.includes("_custom")?n.key',Group:'',Pet:'',Conversation:'',World:'',Store:'',Theater:'',Business:'',Water:'',Hotel:'',Dining:'',"Gas-station":'',"Meeting-room":'',Courthouse:'',Flag:'',Place:'',Car:'',Bus:'',Train:'',Truck:'',Taxi:'',Bike:'',Boat:'',Motorcycle:'',Plane:'',"Flight-takeoff":'',"Flight-landing":'',Shuttle:'',Walking:'',Traffic:'',Commute:'',System:'',Printer:'',Document:'',Folder:'',Call:'',Email:'',Copyright:'',DNS:'',Settings:'',Cellphone:'',Update:'',Briefcase:'',Microphone:'',Signal:'',Key:'',Pencil:'',Sum:'',Headset:'',Keyboard:'',Mouse:'',Router:'',Scanner:'',Security:'',Desktop:'',"Speaker-phone":'',Tablet:'',Label:'',Receipt:'',Calendar:'',Cloud:'',Assessment:'',Dashboard:'',"Pie-chart":'',Problem:'',"Picture-as-PDF":'',Grid:'',Watch:'',Euro:'',Dollar:'',Info:'',Alarm:'',Wrench:'',"Circle-Arrows":'',"Credit-Card":'',Favorite:'',Gavel:'',Blind:'',Hourglass:'',Time:'',Search:'',Shopping:'',"Thumb-up":'',"Thumb-down":'',"Thumb-up-down":'',Couch:'',Attach:'',Ruler:'',Education:'',"How-To-Reg":'',"View-List":''};function oN(e){Hc=e}class jJ{constructor(n,t){this.actors=n,this.workObjects=t}}class zJ{constructor(n){this.domainName=Bd,this.allIconDictionary=n}getDefaultConf(){return hf}updateAllIconRegistry(n){this.allIconDictionary=n}appendSRCFile(n,t,i,r){const o={};n.forEach(s=>{this.allIconDictionary.has(s)||(o[s]=t.get(s))}),i.forEach(s=>{this.allIconDictionary.has(s)||(o[s]=r.get(s))});const a=new tn;Object.keys(o).forEach(s=>{a.set(s,o[s])}),oN(a)}createCustomConf(n){this.domainName=n.name;let t=n.actors,i=n.workObjects;return this.appendSRCFile(t.keysArray(),t,i.keysArray(),i),new jJ(t.keysArray(),i.keysArray())}}const hf={actors:["Person","Group","System"],workObjects:["Document","Folder","Call","Email","Conversation","Info"]};function Vs(e){return e.includes(Z.ACTOR)?e.replace(Z.ACTOR,""):e.includes(Z.WORKOBJECT)?e.replace(Z.WORKOBJECT,""):""}const vv="icon-domain-story-";let Qa=(()=>{class e{constructor(){this.actorIconDictionary=new tn,this.workObjectDictionary=new tn,this.allIconDictionary=new tn,this.iconDictionaryForBPMN=new tn,this.allIconDictionary.addEach(gv),this.iconConfig=new zJ(this.allIconDictionary)}initTypeDictionaries(t,i){(!t||0==t.length)&&(t=hf.actors),(!i||0==i.length)&&(i=hf.workObjects);const r=new tn;r.addEach(gv),r.appendDict(this.getAppendedIconDictionary()),this.initDictionary(t,r,this.actorIconDictionary,Z.ACTOR),this.initDictionary(i,r,this.workObjectDictionary,Z.WORKOBJECT)}initDictionary(t,i,r,o){r.clear();for(const a of t){const s=o+a;r.add(i.get(a),s)}r.keysArray().forEach(a=>{const s=Vs(a);this.registerIconForBPMN(a,vv+Vd(s.toLowerCase()))})}getCurrentIconConfigurationForBPMN(){return this.customConfiguration?this.iconConfig.createCustomConf(this.customConfiguration):this.iconConfig.getDefaultConf()}allInTypeDictionary(t,i){let r;t===Z.ACTOR?r=this.actorIconDictionary:t===Z.WORKOBJECT&&(r=this.workObjectDictionary);let o=!0;return!!i&&(i.forEach(a=>{r.has(a.type)||(o=!1)}),o)}addIconsFromDomainConfiguration(t,i){let r;t===Z.ACTOR?r=this.actorIconDictionary:t===Z.WORKOBJECT&&(r=this.workObjectDictionary);const o=new tn;o.addEach(gv),o.appendDict(Hc),i.forEach(a=>{if(!r.has(a)){const s=Vs(a),c=o.get(s);c&&(this.registerIconForType(t,a,c),this.registerIconForBPMN(a,Vd(vv+s.toLowerCase())))}})}registerIconForBPMN(t,i){this.iconDictionaryForBPMN.set(t,i)}addIconsToTypeDictionary(t,i){this.allInTypeDictionary(Z.ACTOR,t)||this.addIconsFromDomainConfiguration(Z.ACTOR,t.map(r=>r.type)),this.allInTypeDictionary(Z.WORKOBJECT,i)||this.addIconsFromDomainConfiguration(Z.WORKOBJECT,i.map(r=>r.type))}registerIconForType(t,i,r){i.includes(t)||(i=t+i);let o=new tn;t===Z.ACTOR?o=this.actorIconDictionary:t===Z.WORKOBJECT&&(o=this.workObjectDictionary),o.set(i,r)}updateIconRegistries(t,i,r){const o=[];t.forEach(l=>o.push(l)),i.forEach(l=>o.push(l));const a=new tn,s=new tn,c=new tn;r.actors.keysArray().forEach(l=>{s.add(r.actors.get(l),l)}),r.workObjects.keysArray().forEach(l=>{c.add(r.workObjects.get(l),l)}),this.extractCustomIconsFromDictionary(s,a),this.extractCustomIconsFromDictionary(c,a),o.forEach(l=>{const d=Vd(l.type.replace(Z.ACTOR,"").replace(Z.WORKOBJECT,""));(l.type.includes(Z.ACTOR)||l.type.includes(Z.WORKOBJECT))&&!this.getFullDictionary().has(d)&&this.registerIconForBPMN(vv+d.toLowerCase(),l.type)}),this.addNewIconsToDictionary(a),this.addIconsToTypeDictionary(t,i)}extractCustomIconsFromDictionary(t,i){t.keysArray().forEach(r=>{const o=Vd(r);this.getFullDictionary().has(o)||i.add(t.get(r),o)})}addNewIconsToDictionary(t){t.keysArray().forEach(i=>{const r=t.get(i);this.addIMGToIconDictionary(r.src,i)}),this.addIconsToCss(t)}addIMGToIconDictionary(t,i){Hc.set(i,t)}addIconsToCss(t){const i=document.getElementById("iconsCss");t.keysArray().forEach(r=>{const o=t.get(r),a="."+vv+Vd(r.toLowerCase())+'::before{ content: url("data:image/svg+xml;utf8,'+this.wrapSRCInSVG(o)+'"); margin: 3px;}';i?.sheet?.insertRule(a,i.sheet.cssRules.length)})}wrapSRCInSVG(t){return""}getFullDictionary(){const t=new tn;return t.appendDict(this.allIconDictionary),t.appendDict(this.getAppendedIconDictionary()),t}getAppendedIconDictionary(){const t=new tn;return Hc.keysArray().forEach(i=>{this.allIconDictionary.has(i)||t.set(i,Hc.get(i))}),t}getTypeDictionary(t){return t===Z.ACTOR?this.actorIconDictionary:t===Z.WORKOBJECT?this.workObjectDictionary:new tn}getTypeDictionaryKeys(t){return this.getTypeDictionary(t).keysArray()}getTypeIconSRC(t,i){return t===Z.ACTOR?(i.startsWith(Z.ACTOR)||(i=Z.ACTOR+i),this.actorIconDictionary.get(i)):t===Z.WORKOBJECT?(i.startsWith(Z.WORKOBJECT)||(i=Z.WORKOBJECT+i),this.workObjectDictionary.get(i)):null}getIconForBPMN(t){return this.iconDictionaryForBPMN.get(t)}getIconSource(t){return this.allIconDictionary.has(t)?this.allIconDictionary.get(t):Hc.has(t)?Hc.get(t):null}getElementsOfType(t,i){const r=[];return t.forEach(o=>{o.type.includes(i)&&r.push(o)}),r}getAllIconDictionary(){return this.allIconDictionary}getActorsDictionary(){return this.actorIconDictionary}getWorkObjectsDictionary(){return this.workObjectDictionary}getIconConfiguration(){return this.iconConfig}setCusomtConfiguration(t){this.customConfiguration=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jo=(()=>{class e{constructor(){this.fullyInitialized=!1}correctInitialize(){this.fullyInitialized||this.registry.__implicitroot&&(this.registry=this.registry.__implicitroot.element.children,this.fullyInitialized=!0)}setElementRegistry(t){this.registry=t._elements}clear(){this.registry=null,this.fullyInitialized=!1}createObjectListForDSTDownload(){if(this.registry){const t=this.getAllCanvasObjects(),i=this.getAllGroups(),r=[];return this.fillListOfCanvasObjects(t,r,i),r}return[]}fillListOfCanvasObjects(t,i,r){t.forEach(o=>{o.type===Z.ACTIVITY?i.push(o):(o.type===Z.TEXTANNOTATION&&(o.businessObject.width=o.width,o.businessObject.height=o.height),i.includes(o)||i.unshift(o))}),r.forEach(o=>{i.push(o)})}getAllActivities(){const t=[];return this.getAllCanvasObjects().forEach(i=>{i.type.includes(Z.ACTIVITY)&&t.push(i)}),t}getAllConnections(){const t=[];return this.getAllCanvasObjects().forEach(i=>{i.type===Z.CONNECTION&&t.push(i)}),t}getAllCanvasObjects(){const t=[],i=[];this.checkChildForGroup(i,t);let r=i.length-1;for(;i.length>=1;)i.pop().children.forEach(a=>{a.type.includes(Z.GROUP)&&i.push(a)}),r=i.length-1;return t}getAllGroups(){const t=[];this.checkChildForGroup(t,[]);for(const r of t)r.children?.forEach(o=>{o.type.includes(Z.GROUP)&&t.push(o)});return t}checkChildForGroup(t,i){const r=Object.keys(this.registry);for(let o of r){const a=this.registry[o].element;if(a.businessObject){const s=a.type;s&&s.includes(Z.GROUP)?t.push(a):s&&i.push(a)}}}getActivitiesFromActors(){const t=[];return this.getAllActivities().forEach(r=>{r.source?.type.includes(Z.ACTOR)&&t.push(r)}),t}getUsedIcons(){const t=this.getAllActors(),i=this.getAllWorkobjects();return{actors:t.map(r=>r.type.replace(Z.ACTOR,"")),workobjects:i.map(r=>r.type.replace(Z.WORKOBJECT,""))}}getAllActors(){return this.getAllCanvasObjects().filter(t=>t.type.includes(Z.ACTOR))}getAllWorkobjects(){return this.getAllCanvasObjects().filter(t=>t.type.includes(Z.WORKOBJECT))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$c=(()=>{class e{constructor(t,i,r){this.iconDictionaryService=t,this.elementRegistryService=i,this.titleService=r}setDomainName(t){this.titleService.setDomainName(t||Bd)}exportConfiguration(){const t=this.getCurrentConfigurationForExport();if(!t)return;const i=JSON.stringify(t,null,2),r=this.titleService.getDomainName(),o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(i)),o.setAttribute("download",r+".domain"),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}loadConfiguration(t,i=!0){let r=new tn,o=new tn;t.actors.keysArray()?(r=t.actors,o=t.workObjects):(r.addEach(t.actors),o.addEach(t.workObjects));const a=r.keysArray(),s=o.keysArray();this.iconDictionaryService.updateIconRegistries([],[],t),this.iconDictionaryService.getIconConfiguration().appendSRCFile(a,r,s,o),this.iconDictionaryService.addIconsFromDomainConfiguration(Z.ACTOR,a.map(c=>Z.ACTOR+c)),this.iconDictionaryService.addIconsFromDomainConfiguration(Z.WORKOBJECT,s.map(c=>Z.WORKOBJECT+c)),i&&this.setDomainName(t.name)}getCurrentConfiguration(){const t=this.iconDictionaryService.getActorsDictionary(),i=this.iconDictionaryService.getWorkObjectsDictionary();let r;return t.size()>0&&i.size()>0&&(r=this.createConfigFromDictionaries(t,i)),r}getCurrentConfigurationForExport(){const t=this.getCurrentConfiguration();if(t){const i={},r={};return t.actors.all().forEach(o=>{i[o.key]=o.value}),t.workObjects.all().forEach(o=>{r[o.key]=o.value}),{name:t.name,actors:i,workObjects:r}}}getCurrentConfigurationNamesWithoutPrefix(){return{name:this.titleService.getDomainName()||Bd,actors:this.iconDictionaryService.getActorsDictionary().keysArray().map(t=>t.replace(Z.ACTOR,"")),workObjects:this.iconDictionaryService.getWorkObjectsDictionary().keysArray().map(t=>t.replace(Z.WORKOBJECT,""))}}createMinimalConfigurationWithDefaultIcons(){const t=this.createConfigFromCanvas();return hf.actors.forEach(i=>{t.actors.add(this.iconDictionaryService.getIconSource(i),i)}),hf.workObjects.forEach(i=>{t.workObjects.add(this.iconDictionaryService.getIconSource(i),i)}),t}createConfigFromDictionaries(t,i){const r=t.keysArray(),o=i.keysArray(),a=new tn,s=new tn;return r.forEach(c=>{a.add(t.get(c),c.replace(Z.ACTOR,""))}),o.forEach(c=>{s.add(i.get(c),c.replace(Z.WORKOBJECT,""))}),{name:this.titleService.getDomainName(),actors:a,workObjects:s}}createConfigFromCanvas(){const t={name:Bd,actors:new tn,workObjects:new tn};return this.elementRegistryService.getAllCanvasObjects().map(r=>r.businessObject).forEach(r=>{const o=r.type.replace(Z.ACTOR,"").replace(Z.WORKOBJECT,"");if(r.type.includes(Z.ACTOR)){let a=this.iconDictionaryService.getIconSource(o)||"";t.actors.add(a,o)}else if(r.type.includes(Z.WORKOBJECT)){let a=this.iconDictionaryService.getIconSource(o)||"";t.workObjects.add(a,o)}}),t}static#e=this.\u0275fac=function(i){return new(i||e)(N(Qa),N(jo),N(Br))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_v=(()=>{class e{constructor(){this.isDirtySubject=new Qt(!1),this.dirty$=this.isDirtySubject.asObservable()}makeDirty(){this.isDirtySubject.next(!0)}makeClean(){this.isDirtySubject.next(!1)}get dirty(){return this.isDirtySubject.value}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const aN="http://www.w3.org/2000/svg",sN="8";let jd=0;function cN(e,n,t,i,r){let o=function UJ(e,n){let i=document.createElement("canvas").getContext("2d");return i.font="30px Arial",lN(e,n,i,10,30,30)}(e=e.replace("<","").replace(">",""),r),a=function GJ(e,n){let t="",i=e.split("
"),o=document.createElement("canvas").getContext("2d");o.font="12px Arial";for(let a=0;a'+o+a+"",extraHeight:jd}}function lN(e,n,t,i,r,o){let a="",s=e.split(" "),c='',l=document.createElementNS(aN,"tspan"),d=document.createTextNode(s[0]);l.setAttribute("x",sN),l.setAttribute("y",i+jd),l.setAttribute("font-size",o),l.appendChild(d);for(let u=1;un-16&&(jd+=r,l.firstChild.data=l.firstChild.data.slice(0,h),a+=c+l.outerHTML+"",l=document.createElementNS(aN,"tspan"),d=document.createTextNode(s[u]),l.setAttribute("x",sN),l.setAttribute("y",i+jd),l.appendChild(d))}return jd+=r,a+=c+l.outerHTML+"",a}let WJ=(()=>{class e{constructor(){this.width=0,this.height=0}browserSpecs(){const t=navigator.userAgent;let i,r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?(i=/\brv[ :]+(\d+)/g.exec(t)||[],{name:"IE",version:i[1]||""}):"Chrome"===r[1]&&(i=t.match(/\b(OPR|Edge)\/(\d+)/),null!=i)?{name:i[1].replace("OPR","Opera"),version:i[2]}:(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(i=t.match(/version\/(\d+)/i))&&r.splice(1,1,i[1]),{name:r[0],version:r[1]})}URIHashtagFix(t){let i=!1;const r=this.browserSpecs(),o=r.name,a=parseInt(r.version);if(o.includes("Chrome")?a>=72&&(i=!0):o.includes("Firefox")&&(i=!0),i)for(;t.includes("#");)t=t.replace("#","%23");return t}findMostOuterElements(t){let i=0,r=0,o=0,a=0;const s=t.getElementsByClassName("djs-group");for(let c=0;cr&&(r=h),fa&&(a=p)}return o-=75,{xLeft:i,xRight:r,yUp:o,yDown:a}}prepareSVG(t,i,r,o,a){const s=this.findMostOuterElements(i);let c=t.indexOf('width="');this.calculateWidthAndHeight(s);const{insertText:l,extraHeight:d}=cN(o,r,s.xLeft,s.yUp+20,this.width);a&&(this.height+=d);const u=this.createBounds(s,d),h=t.substring(0,c);c=t.indexOf('style="');const f=t.substring(c);f.substring(c);const p=(t=h+u+f).indexOf('')+20;return a&&(t=[t.slice(0,p),l,t.slice(p)].join("")),this.URIHashtagFix(t)}createBounds(t,i){return'width="'+this.width+'" height="'+this.height+'" viewBox=" '+t.xLeft+" "+(t.yUp-i)+" "+this.width+" "+this.height+'" '}calculateWidthAndHeight(t){return this.width=t.xLeft<0?t.xRight<0?Math.abs(t.xLeft-t.xRight):Math.abs(t.xLeft)+t.xRight:t.xRight-t.xLeft,this.height=t.yUp<0?t.yDown<0?Math.abs(t.yUp-t.yDown):Math.abs(t.yUp)+t.yDown:t.yDown-t.yUp,this.height<300&&(this.height+=300,t.yUp-=150,t.yDown+=150),this.width<300&&(this.width+=300,t.xLeft-=150,t.xRight+=150),[this.height,this.width]}extractSVG(t,i){const r=t.getElementsByClassName("layer-resizers"),o=t.getElementsByClassName("layer-overlays"),a=t.getAttribute("transform"),s=t.getAttribute("translate");r[0]&&r[0].parentNode.removeChild(r[0]),o[0]&&o[0].parentNode.removeChild(o[0]),a&&t.removeAttribute("transform"),s&&t.removeAttribute("translate");const c=(new XMLSerializer).serializeToString(i);return a&&t.setAttribute("transform",a),s&&t.setAttribute("translate",s),c}getWidth(){return this.width}getHeight(){return this.height}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dN(e,n,t,i,r,o,a){try{var s=e[o](a),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function uN(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(c){dN(o,i,r,a,s,"next",c)}function s(c){dN(o,i,r,a,s,"throw",c)}a(void 0)})}}function yv(e){return Array.prototype.concat.apply([],e)}var ff=Object.prototype.toString,YJ=Object.prototype.hasOwnProperty;function js(e){return void 0===e}function zo(e){return void 0!==e}function bv(e){return null==e}function Lt(e){return"[object Array]"===ff.call(e)}function si(e){return"[object Object]"===ff.call(e)}function yt(e){return"[object Number]"===ff.call(e)}function Gi(e){var n=ff.call(e);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n}function Vr(e){return"[object String]"===ff.call(e)}function Ja(e,n){return YJ.call(e,n)}function on(e,n){var t;return n=E1(n),R(e,function(i,r){if(n(i,r))return t=i,!1}),t}function hN(e,n){n=E1(n);var t=Lt(e)?-1:void 0;return R(e,function(i,r){if(n(i,r))return t=r,!1}),t}function St(e,n){var t=[];return R(e,function(i,r){n(i,r)&&t.push(i)}),t}function R(e,n){var t;if(!js(e)){var r=Lt(e)?QJ:ZJ;for(var o in e)if(Ja(e,o)&&!1===n(t=e[o],r(o)))return t}}function br(e,n,t){return R(e,function(i,r){t=n(t,i,r)}),t}function Uc(e,n){return!!br(e,function(t,i,r){return t&&n(i,r)},!0)}function Gc(e,n){return!!on(e,n)}function Ti(e,n){var t=[];return R(e,function(i,r){t.push(n(i,r))}),t}function xv(e){return e&&Object.keys(e)||[]}function pf(e){return xv(e).length}function x1(e){return Ti(e,function(n){return n})}function zd(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=w1(n),R(e,function(i){var r=n(i)||"_",o=t[r];o||(o=t[r]=[]),o.push(i)}),t}function fN(e){e=w1(e);for(var n={},t=arguments.length,i=new Array(t>1?t-1:0),r=1;r0)return s(f);e.apply(r,i),c()}function s(u){t=setTimeout(a,u)}function c(){t&&clearTimeout(t),t=o=i=r=void 0}function d(){o=Date.now();for(var u=arguments.length,h=new Array(u),f=0;f1?n-1:0),i=1;i=Math.pow(2,t)?n(t,i):s};n.rack=function(t,i,r){var o=function(s){var c=0;do{if(c++>10){if(!r)throw new Error("too many ID collisions, use more bits");t+=r}var l=n(t,i)}while(Object.hasOwnProperty.call(a,l));return a[l]=s,l},a=o.hats={};return o.get=function(s){return o.hats[s]},o.set=function(s,c){return o.hats[s]=c,o},o.bits=t||128,o.base=i||16,o}});function es(e){if(!(this instanceof es))return new es(e);this._seed=(e=e||[128,36,1]).length?nee.rack(e[0],e[1],e[2]):e}es.prototype.next=function(e){return this._seed(e||!0)},es.prototype.nextPrefixed=function(e,n){var t;do{t=e+this.next(!0)}while(this.assigned(t));return this.claim(t,n),t},es.prototype.claim=function(e,n){this._seed.set(e,n||!0)},es.prototype.assigned=function(e){return this._seed.get(e)||!1},es.prototype.unclaim=function(e){delete this._seed.hats[e]},es.prototype.clear=function(){var n,e=this._seed.hats;for(n in e)this.unclaim(n)};const S1=es;function zr(e,n,t){return 2==arguments.length?e.getAttribute(n):null===t?e.removeAttribute(n):(e.setAttribute(n,t),e)}var dee=[].indexOf,D1=function(e,n){if(dee)return e.indexOf(n);for(var t=0;t
a',bN=!Sv.getElementsByTagName("link").length,Sv=void 0);var pi={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:bN?[1,"X
","
"]:[0,"",""]};function Bn(e,n){return(n=n||document).querySelector(e)}function k1(e,n){return(n=n||document).querySelectorAll(e)}function ga(e){e.parentNode&&e.parentNode.removeChild(e)}function xN(e,n){return n.appendChild(function T1(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}(e,n))}function Ze(e,n){return xN(n,e),e}pi.td=pi.th=[3,"","
"],pi.option=pi.optgroup=[1,'"],pi.thead=pi.tbody=pi.colgroup=pi.caption=pi.tfoot=[1,"","
"],pi.polyline=pi.ellipse=pi.polygon=pi.circle=pi.text=pi.line=pi.path=pi.rect=pi.g=[1,'',""];var A1=2,wN={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":A1,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":A1,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function EN(e,n,t){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=wN[i];r?(r===A1&&"number"==typeof t&&(t=String(t)+"px"),e.style[i]=t):e.setAttributeNS(null,n,t)}function ge(e,n,t){if("string"==typeof n){if(void 0===t)return function bee(e,n){return wN[n]?e.style[n]:e.getAttributeNS(null,n)}(e,n);EN(e,n,t)}else!function xee(e,n){var i,r,t=Object.keys(n);for(i=0;r=t[i];i++)EN(e,r,n[r])}(e,n);return e}function M1(e,n){if(e.indexOf)return e.indexOf(n);for(var t=0;t"+e+"",n=!0);var t=function Cee(e){var n;return(n=new DOMParser).async=!1,n.parseFromString(e,"text/xml")}(e);if(!n)return t;for(var i=document.createDocumentFragment(),r=t.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function qe(e,n){var t;return"<"===e.charAt(0)?(t=DN(e).firstChild,t=document.importNode(t,!0)):t=document.createElementNS(R1.svg,e),n&&ge(t,n),t}var P1=null;function Dv(){return null===P1&&(P1=qe("svg")),P1}function N1(e,n){var t,i,r=Object.keys(n);for(t=0;i=r[t];t++)e[i]=n[i];return e}function mf(e){return e?Dv().createSVGTransformFromMatrix(e):Dv().createSVGTransform()}var kN=/([&<>]{1})/g,Dee=/([\n\r"]{1})/g,kee={"&":"&","<":"<",">":">",'"':"'"};function F1(e,n){return e.replace(n,function t(i,r){return kee[r]||r})}function TN(e,n){var t,i,r,o,a;switch(e.nodeType){case 3:n.push(F1(e.textContent,kN));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(t=0,i=(r=e.attributes).length;t"),t=0,i=(a=e.childNodes).length;t")}else n.push("/>");break;case 8:n.push("\x3c!--",F1(e.nodeValue,kN),"--\x3e");break;case 4:n.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function AN(e,n){if(void 0!==n){try{!function Tee(e,n){var t=DN(n);if(O1(e),n){(function Mee(e){return"#document-fragment"===e.nodeName})(t)||(t=t.documentElement);for(var i=function Iee(e){return Array.prototype.slice.call(e)}(t.childNodes),r=0;r ");return t.length=0,new Error(g?p+" (Resolving: "+g+")":p)},s=function(p,g){if(!i[p]&&-1!==p.indexOf(".")){for(var v=p.split("."),k=s(v.shift());v.length;)k=k[v.shift()];return k}if(B1(r,p))return r[p];if(B1(i,p)){if(-1!==t.indexOf(p))throw t.push(p),a("Cannot resolve circular dependency!");return t.push(p),r[p]=i[p][0](i[p][1]),t.pop(),r[p]}return n.get(p,g)},c=function(p,g){if(typeof g>"u"&&(g={}),"function"!=typeof p){if(!L1(p))throw new Error('Cannot invoke "'+p+'". Expected a function!');p=kv(p.slice())}return{fn:p,dependencies:(p.$inject||jee(p)).map(function(E){return B1(g,E)?g[E]:s(E)})}},l=function(p){var g=c(p);return new(Function.prototype.bind.apply(g.fn,[null].concat(g.dependencies)))},d=function(p,g,v){var k=c(p,v);return k.fn.apply(g,k.dependencies)},u=function(p){return kv(function(g){return p.get(g)})},f={factory:d,type:l,value:function(p){return p}};e.forEach(function(p){function g(C,x){return"value"!==C&&L1(x)&&(x=kv(x.slice())),x}if(p instanceof zee)p.forEach(function(C){var D=C[1];i[C[0]]=[f[D],g(D,C[2]),D]});else if("object"==typeof p)if(p.__exports__){var v=Object.keys(p).reduce(function(C,x){return"__"!==x.substring(0,2)&&(C[x]=p[x]),C},Object.create(null)),k=new V1((p.__modules__||[]).concat([v]),o),E=kv(function(C){return k.get(C)});p.__exports__.forEach(function(C){i[C]=[E,C,"private",k]})}else Object.keys(p).forEach(function(C){if("private"!==p[C][2]){var x=p[C][0];i[C]=[f[x],g(x,p[C][1]),x]}else i[C]=p[C]})}),this.get=s,this.invoke=d,this.instantiate=l,this.createChild=function(p,g){if(g&&g.length){var D,P,V,F,v=Object.create(null),k=Object.create(null),E=[],C=[],x=[];for(var Q in i)D=i[Q],-1!==g.indexOf(Q)&&("private"===D[2]?-1===(P=E.indexOf(D[3]))?(V=D[3].createChild([],g),F=u(V),E.push(D[3]),C.push(V),x.push(F),v[Q]=[F,Q,"private",V]):v[Q]=[x[P],Q,"private",C[P]]:v[Q]=[D[2],D[1]],k[Q]=!0),("factory"===D[2]||"type"===D[2])&&D[1].$scope&&g.forEach(function(be){-1!==D[1].$scope.indexOf(be)&&(v[Q]=[D[2],D[1]],k[be]=!0)});g.forEach(function(be){if(!k[be])throw new Error('No provider for "'+be+'". Cannot use provider from the parent!')}),p.unshift(v)}return new V1(p,o)}}var Hee=1e3;function Uo(e,n){var t=this;e.on(["render.shape","render.connection"],n=n||Hee,function(i,r){var o=i.type,a=r.element,s=r.gfx,c=r.attrs;if(t.canRender(a))return"render.shape"===o?t.drawShape(s,a,c):t.drawConnection(s,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(i,r){if(t.canRender(r))return"render.getShapePath"===i.type?t.getShapePath(r):t.getConnectionPath(r)})}function va(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")}function MN(e){for(var i,n="",t=0;i=e[t];t++)n+=i.x+","+i.y+" ";return n}function vf(e,n){var t=qe("polyline");return ge(t,{points:MN(e)}),n&&ge(t,n),t}function IN(e){return St(e,function(n){return!on(e,function(t){return t!==n&&ON(n,t)})})}function ON(e,n){if(n){if(e===n)return n;if(e.parent)return ON(e.parent,n)}}function RN(e,n,t){var i=!t||-1===e.indexOf(n);return i&&e.push(n),i}function Yc(e,n,t){t=t||0,Lt(e)||(e=[e]),R(e,function(i,r){var o=n(i,r,t);Lt(o)&&o.length&&Yc(o,n,t+1)})}function Tv(e,n){return function PN(e,n,t){var i=[],r=[];return Yc(e,function(o,a,s){RN(i,o,n);var c=o.children;if((-1===t||sr||void 0===r)&&(r=c+u),(l+d>o||void 0===o)&&(o=l+d)}),{x:t,y:i,height:o-i,width:r-t}}function NN(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function FN(e){return!(!e||!e.isFrame)}function _f(e,n){return I({},e||{},n||{})}function Us(e,n){Uo.call(this,e,1),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Uo.prototype.canRender=function(){},Uo.prototype.drawShape=function(){},Uo.prototype.drawConnection=function(){},Uo.prototype.getShapePath=function(){},Uo.prototype.getConnectionPath=function(){},Xe()(Us,Uo),Us.prototype.canRender=function(){return!0},Us.prototype.drawShape=function(n,t,i){var r=qe("rect");return ge(r,{x:0,y:0,width:t.width||0,height:t.height||0}),FN(t)?ge(r,I({},this.FRAME_STYLE,i||{})):ge(r,I({},this.SHAPE_STYLE,i||{})),Ze(n,r),r},Us.prototype.drawConnection=function(n,t,i){var r=vf(t.waypoints,I({},this.CONNECTION_STYLE,i||{}));return Ze(n,r),r},Us.prototype.getShapePath=function(n){var r=n.width;return va([["M",n.x,n.y],["l",r,0],["l",0,n.height],["l",-r,0],["z"]])},Us.prototype.getConnectionPath=function(n){var i,r,t=n.waypoints,o=[];for(i=0;r=t[i];i++)o.push([0===i?"M":"L",(r=r.original||r).x,r.y]);return va(o)},Us.$inject=["eventBus","styles"];const qee={__init__:["defaultRenderer"],defaultRenderer:["type",Us],styles:["type",function Yee(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(t,i,r){return I(this.style(i,r),{class:t})},this.style=function(t,i){!Lt(t)&&!i&&(i=t,t=[]);var r=br(t,function(o,a){return I(o,e[a]||{})},{});return i?I(r,i):r},this.computeStyle=function(t,i,r){return Lt(i)||(r=i,i=[]),n.style(i||[],I({},r,t||{}))}}]};function $n(e,n){if(!e||!n)return-1;var t=e.indexOf(n);return-1!==t&&e.splice(t,1),t}function Un(e,n,t){if(e&&n){"number"!=typeof t&&(t=-1);var i=e.indexOf(n);if(-1!==i){if(i===t)return;if(-1===t)return;e.splice(i,1)}-1!==t?e.splice(t,0,n):e.push(n)}}function j1(e,n){return e&&n?e.indexOf(n):-1}function yf(e,n){return e&&n?Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)):-1}function z1(e,n,t,i){if(typeof i>"u"&&(i=5),!e||!n||!t)return!1;var r=(n.x-e.x)*(t.y-e.y)-(n.y-e.y)*(t.x-e.x),o=yf(e,n);return Math.abs(r/o)<=i}var LN=2;function ts(e,n){var t;return function Kee(e,n){var t,i=(t=Lt(e)?e:[e,n]).slice().shift();return Uc(t,function(r){return Math.abs(i.y-r.y)<=LN})}(t=Lt(e)?e:[e,n])?"h":!!function Xee(e,n){var t,i=(t=Lt(e)?e:[e,n]).slice().shift();return Uc(t,function(r){return Math.abs(i.x-r.x)<=LN})}(t)&&"v"}function BN(e,n,t){return e.x>n.x-(t=t||0)&&e.y>n.y-t&&e.x=r.bottom?"bottom":null,d=i.right+t.x<=r.left?"left":i.left-t.x>=r.right?"right":null;return d&&l?l+"-"+d:d||l||"intersect"}function U1(e,n,t){var i=function Qee(e,n){return VN()(e,n)}(e,n);return 1===i.length||2===i.length&&yf(i[0],i[1])<1?Gs(i[0]):i.length>1?Gs((i=Ho(i,function(r){var o=Math.floor(100*r.t2)||1;return r.segment2+"#"+((o=100-o)<10?"0":"")+o}))[t?0:i.length-1]):null}function Av(e,n){return Math.round(e*n)/n}function zN(e){return yt(e)?e+"px":e}function HN(e,n,t){var i=qe("g");return Pt(i).add(n),e.insertBefore(i,e.childNodes[void 0!==t?t:e.childNodes.length-1]||null),i}var Mv="base",G1="djs-element-hidden",ite={shape:["x","y","width","height"],connection:["waypoints"]};function It(e,n,t,i){this._eventBus=n,this._elementRegistry=i,this._graphicsFactory=t,this._init(e||{})}function UN(e,n){e.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")")}It.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],It.prototype._init=function(e){var n=this._eventBus,t=this._container=function tte(e){var n=(e=I({},{width:"100%",height:"100%"},e)).container||document.body,t=document.createElement("div");return t.setAttribute("class","djs-container"),I(t.style,{position:"relative",overflow:"hidden",width:zN(e.width),height:zN(e.height)}),n.appendChild(t),t}(e),i=this._svg=qe("svg");ge(i,{width:"100%",height:"100%"}),Ze(t,i);var r=this._viewport=HN(i,"viewport");this._layers={},this._planes={},!1!==e.deferUpdate&&(this._viewboxChanged=pN(Wi(this._viewboxChanged,this),300)),n.on("diagram.init",function(){n.fire("canvas.init",{svg:i,viewport:r})},this),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","plane.set"],function(){delete this._cachedViewbox},this),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},It.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var n=this._container.parentNode;n&&n.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._activePlane,delete this._viewport},It.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach(function(t){var i=NN(t);"root"===i?e.setRootElementForPlane(null,e.findPlane(t),!0):e._removeElement(t,i)}),this._activePlane=null,this._planes={},delete this._cachedViewbox},It.prototype.getDefaultLayer=function(){return this.getLayer(Mv,0)},It.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(t||(t=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&t.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return t.group},It.prototype._createLayer=function(e,n){typeof n>"u"&&(n=1);var t=br(this._layers,function(i,r){return n>=r.index&&i++,i},0);return{group:HN(this._viewport,"layer-"+e,t),index:n}},It.prototype.getPlane=function(e){if(!e)throw new Error("must specify a name");return this._planes[e]},It.prototype.createPlane=function(e,n){if(!e)throw new Error("must specify a name");if(this._planes[e])throw new Error("plane "+e+" already exists");n||(n={id:"__implicitroot"+e,children:[],isImplicit:!0});var t=this.getLayer(e,0);Pt(t).add(G1);var i=this._planes[e]={layer:t,name:e,rootElement:null};return this.setRootElementForPlane(n,i),i},It.prototype.setActivePlane=function(e){if(!e)throw new Error("must specify a plane");return"string"==typeof e&&(e=this.getPlane(e)),this._activePlane&&Pt(this._activePlane.layer).add(G1),this._activePlane=e,Pt(e.layer).remove(G1),e.rootElement&&this._elementRegistry.updateGraphics(e.rootElement,this._svg,!0),this._eventBus.fire("plane.set",{plane:e}),e},It.prototype.getActiveLayer=function(){return this.getActivePlane().layer},It.prototype.getActivePlane=function(){var e=this._activePlane;return e||(e=this.createPlane(Mv),this.setActivePlane(Mv)),e},It.prototype.findPlane=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));var n=function ete(e){for(;e.parent;)e=e.parent;return e}(e);return on(this._planes,function(t){return t.rootElement===n})},It.prototype.getContainer=function(){return this._container},It.prototype._updateMarker=function(e,n,t){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(R([i.gfx,i.secondaryGfx],function(r){r&&(t?Pt(r).add(n):Pt(r).remove(n))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:n,add:!!t}))},It.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},It.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},It.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),Pt(this.getGraphics(e)).has(n)},It.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},It.prototype.getRootElement=function(){return this.getActivePlane().rootElement},It.prototype.setRootElement=function(e,n){var t=this._activePlane;if(t)return this.setRootElementForPlane(e,t,n);var i=this.createPlane(Mv,e);return this.setActivePlane(i),i.rootElement},It.prototype.setRootElementForPlane=function(e,n,t){"string"==typeof n&&(n=this.getPlane(n)),e&&this._ensureValid("root",e);var i=n.rootElement,r=this._elementRegistry,o=this._eventBus;if(i){if(!t)throw new Error("rootElement already set, need to specify override");o.fire("root.remove",{element:i}),o.fire("root.removed",{element:i}),r.remove(i)}if(e){var a=n.layer;o.fire("root.add",{element:e}),r.add(e,a),o.fire("root.added",{element:e,gfx:a}),n===this._activePlane&&this._elementRegistry.updateGraphics(e,this._svg,!0)}return n.rootElement=e,e},It.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element with id "+n.id+" already exists");var t=ite[e];if(!Uc(t,function(r){return typeof n[r]<"u"}))throw new Error("must supply { "+t.join(", ")+" } with "+e)},It.prototype._setParent=function(e,n,t){Un(n.children,e,t),e.parent=n},It.prototype._addElement=function(e,n,t,i){t=t||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,n),r.fire(e+".add",{element:n,parent:t}),this._setParent(n,t,i);var a=o.create(e,n,i);return this._elementRegistry.add(n,a),o.update(e,n,a),r.fire(e+".added",{element:n,gfx:a}),n},It.prototype.addShape=function(e,n,t){return this._addElement("shape",e,n,t)},It.prototype.addConnection=function(e,n,t){return this._addElement("connection",e,n,t)},It.prototype._removeElement=function(e,n){var t=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=t.get(e.id||e))return r.fire(n+".remove",{element:e}),i.remove(e),$n(e.parent&&e.parent.children,e),e.parent=null,r.fire(n+".removed",{element:e}),t.remove(e),e},It.prototype.removeShape=function(e){return this._removeElement(e,"shape")},It.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},It.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},It.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},It.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},It.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,r,o,a,s,c,n=this._viewport,i=this.getSize();return e?(this._changeViewbox(function(){a=Math.min(i.width/e.width,i.height/e.height);var l=this._svg.createSVGMatrix().scale(a).translate(-e.x,-e.y);gf(n,l)}),e):(t=this._activePlane&&this._activePlane.layer.getBBox()||{},r=(o=gf(n))?o.matrix:function See(e,n,t,i,r,o){var a=Dv().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return N1(a,e);case 6:return N1(a,{a:e,b:n,c:t,d:i,e:r,f:o})}}(),a=Av(r.a,1e3),s=Av(-r.e||0,1e3),c=Av(-r.f||0,1e3),e=this._cachedViewbox={x:s?s/a:0,y:c?c/a:0,width:i.width/a,height:i.height/a,scale:a,inner:{width:t.width||0,height:t.height||0,x:t.x||0,y:t.y||0},outer:i})},It.prototype.scroll=function(e){var n=this._viewport,t=n.getCTM();return e&&this._changeViewbox(function(){e=I({dx:0,dy:0},e||{}),t=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(t),UN(n,t)}),{x:t.e,y:t.f}},It.prototype.scrollToElement=function(e,n){var t=100;"string"==typeof e&&(e=this._elementRegistry.get(e));var i=this.findPlane(e);i!==this._activePlane&&this.setActivePlane(i),n||(n={}),"number"==typeof n&&(t=n),n={top:n.top||t,right:n.right||t,bottom:n.bottom||t,left:n.left||t};var c,l,r=Fi(e),o=ot(r),a=this.viewbox(),s=this.zoom();a.y+=n.top/s,a.x+=n.left/s,a.width-=(n.right+n.left)/s,a.height-=(n.bottom+n.top)/s;var d=ot(a);if(r.width=0&&i.y>=0&&i.x+i.width<=t.width&&i.y+i.height<=t.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,t.width),height:Math.max(i.height+i.y,t.height)}:(r=Math.min(1,t.width/i.width,t.height/i.height),o={x:i.x+(e?i.width/2-t.width/r/2:0),y:i.y+(e?i.height/2-t.height/r/2:0),width:t.width/r,height:t.height/r}),this.viewbox(o),this.viewbox(!1).scale},It.prototype._setZoom=function(e,n){var s,c,l,d,t=this._svg,i=this._viewport,r=t.createSVGMatrix(),o=t.createSVGPoint(),u=(c=i.getCTM()).a;return n?(s=I(o,n).matrixTransform(c.inverse()),l=r.translate(s.x,s.y).scale(1/u*e).translate(-s.x,-s.y),d=c.multiply(l)):d=r.scale(e),UN(this._viewport,d),d},It.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},It.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();return{x:(t=e.waypoints?this.getGraphics(e).getBBox():e).x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},It.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var $d="data-element-id";function $r(e){this._elements={},this._eventBus=e}$r.$inject=["eventBus"],$r.prototype.add=function(e,n,t){var i=e.id;this._validateId(i),ge(n,$d,i),t&&ge(t,$d,i),this._elements[i]={element:e,gfx:n,secondaryGfx:t}},$r.prototype.remove=function(e){var n=this._elements,t=e.id||e,i=t&&n[t];i&&(ge(i.gfx,$d,""),i.secondaryGfx&&ge(i.secondaryGfx,$d,""),delete n[t])},$r.prototype.updateId=function(e,n){this._validateId(n),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var t=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,t,i)},$r.prototype.updateGraphics=function(e,n,t){var i=e.id||e,r=this._elements[i];return t?r.secondaryGfx=n:r.gfx=n,ge(n,$d,i),n},$r.prototype.get=function(e){var n;n="string"==typeof e?e:e&&ge(e,$d);var t=this._elements[n];return t&&t.element},$r.prototype.filter=function(e){var n=[];return this.forEach(function(t,i){e(t,i)&&n.push(t)}),n},$r.prototype.find=function(e){for(var n=this._elements,t=Object.keys(n),i=0;i");return I(new t,n)}(e,n)};var Ov="__fn",ste=Array.prototype.slice;function xr(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function xf(){}function Rv(e){return e.childNodes[0]}function W1(e,n,t,i,r){var o=mf();o.setTranslate(n,t);var a=mf();a.setRotate(i||0,0,0);var s=mf();s.setScale(r||1,r||1),gf(e,[o,a,s])}function sr(e,n,t){var i=mf();i.setTranslate(n,t),gf(e,i)}function JN(e,n){var t=mf();t.setRotate(n,0,0),gf(e,t)}function Ur(e,n){this._eventBus=e,this._elementRegistry=n}function eF(e,n,t){var i=t||n.firstChild;e!==i&&n.insertBefore(e,i)}xr.prototype.on=function(e,n,t,i){if(e=Lt(e)?e:[e],Gi(n)&&(i=t,t=n,n=1e3),!yt(n))throw new Error("priority must be a number");var r=t;i&&((r=Wi(t,i))[Ov]=t[Ov]||t);var o=this;e.forEach(function(a){o._addListener(a,{priority:n,callback:r,next:null})})},xr.prototype.once=function(e,n,t,i){var r=this;if(Gi(n)&&(i=t,t=n,n=1e3),!yt(n))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=t.apply(i,arguments);return r.off(e,o),a}o[Ov]=t,this.on(e,n,o)},xr.prototype.off=function(e,n){e=Lt(e)?e:[e];var t=this;e.forEach(function(i){t._removeListener(i,n)})},xr.prototype.createEvent=function(e){var n=new xf;return n.init(e),n},xr.prototype.fire=function(e,n){var t,i,r,o;if(o=ste.call(arguments),"object"==typeof e&&(e=(n=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){t=n instanceof xf?n:this.createEvent(n),o[0]=t;var a=t.type;e!==a&&(t.type=e);try{r=this._invokeListeners(t,o,i)}finally{e!==a&&(t.type=a)}return void 0===r&&t.defaultPrevented&&(r=!1),r}},xr.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},xr.prototype._destroy=function(){this._listeners={}},xr.prototype._invokeListeners=function(e,n,t){for(var i;t&&!e.cancelBubble;)i=this._invokeListener(e,n,t),t=t.next;return i},xr.prototype._invokeListener=function(e,n,t){var i;if(t.callback.__isTomb)return i;try{i=function cte(e,n){return e.apply(null,n)}(t.callback,n),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i},xr.prototype._addListener=function(e,n){var i,t=this._getListeners(e);if(t){for(;t;){if(t.priority=0}e.forEach(function o(s){i(s)||((s.__depends__||[]).forEach(o),!i(s)&&(function r(s){n.push(s)}(s),(s.__init__||[]).forEach(function(c){t.push(c)})))});var a=new V1(n);return t.forEach(function(s){try{a["string"==typeof s?"get":"invoke"](s)}catch(c){throw console.error("Failed to instantiate component"),console.error(c.stack),c}}),a}([{config:["value",e=e||{}]},dte].concat(e.modules||[]))}(e),this.get=n.get,this.invoke=n.invoke,this.get("eventBus").fire("diagram.init")}function Y1(){}function tF(e,n){this.model=e,this.properties=n}Wd.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},Wd.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},Y1.prototype.get=function(e){return this.$model.properties.get(this,e)},Y1.prototype.set=function(e,n){this.$model.properties.set(this,e,n)},tF.prototype.createType=function(e){var n=this.model,t=this.properties,i=Object.create(Y1.prototype);R(e.properties,function(a){!a.isMany&&void 0!==a.default&&(i[a.name]=a.default)}),t.defineModel(i,n),t.defineDescriptor(i,e);var r=e.ns.name;function o(a){t.define(this,"$type",{value:r,enumerable:!0}),t.define(this,"$attrs",{value:{}}),t.define(this,"$parent",{writable:!0}),R(a,Wi(function(s,c){this.set(c,s)},this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,t.defineModel(o,n),t.defineDescriptor(o,e),o};var fte={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},nF={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function q1(e,n){var t=nF[e];return t?t(n):n}function K1(e){return!!fte[e]}function iF(e){return!!nF[e]}function cr(e,n){var i,r,t=e.split(/:/);if(1===t.length)i=e,r=n;else{if(2!==t.length)throw new Error("expected or , got "+e);i=t[1],r=t[0]}return{name:e=(r?r+":":"")+i,prefix:r,localName:i}}function ho(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function Ws(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,R(e,Wi(this.registerPackage,this))}function rF(e,n,t){var i=n[t];if(i in e)throw new Error("package with "+t+" <"+i+"> already defined")}function Yd(e){this.model=e}function oF(e,n,t){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:t,configurable:!0})}function fo(e){this.properties=new Yd(this),this.factory=new tF(this,this.properties),this.registry=new Ws(e,this.properties),this.typeCache={}}ho.prototype.build=function(){return jr(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},ho.prototype.addProperty=function(e,n,t){"boolean"==typeof n&&(t=n,n=void 0),this.addNamedProperty(e,!1!==t);var i=this.properties;void 0!==n?i.splice(n,0,e):i.push(e)},ho.prototype.replaceProperty=function(e,n,t){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(n,t?void 0:s,a),o[i.name]=o[i.localName]=n},ho.prototype.redefineProperty=function(e,n,t){var i=e.ns.prefix,r=n.split("#"),o=cr(r[0],i),a=cr(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,t),delete e.redefines},ho.prototype.addNamedProperty=function(e,n){var t=e.ns,i=this.propertiesByName;n&&(this.assertNotDefined(e,t.name),this.assertNotDefined(e,t.localName)),i[t.name]=i[t.localName]=e},ho.prototype.removeNamedProperty=function(e){var n=e.ns,t=this.propertiesByName;delete t[n.name],delete t[n.localName]},ho.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},ho.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},ho.prototype.assertNotDefined=function(e,n){var t=e.name,i=this.propertiesByName[t];if(i)throw new Error("property <"+t+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},ho.prototype.hasProperty=function(e){return this.propertiesByName[e]},ho.prototype.addTrait=function(e,n){var t=this.allTypesByName,i=this.allTypes,r=e.name;r in t||(R(e.properties,Wi(function(o){o=I({},o,{name:o.ns.localName,inherited:n}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,s=o.redefines;a||s?this.redefineProperty(o,a||s,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),i.push(e),t[r]=e)},Ws.prototype.getPackage=function(e){return this.packageMap[e]},Ws.prototype.getPackages=function(){return this.packages},Ws.prototype.registerPackage=function(e){e=I({},e);var n=this.packageMap;rF(n,e,"prefix"),rF(n,e,"uri"),R(e.types,Wi(function(t){this.registerType(t,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},Ws.prototype.registerType=function(e,n){var t=cr((e=I({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:I(e.meta||{})})).name,n.prefix),i=t.name,r={};R(e.properties,Wi(function(o){var a=cr(o.name,t.prefix),s=a.name;K1(o.type)||(o.type=cr(o.type,a.prefix).name),I(o,{ns:a,name:s}),r[s]=o},this)),I(e,{ns:t,name:i,propertiesByName:r}),R(e.extends,Wi(function(o){var a=this.typeMap[o];a.traits=a.traits||[],a.traits.push(i)},this)),this.definePackage(e,n),this.typeMap[i]=e},Ws.prototype.mapTypes=function(e,n,t){var i=K1(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(s){return a(s,!0)}function a(s,c){var l=cr(s,K1(s)?"":e.prefix);r.mapTypes(l,n,c)}if(!i)throw new Error("unknown type <"+e.name+">");R(i.superClass,t?o:a),n(i,!t),R(i.traits,o)},Ws.prototype.getEffectiveDescriptor=function(e){var n=cr(e),t=new ho(n);this.mapTypes(n,function(r,o){t.addTrait(r,o)});var i=t.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},Ws.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})},Yd.prototype.set=function(e,n,t){if(!Vr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var i=this.model.getPropertyDescriptor(e,n),r=i&&i.name;!function pte(e){return typeof e>"u"}(t)?i?r in e?e[r]=t:oF(e,i,t):e.$attrs[n]=t:i?delete e[r]:delete e.$attrs[n]},Yd.prototype.get=function(e,n){var t=this.model.getPropertyDescriptor(e,n);if(!t)return e.$attrs[n];var i=t.name;return!e[i]&&t.isMany&&oF(e,t,[]),e[i]},Yd.prototype.define=function(e,n,t){if(!t.writable){var i=t.value;delete(t=I({},t,{get:function(){return i}})).value}Object.defineProperty(e,n,t)},Yd.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},Yd.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},fo.prototype.create=function(e,n){var t=this.getType(e);if(!t)throw new Error("unknown type <"+e+">");return new t(n)},fo.prototype.getType=function(e){var n=this.typeCache,t=Vr(e)?e:e.ns.name,i=n[t];return i||(e=this.registry.getEffectiveDescriptor(t),i=n[t]=this.factory.createType(e)),i},fo.prototype.createAny=function(e,n,t){var i=cr(e),r={$type:e,$instanceOf:function(a){return a===this.$type}};return this.properties.defineDescriptor(r,{name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:n}}),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(t,function(a,s){si(a)&&void 0!==a.value?r[a.name]=a.value:r[s]=a}),r},fo.prototype.getPackage=function(e){return this.registry.getPackage(e)},fo.prototype.getPackages=function(){return this.registry.getPackages()},fo.prototype.getElementDescriptor=function(e){return e.$descriptor},fo.prototype.hasType=function(e,n){return void 0===n&&(n=e,e=this),n in e.$model.getElementDescriptor(e).allTypesByName},fo.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},fo.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var aF=String.fromCharCode,mte=Object.prototype.hasOwnProperty,gte=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,wf={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function vte(e,n,t,i){return i?mte.call(wf,i)?wf[i]:"&"+i+";":aF(n||parseInt(t,16))}function qc(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(gte,vte):e}Object.keys(wf).forEach(function(e){wf[e.toUpperCase()]=wf[e]});var sF="xsi:type",cF="non-whitespace outside of root node";function qd(e){return new Error(e)}function lF(e){return"missing namespace for prefix <"+e+">"}function Pv(e){return{get:e,enumerable:!0}}function bte(e){var t,n={};for(t in e)n[t]=e[t];return n}function X1(e){return e+"$uri"}function dF(){return{line:0,column:0}}function wte(e){throw e}function uF(e){if(!this)return new uF(e);var t,i,r,o,s,c,l,d,v,n=e&&e.proxy,a=wte,u=dF,h=!1,f=!1,p=null,g=!1;function k(x){x instanceof Error||(x=qd(x)),p=x,a(x,u)}function E(x){s&&(x instanceof Error||(x=qd(x)),s(x,u))}this.on=function(x,D){if("function"!=typeof D)throw qd("required args ");switch(x){case"openTag":i=D;break;case"text":t=D;break;case"closeTag":r=D;break;case"error":a=D;break;case"warn":s=D;break;case"cdata":o=D;break;case"attention":d=D;break;case"question":l=D;break;case"comment":c=D;break;default:throw qd("unsupported event: "+x)}return this},this.ns=function(x){if(typeof x>"u"&&(x={}),"object"!=typeof x)throw qd("required args ");var P,D={};for(P in x)D[P]=x[P];return D["http://www.w3.org/2001/XMLSchema-instance"]="xsi",f=!0,v=D,this},this.parse=function(x){if("string"!=typeof x)throw qd("required args ");return p=null,function C(x){var V,je,Ht,fe,ve,_,m,S,A,z,Pe,D=f?[]:null,P=f?function xte(e){var t,i,n={};for(t in e)n[i=e[t]]=i,n[X1(i)]=t;return n}(v):null,F=[],Q=0,be=!1,He=!1,de=0,we=0,L="",$=0;function ut(){if(null!==Pe)return Pe;var xn,gn,Sn,ky,sc,di,Ta,wn,Zo,lt,vn,ur=f&&P.xmlns,Eo=f&&h?[]:null,Rn=$,Ei=L,ms=Ei.length,Cu={},F6={};e:for(;Rn8)){for((lt<65||lt>122||lt>90&<<97)&&95!==lt&&58!==lt&&(E("illegal first char attribute name"),Zo=!0),vn=Rn+1;vn96&<<123||lt>64&<<91||lt>47&<<59||46===lt||45===lt||95===lt)){if(32===lt||lt<14&<>8){E("missing attribute value"),Rn=vn;continue e}if(61===lt)break;E("illegal attribute name char"),Zo=!0}if("xmlns:xmlns"===(wn=Ei.substring(Rn,vn))&&(E("illegal declaration of xmlns"),Zo=!0),34===(lt=Ei.charCodeAt(vn+1)))-1===(vn=Ei.indexOf('"',Rn=vn+2))&&-1!==(vn=Ei.indexOf("'",Rn))&&(E("attribute value quote missmatch"),Zo=!0);else if(39===lt)-1===(vn=Ei.indexOf("'",Rn=vn+2))&&-1!==(vn=Ei.indexOf('"',Rn))&&(E("attribute value quote missmatch"),Zo=!0);else for(E("missing attribute value quotes"),Zo=!0,vn+=1;vn8);vn++);for(-1===vn&&(E("missing closing quotes"),vn=ms,Zo=!0),Zo||(di=Ei.substring(Rn,vn)),Rn=vn;vn+18);vn++)Rn===vn&&(E("illegal character after attribute end"),Zo=!0);if(Rn=vn+1,Zo)continue e;if(wn in F6){E("attribute <"+wn+"> already defined");continue}if(F6[wn]=!0,!f){Cu[wn]=di;continue}if(h){if(null!==(sc="xmlns"===wn?"xmlns":120===wn.charCodeAt(0)&&"xmlns:"===wn.substr(0,6)?wn.substr(6):null)){if(xn=qc(di),gn=X1(sc),!(Ta=v[xn])){if("xmlns"===sc||gn in P&&P[gn]!==xn)do{Ta="ns"+Q++}while(typeof P[Ta]<"u");else Ta=sc;v[xn]=Ta}P[sc]!==Ta&&(ky||(P=bte(P),ky=!0),P[sc]=Ta,"xmlns"===sc&&(P[X1(Ta)]=xn,ur=Ta),P[gn]=xn),Cu[wn]=di;continue}Eo.push(wn,di);continue}if(-1===(lt=wn.indexOf(":"))){Cu[wn]=di;continue}if(!(Sn=P[wn.substring(0,lt)])){E(lF(wn.substring(0,lt)));continue}(wn=ur===Sn?wn.substr(lt+1):Sn+wn.substr(lt))===sF&&(-1!==(lt=di.indexOf(":"))?(Sn=di.substring(0,lt),di=(Sn=P[Sn]||Sn)+di.substring(lt)):di=ur+":"+di),Cu[wn]=di}if(h)for(Rn=0,ms=Eo.length;Rn=ur&&(Rn=xn.exec(x))&&!((Eo=Rn[0].length+Rn.index)>de);)gn+=1,ur=Eo;return-1==de?(Sn=Eo,Ei=x.substring(we)):0===we?Ei=x.substring(we,de):(Sn=de-ur,Ei=-1==we?x.substring(de):x.substring(de,we+1)),{data:Ei,line:gn,column:Sn}},n&&(z=Object.create({},{name:Pv(function(){return S}),originalName:Pv(function(){return A}),attrs:Pv(ut),ns:Pv(function(){return P})}));-1!==we;){if(-1===(de=60===x.charCodeAt(we)?we:x.indexOf("<",we)))return F.length?k("unexpected end of file"):0===we?k("missing start tag"):void(we",de)))return k("unclosed cdata");if(o&&(o(x.substring(de+9,we),u),g))return;we+=3;continue}if(45===fe&&45===x.charCodeAt(de+3)){if(-1===(we=x.indexOf("--\x3e",de)))return k("unclosed comment");if(c&&(c(x.substring(de+4,we),qc,u),g))return;we+=3;continue}}if(63!==ve){for(je=de+1;;je++){if(_=x.charCodeAt(je),isNaN(_))return we=-1,k("unclosed tag");if(34===_)je=-1!==(fe=x.indexOf('"',je+1))?fe:je;else if(39===_)je=-1!==(fe=x.indexOf("'",je+1))?fe:je;else if(62===_){we=je;break}}if(33!==ve){if(Pe={},47===ve){if(be=!1,He=!0,!F.length)return k("missing open tag");if(je=S=F.pop(),x.substring(de+2,fe=de+2+je.length)!==je)return k("closing tag mismatch");for(;fe8&&ve<14))return k("close tag")}else{if(47===x.charCodeAt(we-1)?(je=S=x.substring(de+1,we-1),be=!0,He=!0):(je=S=x.substring(de+1,we),be=!0,He=!1),!(ve>96&&ve<123||ve>64&&ve<91||95===ve||58===ve))return k("illegal first char nodeName");for(fe=1,Ht=je.length;fe96&&ve<123||ve>64&&ve<91||ve>47&&ve<59||45===ve||95===ve||46==ve)){if(32===ve||ve<14&&ve>8){S=je.substring(0,fe),Pe=null;break}return k("invalid nodeName")}He||F.push(S)}if(f){if(V=P,be&&(He||D.push(V),null===Pe&&(h=-1!==je.indexOf("xmlns",fe))&&($=fe,L=je,ut(),h=!1)),A=S,-1!==(ve=S.indexOf(":"))){if(!(m=P[S.substring(0,ve)]))return k("missing namespace on <"+A+">");S=S.substr(ve+1)}else m=P.xmlns;m&&(S=m+":"+S)}if(be&&($=fe,L=je,i&&(n?i(z,qc,He,u):i(S,ut,qc,He,u),g)))return;if(He){if(r&&(r(n?z:S,qc,be,u),g))return;f&&(P=be?V:D.pop())}we+=1}else{if(d&&(d(x.substring(de,we+1),qc,u),g))return;we+=1}}else{if(-1===(we=x.indexOf("?>",de)))return k("unclosed question");if(l&&(l(x.substring(de,we+2),u),g))return;we+=2}}}(x),u=dF,g=!1,p},this.stop=function(){g=!0}}function hF(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ete={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Nv="xsi:type";function fF(e){return e.xml&&e.xml.serialize}function pF(e){return fF(e)===Nv}function mF(e,n){return hF(n)?e.prefix+":"+function Ste(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e.localName):e.name}function Ys(e){return new Error(e)}function is(e){return e.$descriptor}function Tte(e){I(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw Ys("expected element");var o,t=this.elementsById,r=is(n).idProperty;if(r&&(o=n.get(r.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(t[o])throw Ys("duplicate ID <"+o+">");t[o]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Ef(){}function Z1(){}function Kd(){}function Cf(e,n){this.property=e,this.context=n}function Q1(e,n){this.element=n,this.propertyDesc=e}function Fv(){}function Yi(e,n,t){this.model=e,this.type=e.getType(n),this.context=t}function J1(e,n,t){Yi.call(this,e,n,t)}function Xd(e,n,t){this.model=e,this.context=t}function eE(e){e instanceof fo&&(e={model:e}),I(this,{lax:!1},e)}Ef.prototype.handleEnd=function(){},Ef.prototype.handleText=function(){},Ef.prototype.handleNode=function(){},(Z1.prototype=Object.create(Ef.prototype)).handleNode=function(){return this},(Kd.prototype=Object.create(Ef.prototype)).handleText=function(e){this.body=(this.body||"")+e},(Cf.prototype=Object.create(Kd.prototype)).handleNode=function(e){if(this.element)throw Ys("expected no sub nodes");return this.element=this.createReference(e),this},Cf.prototype.handleEnd=function(){this.element.id=this.body},Cf.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},(Q1.prototype=Object.create(Kd.prototype)).handleEnd=function(){var e=this.body||"",n=this.element,t=this.propertyDesc;e=q1(t.type,e),t.isMany?n.get(t.name).push(e):n.set(t.name,e)},(Fv.prototype=Object.create(Kd.prototype)).handleNode=function(e){var n=this,t=this.element;return t?n=this.handleChild(e):(t=this.element=this.createElement(e),this.context.addElement(t)),n},(Yi.prototype=Object.create(Fv.prototype)).addReference=function(e){this.context.addReference(e)},Yi.prototype.handleText=function(e){if(!is(this.element).bodyProperty)throw Ys("unexpected body text <"+e+">");Kd.prototype.handleText.call(this,e)},Yi.prototype.handleEnd=function(){var e=this.body,n=this.element,i=is(n).bodyProperty;i&&void 0!==e&&(e=q1(i.type,e),n.set(i.name,e))},Yi.prototype.createElement=function(e){var s,n=e.attributes,t=this.type,i=is(t),r=this.context,o=new t({}),a=this.model;return R(n,function(c,l){var d=i.propertiesByName[l];d&&d.isReference?d.isMany?R(c.split(" "),function(h){r.addReference({element:o,property:d.ns.name,id:h})}):r.addReference({element:o,property:d.ns.name,id:c}):(d?c=q1(d.type,c):"xmlns"!==l&&(s=cr(l,i.ns.prefix),a.getPackage(s.prefix)&&r.addWarning({message:"unknown attribute <"+l+">",element:o,property:l,value:c})),o.set(l,c))}),o},Yi.prototype.getPropertyForNode=function(e){var c,l,t=cr(e.name),r=this.model,o=is(this.type),s=o.propertiesByName[t.name];if(s&&!s.isAttr)return pF(s)&&(c=e.attributes[Nv])?(c=function kte(e,n){var t=cr(e);return function Dte(e,n){var t=e.name,i=e.localName,r=n.xml&&n.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):t}(t,n.getPackage(t.prefix))}(c,r),I({},s,{effectiveType:is(l=r.getType(c)).name})):s;var d=r.getPackage(t.prefix);if(d){if(c=mF(t,d),l=r.getType(c),s=on(o.properties,function(u){return!u.isVirtual&&!u.isReference&&!u.isAttribute&&l.hasType(u.type)}))return I({},s,{effectiveType:is(l).name})}else if(s=on(o.properties,function(u){return!u.isReference&&!u.isAttribute&&"Element"===u.type}))return s;throw Ys("unrecognized element <"+t.name+">")},Yi.prototype.toString=function(){return"ElementDescriptor["+is(this.type).name+"]"},Yi.prototype.valueHandler=function(e,n){return new Q1(e,n)},Yi.prototype.referenceHandler=function(e){return new Cf(e,this.context)},Yi.prototype.handler=function(e){return"Element"===e?new Xd(this.model,e,this.context):new Yi(this.model,e,this.context)},Yi.prototype.handleChild=function(e){var n,t,i,r;if(n=this.getPropertyForNode(e),i=this.element,iF(t=n.effectiveType||n.type))return this.valueHandler(n,i);var o=(r=n.isReference?this.referenceHandler(n).handleNode(e):this.handler(t).handleNode(e)).element;return void 0!==o&&(n.isMany?i.get(n.name).push(o):i.set(n.name,o),n.isReference?(I(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},(J1.prototype=Object.create(Yi.prototype)).createElement=function(e){var n=e.name,t=cr(n),r=this.type,o=this.model.getPackage(t.prefix),a=o&&mF(t,o)||n;if(!r.hasType(a))throw Ys("unexpected element <"+e.originalName+">");return Yi.prototype.createElement.call(this,e)},(Xd.prototype=Object.create(Fv.prototype)).createElement=function(e){var n=e.name,t=cr(n);return this.model.createAny(n,e.ns[t.prefix+"$uri"],e.attributes)},Xd.prototype.handleChild=function(e){var n=new Xd(this.model,"Element",this.context).handleNode(e),t=this.element,i=n.element;return void 0!==i&&((t.$children=t.$children||[]).push(i),i.$parent=t),n},Xd.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},eE.prototype.fromXML=function(e,n,t){var i=n.rootHandler;n instanceof Yi?(i=n,n={}):"string"==typeof n?(i=this.handler(n),n={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Tte(I({},n,{rootHandler:i})),s=new uF({proxy:!0}),c=function Ate(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(D,P,V){var F=P(),Q=F.line,be=F.column,He=F.data;"<"===He.charAt(0)&&-1!==He.indexOf(" ")&&(He=He.slice(0,He.indexOf(" "))+">");var de="unparsable content "+(He?He+" ":"")+"detected\n\tline: "+Q+"\n\tcolumn: "+be+"\n\tnested error: "+D.message;if(V)return a.addWarning({message:de,error:D}),!0;throw Ys(de)}function d(D,P){return l(D,P,!0)}i.context=a,c.push(i);var f=/^<\?xml /i,p=/ encoding="([^"]+)"/i,g=/^utf-8$/i;function E(D,P){try{c.peek().handleText(D)}catch(V){d(V,P)}}var x=r.getPackages().reduce(function(D,P){return D[P.uri]=P.prefix,D},{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(x).on("openTag",function(D,P,V,F){var Q=D.attrs||{},be=Object.keys(Q).reduce(function(de,we){var je=P(Q[we]);return de[we]=je,de},{});!function k(D,P){var V=c.peek();try{c.push(V.handleNode(D))}catch(F){l(F,P,o)&&c.push(new Z1)}}({name:D.name,originalName:D.originalName,attributes:be,ns:D.ns},F)}).on("question",function v(D){if(f.test(D)){var P=p.exec(D),V=P&&P[1];!V||g.test(V)||a.addWarning({message:"unsupported document encoding <"+V+">, falling back to UTF-8"})}}).on("closeTag",function h(){c.pop().handleEnd()}).on("cdata",E).on("text",function(D,P,V){!function C(D,P){D.trim()&&E(D,P)}(P(D),V)}).on("error",l).on("warn",d),new Promise(function(D,P){var V;try{s.parse(e),function u(){var V,F,D=a.elementsById,P=a.references;for(V=0;F=P[V];V++){var Q=F.element,be=D[F.id],He=is(Q).propertiesByName[F.property];if(be||a.addWarning({message:"unresolved reference <"+F.id+">",element:F.element,property:F.property,value:F.id}),He.isMany){var de=Q.get(He.name),we=de.indexOf(F);-1===we&&(we=de.length),be?de[we]=be:de.splice(we,1)}else Q.set(He.name,be)}}()}catch(de){V=de}var F=i.element;!V&&!F&&(V=Ys("failed to parse document as <"+i.type.$descriptor.name+">"));var Q=a.warnings,be=a.references,He=a.elementsById;return V?(V.warnings=Q,P(V)):D({rootElement:F,elementsById:He,references:be,warnings:Q})})},eE.prototype.handler=function(e){return new J1(this.model,e)};var Ite=/<|>|'|"|&|\n\r|\n/g,gF=/<|>|&/g;function Ote(e){var n={},t={},i={},r=[],o=[];this.byUri=function(a){return t[a]||e&&e.byUri(a)},this.add=function(a,s){t[a.uri]=a,s?r.push(a):o.push(a),this.mapPrefix(a.prefix,a.uri)},this.uriByPrefix=function(a){return n[a||"xmlns"]},this.mapPrefix=function(a,s){n[a||"xmlns"]=s},this.getNSKey=function(a){return void 0!==a.prefix?a.uri+"|"+a.prefix:a.uri},this.logUsed=function(a){var s=a.uri,c=this.getNSKey(a);i[c]=this.byUri(s),e&&e.logUsed(a)},this.getUsed=function(a){var c=this;return[].concat(r,o).filter(function s(d){var u=c.getNSKey(d);return i[u]})}}function Pte(e,n){return hF(n)?function Rte(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e):e}function vF(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function _F(e){return Vr(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var Vte={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},jte={"<":"lt",">":"gt","&":"amp"};function yF(e,n,t){return(e=Vr(e)?e:""+e).replace(n,function(i){return"&"+t[i]+";"})}function tE(e){this.tagName=e}function Kc(){}function nE(e){this.tagName=e}function Vn(e,n){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=n}function Lv(e,n){Vn.call(this,e,n)}function Gte(){this.value="",this.write=function(e){this.value+=e}}function Wte(e,n){var t=[""];this.append=function(i){return e.write(i),this},this.appendNewLine=function(){return n&&e.write("\n"),this},this.appendIndent=function(){return n&&e.write(t.join(" ")),this},this.indent=function(){return t.push(""),this},this.unindent=function(){return t.pop(),this}}function Yte(e){return e=I({format:!1,preamble:!0},e||{}),{toXML:function n(t,i){var r=i||new Gte,o=new Wte(r,e.format);if(e.preamble&&o.append('\n'),(new Vn).build(t).serializeTo(o),!i)return r.value}}}function Bv(e,n){fo.call(this,e,n)}tE.prototype.build=function(e){return this.element=e,this},tE.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()},Kc.prototype.serializeValue=Kc.prototype.serializeTo=function(e){e.append(this.escape?function Hte(e){return yF(e,gF,jte)}(this.value):this.value)},Kc.prototype.build=function(e,n){return this.value=n,"String"===e.type&&-1!==n.search(gF)&&(this.escape=!0),this},vF(nE,Kc),nE.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("").appendNewLine()},Vn.prototype.build=function(e){this.element=e;var i,r,n=e.$descriptor,t=this.propertyDescriptor,o=n.isGeneric;return i=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=t?this.nsPropertyTagName(t):this.nsTagName(n),this.tagName=this.addTagName(this.ns),o||(r=function Bte(e){return St(e.$descriptor.properties,function(t){var i=t.name;if(t.isVirtual||!Ja(e,i))return!1;var r=e[i];return r!==t.default&&null!==r&&(!t.isMany||r.length)})}(e),this.parseAttributes(function $te(e){return St(e,function(n){return n.isAttr})}(r)),this.parseContainments(function Ute(e){return St(e,function(n){return!n.isAttr})}(r))),this.parseGenericAttributes(e,i),this},Vn.prototype.nsTagName=function(e){return function Fte(e,n){return I(n.isGeneric?{localName:n.ns.localName}:{localName:Pte(n.ns.localName,n.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},Vn.prototype.nsPropertyTagName=function(e){return function Lte(e,n){return I({localName:n.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},Vn.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},Vn.prototype.nsAttributeName=function(e){var n;if(n=Vr(e)?cr(e):e.ns,e.inherited)return{localName:n.localName};var t=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(t),this.isLocalNs(t)?{localName:n.localName}:I({localName:n.localName},t)},Vn.prototype.parseGeneric=function(e){var n=this,t=this.body,i=[];return R(e,function(r,o){"$body"===o?t.push((new Kc).build({type:"String"},r)):"$children"===o?R(r,function(s){t.push(new Vn(n).build(s))}):0!==o.indexOf("$")&&n.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})}),i},Vn.prototype.parseNsAttribute=function(e,n,t){var o,i=e.$model,r=cr(n);if("xmlns"===r.prefix&&(o={prefix:r.localName,uri:t}),!r.prefix&&"xmlns"===r.localName&&(o={uri:t}),!o)return{name:n,value:t};if(i&&i.getPackage(t))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}},Vn.prototype.parseNsAttributes=function(e,n){var t=this,r=[];return R(e.$attrs,function(o,a){var s=t.parseNsAttribute(e,a,o);s&&r.push(s)}),r},Vn.prototype.parseGenericAttributes=function(e,n){var t=this;R(n,function(i){if(i.name!==Nv)try{t.addAttribute(t.nsAttributeName(i.name),i.value)}catch(r){console.warn("missing namespace information for ",i.name,"=",i.value,"on",e,r)}})},Vn.prototype.parseContainments=function(e){var n=this,t=this.body,i=this.element;R(e,function(r){var o=i.get(r.name),a=r.isReference;if(r.isMany||(o=[o]),r.isBody)t.push((new Kc).build(r,o[0]));else if(iF(r.type))R(o,function(d){t.push(new nE(n.addTagName(n.nsPropertyTagName(r))).build(r,d))});else if(a)R(o,function(d){t.push(new tE(n.addTagName(n.nsPropertyTagName(r))).build(d))});else{var c=pF(r),l=function Cte(e){return"property"===fF(e)}(r);R(o,function(d){var u;u=c?new Lv(n,r):l?new Vn(n,r):new Vn(n),t.push(u.build(d))})}})},Vn.prototype.getNamespaces=function(e){var i,n=this.namespaces,t=this.parent;return n||(i=t&&t.getNamespaces(),e||!i?this.namespaces=n=new Ote(i):n=i),n},Vn.prototype.logNamespace=function(e,n,t){var i=this.getNamespaces(t),r=e.uri,o=e.prefix;return(!i.byUri(r)||t)&&i.add(e,n),i.mapPrefix(o,r),e},Vn.prototype.logNamespaceUsed=function(e,n){var s,c,l,i=this.element.$model,r=this.getNamespaces(n),o=e.prefix,a=e.uri;if(!o&&!a)return{localName:e.localName};if(l=Ete[o]||i&&(i.getPackage(o)||{}).uri,!(a=a||l||r.uriByPrefix(o)))throw new Error("no namespace uri given for prefix <"+o+">");if(!(e=r.byUri(a))){for(s=o,c=1;r.uriByPrefix(s);)s=o+"_"+c++;e=this.logNamespace({prefix:s,uri:a},l===a)}return o&&r.mapPrefix(o,a),e},Vn.prototype.parseAttributes=function(e){var n=this,t=this.element;R(e,function(i){var r=t.get(i.name);if(i.isReference)if(i.isMany){var o=[];R(r,function(a){o.push(a.id)}),r=o.join(" ")}else r=r.id;n.addAttribute(n.nsAttributeName(i),r)})},Vn.prototype.addTagName=function(e){var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),_F(e)},Vn.prototype.addAttribute=function(e,n){var t=this.attrs;Vr(n)&&(n=function zte(e){return yF(e,Ite,Vte)}(n));var i=hN(t,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),r={name:e,value:n};-1!==i?t.splice(i,1,r):t.push(r)},Vn.prototype.serializeAttributes=function(e){var n=this.attrs,t=this.namespaces;t&&(n=function Nte(e){return e.getUsed().filter(function(n){return"xml"!==n.prefix}).map(function(n){return{name:"xmlns"+(n.prefix?":"+n.prefix:""),value:n.uri}})}(t).concat(n)),R(n,function(i){e.append(" ").append(_F(i.name)).append('="').append(i.value).append('"')})},Vn.prototype.serializeTo=function(e){var n=this.body[0],t=n&&n.constructor!==Kc;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(n?">":" />"),n&&(t&&e.appendNewLine().indent(),R(this.body,function(i){i.serializeTo(e)}),t&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()},vF(Lv,Vn),Lv.prototype.parseNsAttributes=function(e){var n=Vn.prototype.parseNsAttributes.call(this,e),t=e.$descriptor;if(t.name===this.propertyDescriptor.type)return n;var i=this.typeNs=this.nsTagName(t);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Nv),(i.prefix?i.prefix+":":"")+o+t.ns.localName),n},Lv.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},(Bv.prototype=Object.create(fo.prototype)).fromXML=function(e,n,t){Vr(n)||(t=n,n="bpmn:Definitions");var i=new eE(I({model:this,lax:!0},t)),r=i.handler(n);return i.fromXML(e,r)},Bv.prototype.toXML=function(e,n){var t=new Yte(n);return new Promise(function(i,r){try{return i({xml:t.toXML(e)})}catch(a){return r(a)}})};var Fne={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function Lne(e,n){return new Bv(I({},Fne,e),n)}function Bi(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}var Bne=new(Ud())({name:"bpmnElement",enumerable:!0},{name:"di",configurable:!0});function wr(e,n){return e.$instanceOf(n)}function jne(e,n){var t={},i=[];function r(L,$){return function(Pe){L(Pe,$)}}function o(L){t[L.id]=L}function l(L,$){try{var Pe=L.di&&function s(L,$){if(L.gfx)throw new Error(n("already rendered {element}",{element:Bi(L)}));return e.element(L,$)}(L,$);return o(L),Pe}catch(ut){d(ut.message,{element:L,error:ut}),console.error(n("failed to import {element}",{element:Bi(L)})),console.error(ut)}}function d(L,$){e.error(L,$)}function u(L){var $=L.bpmnElement;$?$.di?d(n("multiple DI elements defined for {element}",{element:Bi($)}),{element:$}):(Bne.bind($,"di"),$.di=L):d(n("no bpmnElement referenced in {element}",{element:Bi(L)}),{element:L})}function p(L){u(L)}function v(){for(;i.length;)i.shift()()}function k(L,$){_(L,$),be(L.ioSpecification,$),Q(L.artifacts,$),o(L)}function C(L,$){l(L,$)}function D(L,$){l(L,$)}function P(L,$){l(L,$)}function V(L,$){l(L,$)}function F(L,$){l(L,$)}function Q(L,$){R(L,function(Pe){wr(Pe,"bpmn:Association")?i.push(function(){F(Pe,$)}):F(Pe,$)})}function be(L,$){L&&(R(L.dataInputs,r(P,$)),R(L.dataOutputs,r(V,$)))}function He(L,$){_(L,$),Q(L.artifacts,$)}function de(L,$){var Pe=l(L,$);wr(L,"bpmn:SubProcess")&&He(L,Pe||$),wr(L,"bpmn:Activity")&&be(L.ioSpecification,$),i.push(function(){R(L.dataInputAssociations,r(D,$)),R(L.dataOutputAssociations,r(D,$))})}function Ht(L,$){i.push(function(){var Pe=l(L,$);L.childLaneSet&&fe(L.childLaneSet,Pe||$),function z(L){R(L.flowNodeRef,function($){var Pe=$.get("lanes");Pe&&Pe.push(L)})}(L)})}function fe(L,$){R(L.lanes,r(Ht,$))}function _(L,$){(function m(L,$){R(L,function(Pe){wr(Pe,"bpmn:SequenceFlow")?i.push(function(){!function we(L,$){l(L,$)}(Pe,$)}):wr(Pe,"bpmn:BoundaryEvent")?i.unshift(function(){de(Pe,$)}):wr(Pe,"bpmn:FlowNode")?de(Pe,$):wr(Pe,"bpmn:DataObject")||(wr(Pe,"bpmn:DataStoreReference")||wr(Pe,"bpmn:DataObjectReference")?function je(L,$){l(L,$)}(Pe,$):d(n("unrecognized flowElement {element} in context {context}",{element:Bi(Pe),context:$?Bi($.businessObject):"null"}),{element:Pe,context:$}))})})(L.flowElements,$),L.laneSets&&function ve(L,$){R(L,r(fe,$))}(L.laneSets,$)}function S(L,$){var Pe=l(L,$),ut=L.processRef;ut&&k(ut,Pe||$)}return{handleDeferred:v,handleDefinitions:function g(L,$){var Pe=L.diagrams;if($&&-1===Pe.indexOf($))throw new Error(n("diagram not part of bpmn:Definitions"));if(!$&&Pe&&Pe.length&&($=Pe[0]),!$)throw new Error(n("no diagram to display"));!function h(L){!function f(L){u(L),R(L.planeElement,p)}(L.plane)}($);var ut=$.plane;if(!ut)throw new Error(n("no plane for {element}",{element:Bi($)}));var bt=ut.bpmnElement;if(!bt){if(bt=function Vne(e){return on(e.rootElements,function(n){return wr(n,"bpmn:Process")||wr(n,"bpmn:Collaboration")})}(L),!bt)throw new Error(n("no process or collaboration to display"));d(n("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Bi(ut),rootElement:Bi(bt)})),ut.bpmnElement=bt,u(ut)}var xn=function c(L,$){return e.root(L,$)}(bt,ut);if(wr(bt,"bpmn:Process"))k(bt,xn);else{if(!wr(bt,"bpmn:Collaboration"))throw new Error(n("unsupported bpmnElement for {plane}: {rootElement}",{plane:Bi(ut),rootElement:Bi(bt)}));(function A(L){R(L.participants,r(S)),Q(L.artifacts),i.push(function(){!function x(L,$){R(L,r(C,$))}(L.messageFlows)})})(bt),function E(L,$){var Pe=St(L,function(ut){return!function a(L){return t[L.id]}(ut)&&wr(ut,"bpmn:Process")&&ut.laneSets});Pe.forEach(r(k,$))}(L.rootElements,xn)}v()},handleSubProcess:He,registerDi:u}}function Zd(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var n=arguments.length;if(!(n>=1&&Gi(arguments[n-1])))return e.apply(this,arguments);var t=arguments[n-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then(function(r){var o=Object.keys(r)[0];return t(null,r[o])},function(r){return t(r,r.warnings)})}}var bF='';function Vv(e){return e.join(";")}var Sf,xF=Vv(["color: #404040"]),Wne='
'+bF+'Web-based tooling for BPMN, DMN and CMMN diagrams powered by bpmn.io.
';function jn(e){e=I({},Kne,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function Zne(e){var i=Dn(''+bF+"");e.appendChild(i),ct.bind(i,"click",function(r){(function Yne(){Sf||(Sf=Dn(Wne),Hr.bind(Sf,".backdrop","click",function(e){document.body.removeChild(Sf)})),document.body.appendChild(Sf)})(),r.preventDefault()})}(this._container),this._init(this._container,this._moddle,e)}function jv(e,n){return e.warnings=n,e}Xe()(jn,Wd),jn.prototype.importXML=Zd(function(n,t){var i=this;return new Promise(function(o,a){n=i._emit("import.parse.start",{xml:n})||n,i._moddle.fromXML(n,"bpmn:Definitions").then(function(s){var c=s.rootElement,d=s.warnings;c=i._emit("import.parse.complete",function r(o){var a=i.get("eventBus").createEvent(o);return Object.defineProperty(a,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete is deprecated and will be removed in future library versions")),{warnings:o.warnings,references:o.references,elementsById:o.elementsById}}}),a}({error:null,definitions:c,elementsById:s.elementsById,references:s.references,warnings:d}))||c,i.importDefinitions(c,t).then(function(h){var f=[].concat(d,h.warnings||[]);return i._emit("import.done",{error:null,warnings:f}),o({warnings:f})}).catch(function(h){var f=[].concat(d,h.warnings||[]);return i._emit("import.done",{error:h,warnings:f}),a(jv(h,f))})}).catch(function(s){return i._emit("import.parse.complete",{error:s}),s=function qne(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),e}(s),i._emit("import.done",{error:s,warnings:s.warnings}),a(s)})})}),jn.prototype.importDefinitions=Zd(function(n,t){var i=this;return new Promise(function(r,o){i._setDefinitions(n),i.open(t).then(function(a){return r({warnings:a.warnings})}).catch(function(a){return o(a)})})}),jn.prototype.open=Zd(function(n){var t=this._definitions,i=n,r=this;return new Promise(function(o,a){if(!t){var s=new Error("no XML imported");return a(jv(s,[]))}if("string"==typeof n&&(i=function Xne(e,n){return n&&on(e.diagrams,function(t){return t.id===n})||null}(t,n),!i)){var c=new Error("BPMNDiagram <"+n+"> not found");return a(jv(c,[]))}try{r.clear()}catch(l){return a(jv(l,[]))}(function zne(e,n,t){var i,r,o,s=[];return new Promise(function(l,d){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),r.fire("import.render.start",{definitions:n}),function c(l,d){new jne({root:function(f){return i.add(f)},element:function(f,p){return i.add(f,p)},error:function(f,p){s.push({message:f,context:p})}},o).handleDefinitions(l,d)}(n,t),r.fire("import.render.complete",{error:void 0,warnings:s}),l({warnings:s})}catch(u){return u.warnings=s,d(u)}})})(r,t,i).then(function(l){return o({warnings:l.warnings})}).catch(function(l){return a(l)})})}),jn.prototype.saveXML=Zd(function(n){n=n||{};var t=this,i=this._definitions;return new Promise(function(r){if(!i)return r({error:new Error("no definitions loaded")});i=t._emit("saveXML.start",{definitions:i})||i,t._moddle.toXML(i,n).then(function(o){var a=o.xml;return a=t._emit("saveXML.serialized",{xml:a})||a,r({xml:a})})}).catch(function(r){return{error:r}}).then(function(r){t._emit("saveXML.done",r);var o=r.error;return o?Promise.reject(o):r})}),jn.prototype.saveSVG=Zd(function(n){n=n||{};var t=this;return new Promise(function(i,r){var o,a;t._emit("saveSVG.start");try{var s=t.get("canvas"),c=s.getDefaultLayer(),l=Bn("defs",s._svg),d=AN(c),u=l?""+AN(l)+"":"",h=c.getBBox();o='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+u+d+""}catch(f){a=f}return t._emit("saveSVG.done",{error:a,svg:o}),a?r(a):i({svg:o})})}),jn.prototype._setDefinitions=function(e){this._definitions=e},jn.prototype.getModules=function(){return this._modules},jn.prototype.clear=function(){this.getDefinitions()&&(this.get("elementRegistry").forEach(function(e){var n=e.businessObject;n&&n.di&&delete n.di}),Wd.prototype.clear.call(this))},jn.prototype.destroy=function(){Wd.prototype.destroy.call(this),ga(this._container)},jn.prototype.on=function(e,n,t,i){return this.get("eventBus").on(e,n,t,i)},jn.prototype.off=function(e,n){this.get("eventBus").off(e,n)},jn.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Bn(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},jn.prototype.getDefinitions=function(){return this._definitions},jn.prototype.detach=function(){var e=this._container,n=e.parentNode;n&&(this._emit("detach",{}),n.removeChild(e))},jn.prototype._init=function(e,n,t){var i=t.modules||this.getModules(),a=[].concat([{bpmnjs:["value",this],moddle:["value",n]}],i,t.additionalModules||[]),s=I(zs(t,["additionalModules"]),{canvas:I({},t.canvas,{container:e}),modules:a});Wd.call(this,s),t&&t.container&&this.attachTo(t.container)},jn.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},jn.prototype._createContainer=function(e){var n=Dn('
');return I(n.style,{width:wF(e.width),height:wF(e.height),position:e.position}),n},jn.prototype._createModdle=function(e){return new Lne(I({},this._moddleExtensions,e.moddleExtensions))},jn.prototype._modules=[];var Kne={width:"100%",height:"100%",position:"relative"};function wF(e){return e+(yt(e)?"px":"")}function Df(e){jn.call(this,e),this.on("import.parse.complete",function(n){n.error||this._collectIds(n.definitions,n.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}function b(e,n){var t=$e(e);return t&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)}function Kt(e,n){return Gc(n,function(t){return b(e,t)})}function $e(e){return e&&e.businessObject||e}function ln(e){return!b(e,"bpmn:CallActivity")&&(b(e,"bpmn:SubProcess")?$e(e).di&&!!$e(e).di.isExpanded:!b(e,"bpmn:Participant")||!!$e(e).processRef)}function Gr(e){return e&&!!$e(e).triggeredByEvent}function zv(e,n){var t=$e(e),i=!1;return t.eventDefinitions&&R(t.eventDefinitions,function(r){b(r,n)&&(i=!0)}),i}function EF(e){return b(e,"bpmn:FlowElement")||b(e,"bpmn:Participant")||b(e,"bpmn:Lane")||b(e,"bpmn:SequenceFlow")||b(e,"bpmn:MessageFlow")||b(e,"bpmn:DataInput")||b(e,"bpmn:DataOutput")?"name":b(e,"bpmn:TextAnnotation")?"text":b(e,"bpmn:Group")?"categoryValueRef":void 0}function Go(e){var n=e.businessObject,t=EF(n);if(t)return"categoryValueRef"===t?function nie(e){var n=e.categoryValueRef;return n&&n.value||""}(n):n[t]||""}function _a(e,n,t){return Gc(e.eventDefinitions,function(r){return r.$type===n&&function i(r,o){return Uc(o,function(a,s){return r[s]==a})}(e,t)})}function Qd(e){return e.businessObject.di}function qi(e){return e.businessObject}function zt(e,n){var t=Qd(e);return t.get("color:background-color")||t.get("bioc:fill")||n||"white"}function Be(e,n){var t=Qd(e);return t.get("color:border-color")||t.get("bioc:stroke")||n||"black"}function kf(e,n,t){var r=Qd(e).get("label");return r&&r.get("color:color")||n||Be(e,t)}Xe()(Df,jn),Df.prototype._createModdle=function(e){var n=jn.prototype._createModdle.call(this,e);return n.ids=new S1([32,36,1]),n},Df.prototype._collectIds=function(e,n){var r,i=e.$model.ids;for(r in i.clear(),n)i.claim(r,n[r])};var die=new S1,Jd=.95;function Xc(e,n,t,i,r,o,a){Uo.call(this,n,a);var s=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,l=e&&e.defaultLabelColor,d=die.next(),u={},h=t.computeStyle;function f(_,m){var S=I({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},m.attrs),A=m.ref||{x:0,y:0},z=m.scale||1;"none"===S.strokeDasharray&&(S.strokeDasharray=[1e4,1]);var L=qe("marker");ge(m.element,S),Ze(L,m.element),ge(L,{id:_,viewBox:"0 0 20 20",refX:A.x,refY:A.y,markerWidth:20*z,markerHeight:20*z,orient:"auto"});var $=Bn("defs",r._svg);$||($=qe("defs"),Ze(r._svg,$)),Ze($,L),u[_]=L}function p(_){return _.replace(/[^0-9a-zA-z]+/g,"_")}function g(_,m,S){var A=_+"-"+p(m)+"-"+p(S)+"-"+d;return u[A]||function v(_,m,S,A){if("sequenceflow-end"===m){var z=qe("path");ge(z,{d:"M 1 5 L 11 10 L 1 15 Z"}),f(_,{element:z,ref:{x:11,y:10},scale:.5,attrs:{fill:A,stroke:A}})}if("messageflow-start"===m){var L=qe("circle");ge(L,{cx:6,cy:6,r:3.5}),f(_,{element:L,attrs:{fill:S,stroke:A},ref:{x:6,y:6}})}if("messageflow-end"===m){var $=qe("path");ge($,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),f(_,{element:$,attrs:{fill:S,stroke:A,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===m){var Pe=qe("path");ge(Pe,{d:"M 11 5 L 1 10 L 11 15"}),f(_,{element:Pe,attrs:{fill:"none",stroke:A,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===m){var ut=qe("path");ge(ut,{d:"M 1 5 L 11 10 L 1 15"}),f(_,{element:ut,attrs:{fill:"none",stroke:A,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===m){var bt=qe("path");ge(bt,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),f(_,{element:bt,attrs:{fill:S,stroke:A},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===m){var xn=qe("path");ge(xn,{d:"M 6 4 L 10 16"}),f(_,{element:xn,attrs:{stroke:A},ref:{x:0,y:10},scale:.5})}}(A,_,m,S),"url(#"+A+")"}function k(_,m,S,A,z){si(A)&&(z=A,A=0),A=A||0,"none"===(z=h(z,{stroke:"black",strokeWidth:2,fill:"white"})).fill&&delete z.fillOpacity;var L=m/2,$=S/2,Pe=qe("circle");return ge(Pe,{cx:L,cy:$,r:Math.round((m+S)/4-A)}),ge(Pe,z),Ze(_,Pe),Pe}function E(_,m,S,A,z,L){si(z)&&(L=z,z=0),z=z||0,L=h(L,{stroke:"black",strokeWidth:2,fill:"white"});var $=qe("rect");return ge($,{x:z,y:z,width:m-2*z,height:S-2*z,rx:A,ry:A}),ge($,L),Ze(_,$),$}function x(_,m,S){var A=vf(m,S=h(S,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"}));return Ze(_,A),A}function D(_,m,S){S=h(S,["no-fill"],{strokeWidth:2,stroke:"black"});var A=qe("path");return ge(A,{d:m}),ge(A,S),Ze(_,A),A}function P(_,m,S,A){return D(m,S,I({"data-marker":_},A))}function V(_){return function(m,S){return Ht[_](m,S)}}function F(_){return Ht[_]}function Q(_,m){var S=qi(_),A=function rie(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(S);return S.eventDefinitions&&S.eventDefinitions.length>1?S.parallelMultiple?F("bpmn:ParallelMultipleEventDefinition")(m,_,A):F("bpmn:MultipleEventDefinition")(m,_,A):_a(S,"bpmn:MessageEventDefinition")?F("bpmn:MessageEventDefinition")(m,_,A):_a(S,"bpmn:TimerEventDefinition")?F("bpmn:TimerEventDefinition")(m,_,A):_a(S,"bpmn:ConditionalEventDefinition")?F("bpmn:ConditionalEventDefinition")(m,_):_a(S,"bpmn:SignalEventDefinition")?F("bpmn:SignalEventDefinition")(m,_,A):_a(S,"bpmn:EscalationEventDefinition")?F("bpmn:EscalationEventDefinition")(m,_,A):_a(S,"bpmn:LinkEventDefinition")?F("bpmn:LinkEventDefinition")(m,_,A):_a(S,"bpmn:ErrorEventDefinition")?F("bpmn:ErrorEventDefinition")(m,_,A):_a(S,"bpmn:CancelEventDefinition")?F("bpmn:CancelEventDefinition")(m,_,A):_a(S,"bpmn:CompensateEventDefinition")?F("bpmn:CompensateEventDefinition")(m,_,A):_a(S,"bpmn:TerminateEventDefinition")?F("bpmn:TerminateEventDefinition")(m,_,A):null}function be(_,m,S){S=I({size:{width:100}},S);var A=o.createText(m||"",S);return Pt(A).add("djs-label"),Ze(_,A),A}function He(_,m,S){return be(_,qi(m).name,{box:m,align:S,padding:5,style:{fill:kf(m,l,c)}})}function we(_,m,S){W1(be(_,m,{box:{height:30,width:S.height},align:"center-middle",style:{fill:kf(S,l,c)}}),0,1*S.height,270)}function je(_){for(var m=_.waypoints,S="m "+m[0].x+","+m[0].y,A=1;A1)for(;i=t.shift();){if(!(i.length+oE?C.width:E},0),g=o.top;"middle"===r.vertical&&(g+=(t.height-f)/2),g-=(s||l[0].height)/4;var v=qe("text");return ge(v,i),R(l,function(E){var C;switch(g+=s||E.height,r.horizontal){case"left":C=o.left;break;case"right":C=(a?p:d)-o.right-E.width;break;default:C=Math.max(((a?p:d)-E.width)/2+o.left,0)}var x=qe("tspan");ge(x,{x:C,y:g}),x.textContent=E.text,Ze(v,x)}),ti(u),{dimensions:{width:p,height:f},element:v}},SF.$inject=["config.textRenderer"];var kie=/\{([^{}]+)\}/g,Tie=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const Iie={__init__:["bpmnRenderer"],bpmnRenderer:["type",Xc],textRenderer:["type",SF],pathMap:["type",rE]},Uv={translate:["value",function Oie(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(t,i){return n[i]||"{"+i+"}"})}]};var eu={width:90,height:20},DF=15;function ya(e){return b(e,"bpmn:Event")||b(e,"bpmn:Gateway")||b(e,"bpmn:DataStoreReference")||b(e,"bpmn:DataObjectReference")||b(e,"bpmn:DataInput")||b(e,"bpmn:DataOutput")||b(e,"bpmn:SequenceFlow")||b(e,"bpmn:MessageFlow")||b(e,"bpmn:Group")}function tu(e){return mi(e.label)}function nu(e){return e.waypoints?function Rie(e){var n=e.length/2-1,t=e[Math.floor(n)],i=e[Math.ceil(n+.01)],r=function Pie(e){var n=e.length/2-1,t=e[Math.floor(n)],i=e[Math.ceil(n+.01)];return{x:t.x+(i.x-t.x)/2,y:t.y+(i.y-t.y)/2}}(e),o=Math.atan((i.y-t.y)/(i.x-t.x)),a=r.x,s=r.y;return Math.abs(o)=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}(n,Mt(l))||(n=this._canvas.getRootElement())),this._canvas.addShape(i,n,a)}else{if(!b(t,"bpmndi:BPMNEdge"))throw new Error(r("unknown di {di} for element {semantic}",{di:Bi(t),semantic:Bi(e)}));var d=this._getSource(e),u=this._getTarget(e);i=this._elementFactory.createConnection(Gv(e,{hidden:n&&(n.hidden||n.collapsed),source:d,target:u,waypoints:Fie(e,d,u)})),b(e,"bpmn:DataAssociation")&&(n=null),b(e,"bpmn:SequenceFlow")&&(a=0),this._canvas.addConnection(i,n,a)}return ya(e)&&Go(i)&&this.addLabel(e,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},rs.prototype._attachBoundary=function(e,n){var t=this._translate,i=e.attachedToRef;if(!i)throw new Error(t("missing {semantic}#attachedToRef",{semantic:Bi(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw kF(t,e,i,"attachedToRef");n.host=r,o||(r.attachers=o=[]),-1===o.indexOf(n)&&o.push(n)},rs.prototype.addLabel=function(e,n){var t,i,r;return t=function Nie(e,n){var t,i,r,a=e.di.label;return a&&a.bounds?(r=a.bounds,i={width:Math.max(eu.width,r.width),height:r.height},t={x:r.x+r.width/2,y:r.y+r.height/2}):(t=nu(n),i=eu),I({x:t.x-i.width/2,y:t.y-i.height/2},i)}(e,n),(i=Go(n))&&(t=this._textRenderer.getExternalLabelBounds(t,i)),r=this._elementFactory.createLabel(Gv(e,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Go(n),x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height)})),this._canvas.addShape(r,n.parent)},rs.prototype._getEnd=function(e,n){var t,i,r=e.$type,o=this._translate;if(i=e[n+"Ref"],"source"===n&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===n&&"bpmn:DataOutputAssociation"===r||"target"===n&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),t=i&&this._getElement(i))return t;throw i?kF(o,e,i,n+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Bi(e),side:n}))},rs.prototype._getSource=function(e){return this._getEnd(e,"source")},rs.prototype._getTarget=function(e){return this._getEnd(e,"target")},rs.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Vie={__depends__:[Iie,{__depends__:[Uv],bpmnImporter:["type",rs]}]};function TF(e){!e||"function"!=typeof e.stopPropagation||e.stopPropagation()}function iu(e){return e.originalEvent||e.srcEvent}function oE(e,n){TF(e),TF(iu(e))}function qs(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function aE(e,n){return(iu(e)||e).button===n}function Ks(e){return aE(e,0)}function ru(e){var n=iu(e)||e;return!!Ks(e)&&(function jie(){return/mac/i.test(navigator.platform)}()?n.metaKey:n.ctrlKey)}function AF(e){var n=iu(e)||e;return Ks(e)&&n.shiftKey}function Hie(e){return!0}function Wv(e){return Ks(e)||function zie(e){return aE(e,1)}(e)}function IF(e,n,t){var i=this;function r(V,F,Q){var be,He;(function s(V,F){return!(l[V]||Ks)(F)})(V,F)||(Q?He=n.getGraphics(Q):(be=F.delegateTarget||F.target)&&(Q=n.get(He=be)),He&&Q&&!1===e.fire(V,{element:Q,gfx:He,originalEvent:F})&&(F.stopPropagation(),F.preventDefault()))}var o={};function a(V){return o[V]}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":Hie,"element.mousedown":Wv,"element.mouseup":Wv,"element.click":Wv,"element.dblclick":Wv};function h(V,F,Q,be){var He=o[Q]=function(de){r(Q,de)};be&&(l[Q]=be),He.$delegate=Hr.bind(V,"svg, .djs-element",F,He)}function f(V,F,Q){var be=a(Q);be&&Hr.unbind(V,F,be.$delegate)}e.on("canvas.destroy",function(V){!function g(V){R(c,function(F,Q){f(V,Q,F)})}(V.svg)}),e.on("canvas.init",function(V){!function p(V){R(c,function(F,Q){h(V,Q,F)})}(V.svg)}),e.on(["shape.added","connection.added"],function(V){e.fire("interactionEvents.createHit",{element:V.element,gfx:V.gfx})}),e.on(["shape.changed","connection.changed"],500,function(V){e.fire("interactionEvents.updateHit",{element:V.element,gfx:V.gfx})}),e.on("interactionEvents.createHit",500,function(V){i.createDefaultHit(V.element,V.gfx)}),e.on("interactionEvents.updateHit",function(V){i.updateDefaultHit(V.element,V.gfx)});var v=x("djs-hit djs-hit-stroke"),k=x("djs-hit djs-hit-click-stroke"),C={all:x("djs-hit djs-hit-all"),"click-stroke":k,stroke:v};function x(V,F){return F=I({stroke:"white",strokeWidth:15},F||{}),t.cls(V,["no-fill","no-border"],F)}function D(V,F){var Q=C[F];if(!Q)throw new Error("invalid hit type <"+F+">");return ge(V,Q),V}function P(V,F){Ze(V,F)}this.removeHits=function(V){R(k1(".djs-hit",V),ti)},this.createDefaultHit=function(V,F){var Q=V.waypoints,be=V.isFrame;return Q?this.createWaypointsHit(F,Q):this.createBoxHit(F,be?"stroke":"all",{width:V.width,height:V.height})},this.createWaypointsHit=function(V,F){var Q=vf(F);return D(Q,"stroke"),P(V,Q),Q},this.createBoxHit=function(V,F,Q){Q=I({x:0,y:0},Q);var be=qe("rect");return D(be,F),ge(be,Q),P(V,be),be},this.updateDefaultHit=function(V,F){var Q=Bn(".djs-hit",F);if(Q)return V.waypoints?function $ee(e,n){ge(e,{points:MN(n)})}(Q,V.waypoints):ge(Q,{width:V.width,height:V.height}),Q},this.fire=r,this.triggerMouseEvent=function d(V,F,Q){var be=c[V];if(!be)throw new Error("unmapped DOM event name <"+V+">");return r(be,F,Q)},this.mouseHandler=a,this.registerEvent=h,this.unregisterEvent=f}IF.$inject=["eventBus","elementRegistry","styles"];const Tf={__init__:["interactionEvents"],interactionEvents:["type",IF]};function Yv(e,n,t){this.offset=6;var i=n.cls("djs-outline",["no-fill"]),r=this;function o(a,s){var c=qe("rect");return ge(c,I({x:10,y:10,width:100,height:100},i)),Ze(a,c),c}e.on(["shape.added","shape.changed"],500,function(a){var s=a.element,c=a.gfx,l=Bn(".djs-outline",c);l||(l=o(c)),r.updateShapeOutline(l,s)}),e.on(["connection.added","connection.changed"],function(a){var s=a.element,c=a.gfx,l=Bn(".djs-outline",c);l||(l=o(c)),r.updateConnectionOutline(l,s)})}Yv.prototype.updateShapeOutline=function(e,n){ge(e,{x:-this.offset,y:-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},Yv.prototype.updateConnectionOutline=function(e,n){var t=Fi(n);ge(e,{x:t.x-this.offset,y:t.y-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},Yv.$inject=["eventBus","styles","elementRegistry"];const OF={__init__:["outline"],outline:["type",Yv]};function ou(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var t=this;e.on(["shape.remove","connection.remove"],function(i){t.deselect(i.element)}),e.on(["diagram.clear","plane.set"],function(i){t.select(null)})}ou.$inject=["eventBus","canvas"],ou.prototype.deselect=function(e){var n=this._selectedElements,t=n.indexOf(e);if(-1!==t){var i=n.slice();n.splice(t,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}},ou.prototype.get=function(){return this._selectedElements},ou.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},ou.prototype.select=function(e,n){var t=this._selectedElements,i=t.slice();Lt(e)||(e=e?[e]:[]);var r=this._canvas;e=e.filter(function(o){return r.findPlane(o)===r.getActivePlane()}),n?R(e,function(o){-1===t.indexOf(o)&&t.push(o)}):this._selectedElements=t=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})};var PF="selected";function NF(e,n,t,i){function r(a,s){n.addMarker(a,s)}function o(a,s){n.removeMarker(a,s)}this._multiSelectionBox=null,e.on("element.hover",function(a){r(a.element,"hover")}),e.on("element.out",function(a){o(a.element,"hover")}),e.on("selection.changed",function(a){var l=a.oldSelection,d=a.newSelection;R(l,function(u){-1===d.indexOf(u)&&function s(u){o(u,PF)}(u)}),R(d,function(u){-1===l.indexOf(u)&&function c(u){r(u,PF)}(u)})})}function FF(e,n,t,i){e.on("create.end",500,function(r){var o=r.context,s=o.elements,l=(o.hints||{}).autoSelect;if(o.canExecute){if(!1===l)return;Lt(l)?n.select(l):n.select(s.filter(Uie))}}),e.on("connect.end",500,function(r){var o=r.context,s=o.hover;o.canExecute&&s&&n.select(s)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=i.get(r.context.shape.id);on(o,function(c){return a.id===c.id})||n.select(a)}),e.on("element.click",function(r){if(Ks(r)){var o=r.element;o===t.getRootElement()&&(o=null);var a=n.isSelected(o),s=n.get().length>1,c=ru(r)||AF(r);if(a&&s)return c?n.deselect(o):n.select(o);a?n.deselect(o):n.select(o,c)}})}function Uie(e){return!e.hidden}NF.$inject=["eventBus","canvas","selection","styles"],FF.$inject=["eventBus","selection","canvas","elementRegistry"];const ba={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Tf,OF],selection:["type",ou],selectionVisuals:["type",NF],selectionBehavior:["type",FF]};function sE(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}sE.prototype.next=function(){return this._prefix+ ++this._counter};var Gie=new sE("ov");function Ai(e,n,t,i){this._eventBus=n,this._canvas=t,this._elementRegistry=i,this._ids=Gie,this._overlayDefaults=I({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=function Yie(e){var n=Dn('
');return e.insertBefore(n,e.firstChild),n}(t.getContainer()),this._init()}function LF(e,n,t){I(e.style,{left:n+"px",top:t+"px"})}function Af(e,n){e.style.display=!1===n?"none":""}function BF(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(t){e.style[t+"transform"]=n})}Ai.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ai.prototype.get=function(e){if(Vr(e)&&(e={id:e}),Vr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?St(n.overlays,$o({type:e.type})):n.overlays.slice():[]}return e.type?St(this._overlays,$o({type:e.type})):e.id?this._overlays[e.id]:null},Ai.prototype.add=function(e,n,t){if(si(n)&&(t=n,n=null),e.id||(e=this._elementRegistry.get(e)),!t.position)throw new Error("must specifiy overlay position");if(!t.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return t=I({},this._overlayDefaults,t,{id:i,type:n,element:e,html:t.html}),this._addOverlay(t),i},Ai.prototype.remove=function(e){var n=this.get(e)||[];Lt(n)||(n=[n]);var t=this;R(n,function(i){var r=t._getOverlayContainer(i.element,!0);if(i&&(ga(i.html),ga(i.htmlContainer),delete i.htmlContainer,delete i.element,delete t._overlays[i.id]),r){var o=r.overlays.indexOf(i);-1!==o&&r.overlays.splice(o,1)}})},Ai.prototype.show=function(){Af(this._overlayRoot)},Ai.prototype.hide=function(){Af(this._overlayRoot,!1)},Ai.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Ev(this._overlayRoot)},Ai.prototype._updateOverlayContainer=function(e){var n=e.element,t=e.html,i=n.x,r=n.y;if(n.waypoints){var o=Fi(n);i=o.x,r=o.y}LF(t,i,r),zr(e.html,"data-container-id",n.id)},Ai.prototype._updateOverlay=function(e){var a,s,n=e.position,t=e.htmlContainer,i=e.element,r=n.left,o=n.top;void 0!==n.right&&(a=i.waypoints?Fi(i).width:i.width,r=-1*n.right+a),void 0!==n.bottom&&(s=i.waypoints?Fi(i).height:i.height,o=-1*n.bottom+s),LF(t,r||0,o||0)},Ai.prototype._createOverlayContainer=function(e){var n=Dn('
');this._overlayRoot.appendChild(n);var t={html:n,element:e,overlays:[]};return this._updateOverlayContainer(t),this._overlayContainers.push(t),t},Ai.prototype._updateRoot=function(e){var n=e.scale||1,t="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";BF(this._overlayRoot,t)},Ai.prototype._getOverlayContainer=function(e,n){var t=on(this._overlayContainers,function(i){return i.element===e});return t||n?t:this._createOverlayContainer(e)},Ai.prototype._addOverlay=function(e){var r,o,n=e.id,t=e.element,i=e.html;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Vr(i)&&(i=Dn(i)),o=this._getOverlayContainer(t),(r=Dn('
')).appendChild(i),e.type&&fi(r).add("djs-overlay-"+e.type);var a=this._canvas.findPlane(t),s=this._canvas.getActivePlane();e.plane=a,a!==s&&Af(r,!1),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ai.prototype._updateOverlayVisibilty=function(e,n){var t=e.show,r=t&&t.minZoom,o=t&&t.maxZoom,a=e.htmlContainer,c=!0;(e.plane!==this._canvas.getActivePlane()||t&&(zo(r)&&r>n.scale||zo(o)&&or&&(a=(1/n.scale||1)*r)),zo(a)&&(s="scale("+a+","+a+")"),BF(o,s)},Ai.prototype._updateOverlaysVisibilty=function(e){var n=this;R(this._overlays,function(t){n._updateOverlayVisibilty(t,e)})},Ai.prototype._init=function(){var e=this._eventBus,n=this;e.on("canvas.viewbox.changing",function(i){n.hide()}),e.on("canvas.viewbox.changed",function(i){!function t(i){n._updateRoot(i),n._updateOverlaysVisibilty(i),n.show()}(i.viewbox)}),e.on(["shape.remove","connection.remove"],function(i){var r=i.element;R(n.get({element:r}),function(c){n.remove(c.id)});var a=n._getOverlayContainer(r);if(a){ga(a.html);var s=n._overlayContainers.indexOf(a);-1!==s&&n._overlayContainers.splice(s,1)}}),e.on("element.changed",500,function(i){var o=n._getOverlayContainer(i.element,!0);o&&(R(o.overlays,function(a){n._updateOverlay(a)}),n._updateOverlayContainer(o))}),e.on("element.marker.update",function(i){var r=n._getOverlayContainer(i.element,!0);r&&fi(r.html)[i.add?"add":"remove"](i.marker)}),e.on("plane.set",function(i){R(n._overlays,function(r){Af(r.htmlContainer,r.plane===i.plane)})}),e.on("diagram.clear",this.clear,this)};const cE={__init__:["overlays"],overlays:["type",Ai]};function Xs(e){jn.call(this,e)}Xe()(Xs,jn),Xs.prototype._modules=[Vie,Uv,ba,cE],Xs.prototype._moddleExtensions={};var Qie=["c","C",67],Jie=["v","V",86],ere=["y","Y",89],VF=["z","Z",90];function Wr(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function Wo(e,n){return-1!==(e=Lt(e)?e:[e]).indexOf(n.key)||-1!==e.indexOf(n.keyCode)}function lE(e){return e.shiftKey}var qv="keyboard.keydown",jF="input-handle-modified-keys";function Mi(e,n){var t=this;this._config=e||{},this._eventBus=n,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),n.on("diagram.destroy",function(){t._fire("destroy"),t.unbind()}),n.on("diagram.init",function(){t._fire("init")}),n.on("attach",function(){e&&e.bindTo&&t.bind(e.bindTo)}),n.on("detach",function(){t.unbind()})}Mi.$inject=["config.keyboard","eventBus"],Mi.prototype._keydownHandler=function(e){this._keyHandler(e,qv)},Mi.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},Mi.prototype._keyHandler=function(e,n){this._isEventIgnored(e)||this._eventBus.fire(n||qv,{keyEvent:e})&&e.preventDefault()},Mi.prototype._isEventIgnored=function(e){return function cre(e){return e&&(Cv(e,"input, textarea")||"true"===e.contentEditable)}(e.target)&&this._isModifiedKeyIgnored(e)},Mi.prototype._isModifiedKeyIgnored=function(e){return!Wr(e)||!this._getAllowedModifiers(e.target).includes(e.key)},Mi.prototype._getAllowedModifiers=function(e){var n=Wc(e,"["+jF+"]",!0);return!n||this._node&&!this._node.contains(n)?[]:n.getAttribute(jF).split(",")},Mi.prototype.bind=function(e){this.unbind(),this._node=e,ct.bind(e,"keydown",this._keydownHandler,!0),ct.bind(e,"keyup",this._keyupHandler,!0),this._fire("bind")},Mi.prototype.getBinding=function(){return this._node},Mi.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),ct.unbind(e,"keydown",this._keydownHandler,!0),ct.unbind(e,"keyup",this._keyupHandler,!0)),this._node=null},Mi.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},Mi.prototype.addListener=function(e,n,t){Gi(e)&&(t=n,n=e,e=1e3),this._eventBus.on(t||qv,e,n)},Mi.prototype.removeListener=function(e,n){this._eventBus.off(n||qv,e)},Mi.prototype.hasModifier=function tre(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},Mi.prototype.isCmd=Wr,Mi.prototype.isShift=lE,Mi.prototype.isKey=Wo;var lre=500;function au(e,n){var t=this;e.on("editorActions.init",lre,function(i){t.registerBindings(n,i.editorActions)})}au.$inject=["eventBus","keyboard"],au.prototype.registerBindings=function(e,n){function t(i,r){n.isRegistered(i)&&e.addListener(r)}t("undo",function(i){if(function rre(e){return Wr(e)&&!lE(e)&&Wo(VF,e)}(i.keyEvent))return n.trigger("undo"),!0}),t("redo",function(i){if(function ore(e){return Wr(e)&&(Wo(ere,e)||Wo(VF,e)&&lE(e))}(i.keyEvent))return n.trigger("redo"),!0}),t("copy",function(i){if(function nre(e){return Wr(e)&&Wo(Qie,e)}(i.keyEvent))return n.trigger("copy"),!0}),t("paste",function(i){if(function ire(e){return Wr(e)&&Wo(Jie,e)}(i.keyEvent))return n.trigger("paste"),!0}),t("stepZoom",function(i){var r=i.keyEvent;if(Wo(["+","Add","="],r)&&Wr(r))return n.trigger("stepZoom",{value:1}),!0}),t("stepZoom",function(i){var r=i.keyEvent;if(Wo(["-","Subtract"],r)&&Wr(r))return n.trigger("stepZoom",{value:-1}),!0}),t("zoom",function(i){var r=i.keyEvent;if(Wo("0",r)&&Wr(r))return n.trigger("zoom",{value:1}),!0}),t("removeSelection",function(i){if(Wo(["Backspace","Delete","Del"],i.keyEvent))return n.trigger("removeSelection"),!0})};const dE={__init__:["keyboard","keyboardBindings"],keyboard:["type",Mi],keyboardBindings:["type",au]};var pre={moveSpeed:50,moveSpeedAccelerated:200};function zF(e,n,t){var i=this;this._config=I({},pre,e||{}),n.addListener(function r(o){var a=o.keyEvent,s=i._config;if(n.isCmd(a)&&n.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],a)){var l,c=n.isShift(a)?s.moveSpeedAccelerated:s.moveSpeed;switch(a.key){case"ArrowLeft":case"Left":l="left";break;case"ArrowUp":case"Up":l="up";break;case"ArrowRight":case"Right":l="right";break;case"ArrowDown":case"Down":l="down"}return i.moveCanvas({speed:c,direction:l}),!0}}),this.moveCanvas=function(o){var a=0,s=0,l=o.speed/Math.min(Math.sqrt(t.viewbox().scale),1);switch(o.direction){case"left":a=l;break;case"up":s=l;break;case"right":a=-l;break;case"down":s=-l}t.scroll({dx:a,dy:s})}}zF.$inject=["config.keyboardMove","keyboard","canvas"];const HF={__depends__:[dE],__init__:["keyboardMove"],keyboardMove:["type",zF]};var mre=/^djs-cursor-.*$/;function Kv(e){var n=fi(document.body);n.removeMatching(mre),e&&n.add("djs-cursor-"+e)}function $F(){Kv(null)}var gre=5e3;function UF(e,n){function t(){return!1}return e.once(n=n||"element.click",gre,t),function(){e.off(n,t)}}function Mf(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function xa(e,n){return{x:e.x-n.x,y:e.y-n.y}}function GF(e,n){var t;function i(a){var s=t.start,c=t.button,l=qs(a),d=xa(l,s);!t.dragging&&function _re(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}(d)>15&&(t.dragging=!0,0===c&&UF(e),Kv("grab")),t.dragging&&(d=xa(l,t.last||t.start),n.scroll({dx:d.x,dy:d.y}),t.last=l),a.preventDefault()}function r(a){ct.unbind(document,"mousemove",i),ct.unbind(document,"mouseup",r),t=null,$F()}e.on("element.mousedown",500,function(a){return function o(a){if(!Wc(a.target,".djs-draggable")){var s=a.button;if(!(s>=2||a.ctrlKey||a.shiftKey||a.altKey))return t={button:s,start:qs(a)},ct.bind(document,"mousemove",i),ct.bind(document,"mouseup",r),!0}}(a.originalEvent)}),this.isActive=function(){return!!t}}GF.$inject=["eventBus","canvas"];const WF={__init__:["moveCanvas"],moveCanvas:["type",GF]};function uE(e){return Math.log(e)/Math.log(10)}function YF(e,n){var t=uE(e.min),i=uE(e.max);return(Math.abs(t)+Math.abs(i))/n}var bre=Math.sign||function(e){return e>=0?1:-1},hE={min:.2,max:4};function wa(e,n,t){e=e||{},this._enabled=!1,this._canvas=t,this._container=t._container,this._handleWheel=Wi(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||.75;var i=this;n.on("canvas.init",function(r){i._init(!1!==e.enabled)})}wa.$inject=["config.zoomScroll","eventBus","canvas"],wa.prototype.scroll=function(n){this._canvas.scroll(n)},wa.prototype.reset=function(){this._canvas.zoom("fit-viewport")},wa.prototype.zoom=function(n,t){var i=YF(hE,20);this._totalDelta+=n,Math.abs(this._totalDelta)>.1&&(this._zoom(n,t,i),this._totalDelta=0)},wa.prototype._handleWheel=function(n){if(!Wc(n.target,".djs-scrollable",!0)){var t=this._container;n.preventDefault();var a,i=n.ctrlKey,r=n.shiftKey,o=-1*this._scale;if(o*=i?0===n.deltaMode?.02:.32:0===n.deltaMode?1:16,i){var s=t.getBoundingClientRect(),c={x:n.clientX-s.left,y:n.clientY-s.top};a=Math.sqrt(Math.pow(n.deltaY,2)+Math.pow(n.deltaX,2))*bre(n.deltaY)*o,this.zoom(a,c)}else this.scroll(a=r?{dx:o*n.deltaY,dy:0}:{dx:o*n.deltaX,dy:o*n.deltaY})}},wa.prototype.stepZoom=function(n,t){var i=YF(hE,10);this._zoom(n,t,i)},wa.prototype._zoom=function(e,n,t){var i=this._canvas,r=e>0?1:-1,o=uE(i.zoom()),a=Math.round(o/t)*t,s=Math.pow(10,a+=t*r);i.zoom(function yre(e,n){return Math.max(e.min,Math.min(e.max,n))}(hE,s),n)},wa.prototype.toggle=function(n){var r=this._enabled;return typeof n>"u"&&(n=!r),r!==n&&ct[n?"bind":"unbind"](this._container,"wheel",this._handleWheel,!1),this._enabled=n,n},wa.prototype._init=function(e){this.toggle(e)};const KF={__init__:["zoomScroll"],zoomScroll:["type",wa]};function If(e){Xs.call(this,e)}Xe()(If,Xs),If.prototype._modules=[].concat(Xs.prototype._modules,If.prototype._navigationModules=[HF,WF,KF]);var Ere=J(490),Zc=J.n(Ere),XF=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Xv(e,n){return n.get(e,!1)}function fE(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function pE(e){function t(l){setTimeout(function(){R(XF,function(d){ct.unbind(e,d,fE,!0)})},500)}ct.bind(e,"touchstart",function n(l){R(XF,function(d){ct.bind(e,d,fE,!0)})},!0),ct.bind(e,"touchend",t,!0),ct.bind(e,"touchcancel",t,!0);var i=new(Zc().Manager)(e,{inputClass:Zc().TouchInput,recognizers:[],domEvents:!0}),r=new(Zc().Tap),o=new(Zc().Pan)({threshold:10}),a=new(Zc().Press),s=new(Zc().Pinch),c=new(Zc().Tap)({event:"doubletap",taps:2});return s.requireFailure(o),s.requireFailure(a),i.add([o,a,s,c,r]),i.reset=function(l){var d=this.recognizers,u=this.session;u.stopped||(i.stop(l),setTimeout(function(){var h,f;for(h=0;f=d[h];h++)f.reset(),f.state=8;u.curRecognizer=null},0))},i.on("hammer.input",function(l){l.srcEvent.defaultPrevented&&i.reset(!0)}),i}function ZF(e,n,t,i,r){var l,o=Xv("dragging",e),a=Xv("move",e),s=Xv("contextPad",e),c=Xv("palette",e);function d(f,p){return function(g){var v=u(g.target),k=v&&i.get(v);return p&&(g.srcEvent.button=p),r.fire(f,g,k)}}function u(f){return Wc(f,"svg, .djs-element",!0)}o&&t.on("drag.move",function(f){var p=f.originalEvent;if(p&&!(p instanceof MouseEvent)){var g=qs(p),k=u(document.elementFromPoint(g.x,g.y)),E=k&&i.get(k);E!==f.hover&&(f.hover&&o.out(f),E&&(o.hover({element:E,gfx:k}),f.hover=E,f.hoverGfx=k))}}),s&&t.on("contextPad.create",function(f){var g=pE(f.pad.html);g.on("panstart",function(v){s.trigger("dragstart",v,!0)}),g.on("press",function(v){s.trigger("dragstart",v,!0)}),g.on("tap",function(v){s.trigger("click",v)})}),c&&t.on("palette.create",function(f){var g=pE(f.container);g.on("panstart",function(v){c.trigger("dragstart",v,!0)}),g.on("press",function(v){c.trigger("dragstart",v,!0)}),g.on("tap",function(v){c.trigger("click",v)})}),t.on("canvas.init",function(f){!function h(f){function g(k){var E=u(k.target),C=E&&i.get(E);if(a&&n.getRootElement()!==C)return a.start(k,C,!0);!function p(k){var E=0,C=0;function x(P){n.scroll({dx:P.deltaX-E,dy:P.deltaY-C}),E=P.deltaX,C=P.deltaY}function D(P){l.off("panmove",x),l.off("panend",D),l.off("pancancel",D)}l.on("panmove",x),l.on("panend",D),l.on("pancancel",D)}()}(l=pE(f)).on("tap",d("element.click")),l.on("doubletap",d("element.dblclick",1)),l.on("panstart",g),l.on("press",g),l.on("pinchstart",function v(k){var E=n.zoom(),C=k.center;function x(P){var F=Math.max(.2,Math.min(4,(1-(1-P.scale)/1.5)*E));n.zoom(F,C),fE(P)}function D(P){l.off("pinchmove",x),l.off("pinchend",D),l.off("pinchcancel",D),l.reset(!0)}l.on("pinchmove",x),l.on("pinchend",D),l.on("pinchcancel",D)})}(f.svg)})}function mE(e,n){var t=this;n.on("canvas.init",function(i){t.addBBoxMarker(i.svg)})}ZF.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],mE.$inject=["canvas","eventBus"],mE.prototype.addBBoxMarker=function(e){var n={fill:"none",class:"outer-bound-marker"},t=qe("rect");ge(t,{x:-1e4,y:1e4,width:10,height:10}),ge(t,n),Ze(e,t);var i=qe("rect");ge(i,{x:1e4,y:1e4,width:10,height:10}),ge(i,n),Ze(e,i)};const Dre={__depends__:[{__depends__:[Tf],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",ZF],touchFix:["type",mE]}]};function gE(e){return e&&e[e.length-1]}function QF(e){return e.y}function JF(e){return e.x}var kre={left:JF,center:JF,right:function(e){return e.x+e.width},top:QF,middle:QF,bottom:function(e){return e.y+e.height}};function su(e){this._modeling=e}su.$inject=["modeling"],su.prototype._getOrientationDetails=function(e){var t="x",i="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",i="height"),{axis:t,dimension:i}},su.prototype._isType=function(e,n){return-1!==n.indexOf(e)},su.prototype._alignmentPosition=function(e,n){var c,l,d,t=this._getOrientationDetails(e),i=t.axis,r=t.dimension,o={},a={},s=!1;if(this._isType(e,["left","top"]))o[e]=n[0][i];else if(this._isType(e,["right","bottom"]))d=gE(n),o[e]=d[i]+d[r];else if(this._isType(e,["center","middle"])){if(R(n,function(h){var f=h[i]+Math.round(h[r]/2);a[f]?a[f].elements.push(h):a[f]={elements:[h],center:f}}),c=Ho(a,function(h){return h.elements.length>1&&(s=!0),h.elements.length}),s)return o[e]=gE(c).center,o;l=n[0],d=gE(n=Ho(n,function(h){return h[i]+h[r]})),o[e]=function u(h,f){return Math.round((h[i]+f[i]+f[r])/2)}(l,d)}return o},su.prototype.trigger=function(e,n){var t=this._modeling,i=St(e,function(s){return!(s.waypoints||s.host||s.labelTarget)});if(!(i.length<2)){var o=Ho(i,kre[n]),a=this._alignmentPosition(n,o);t.alignElements(o,a)}};const Tre={__init__:["alignElements"],alignElements:["type",su]};var Are=10,e4=50,Mre=250;function vE(e,n,t,i){for(var r;r=Ire(e,t,n);)t=i(n,t,r);return t}function _E(e){return function(n,t,i){var r={x:t.x,y:t.y};return["x","y"].forEach(function(o){var a=e[o];if(a){var s="x"===o?"width":"height",c=a.margin,l=a.minDistance;r[o]=c<0?Math.min(i[o]+c-n[s]/2,t[o]-l+c):Math.max(i[o]+i[s]+c+n[s]/2,t[o]+l+c)}}),r}}function Ire(e,n,t){var i={x:n.x-t.width/2,y:n.y-t.height/2,width:t.width,height:t.height},r=function Rre(e){var n=yE(e);return e.host&&(n=n.concat(yE(e.host))),e.attachers&&(n=n.concat(e.attachers.reduce(function(t,i){return t.concat(yE(i))},[]))),n}(e);return on(r,function(o){return o!==t&&"intersect"===Li(o,i,Are)})}function yE(e){return function Nre(e){return e.outgoing.map(function(n){return n.target})}(e).concat(function Pre(e){return e.incoming.map(function(n){return n.source})}(e))}function Fre(){return!0}function t4(e,n,t){e.on("autoPlace",100,function(i){return function Bre(e,n,t){t||(t={});var i=t.defaultDistance||e4,r=Mt(e);return{x:ot(e).right+i+n.width/2,y:r.y}}(i.source,i.shape)}),e.on("autoPlace.end",function(i){t.scrollToElement(i.shape)}),this.append=function(i,r,o){e.fire("autoPlace.start",{source:i,shape:r});var a=e.fire("autoPlace",{source:i,shape:r}),s=n.appendShape(i,r,a,i.parent,o);return e.fire("autoPlace.end",{source:i,shape:s}),s}}function n4(e,n){e.on("autoPlace.end",500,function(t){n.select(t.shape)})}t4.$inject=["eventBus","modeling","canvas"],n4.$inject=["eventBus","selection"];const Vre={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",t4],autoPlaceSelectionBehavior:["type",n4]};function i4(e,n){return b(n,"bpmn:TextAnnotation")?function Hre(e,n){var t=ot(e);return vE(e,n,{x:t.right+n.width/2,y:t.top-50-n.height/2},_E({y:{margin:-30,minDistance:20}}))}(e,n):Kt(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function $re(e,n){var t=ot(e);return vE(e,n,{x:t.right-10+n.width/2,y:t.bottom+40+n.width/2},_E({x:{margin:30,minDistance:30}}))}(e,n):b(n,"bpmn:FlowNode")?function jre(e,n){var t=ot(e),i=Mt(e),r=function Ore(e,n){n||(n={});var i=n.defaultDistance||e4,r=n.direction||"e",o=n.filter,a=n.getWeight||function t(p){return p.source===e?1:-1},s=n.maxDistance||Mre,c=n.reference||"start";function l(p,g){return"n"===r?"start"===c?ot(p).top-ot(g).bottom:"center"===c?ot(p).top-Mt(g).y:ot(p).top-ot(g).top:"w"===r?"start"===c?ot(p).left-ot(g).right:"center"===c?ot(p).left-Mt(g).x:ot(p).left-ot(g).left:"s"===r?"start"===c?ot(g).top-ot(p).bottom:"center"===c?Mt(g).y-ot(p).bottom:ot(g).bottom-ot(p).bottom:"start"===c?ot(g).left-ot(p).right:"center"===c?Mt(g).x-ot(p).right:ot(g).right-ot(p).right}o||(o=Fre);var d=e.incoming.filter(o).map(function(p){var g=a(p),v=g<0?l(p.source,e):l(e,p.source);return{id:p.source.id,distance:v,weight:g}}),u=e.outgoing.filter(o).map(function(p){var g=a(p),v=g>0?l(e,p.target):l(p.target,e);return{id:p.target.id,distance:v,weight:g}});return br(d.concat(u).reduce(function(p,g){return p[g.id+"__weight_"+g.weight]=g,p},{}),function(p,g){var v=g.distance,k=g.weight;return v<0||v>s||(p[String(v)]||(p[String(v)]=0),p[String(v)]+=1*k,(!p.distance||p[p.distance]n.top&&(t=t.concat("n")),e.rightn.left&&(t=t.concat("e")),t}(jr(n,["x","y","width","height"]),i);this.resize(n,i,{autoResize:r});var o=n.parent;o&&this._expand([n],o)}}},os.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},os.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},os.prototype.resize=function(e,n,t){this._modeling.resizeShape(e,n,null,t)},Zv.$inject=["injector"],Xe()(Zv,os),Zv.prototype.resize=function(e,n,t){b(e,"bpmn:Participant")?this._modeling.resizeLane(e,n,null,t):this._modeling.resizeShape(e,n,null,t)},Ea.$inject=["eventBus"],Xe()(Ea,Ve),Ea.prototype.addRule=function(e,n,t){var i=this;"string"==typeof e&&(e=[e]),e.forEach(function(r){i.canExecute(r,n,function(o,a,s){return t(o)},!0)})},Ea.prototype.init=function(){},Of.$inject=["eventBus"],Xe()(Of,Ea),Of.prototype.canResize=function(e,n){return!1},Xe()(Qv,Of),Qv.$inject=["eventBus","modeling"],Qv.prototype.canResize=function(e,n){if(!b(n,"bpmn:Participant")&&!b(n,"bpmn:Lane")&&!b(n,"bpmn:SubProcess"))return!1;var t=!0;return R(e,function(i){(b(i,"bpmn:Lane")||i.labelTarget)&&(t=!1)}),t};const Xre={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Zv],bpmnAutoResizeProvider:["type",Qv]};function a4(e,n,t){var a,s,i=this,r=t.get("dragging",!1);r&&n.on("drag.start",function(a){n.once("drag.move",1500,function(s){!function o(a){if(!a.hover){var s=a.originalEvent,c=i._findTargetGfx(s),l=c&&e.get(c);c&&l&&(a.stopPropagation(),r.hover({element:l,gfx:c}),r.move(s))}}(s)})}),n.on("element.hover",function(c){a=c.gfx,s=c.element}),n.on("element.hover",1500,function(c){s&&n.fire("element.out",{element:s,gfx:a})}),n.on("element.out",function(){a=null,s=null}),this._findTargetGfx=function(a){var s;if(a instanceof MouseEvent)return s=qs(a),function Zre(e){return Wc(e,"svg, .djs-element",!0)}(document.elementFromPoint(s.x,s.y))}}a4.$inject=["elementRegistry","eventBus","injector"];const Qre={__init__:["hoverFix"],hoverFix:["type",a4]};var cu=Math.round,s4="djs-drag-active";function Qc(e){e.preventDefault()}function c4(e,n,t,i){var o,r={threshold:5,trapClick:!0};function a(C){var x=n.viewbox(),D=n._container.getBoundingClientRect();return{x:x.x+(C.x-D.left)/x.scale,y:x.y+(C.y-D.top)/x.scale}}function s(C,x){var D=e.createEvent(I({},(x=x||o).payload,x.data,{isTouch:x.isTouch}));return!1!==e.fire("drag."+C,D)&&e.fire(x.prefix+"."+C,D)}function l(C,x){var D=o.payload,P=o.displacement,V=o.globalStart,F=qs(C),Q=xa(F,V),be=o.localStart,He=a(F),de=xa(He,be);if(!o.active&&(x||function eoe(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}(Q)>o.threshold)){if(I(D,{x:cu(be.x+P.x),y:cu(be.y+P.y),dx:0,dy:0},{originalEvent:C}),!1===s("start"))return v();o.active=!0,o.keepSelection||(D.previousSelection=t.get(),t.select(null)),o.cursor&&Kv(o.cursor),n.addMarker(n.getRootElement(),s4)}oE(C),o.active&&(I(D,{x:cu(He.x+P.x),y:cu(He.y+P.y),dx:cu(de.x),dy:cu(de.y)},{originalEvent:C}),s("move"))}function d(C){var D=!0;o.active&&(C&&(o.payload.originalEvent=C,oE(C)),D=s("end")),!1===D&&s("rejected"),s("ended",k(!0!==D))}function u(C){27===C.which&&(Qc(C),v())}function h(C){var x;o.active&&(x=UF(e),setTimeout(x,400),Qc(C)),d(C)}function f(C){l(C)}function p(C){var x=o.payload;x.hoverGfx=C.gfx,x.hover=C.element,s("hover")}function g(C){s("out");var x=o.payload;x.hoverGfx=null,x.hover=null}function v(C){var x;if(o){var D=o.active;D&&s("cancel"),x=k(C),D&&s("canceled",x)}}function k(C){var x,D;s("cleanup"),$F(),D=o.trapClick?h:d,ct.unbind(document,"mousemove",l),ct.unbind(document,"dragstart",Qc),ct.unbind(document,"selectstart",Qc),ct.unbind(document,"mousedown",D,!0),ct.unbind(document,"mouseup",D,!0),ct.unbind(document,"keyup",u),ct.unbind(document,"touchstart",f,!0),ct.unbind(document,"touchcancel",v,!0),ct.unbind(document,"touchmove",l,!0),ct.unbind(document,"touchend",d,!0),e.off("element.hover",p),e.off("element.out",g),n.removeMarker(n.getRootElement(),s4);var P=o.payload.previousSelection;return!1!==C&&P&&!t.get().length&&function c(C){var x=C.filter(function(D){return i.get(D.id)});x.length&&t.select(x)}(P),x=o,o=null,x}e.on("diagram.destroy",v),this.init=function E(C,x,D,P){o&&v(!1),"string"==typeof x&&(P=D,D=x,x=null);var F,Q,be,He,de,V=(P=I({},r,P||{})).data||{};He=P.trapClick?h:d,C?(F=iu(C)||C,Q=qs(C),oE(C),"dragstart"===F.type&&Qc(F)):(F=null,Q={x:0,y:0}),be=a(Q),x||(x=be),de=function Jre(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}(F),o=I({prefix:D,data:V,payload:{},globalStart:Q,displacement:xa(x,be),localStart:be,isTouch:de},P),P.manual||(de?(ct.bind(document,"touchstart",f,!0),ct.bind(document,"touchcancel",v,!0),ct.bind(document,"touchmove",l,!0),ct.bind(document,"touchend",d,!0)):(ct.bind(document,"mousemove",l),ct.bind(document,"dragstart",Qc),ct.bind(document,"selectstart",Qc),ct.bind(document,"mousedown",He,!0),ct.bind(document,"mouseup",He,!0)),ct.bind(document,"keyup",u),e.on("element.hover",p),e.on("element.out",g)),s("init"),P.autoActivate&&l(C,!0)},this.move=l,this.hover=p,this.out=g,this.end=d,this.cancel=v,this.context=function(){return o},this.setOptions=function(C){I(r,C)}}c4.$inject=["eventBus","canvas","selection","elementRegistry"];const as={__depends__:[Qre,ba],dragging:["type",c4]};function lu(e,n,t){this._canvas=t,this._opts=I({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;n.on("drag.move",function(r){var o=i._toBorderPoint(r);i.startScroll(o)}),n.on(["drag.cleanup"],function(){i.stopScroll()})}function toe(e,n,t){return nP-3&&(Q=Li(f.target,D),g===P-2?"intersect"===Q&&(C.pop(),C[C.length-1]=D):"intersect"!==Q&&C.push(k)),h.newWaypoints=f.waypoints=s(f,C),function l(u,h,f){var p=u.newWaypoints,x=function moe(e,n,t,i){var r=Math.max(n[i],t[i]),o=Math.min(n[i],t[i]);return kE(n,i,Math.min(Math.max(o+20,e[i]),r-20))}(f,p[u.segmentStartIndex+h],p[u.segmentEndIndex+h],C4(u.axis));sr(u.draggerGfx,x.x,x.y)}(h,V,u),h.newSegmentStartIndex=p+V,c(u)}),n.on("connectionSegment.move.hover",function(u){u.context.hover=u.hover,t.addMarker(u.hover,x4)}),n.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(u){var h=u.context.hover;h&&t.removeMarker(h,x4)}),n.on("connectionSegment.move.cleanup",function(u){var h=u.context,f=h.connection;h.draggerGfx&&ti(h.draggerGfx),t.removeMarker(f,w4)}),n.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(u){var h=u.context;h.connection.waypoints=h.originalWaypoints,c(u)}),n.on("connectionSegment.move.end",function(u){var h=u.context,f=h.connection,p=h.newWaypoints,g=h.newSegmentStartIndex,v=function d(u,h){var f=0;return{waypoints:u.filter(function(g,v){return!z1(u[v-1],u[v+1],g)||(f=v<=h?f-1:f,!1)}),segmentOffset:f}}(p=p.map(function(D){return{original:D.original,x:Math.round(D.x),y:Math.round(D.y)}}),g),E=s(f,v.waypoints);o.updateWaypoints(f,E,{segmentMove:{segmentStartIndex:h.segmentStartIndex,newSegmentStartIndex:g+v.segmentOffset}})})}D4.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var goe=Math.abs,k4=Math.round;function T4(e){return{x:e.x,y:e.y}}function A4(e){return{x:e.x+e.width,y:e.y+e.height}}function po(e,n){return!e||isNaN(e.x)||isNaN(e.y)?n:{x:k4(e.x+e.width/2),y:k4(e.y+e.height/2)}}function du(e,n){var t=e.snapped;return!!t&&("string"==typeof n?t[n]:t.x&&t.y)}function gi(e,n,t){if("string"!=typeof n)throw new Error("axis must be in [x, y]");if("number"!=typeof t&&!1!==t)throw new Error("value must be Number or false");var i,r=e[n],o=e.snapped=e.snapped||{};return!1===t?o[n]=!1:(o[n]=!0,e[n]+=i=t-r,e["d"+n]+=i),r}function M4(e){return e.children||[]}var _oe=Math.abs,I4=Math.round;function O4(e){function n(o,a){if(Lt(o)){for(var s=o.length;s--;)if(_oe(o[s]-a)<=10)return o[s]}else{var c=a%(o=+o);if(c<10)return a-c;if(c>o-10)return a-c+o}return a}function t(o){if(o.width)return{x:I4(o.width/2+o.x),y:I4(o.height/2+o.y)}}e.on("connectionSegment.move.move",1500,function(o){var d,u,s=function i(o){var a=o.snapPoints,s=o.connection,c=s.waypoints,d=o.segmentStartIndex,h=o.segmentEndIndex,f=o.axis;if(a)return a;var p=[c[d-1],o.segmentStart,o.segmentEnd,c[h+1]];return d<2&&p.unshift(t(s.source)),h>c.length-3&&p.unshift(t(s.target)),o.snapPoints=a={horizontal:[],vertical:[]},R(p,function(g){g&&(g=g.original||g,"y"===f&&a.horizontal.push(g.y),"x"===f&&a.vertical.push(g.x))}),a}(o.context),c=o.x,l=o.y;if(s){var h=c-(d=n(s.vertical,c)),f=l-(u=n(s.horizontal,l));I(o,{dx:o.dx-h,dy:o.dy-f,x:d,y:u}),(h||-1!==s.vertical.indexOf(c))&&gi(o,"x",d),(f||-1!==s.horizontal.indexOf(l))&&gi(o,"y",u)}}),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(o){var h,f,a=o.context,s=function r(o){var a=o.snapPoints,s=o.connection.waypoints,c=o.bendpointIndex;if(a)return a;var l=[s[c-1],s[c+1]];return o.snapPoints=a={horizontal:[],vertical:[]},R(l,function(d){d&&(a.horizontal.push((d=d.original||d).y),a.vertical.push(d.x))}),a}(a),c=a.hover,l=c&&t(c),d=o.x,u=o.y;if(s){var p=d-(h=n(l?s.vertical.concat([l.x]):s.vertical,d)),g=u-(f=n(l?s.horizontal.concat([l.y]):s.horizontal,u));I(o,{dx:o.dx-p,dy:o.dy-g,x:o.x-p,y:o.y-g}),(p||-1!==s.vertical.indexOf(d))&&gi(o,"x",h),(g||-1!==s.horizontal.indexOf(u))&&gi(o,"y",f)}})}O4.$inject=["eventBus"];const yoe={__depends__:[as,Ca],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",f4],bendpointMove:["type",DE],bendpointMovePreview:["type",b4],connectionSegmentMove:["type",D4],bendpointSnapping:["type",O4]};function R4(e,n,t,i){function r(a,s){return i.allowed("connection.create",{source:a,target:s})}e.on("connect.hover",function(a){var d,s=a.context,c=s.start,l=a.hover;if(s.hover=l,!bv(d=s.canExecute=r(c,l))){if(!1!==d)return s.source=c,void(s.target=l);d=s.canExecute=function o(a,s){return r(s,a)}(c,l),!bv(d)&&!1!==d&&(s.source=l,s.target=c)}}),e.on(["connect.out","connect.cleanup"],function(a){var s=a.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),e.on("connect.end",function(a){var s=a.context,c=s.canExecute,l=s.connectionStart,d={x:a.x,y:a.y},u=s.source,h=s.target;if(!c)return!1;var f=null,p={connectionStart:AE(s)?d:l,connectionEnd:AE(s)?l:d};si(c)&&(f=c),t.connect(u,h,f,p)}),this.start=function(a,s,c,l){si(c)||(l=c,c=Mt(s)),n.init(a,"connect",{autoActivate:l,data:{shape:s,context:{start:s,connectionStart:c}}})}}function AE(e){var n=e.hover,t=e.source;return n&&t&&n===t&&t!==e.target}R4.$inject=["eventBus","dragging","modeling","rules"];var P4="connect-ok",N4="connect-not-ok";function F4(e,n,t){var i=e.get("connectionPreview",!1);i&&n.on("connect.move",function(r){var o=r.context,a=o.canExecute,s=o.hover,c=o.source,l=o.start,u=o.target,h=o.connectionStart||o.startPosition,f=o.connectionEnd||{x:r.x,y:r.y},p=h,g=f;AE(o)&&(p=f,g=h),i.drawPreview(o,a,{source:c||l,target:u||s,connectionStart:p,connectionEnd:g})}),n.on("connect.hover",900,function(r){var s=r.context.canExecute;null!==s&&t.addMarker(r.hover,s?P4:N4)}),n.on(["connect.out","connect.cleanup"],1100,function(r){var o=r.hover;o&&(t.removeMarker(o,P4),t.removeMarker(o,N4))}),i&&n.on("connect.cleanup",function(r){i.cleanUp(r.context)})}F4.$inject=["injector","eventBus","canvas"];const ME={__depends__:[ba,Ca,as],__init__:["connectPreview"],connect:["type",R4],connectPreview:["type",F4]};function ss(e,n,t,i){this._canvas=n,this._graphicsFactory=t,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}ss.$inject=["injector","canvas","graphicsFactory","elementFactory"],ss.prototype.drawPreview=function(e,n,t){var f,i=e.connectionPreviewGfx,r=e.getConnection,o=(t=t||{}).source,a=t.target,s=t.waypoints,c=t.connectionStart,l=t.connectionEnd,d=t.noLayout,u=t.noCropping,h=t.noNoop,p=this;i||(i=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),O1(i),r||(r=e.getConnection=function Eoe(e){var n={};return function(t){var i=JSON.stringify(t),r=n[i];return r||(r=n[i]=e.apply(null,arguments)),r}}(function(g,v,k){return p.getConnection(g,v,k)})),n&&(f=r(n,o,a)),f?(f.waypoints=s||[],this._layouter&&!d&&(f.waypoints=this._layouter.layoutConnection(f,{source:o,target:a,connectionStart:c,connectionEnd:l,waypoints:t.waypoints||f.waypoints})),(!f.waypoints||!f.waypoints.length)&&(f.waypoints=[o?Mt(o):c,a?Mt(a):l]),this._connectionDocking&&(o||a)&&!u&&(f.waypoints=this._connectionDocking.getCroppedWaypoints(f,o,a)),this._graphicsFactory.drawConnection(i,f)):!h&&this.drawNoopPreview(i,t)},ss.prototype.drawNoopPreview=function(e,n){var t=n.source,i=n.target,r=n.connectionStart||Mt(t),o=n.connectionEnd||Mt(i),a=this.cropWaypoints(r,o,t,i);Ze(e,this.createNoopConnection(a[0],a[1]))},ss.prototype.cropWaypoints=function(e,n,t,i){var r=this._graphicsFactory,o=t&&r.getShapePath(t),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,n]});return[e=t&&U1(o,s,!0)||e,n=i&&U1(a,s,!1)||n]},ss.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&ti(e.connectionPreviewGfx)},ss.prototype.getConnection=function(e){var n=function Coe(e){return si(e)?e:{}}(e);return this._elementFactory.createConnection(n)},ss.prototype.createConnectionPreviewGfx=function(){var e=qe("g");return ge(e,{pointerEvents:"none"}),Pt(e).add("djs-connection-preview"),Ze(this._canvas.getActiveLayer(),e),e},ss.prototype.createNoopConnection=function(e,n){var t=qe("polyline");return ge(t,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),ge(t,{points:[e.x,e.y,n.x,n.y]}),t};const Soe={__init__:["connectionPreview"],connectionPreview:["type",ss]};var L4=Math.min,B4=Math.max;function IE(e){e.preventDefault()}function Nf(e){e.stopPropagation()}function Yo(e){this.container=e.container,this.parent=Dn('
'),this.content=Bn("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=Wi(this.autoResize,this),this.handlePaste=Wi(this.handlePaste,this)}function mo(e,n){this._eventBus=e,this._providers=[],this._textbox=new Yo({container:n.getContainer(),keyHandler:Wi(this._handleKey,this),resizeHandler:Wi(this._handleResize,this)})}Yo.prototype.create=function(e,n,t,i){var o=this.parent,a=this.content,s=this.container;i=this.options=i||{};var c=jr(n=this.style=n||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);I(o.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var l=jr(n,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return I(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),i.centerVertically&&I(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),a.innerText=t,ct.bind(a,"keydown",this.keyHandler),ct.bind(a,"mousedown",Nf),ct.bind(a,"paste",this.handlePaste),i.autoResize&&ct.bind(a,"input",this.autoResize),i.resizable&&this.resizable(n),s.appendChild(o),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),o},Yo.prototype.handlePaste=function(e){var i,n=this.options,t=this.style;if(e.preventDefault(),i=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(i),n.autoResize){var r=this.autoResize(t);r&&this.resizeHandler(r)}},Yo.prototype.insertText=function(e){e=function Toe(e){return e.replace(/\r\n|\r|\n/g,"\n")}(e),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Yo.prototype._insertTextIE=function(e){var c,l,n=this.getSelection(),t=n.startContainer,i=n.endContainer,r=n.startOffset,o=n.endOffset,a=n.commonAncestorContainer,s=function koe(e){return[].slice.call(e)}(a.childNodes);if(function Doe(e){return e.nodeType===Node.TEXT_NODE}(a)){var d=t.textContent;t.textContent=d.substring(0,r)+e+d.substring(o),c=t,l=r+e.length}else if(t===this.content&&i===this.content){var u=document.createTextNode(e);this.content.insertBefore(u,s[r]),c=u,l=u.textContent.length}else{var h=s.indexOf(t),f=s.indexOf(i);s.forEach(function(p,g){g===h?p.textContent=t.textContent.substring(0,r)+e+i.textContent.substring(o):g>h&&g<=f&&ga(p)}),c=t,l=r+e.length}c&&void 0!==l&&setTimeout(function(){self.setSelection(c,l)})},Yo.prototype.autoResize=function(){var e=this.parent,n=this.content,t=parseInt(this.style.fontSize)||12;if(n.scrollHeight>e.offsetHeight||n.scrollHeight
');var s,c,l,d,h=function(p){IE(p),Nf(p);var g=L4(B4(l+p.clientX-s,i),o),v=L4(B4(d+p.clientY-c,r),a);n.style.width=g+"px",n.style.height=v+"px",e.resizeHandler({width:l,height:d,dx:p.clientX-s,dy:p.clientY-c})},f=function(p){IE(p),Nf(p),ct.unbind(document,"mousemove",h,!1),ct.unbind(document,"mouseup",f,!1)};ct.bind(t,"mousedown",function(p){IE(p),Nf(p),s=p.clientX,c=p.clientY;var g=n.getBoundingClientRect();l=g.width,d=g.height,ct.bind(document,"mousemove",h),ct.bind(document,"mouseup",f)})}I(t.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),n.appendChild(t)},Yo.prototype.destroy=function(){var e=this.parent,n=this.content,t=this.resizeHandle;n.innerText="",e.removeAttribute("style"),n.removeAttribute("style"),ct.unbind(n,"keydown",this.keyHandler),ct.unbind(n,"mousedown",Nf),ct.unbind(n,"input",this.autoResize),ct.unbind(n,"paste",this.handlePaste),t&&(t.removeAttribute("style"),ga(t)),ga(e)},Yo.prototype.getValue=function(){return this.content.innerText.trim()},Yo.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Yo.prototype.setSelection=function(e,n){var t=document.createRange();null===e?t.selectNodeContents(this.content):(t.setStart(e,n),t.setEnd(e,n));var i=window.getSelection();i.removeAllRanges(),i.addRange(t)},mo.$inject=["eventBus","canvas"],mo.prototype.registerProvider=function(e){this._providers.push(e)},mo.prototype.isActive=function(e){return!(!this._active||e&&this._active.element!==e)},mo.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},mo.prototype._fire=function(e,n){this._eventBus.fire("directEditing."+e,n||{active:this._active})},mo.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},mo.prototype.complete=function(){var e=this._active;if(e){var n,t=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();(r!==e.context.text||i.height!==t.height||i.width!==t.width)&&(n=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-n.left,y:i.top-n.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},mo.prototype.getValue=function(){return this._textbox.getValue()},mo.prototype._handleKey=function(e){e.stopPropagation();var n=e.keyCode||e.charCode;return 27===n?(e.preventDefault(),this.cancel()):13!==n||e.shiftKey?void 0:(e.preventDefault(),this.complete())},mo.prototype._handleResize=function(e){this._fire("resize",e)},mo.prototype.activate=function(e){this.isActive()&&this.cancel();var n,t=on(this._providers,function(i){return(n=i.activate(e))?i:null});return n&&(this.$textbox=this._textbox.create(n.bounds,n.style,n.text,n.options),this._active={element:e,context:n,provider:t},n.options&&n.options.resizable&&(this.resizable=!0),this._fire("activate")),!!n};const OE={__depends__:[Tf],__init__:["directEditing"],directEditing:["type",mo]};function go(e,n,t){this._eventBus=n,this._overlays=t;var i=zo(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}go.$inject=["config.contextPad","eventBus","overlays"],go.prototype._init=function(){var e=this._eventBus,n=this;e.on("selection.changed",function(t){var i=t.newSelection;1===i.length?n.open(i[0]):n.close()}),e.on("elements.delete",function(t){R(t.elements,function(r){n.isOpen(r)&&n.close()})}),e.on("element.changed",function(t){var i=t.element,r=n._current;r&&r.element===i&&n.open(i,!0)})},go.prototype.registerProvider=function(e,n){n||(n=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,function(t){t.providers.push(n)})},go.prototype.getEntries=function(e){var n=this._getProviders(),t={};return R(n,function(i){var r=i.getContextPadEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}),t},go.prototype.trigger=function(e,n,t){var o,a,s,i=this._current.element,r=this._current.entries,c=n.delegateTarget||n.target;if(!c)return n.preventDefault();if(o=r[zr(c,"data-action")],s=n.originalEvent||n,Gi(a=o.action)){if("click"===e)return a(s,i,t)}else if(a[e])return a[e](s,i,t);n.preventDefault()},go.prototype.open=function(e,n){!n&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},go.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},go.prototype._updateAndOpen=function(e){var n=this.getEntries(e),t=this.getPad(e),i=t.html;R(n,function(r,o){var c,a=r.group||"default",s=Dn(r.html||'
');zr(s,"data-action",o),(c=Bn("[data-group="+a+"]",i))||(c=Dn('
'),i.appendChild(c)),c.appendChild(s),r.className&&function Moe(e,n){var t=fi(e);(Lt(n)?n:n.split(/\s+/g)).forEach(function(r){t.add(r)})}(s,r.className),r.title&&zr(s,"title",r.title),r.imageUrl&&s.appendChild(Dn(''))}),fi(i).add("open"),this._current={element:e,pad:t,entries:n},this._eventBus.fire("contextPad.open",{current:this._current})},go.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var n=this,t=this._overlays,i=Dn('
'),r=I({html:i},this._overlaysConfig);Hr.bind(i,".entry","click",function(a){n.trigger("click",a)}),Hr.bind(i,".entry","dragstart",function(a){n.trigger("dragstart",a)}),ct.bind(i,"mousedown",function(a){a.stopPropagation()}),this._overlayId=t.add(e,"context-pad",r);var o=t.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:o}),o},go.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},go.prototype.isOpen=function(e){return!(!this._current||e&&this._current.element!==e)};const RE={__depends__:[Tf,cE],contextPad:["type",go]};var Ioe=["marker-start","marker-mid","marker-end"],Ooe=["circle","ellipse","line","path","polygon","polyline","rect"];function tl(e,n,t,i){this._elementRegistry=e,this._canvas=t,this._styles=i,this._clonedMarkers={};var r=this;n.on("drag.cleanup",function(){R(r._clonedMarkers,function(o){ti(o)}),r._clonedMarkers={}})}tl.$inject=["elementRegistry","eventBus","canvas","styles"],tl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},tl.prototype.addDragger=function(e,n,t){var i=CN(t=t||this.getGfx(e)),r=t.getBoundingClientRect();return this._cloneMarkers(Rv(i)),ge(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),Ze(n,i),i},tl.prototype.addFrame=function(e,n){var t=qe("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Ze(n,t),t},tl.prototype._cloneMarkers=function(e){var n=this;if(e.childNodes)for(var t=0;t0,a=r&&pf(r)>0;return!o&&!a},ci.prototype.open=function(e,n,t){var i=this._getProviders(n);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+n);if(!t)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:n,element:e,position:t},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=I({},o,a),r.container=this._createContainer(),pf(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),pf(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var c=this._canvas.getContainer();this._attachContainer(r.container,c,t.cursor),this._bindAutoClose()},ci.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),ga(this._current.container),this._current.container=null)},ci.prototype.isOpen=function(){return!!this._current.container},ci.prototype.trigger=function(e){e.preventDefault();var t=zr(e.delegateTarget||e.target,q4),i=this._getEntry(t);if(i.action)return i.action.call(null,e,i)},ci.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(n),n.providers},ci.prototype._getEntries=function(e,n){var t={};return R(n,function(i){if(i.getPopupMenuEntries){var r=i.getPopupMenuEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}else R(i.getEntries(e),function(o){var a=o.id;if(!a)throw new Error("every entry must have the id property set");t[a]=zs(o,["id"])})}),t},ci.prototype._getHeaderEntries=function(e,n){var t={};return R(n,function(i){if(i.getPopupMenuHeaderEntries){var r=i.getPopupMenuHeaderEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}else{if(!i.getHeaderEntries)return;R(i.getHeaderEntries(e),function(o){var a=o.id;if(!a)throw new Error("every entry must have the id property set");t[a]=zs(o,["id"])})}}),t},ci.prototype._getEntry=function(e){var n=this._current.entries[e];if(!n)throw new Error("entry not found");return n},ci.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},ci.prototype._createContainer=function(){var e=Dn('
'),n=this._current.position,t=this._current.className;return I(e.style,{position:"absolute",left:n.x+"px",top:n.y+"px",visibility:"hidden"}),fi(e).add(t),e},ci.prototype._attachContainer=function(e,n,t){var i=this;Hr.bind(e,".entry","click",function(r){i.trigger(r)}),this._updateScale(e),n.appendChild(e),t&&this._assureIsInbounds(e,t)},ci.prototype._updateScale=function(e){var i,r,n=this._canvas.zoom(),t=this._config.scale,o=n;!0!==t&&(!1===t?(i=1,r=1):(i=t.min,r=t.max),zo(i)&&nr&&(o=r)),function Hoe(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(t){e.style[t+"transform"]=n})}(e,"scale("+o+")")},ci.prototype._assureIsInbounds=function(e,n){var l,d,i=this._canvas._container.getBoundingClientRect(),o=e.offsetTop,a=e.scrollWidth,s=e.scrollHeight,c={},u_x=n.x-i.left,u_y=n.y-i.top;e.offsetLeft+a>i.width&&(c.x=!0),o+s>i.height&&(c.y=!0),c.x&&c.y?(l=u_x-a+"px",d=u_y-s+"px"):c.x?(l=u_x-a+"px",d=u_y+"px"):c.y&&u_y"),i=this;return fi(t).add(n),R(e,function(r,o){var a=i._createEntry(r,o);t.appendChild(a)}),t},ci.prototype._createEntry=function(e,n){var t=Dn("
"),i=fi(t);if(i.add("entry"),e.className&&e.className.split(" ").forEach(function(o){i.add(o)}),zr(t,q4,n),e.label){var r=Dn("");r.textContent=e.label,t.appendChild(r)}return e.imageUrl&&t.appendChild(Dn('')),!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(t.title=e.title),t},ci.prototype._bindAutoClose=function(){this._eventBus.once(K4,this.close,this)},ci.prototype._unbindAutoClose=function(){this._eventBus.off(K4,this.close,this)};const $oe={__init__:["popupMenu"],popupMenu:["type",ci]};function Bf(){}Bf.prototype.get=function(){return this._data},Bf.prototype.set=function(e){this._data=e},Bf.prototype.clear=function(){var e=this._data;return delete this._data,e},Bf.prototype.isEmpty=function(){return!this._data};const Uoe={clipboard:["type",Bf]};function PE(e){var n=this;function t(i){n._lastMoveEvent=i}this._lastMoveEvent=null,e.on("canvas.init",function(i){(n._svg=i.svg).addEventListener("mousemove",t)}),e.on("canvas.destroy",function(){n._lastMouseEvent=null,n._svg.removeEventListener("mousemove",t)})}PE.$inject=["eventBus"],PE.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function Goe(e,n){var t=document.createEvent("MouseEvent");return t.initMouseEvent&&t.initMouseEvent("mousemove",!0,!0,window,0,e,n,e,n,!1,!1,!1,!1,0,null),t}(0,0)};const Vf={__init__:["mouse"],mouse:["type",PE]};function qo(e,n,t,i,r,o,a,s){this._canvas=e,this._create=n,this._clipboard=t,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",function(c){var l=c.descriptor,d=c.element,u=c.elements;l.priority=1,l.id=d.id,on(u,function(f){return f===d.parent})&&(l.parent=d.parent.id),function Woe(e){return!!e.host}(d)&&(l.priority=2,l.host=d.host.id),n_(d)&&(l.priority=3,l.source=d.source.id,l.target=d.target.id,l.waypoints=function Yoe(e){return Ti(e.waypoints,function(n){return(n=X4(n)).original&&(n.original=X4(n.original)),n})}(d)),i_(d)&&(l.priority=4,l.labelTarget=d.labelTarget.id),R(["x","y","width","height"],function(f){yt(d[f])&&(l[f]=d[f])}),l.hidden=d.hidden,l.collapsed=d.collapsed}),r.on("copyPaste.pasteElements",function(c){I(c.hints,{createElementsBehavior:!1})})}function n_(e){return!!e.waypoints}function i_(e){return!!e.labelTarget}function X4(e){return I({},e)}function Z4(e,n){var t=n.indexOf(e);return-1===t?n:n.splice(t,1)}qo.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],qo.prototype.copy=function(e){var n,t;return Lt(e)||(e=e?[e]:[]),t=!1===(n=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(Lt(n)?n:e),this._clipboard.set(t),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:t}),t},qo.prototype.paste=function(e){var n=this._clipboard.get();if(!this._clipboard.isEmpty()){var t=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:t});var i=this._createElements(n);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,t);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:t||{}})}},qo.prototype._paste=function(e,n,t,i){R(e,function(o){yt(o.x)||(o.x=0),yt(o.y)||(o.y=0)});var r=Fi(e);return R(e,function(o){n_(o)&&(o.waypoints=Ti(o.waypoints,function(a){return{x:a.x-r.x-r.width/2,y:a.y-r.y-r.height/2}})),I(o,{x:o.x-r.x-r.width/2,y:o.y-r.y-r.height/2})}),this._modeling.createElements(e,t,n,I({},i))},qo.prototype._createElements=function(e){var n=this,t=this._eventBus,i={},r=[];return R(e,function(o,a){a=parseInt(a,10),R(o=Ho(o,"priority"),function(s){var l,c=I({},zs(s,["priority"]));return i[s.parent]?c.parent=i[s.parent]:delete c.parent,t.fire("copyPaste.pasteElement",{cache:i,descriptor:c}),n_(c)?(c.source=i[s.source],c.target=i[s.target],l=i[s.id]=n.createConnection(c),void r.push(l)):i_(c)?(c.labelTarget=i[c.labelTarget],l=i[s.id]=n.createLabel(c),void r.push(l)):(c.host&&(c.host=i[c.host]),l=i[s.id]=n.createShape(c),void r.push(l))})}),r},qo.prototype.createConnection=function(e){return this._elementFactory.createConnection(zs(e,["id"]))},qo.prototype.createLabel=function(e){return this._elementFactory.createLabel(zs(e,["id"]))},qo.prototype.createShape=function(e){return this._elementFactory.createShape(zs(e,["id"]))},qo.prototype.hasRelations=function(e,n){var t,i,r;return!(n_(e)&&(i=on(n,$o({id:e.source.id})),r=on(n,$o({id:e.target.id})),!i||!r)||i_(e)&&(t=on(n,$o({id:e.labelTarget.id})),!t))},qo.prototype.createTree=function(e){var n=this._rules,t=this,i={},r=[];function s(l,d){var u=on(r,function(h){return l===h.element});u?u.depth=120&&I(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:d("Divide into two Lanes"),action:{click:k(2)}}}),e.height>=180&&I(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:d("Divide into three Lanes"),action:{click:k(3)}}})),I(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:d("Add Lane below"),action:{click:function(x,D){t.addLane(D,"bottom")}}}})}b(h,"bpmn:FlowNode")&&(b(h,"bpmn:EventBasedGateway")?I(u,{"append.receive-task":v("bpmn:ReceiveTask","bpmn-icon-receive-task",d("Append ReceiveTask")),"append.message-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",d("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",d("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",d("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",d("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):lL(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?I(u,{"append.compensation-activity":v("bpmn:Task","bpmn-icon-task",d("Append compensation activity"),{isForCompensation:!0})}):!b(h,"bpmn:EndEvent")&&!h.isForCompensation&&!lL(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!Gr(h)&&I(u,{"append.end-event":v("bpmn:EndEvent","bpmn-icon-end-event-none",d("Append EndEvent")),"append.gateway":v("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",d("Append Gateway")),"append.append-task":v("bpmn:Task","bpmn-icon-task",d("Append Task")),"append.intermediate-event":v("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",d("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||I(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:d("Change type"),action:{click:function(x,D){var P=I(function g(x){var P=s.getContainer(),V=n.getPad(x).html,F=P.getBoundingClientRect(),Q=V.getBoundingClientRect();return{x:Q.left-F.left,y:Q.top-F.top+Q.height+5}}(D),{cursor:{x:x.x,y:x.y}});a.open(D,"bpmn-replace",P)}}}}),Kt(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:f,dragstart:f}}}),b(h,"bpmn:TextAnnotation")&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using Association"),action:{click:f,dragstart:f}}}),Kt(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using DataInputAssociation"),action:{click:f,dragstart:f}}}),b(h,"bpmn:Group")&&I(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var C=c.allowed("elements.delete",{elements:[e]});return Lt(C)&&(C=C[0]===e),C&&I(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:d("Remove"),action:{click:function p(x){t.removeElements([e])}}}}),u};const Tae={__depends__:[OE,RE,ba,ME,uu,LE],__init__:["contextPadProvider"],contextPadProvider:["type",Hf]};var Aae={horizontal:["x","width"],vertical:["y","height"]};function cs(e){this._modeling=e,this._filters=[],this.registerFilter(function(n,t,i){var a,r=0,o=0;return R(n,function(s){s.waypoints||s.labelTarget||(r+=s[i],o+=1)}),a=Math.round(r/o),St(n,function(s){return s[i]=Math.min(n.min,n.max)&&Math.min(e.min,e.max)<=Math.max(n.min,n.max)},cs.prototype._findRange=function(e){var n=e[this._axis];return{min:n+5,max:n+e[this._dimension]-5}};const Mae={__init__:["distributeElements"],distributeElements:["type",cs]};function uL(e){e.registerFilter(function(n){return St(n,function(t){var i=Kt(t,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(t.labelTarget||i)})})}uL.$inject=["distributeElements"];const Iae={__depends__:[Mae],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",uL]};var hL="is not a registered action";function _o(e,n){this._actions={};var t=this;e.on("diagram.init",function(){t._registerDefaultActions(n),e.fire("editorActions.init",{editorActions:t})})}function BE(e,n){return new Error(e+" "+n)}_o.$inject=["eventBus","injector"],_o.prototype._registerDefaultActions=function(e){var n=e.get("commandStack",!1),t=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),c=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);n&&(this.register("undo",function(){n.undo()}),this.register("redo",function(){n.redo()})),o&&i&&this.register("copy",function(){var d=i.get();o.copy(d)}),o&&this.register("paste",function(){o.paste()}),r&&this.register("stepZoom",function(d){r.stepZoom(d.value)}),a&&this.register("zoom",function(d){a.zoom(d.value)}),t&&i&&s&&this.register("removeSelection",function(){var d=i.get();if(d.length){var h,u=s.allowed("elements.delete",{elements:d});!1!==u&&(h=Lt(u)?u:d).length&&t.removeElements(h.slice())}}),c&&this.register("moveCanvas",function(d){c.moveCanvas(d)}),l&&this.register("moveSelection",function(d){l.moveSelection(d.direction,d.accelerated)})},_o.prototype.trigger=function(e,n){if(!this._actions[e])throw BE(e,hL);return this._actions[e](n)},_o.prototype.register=function(e,n){var t=this;if("string"==typeof e)return this._registerAction(e,n);R(e,function(i,r){t._registerAction(r,i)})},_o.prototype._registerAction=function(e,n){if(this.isRegistered(e))throw BE(e,"is already registered");this._actions[e]=n},_o.prototype.unregister=function(e){if(!this.isRegistered(e))throw BE(e,hL);this._actions[e]=void 0},_o.prototype.getActions=function(){return Object.keys(this._actions)},_o.prototype.isRegistered=function(e){return!!this._actions[e]};const Rae={__init__:["editorActions"],editorActions:["type",_o]};function h_(e){e.invoke(_o,this)}Xe()(h_,_o),h_.$inject=["injector"],h_.prototype._registerDefaultActions=function(e){_o.prototype._registerDefaultActions.call(this,e);var n=e.get("canvas",!1),t=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),c=e.get("distributeElements",!1),l=e.get("alignElements",!1),d=e.get("directEditing",!1),u=e.get("searchPad",!1),h=e.get("modeling",!1);n&&t&&i&&this._registerAction("selectElements",function(){var f=n.getRootElement(),p=t.filter(function(g){return g!==f});return i.select(p),p}),r&&this._registerAction("spaceTool",function(){r.toggle()}),o&&this._registerAction("lassoTool",function(){o.toggle()}),a&&this._registerAction("handTool",function(){a.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),i&&c&&this._registerAction("distributeElements",function(f){var p=i.get();p.length&&c.trigger(p,f.type)}),i&&l&&this._registerAction("alignElements",function(f){var p=i.get(),g=[],v=f.type;p.length&&(g=St(p,function(k){return!b(k,"bpmn:Lane")}),l.trigger(g,v))}),i&&h&&this._registerAction("setColor",function(f){var p=i.get();p.length&&h.setColor(p,f)}),i&&d&&this._registerAction("directEditing",function(){var f=i.get();f.length&&d.activate(f[0])}),u&&this._registerAction("find",function(){u.toggle()}),n&&h&&this._registerAction("moveToOrigin",function(){var p,g,f=n.getRootElement();p=Fi(g=b(f,"bpmn:Collaboration")?t.filter(function(v){return b(v.parent,"bpmn:Collaboration")}):t.filter(function(v){return v!==f&&!b(v.parent,"bpmn:SubProcess")})),h.moveElements(g,{x:-p.x,y:-p.y},f)})};const Pae={__depends__:[Rae],editorActions:["type",h_]};function fL(e){e.on(["create.init","shape.move.init"],function(n){var t=n.context;Kt(n.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")})}function VE(e,n,t){return t||(t="round"),Math[t](e/n)*n}function Zs(e,n,t){var i=!t||!1!==t.active;this._eventBus=n;var r=this;n.on("diagram.init",800,function(){r.setActive(i)}),n.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,function(o){var a=o.originalEvent;if(!(!r.active||a&&Wr(a))){var s=o.context,c=s.gridSnappingContext;c||(c=s.gridSnappingContext={}),["x","y"].forEach(function(l){var d={},u=function Bae(e,n,t){var r=e.shape,o=e.context.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;return s&&yt(s[n])||(s||(s=o.snapOffset={}),yt(s[n])||(s[n]=0),!r)||(t.get(r.id)||(p_(n)?s[n]+=r[n]+r.width/2:s[n]+=r[n]+r.height/2),!a)||("x"===n?/left/.test(a)?s[n]-=r.width/2:/right/.test(a)&&(s[n]+=r.width/2):/top/.test(a)?s[n]-=r.height/2:/bottom/.test(a)&&(s[n]+=r.height/2)),s[n]}(o,l,e);u&&(d.offset=u);var h=function Lae(e,n){var t=e.context,i=t.createConstraints,r=t.resizeConstraints||{},o=t.gridSnappingContext,a=o.snapConstraints;if(a&&a[n])return a[n];a||(a=o.snapConstraints={}),a[n]||(a[n]={});var s=t.direction;i&&(p_(n)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var c=r.min,l=r.max;return c&&(p_(n)?mL(s)?a.x.max=c.left:a.x.min=c.right:pL(s)?a.y.max=c.top:a.y.min=c.bottom),l&&(p_(n)?mL(s)?a.x.min=l.left:a.x.max=l.right:pL(s)?a.y.min=l.top:a.y.max=l.bottom),a[n]}(o,l);h&&I(d,h),du(o,l)||r.snapEvent(o,l,d)})}})}function p_(e){return"x"===e}function pL(e){return-1!==e.indexOf("n")}function mL(e){return-1!==e.indexOf("w")}function il(e,n){Ve.call(this,e),this._gridSnapping=n;var t=this;this.preExecute("shape.resize",function(i){var r=i.context,a=(r.hints||{}).autoResize;if(a){var s=r.shape,c=r.newBounds;r.newBounds=Vr(a)?t.snapComplex(c,a):t.snapSimple(s,c)}})}function gL(e,n){e.on(["spaceTool.move","spaceTool.end"],2e3,function(t){var o,i=t.context;i.initialized&&("x"===i.axis?(o=n.snapValue(t.dx),t.x=t.x+o-t.dx,t.dx=o):(o=n.snapValue(t.dy),t.y=t.y+o-t.dy,t.dy=o))})}fL.$inject=["eventBus"],Zs.prototype.snapEvent=function(e,n,t){gi(e,n,this.snapValue(e[n],t))},Zs.prototype.getGridSpacing=function(){return 10},Zs.prototype.snapValue=function(e,n){var i,r,t=0;return n&&n.offset&&(t=n.offset),e=VE(e+=t,10),n&&n.min&&yt(i=n.min)&&(i=VE(i+t,10,"ceil"),e=Math.max(e,i)),n&&n.max&&yt(r=n.max)&&(r=VE(r+t,10,"floor"),e=Math.min(e,r)),e-t},Zs.prototype.isActive=function(){return this.active},Zs.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},Zs.prototype.toggleActive=function(){this.setActive(!this.active)},Zs.$inject=["elementRegistry","eventBus","config.gridSnapping"],il.$inject=["eventBus","gridSnapping","modeling"],Xe()(il,Ve),il.prototype.snapSimple=function(e,n){var t=this._gridSnapping;return n.width=t.snapValue(n.width,{min:n.width}),n.height=t.snapValue(n.height,{min:n.height}),n.x=e.x+e.width/2-n.width/2,n.y=e.y+e.height/2-n.height/2,n},il.prototype.snapComplex=function(e,n){return/w|e/.test(n)&&(e=this.snapHorizontally(e,n)),/n|s/.test(n)&&(e=this.snapVertically(e,n)),e},il.prototype.snapHorizontally=function(e,n){var t=this._gridSnapping,i=/w/.test(n),r=/e/.test(n),o={};return o.width=t.snapValue(e.width,{min:e.width}),r&&(i?(o.x=t.snapValue(e.x,{max:e.x}),o.width+=t.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),I(e,o),e},il.prototype.snapVertically=function(e,n){var t=this._gridSnapping,i=/n/.test(n),r=/s/.test(n),o={};return o.height=t.snapValue(e.height,{min:e.height}),i&&(r?(o.y=t.snapValue(e.y,{max:e.y}),o.height+=t.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),I(e,o),e},gL.$inject=["eventBus","gridSnapping"];const jae={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",il],gridSnappingSpaceToolBehavior:["type",gL]}],__init__:["gridSnapping"],gridSnapping:["type",Zs]};function vL(e,n){e.on("autoPlace",2e3,function(t){var i=t.source,r=Mt(i),o=t.shape,a=i4(i,o);return["x","y"].forEach(function(s){var c={};a[s]!==r[s]&&(a[s]>r[s]?c.min=a[s]:c.max=a[s],b(o,"bpmn:TextAnnotation")&&(c.offset=function Hae(e){return"x"===e}(s)?-o.width/2:-o.height/2),a[s]=n.snapValue(a[s],c))}),a})}function _L(e,n,t){n.on(["create.start","shape.move.start"],1750,function(i){var r=i.context,o=r.shape,a=e.getRootElement();b(o,"bpmn:Participant")&&b(a,"bpmn:Process")&&a.children.length&&r.createConstraints&&(o.width=t.snapValue(o.width,{min:o.width}),o.height=t.snapValue(o.height,{min:o.height}))})}function m_(e,n,t){Ve.call(this,e),this._gridSnapping=n;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,function(r){var o=r.context,a=o.connection,s=o.hints||{},c=a.waypoints;s.connectionStart||s.connectionEnd||!1===s.createElementsBehavior||function Gae(e){return e.length>3}(c)&&t.updateWaypoints(a,i.snapMiddleSegments(c))})}function qae(e,n,t){var i=ts(n,t),r={};return function Wae(e){return"h"===e}(i)&&(r.y=e.snapValue(n.y)),function Yae(e){return"v"===e}(i)&&(r.x=e.snapValue(n.x)),("x"in r||"y"in r)&&(n=I({},n,r),t=I({},t,r)),[n,t]}vL.$inject=["eventBus","gridSnapping"],_L.$inject=["canvas","eventBus","gridSnapping"],m_.$inject=["eventBus","gridSnapping","modeling"],Xe()(m_,Ve),m_.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i5&&ge(c,{x:s.x,width:s.width}),s.height>5&&ge(c,{y:s.y,height:s.height}),o.canExecute?Pt(c).remove(TL):Pt(c).add(TL)}(o.context)}),e.on("resize.cleanup",function(o){!function r(o){var a=o.shape;o.frame&&ti(o.frame),n.removeMarker(a,kL)}(o.context)})}AL.$inject=["eventBus","canvas","previewSupport"];var Gf="djs-resizer",cse=["n","w","s","e","nw","ne","se","sw"];function Qs(e,n,t,i){this._resize=i,this._canvas=n;var r=this;e.on("selection.changed",function(o){var a=o.newSelection;r.removeResizers(),1===a.length&&R(a,Wi(r.addResizer,r))}),e.on("shape.changed",function(o){var a=o.element;t.isSelected(a)&&(r.removeResizers(),r.addResizer(a))})}Qs.prototype.makeDraggable=function(e,n,t){var i=this._resize;function r(o){Ks(o)&&i.activate(o,e,t)}ct.bind(n,"mousedown",r),ct.bind(n,"touchstart",r)},Qs.prototype._createResizer=function(e,n,t,i){var r=this._getResizersParent(),o=function lse(e){var n={x:0,y:0};return-1!==e.indexOf("e")?n.x=6:-1!==e.indexOf("w")&&(n.x=-6),-1!==e.indexOf("s")?n.y=6:-1!==e.indexOf("n")&&(n.y=-6),n}(i),a=qe("g");Pt(a).add(Gf),Pt(a).add(Gf+"-"+e.id),Pt(a).add(Gf+"-"+i),Ze(r,a);var s=qe("rect");ge(s,{x:-2+o.x,y:-2+o.y,width:4,height:4}),Pt(s).add(Gf+"-visual"),Ze(a,s);var c=qe("rect");return ge(c,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Pt(c).add(Gf+"-hit"),Ze(a,c),W1(a,n,t),a},Qs.prototype.createResizer=function(e,n){var t=DL(e,n),i=this._createResizer(e,t.x,t.y,n);this.makeDraggable(e,i,n)},Qs.prototype.addResizer=function(e){var n=this;this._resize.canResize({shape:e})&&R(cse,function(i){n.createResizer(e,i)})},Qs.prototype.removeResizers=function(){O1(this._getResizersParent())},Qs.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},Qs.$inject=["eventBus","canvas","selection","resize"];const b_={__depends__:[Ca,as,Ff],__init__:["resize","resizePreview","resizeHandles"],resize:["type",Uf],resizePreview:["type",AL],resizeHandles:["type",Qs]};function zE(e,n){var t=n.create("bpmn:CategoryValue"),i=n.create("bpmn:Category",{categoryValue:[t]});return Un(e.get("rootElements"),i),$e(i).$parent=e,$e(t).$parent=i,t}function Wf(e,n,t,i,r,o,a){function s(c,l){(l||Kt(c,["bpmn:Task","bpmn:TextAnnotation"])||HE(c))&&i.activate(c)}this._bpmnFactory=n,this._canvas=t,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",function(c){s(c.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open"],function(c){i.isActive()&&i.complete()}),e.on(["commandStack.changed"],function(c){i.isActive()&&i.cancel()}),e.on("directEditing.activate",function(c){o.removeResizers()}),e.on("create.end",500,function(c){var l=c.context;c.isTouch||c.context.canExecute&&(l.hints&&!1===l.hints.createElementsBehavior||s(l.shape))}),e.on("autoPlace.end",500,function(c){s(c.shape)})}function HE(e){return b(e,"bpmn:SubProcess")&&!ln(e)}Wf.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],Wf.prototype.activate=function(e){var n=Go(e);if(void 0!==n){var t={text:n};I(t,this.getEditingBBox(e));var r={};return(Kt(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||HE(e))&&I(r,{centerVertically:!0}),ya(e)&&I(r,{autoResize:!0}),b(e,"bpmn:TextAnnotation")&&I(r,{resizable:!0,autoResize:!0}),I(t,{options:r}),t}},Wf.prototype.getEditingBBox=function(e){var n=this._canvas,t=e.label||e,i=n.getAbsoluteBBox(t),r_x=i.x+i.width/2,r_y=i.y+i.height/2,o={x:i.x,y:i.y},a=n.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,d=c.lineHeight,u=s.fontSize*a,h=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(b(e,"bpmn:Lane")||function hse(e){return b(e,"bpmn:Participant")&&ln(e)}(e))&&(I(o,{width:i.height,height:30*a,x:i.x-i.height/2+15*a,y:r_y-30*a/2}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:"rotate(-90deg)"})),(Kt(e,["bpmn:Task","bpmn:CallActivity"])||function use(e){return b(e,"bpmn:Participant")&&!ln(e)}(e)||HE(e))&&(I(o,{width:i.width,height:i.height}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),function dse(e){return b(e,"bpmn:SubProcess")&&ln(e)}(e)&&(I(o,{width:i.width,x:i.x}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var p=90*a,g=7*a,v=4*a;if(t.labelTarget&&(I(o,{width:p,height:i.height+g+v,x:r_x-p/2,y:i.y-g}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})),ya(t)&&!tu(t)&&!mi(t)){var k=nu(e),E=n.getAbsoluteBBox({x:k.x,y:k.y,width:0,height:0}),C=l+g+v;I(o,{width:p,height:C,x:E.x-p/2,y:E.y-C/2}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})}return b(e,"bpmn:TextAnnotation")&&(I(o,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:u+"px",lineHeight:h})),{bounds:o,style:f}},Wf.prototype.update=function(e,n,t,i){var r,o;if(b(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),b(e,"bpmn:Group")&&!$e(e).categoryValueRef){var l=zE($e(this._canvas.getRootElement()).$parent,this._bpmnFactory);$e(e).categoryValueRef=l}(function fse(e){return!e||!e.trim()})(n)&&(n=null),this._modeling.updateLabel(e,n,r)};var ML="djs-element-hidden",IL="djs-label-hidden";function OL(e,n,t,i){var a,s,c,r=this,o=n.getDefaultLayer();e.on("directEditing.activate",function(l){var d=l.active;if(b(a=d.element.label||d.element,"bpmn:TextAnnotation")){s=n.getAbsoluteBBox(a),c=qe("g");var u=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:a.height,position:{mx:0,my:0}}),h=r.path=qe("path");ge(h,{d:u,strokeWidth:2,stroke:pse(a)}),Ze(c,h),Ze(o,c),sr(c,a.x,a.y)}b(a,"bpmn:TextAnnotation")||a.labelTarget?n.addMarker(a,ML):(b(a,"bpmn:Task")||b(a,"bpmn:CallActivity")||b(a,"bpmn:SubProcess")||b(a,"bpmn:Participant"))&&n.addMarker(a,IL)}),e.on("directEditing.resize",function(l){if(b(a,"bpmn:TextAnnotation")){var h=Math.max(a.height/s.height*(l.height+l.dy),0),f=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:h,position:{mx:0,my:0}});ge(r.path,{d:f})}}),e.on(["directEditing.complete","directEditing.cancel"],function(l){var d=l.active;d&&(n.removeMarker(d.element.label||d.element,ML),n.removeMarker(a,IL)),a=void 0,s=void 0,c&&(ti(c),c=void 0)})}function pse(e,n){return $e(e).di.get("stroke")||n||"black"}OL.$inject=["eventBus","canvas","elementRegistry","pathMap"];const mse={__depends__:[jE,b_,OE],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Wf],labelEditingPreview:["type",OL]};var $E=["top","bottom","left","right"];function UE(e,n){function t(r){if(tu(r)){var o=function _se(e){var n=Mt(e.label),i=RL(Mt(e),n);if(function yse(e){return-1!==$E.indexOf(e)}(i)){var r=function vse(e){var n=Mt(e),t=[].concat(e.incoming.map(function(i){return i.waypoints[i.waypoints.length-2]}),e.outgoing.map(function(i){return i.waypoints[1]})).map(function(i){return RL(n,i)});return t}(e);if(e.host){var o=function gse(e){var r,n=e.host,i=Li(Mt(e),n);r=i.indexOf("-")>=0?i.split("-"):[i];var o=$E.filter(function(a){return-1===r.indexOf(a)});return o}(e);r=r.concat(o)}var a=$E.filter(function(s){return-1===r.indexOf(s)});if(-1===a.indexOf(i))return a[0]}}(r);o&&function i(r,o){var a=Mt(r),s=r.label,c=Mt(s);if(s.parent){var d,l=ot(r);switch(o){case"top":d={x:a.x,y:l.top-10-s.height/2};break;case"left":d={x:l.left-10-s.width/2,y:a.y};break;case"bottom":d={x:a.x,y:l.bottom+10+s.height/2};break;case"right":d={x:l.right+10+s.width/2,y:a.y}}var u=xa(d,c);n.moveShape(s,u)}}(r,o)}}Ve.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(r){var o=r.context,a=o.connection,c=a.target;!1!==(o.hints||{}).createElementsBehavior&&(t(a.source),t(c))}),this.postExecuted(["label.create"],function(r){var o=r.context;!1!==(o.hints||{}).createElementsBehavior&&t(o.shape.labelTarget)}),this.postExecuted(["elements.create"],function(r){var o=r.context;!1!==(o.hints||{}).createElementsBehavior&&o.elements.forEach(function(c){t(c)})})}function RL(e,n){return Li(n,e,5)}function GE(e,n,t){Ve.call(this,e),this.preExecute("shape.append",function(i){var r=i.source,o=i.shape;i.position||(i.position=b(o,"bpmn:TextAnnotation")?{x:r.x+r.width/2+75,y:r.y-50-o.height/2}:{x:r.x+r.width+80+o.width/2,y:r.y+r.height/2})},!0)}function WE(e,n){e.invoke(Ve,this),this.postExecute("shape.move",function(t){var i=t.newParent,r=t.shape;R(St(r.incoming.concat(r.outgoing),function(a){return b(a,"bpmn:Association")}),function(a){n.moveConnection(a,{x:0,y:0},i)})},!0)}function w_(e,n){n.invoke(Ve,this),this._bpmnReplace=e;var t=this;this.postExecuted("elements.create",500,function(i){var r=i.elements;1===(r=r.filter(function(o){return NL(o,o.host)})).length&&r.map(function(o){return r.indexOf(o)}).forEach(function(o){i.elements[o]=t.replaceShape(r[o],r[o])})},!0),this.preExecute("elements.move",500,function(i){var r=i.shapes,o=i.newHost;if(1===r.length){var a=r[0];NL(a,o)&&(i.shapes=[t.replaceShape(a,o)])}},!0)}function NL(e,n){return!mi(e)&&Kt(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!n}function YE(e,n,t){function i(r){return St(r.attachers,function(o){return b(o,"bpmn:BoundaryEvent")})}Ve.call(this,e),this.postExecute("connection.create",function(r){var o=r.context.source,a=r.context.target,s=i(a);b(o,"bpmn:EventBasedGateway")&&b(a,"bpmn:ReceiveTask")&&s.length>0&&t.removeElements(s)}),this.postExecute("connection.reconnect",function(r){var a=r.context.newSource;b(r.context.oldSource,"bpmn:Gateway")&&b(a,"bpmn:EventBasedGateway")&&R(a.outgoing,function(s){var c=s.target,l=i(c);b(c,"bpmn:ReceiveTask")&&l.length>0&&t.removeElements(l)})}),e.on("moddleCopy.canCopyProperty",2e3,function(r){var o=r.parent,a=r.property,s=r.propertyName,c=n.getPropertyDescriptor(o,s);c&&c.isReference&&b(a,"bpmn:RootElement")&&o.set(s,a)})}function qE(e,n,t,i,r){function o(d){return Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"])||function Ese(e,n){return Lt(n)||(n=[n]),Gc(n,function(t){return zv(e,t)})}(d,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(d){return!!on(e.getDefinitions().get("rootElements"),$o({id:d.id}))}function s(d){return b(d,"bpmn:ErrorEventDefinition")?"errorRef":b(d,"bpmn:EscalationEventDefinition")?"escalationRef":b(d,"bpmn:MessageEventDefinition")?"messageRef":b(d,"bpmn:SignalEventDefinition")?"signalRef":void 0}function c(d){if(Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.get("messageRef");var h=d.get("eventDefinitions")[0];return h.get(s(h))}t.invoke(Ve,this),this.executed("shape.create",function(d){var u=d.shape;if(o(u)){var f=c($e(u));f&&!a(f)&&(Un(e.getDefinitions().get("rootElements"),f),d.addedRootElement=f)}},!0),this.reverted("shape.create",function(d){var u=d.addedRootElement;u&&$n(e.getDefinitions().get("rootElements"),u)},!0),n.on("copyPaste.copyElement",function(d){var u=d.descriptor,h=d.element;if(o(h)){var p=c($e(h));p&&(u.referencedRootElement=p)}}),n.on("copyPaste.pasteElement",500,function(d){var u=d.descriptor,h=u.businessObject;if(o(h)){var f=u.referencedRootElement;f&&(a(f)||(f=i.copyElement(f,r.create(f.$type))),function l(d,u){if(Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.set("messageRef",u);var f=d.get("eventDefinitions")[0];f.set(s(f),u)}(h,f))}})}function KE(e){e.invoke(Ve,this),this.preExecute("shape.create",1500,function(n){var t=n.context,i=t.parent,r=t.shape;b(i,"bpmn:Lane")&&!b(r,"bpmn:Lane")&&(t.parent=a_(i,"bpmn:Participant"))})}function FL(e,n,t){n.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],1500,function(i){var o=i.context.shape||i.shape,a=i.hover;b(a,"bpmn:Lane")&&!Kt(o,["bpmn:Lane","bpmn:Participant"])&&(i.hover=Ko(a),i.hoverGfx=e.getGraphics(i.hover));var s=t.getRootElement();a!==s&&(o.labelTarget||b(o,"bpmn:Group"))&&(i.hover=s,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],1500,function(i){var r=i.hover;b(r,"bpmn:Lane")&&(i.hover=Ko(r)||r,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["bendpoint.move.hover"],1500,function(i){var o=i.hover,a=i.context.type;b(o,"bpmn:Lane")&&/reconnect/.test(a)&&(i.hover=Ko(o)||o,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.start"],1500,function(i){var r=i.context,o=r.start;b(o,"bpmn:Lane")&&(r.start=Ko(o)||o)}),n.on("shape.move.start",2e3,function(i){var r=i.shape;b(r,"bpmn:Lane")&&(i.shape=Ko(r)||r)})}function XE(e,n,t){Ve.call(this,e),this.preExecute("shape.create",function(i){var o=i.context.shape;if(b(o,"bpmn:DataObjectReference")&&"label"!==o.type){var a=n.create("bpmn:DataObject");o.businessObject.dataObjectRef=a}})}Xe()(UE,Ve),UE.$inject=["eventBus","modeling"],Xe()(GE,Ve),GE.$inject=["eventBus","elementFactory","bpmnRules"],Xe()(WE,Ve),WE.$inject=["injector","modeling"],w_.$inject=["bpmnReplace","injector"],Xe()(w_,Ve),w_.prototype.replaceShape=function(e,n){var t=function bse(e){var t=$e(e).eventDefinitions;return t&&t[0]}(e),i={type:"bpmn:BoundaryEvent",host:n};return t&&(i.eventDefinitionType=t.$type),this._bpmnReplace.replaceElement(e,i,{layoutConnection:!1})},YE.$inject=["eventBus","moddle","modeling"],Xe()(YE,Ve),qE.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],Xe()(qE,Ve),KE.$inject=["injector"],Xe()(KE,Ve),FL.$inject=["elementRegistry","eventBus","canvas"],XE.$inject=["eventBus","bpmnFactory","moddle"],Xe()(XE,Ve);function JE(e,n,t){function i(){var r=e.getRootElement();return b(r,"bpmn:Collaboration")?r:t.makeCollaboration()}Ve.call(this,n),n.on(["create.start","shape.move.start"],2e3,function(r){var o=r.context,a=o.shape,s=e.getRootElement();if(b(a,"bpmn:Participant")&&b(s,"bpmn:Process")&&s.children.length){var c=s.children.filter(function(u){return!b(u,"bpmn:Group")&&!mi(u)&&!function kse(e){return!!e.waypoints}(u)});if(c.length){var l=Fi(c),d=function Sse(e,n){n={width:n.width+40+30,height:n.height+40};var t=Math.max(e.width,n.width),i=Math.max(e.height,n.height);return{x:-t/2,y:-i/2,width:t,height:i}}(a,l);I(a,d),o.createConstraints=function Dse(e,n){return{bottom:(n=ot(n)).top+e.height/2-20,left:n.right-e.width/2+20,top:n.bottom-e.height/2+20,right:n.left+e.width/2-20-30}}(a,l)}}}),n.on("create.start",2e3,function(r){var a=r.context.shape,s=e.getRootElement(),c=e.getGraphics(s);function l(d){d.element=s,d.gfx=c}b(a,"bpmn:Participant")&&b(s,"bpmn:Process")&&(n.on("element.hover",2e3,l),n.once("create.cleanup",function(){n.off("element.hover",l)}))}),this.preExecute("elements.create",2e3,function(r){var c,a=r.parent,s=function Tse(e){return on(e,function(n){return b(n,"bpmn:Participant")})}(r.elements);s&&b(a,"bpmn:Process")&&(r.parent=i(),(c=r.hints=r.hints||{}).participant=s,c.process=a,c.processRef=$e(s).get("processRef"))},!0),this.preExecute("shape.create",function(r){var o=r.parent,a=r.shape;b(a,"bpmn:Participant")&&b(o,"bpmn:Process")&&(r.parent=i(),r.process=o,r.processRef=$e(a).get("processRef"))},!0),this.execute("shape.create",function(r){var o=r.hints||{},a=r.process||o.process,s=r.shape,c=o.participant;a&&(!c||s===c)&&$e(s).set("processRef",$e(a))},!0),this.revert("shape.create",function(r){var o=r.hints||{},s=r.processRef||o.processRef,c=r.shape,l=o.participant;(r.process||o.process)&&(!l||c===l)&&$e(c).set("processRef",s)},!0),this.postExecute("shape.create",function(r){var a=r.process||r.hints.process,s=r.shape,c=(r.hints||{}).participant;if(a){var l=a.children.slice();c?s===c&&t.moveElements(l,{x:0,y:0},c):t.moveElements(l,{x:0,y:0},s)}},!0)}JE.$inject=["canvas","eventBus","modeling"],Xe()(JE,Ve);var BL="__targetRef_placeholder";function eC(e,n){function i(a,s){var c=a.get("properties"),l=on(c,function(d){return d.name===BL});return!l&&s&&Un(c,l=n.create("bpmn:Property",{name:BL})),l}function r(a,s){var c=i(a);c&&(function t(a,s,c){return on(a.get("dataInputAssociations"),function(d){return d!==c&&d.targetRef===s})}(a,c,s)||$n(a.get("properties"),c))}function o(a){var k,s=a.context,c=s.connection,l=c.businessObject,d=c.target,u=d&&d.businessObject,h=s.newTarget,f=h&&h.businessObject,p=s.oldTarget||s.target,g=p&&p.businessObject,v=c.businessObject;g&&g!==u&&r(g,l),f&&f!==u&&r(f,l),u?(k=i(u,!0),v.targetRef=k):v.targetRef=null}Ve.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],VL(o)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],VL(o))}function VL(e){return function(n){if(b(n.context.connection,"bpmn:DataInputAssociation"))return e(n)}}function S_(e){this._bpmnUpdater=e}function tC(e,n,t,i){function o(s){return s.children.filter(function(c){return b(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function a(s,c){var l=s.businessObject||s;if(c=c||function r(){return t.filter(function(s){return b(s,"bpmn:Participant")&&$e(s).processRef})[0]}(),c){var d=c.businessObject||c;n.execute("dataStore.updateContainment",{dataStoreBo:l,newSemanticParent:d.processRef||d,newDiParent:d.di})}}Ve.call(this,i),n.registerHandler("dataStore.updateContainment",S_),this.preExecute("shape.create",function(s){var c=s.context,l=c.shape;b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&(c.hints||(c.hints={}),c.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var c=s.context,l=c.shapes;l.filter(function(u){return b(u,"bpmn:DataStoreReference")}).length&&(c.hints||(c.hints={}),c.hints.autoResize=l.filter(function(u){return!b(u,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var l=s.context.shape,d=l.parent;b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&b(d,"bpmn:Collaboration")&&a(l)}),this.postExecute("shape.move",function(s){var c=s.context,l=c.shape,d=c.oldParent,u=l.parent;if(!b(d,"bpmn:Collaboration")&&b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&b(u,"bpmn:Collaboration")){var h=b(d,"bpmn:Participant")?d:function Mse(e,n){for(;e.parent;){if(b(e.parent,n))return e.parent;e=e.parent}}(d,"bpmn:Participant");a(l,h)}}),this.postExecute("shape.delete",function(s){var l=s.context.shape,d=e.getRootElement();Kt(l,["bpmn:Participant","bpmn:SubProcess"])&&b(d,"bpmn:Collaboration")&&o(d).filter(function(u){return function Ase(e,n){for(var t=e.businessObject||e,i=n.businessObject||n;t.$parent;){if(t.$parent===i.processRef||i)return!0;t=t.$parent}return!1}(u,l)}).forEach(function(u){a(u)})}),this.postExecute("canvas.updateRoot",function(s){var c=s.context,d=c.newRoot;o(c.oldRoot).forEach(function(h){b(d,"bpmn:Process")&&a(h,d)})})}function nC(e,n,t){Ve.call(this,e),this.postExecuted("shape.delete",500,function(r){var o=r.context,a=o.hints,s=o.shape,c=o.oldParent;b(s,"bpmn:Lane")&&(a&&a.nested||function i(r,o){var l,d,u,a=nl(o),s=[],c=[];Yc(a,function(h){return h.y>r.y?c.push(h):s.push(h),h.children}),a.length&&(l=c.length&&s.length?r.height/2:r.height,s.length&&(d=t.calculateAdjustments(s,"y",l,r.y-10),t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:l},"s")),c.length&&(u=t.calculateAdjustments(c,"y",-l,r.y+r.height+10),t.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:-l},"n")))}(s,c))})}function D_(e,n){n.invoke(Ve,this),this._bpmnReplace=e;var t=this;this.postExecuted("elements.create",500,function(i){var r=i.elements;r.filter(function(o){return zL(o,o.host)}).map(function(o){return r.indexOf(o)}).forEach(function(o){i.elements[o]=t.replaceShape(r[o])})},!0),this.preExecute("elements.move",500,function(i){var r=i.shapes,o=i.newHost;r.forEach(function(a,s){var c=a.host;zL(a,function Rse(e,n){return-1!==e.indexOf(n)}(r,c)?c:o)&&(r[s]=t.replaceShape(a))})},!0)}function zL(e,n){return!mi(e)&&b(e,"bpmn:BoundaryEvent")&&!n}function iC(e,n,t){function i(r,o,a){var c,l,d,h,f,p,k,s=o.waypoints,g=r.outgoing.slice(),v=r.incoming.slice(),E=xE(s,k=yt(a.width)?Mt(a):a);if(E){if(c=s.slice(0,E.index),l=s.slice(E.index+(E.bendpoint?1:0)),!c.length||!l.length)return;d=E.bendpoint?s[E.index]:k,(1===c.length||!HL(r,c[c.length-1]))&&c.push($L(d)),(1===l.length||!HL(r,l[0]))&&l.unshift($L(d))}h=o.target,n.canConnect(o.source,r,o)&&(t.reconnectEnd(o,r,c||k),f=o),n.canConnect(r,h,o)&&(f?p=t.connect(r,h,{type:o.type,waypoints:l}):(t.reconnectStart(o,r,l||k),p=o));var C=[].concat(f&&St(v,function(x){return x.source===f.source})||[],p&&St(g,function(x){return x.target===p.target})||[]);C.length&&t.removeElements(C)}Ve.call(this,e),this.preExecute("elements.move",function(r){var o=r.newParent,a=r.shapes,s=r.delta,c=a[0];if(c&&o){o&&o.waypoints&&(r.newParent=o=o.parent);var l=Mt(c),d={x:l.x+s.x,y:l.y+s.y},u=on(o.children,function(h){return n.canInsert(a,h)&&xE(h.waypoints,d)});u&&(r.targetFlow=u,r.position=d)}},!0),this.postExecuted("elements.move",function(r){var a=r.targetFlow;a&&i(r.shapes[0],a,r.position)},!0),this.preExecute("shape.create",function(r){var o=r.parent;n.canInsert(r.shape,o)&&(r.targetFlow=o,r.parent=o.parent)},!0),this.postExecuted("shape.create",function(r){var a=r.targetFlow;a&&i(r.shape,a,r.position)},!0)}function HL(e,n){var t=n.x,i=n.y;return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function $L(e){return I({},e)}function rC(e,n){Ve.call(this,e),this.preExecuted("connection.create",function(t){var i=t.context,r=i.source,o=i.target,a=o.incoming.slice();i.hints&&!1===i.hints.createElementsBehavior||b(r,"bpmn:EventBasedGateway")&&o.incoming.length&&a.filter(oC).forEach(function(s){n.removeConnection(s)})}),this.preExecuted("shape.replace",function(t){var i=t.context.newShape;b(i,"bpmn:EventBasedGateway")&&i.outgoing.filter(oC).map(function(a){return a.target}).reduce(function(a,s){var c=s.incoming.filter(oC);return a.concat(c)},[]).forEach(function(a){a.source!==i&&n.removeConnection(a)})})}function oC(e){return b(e,"bpmn:SequenceFlow")}function aC(e,n,t,i,r,o){function a(){return $e(n.getRootElement()).$parent}function s(u){var f=$e(u).categoryValueRef;if(f){var p=f.$parent;f&&($n(p.categoryValue,f),p&&!p.categoryValue.length&&function c(u){$n(a().get("rootElements"),u)}(p))}}r.invoke(Ve,this),this.executed("shape.delete",function(u){var f=u.context.shape;if(b(f,"bpmn:Group")){var g=$e(f).categoryValueRef,v=function l(){return t.filter(function(u){return b(u,"bpmn:Group")})}();(function d(u,h){return u.some(function(f){var p=$e(f);return p.categoryValueRef&&p.categoryValueRef===h})})(v,g)||s(f)}}),this.reverted("shape.delete",function(u){var f=u.context.shape;if(b(f,"bpmn:Group")){var g=$e(f).categoryValueRef,v=a(),k=g?g.$parent:null;Un(k.get("categoryValue"),g),Un(v.get("rootElements"),k)}}),this.execute("shape.create",function(u){var p=$e(u.context.shape);if(b(p,"bpmn:Group")&&!p.categoryValueRef){var v=zE(a(),e);p.categoryValueRef=v}}),this.revert("shape.create",function(u){var f=u.context.shape;b(f,"bpmn:Group")&&(s(f),delete $e(f).categoryValueRef)}),i.on("moddleCopy.canCopyProperty",2e3,function(u){var f,h=u.property;if(b(h,"bpmn:CategoryValue"))return f=zE(a(),e),o.copyElement(h,f)})}function sC(e,n,t,i){var r,s;return 0==(r=(i.y-t.y)*(n.x-e.x)-(i.x-t.x)*(n.y-e.y))?null:(s=((i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x))/r,{x:Math.round(e.x+s*(n.x-e.x)),y:Math.round(e.y+s*(n.y-e.y))})}function UL(e){function n(i,r,o){var d,s={x:o.x-50,y:o.y},c=sC(i,r,o,{x:o.x,y:o.y-50}),l=sC(i,r,o,s);d=c&&l?GL(c,o)>GL(l,o)?l:c:c||l,i.original=d}e.on("bpmnElement.added",function(i){var r=i.element;r.waypoints&&function t(i){var r=i.waypoints;n(r[0],r[1],Mt(i.source)),n(r[r.length-1],r[r.length-2],Mt(i.target))}(r)})}function GL(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function cC(e){Ve.call(this,e);var n=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(t){var i=$e(t.context.shape);Kt(i,n)&&!i.di.get("isHorizontal")&&i.di.set("isHorizontal",!0)})}function WL(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function YL(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function qL(e,n){var t=n[0],i=n[1],r={x:i.x-t.x,y:i.y-t.y},o=function Fse(e,n,t){var i=[{n:e[0]-t[0],lambda:n[0]},{n:e[1]-t[1],lambda:n[1]}];return-(i[0].n*n[0]+i[1].n*n[1])/(i[0].lambda*n[0]+i[1].lambda*n[1])}([t.x,t.y],[r.x,r.y],[e.x,e.y]);return{x:t.x+o*r.x,y:t.y+o*r.y}}function Lse(e,n){var t=qL(e,n);return WL({x:t.x-e.x,y:t.y-e.y})}function k_(e,n){return WL({x:e.x-n.x,y:e.y-n.y})}eC.$inject=["eventBus","bpmnFactory"],Xe()(eC,Ve),S_.$inject=["bpmnUpdater"],S_.prototype.execute=function(e){var n=e.dataStoreBo,t=e.newSemanticParent,i=e.newDiParent;e.oldSemanticParent=n.$parent,e.oldDiParent=n.di.$parent,this._bpmnUpdater.updateSemanticParent(n,t),this._bpmnUpdater.updateDiParent(n.di,i)},S_.prototype.revert=function(e){var n=e.dataStoreBo,i=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(n,e.oldSemanticParent),this._bpmnUpdater.updateDiParent(n.di,i)},tC.$inject=["canvas","commandStack","elementRegistry","eventBus"],Xe()(tC,Ve),nC.$inject=["eventBus","modeling","spaceTool"],Xe()(nC,Ve),D_.$inject=["bpmnReplace","injector"],Xe()(D_,Ve),D_.prototype.replaceShape=function(e){var n=function Ose(e){var t=$e(e).eventDefinitions;return t&&t[0]}(e);return this._bpmnReplace.replaceElement(e,n?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:n.$type}:{type:"bpmn:IntermediateThrowEvent"},{layoutConnection:!1})},Xe()(iC,Ve),iC.$inject=["eventBus","bpmnRules","modeling"],rC.$inject=["eventBus","modeling"],Xe()(rC,Ve),aC.$inject=["bpmnFactory","canvas","elementRegistry","eventBus","injector","moddleCopy"],Xe()(aC,Ve),UL.$inject=["eventBus"],cC.$inject=["eventBus"],Xe()(cC,Ve);var KL=Math.sqrt,XL=Math.min,Bse=Math.max,ZL=Math.abs;function QL(e){return Math.pow(e,2)}function Yf(e,n){return KL(QL(e.x-n.x)+QL(e.y-n.y))}function jse(e,n,t,i){var r=n.x-e.x,o=n.y-e.y,a=t.x-e.x,s=t.y-e.y,c=r*r+o*o,u=(r*a+o*s)/c,f=u*u-(a*a+s*s-i*i)/c;if(f<0&&f>-1e-6&&(f=0),f<0)return[];var p=KL(f),g=-u+p,v=-u-p,k={x:e.x-r*g,y:e.y-o*g};return 0===f?[k]:[k,{x:e.x-r*v,y:e.y-o*v}].filter(function(C){return function zse(e,n,t){return JL(e.x,n.x,t.x)&&JL(e.y,n.y,t.y)}(C,e,n)})}function JL(e,n,t){return e>=XL(n,t)-T_&&e<=Bse(n,t)+T_}function Hse(e,n){return{x:(e.x+n.x)/2,y:(e.y+n.y)/2}}var T_=.1;function e3(e,n){return ZL(e.x-n.x)<=T_&&ZL(e.y-n.y)<=T_}function t3(e,n){var t=k_(e[n-1],e[n]);return t/(t+k_(e[n],e[n+1]))}function n3(e,n){return[e[n],e[n+1]]}function qf(e,n,t){var i=Mf(n),r=Mf(t),o=xa(e,i);return Gs({x:r.x+o.x*(t.width/n.width),y:r.y+o.y*(t.height/n.height)})}function r3(e,n,t){var i=Mf(e),r=Mf(n),o=Mf(t),a=xa(e,i),s=xa(i,r),c=function qse(e,n,t){var i=ot(n),r=ot(t);if(function Kse(e,n){return function Xse(e,n){return e.right!==n.right&&e.left!==n.left}(e,n)||function Zse(e,n){return e.top!==n.top&&e.bottom!==n.bottom}(e,n)}(i,r))return null;var a,o=Li(n,e);if("top"===o)a={x:0,y:r.bottom-i.bottom};else if("bottom"===o)a={x:0,y:r.top-i.top};else if("right"===o)a={x:r.left-i.left,y:0};else{if("left"!==o)return null;a={x:r.right-i.right,y:0}}return Li(t,{x:e.x+a.x,y:e.y+a.y})!==o?null:a}(i,n,t);return c||Gs({x:o.x+s.x*(t.width/n.width)+a.x-e.x,y:o.y+s.y*(t.height/n.height)+a.y-e.y})}var Qse={width:90,height:20};function lC(e,n,t,i){Ve.call(this,e),this.postExecute("element.updateProperties",function(o){var a=o.context,s=a.element,c=a.properties;if("name"in c&&n.updateLabel(s,c.name),"text"in c&&b(s,"bpmn:TextAnnotation")){var l=i.getTextAnnotationBounds({x:s.x,y:s.y,width:s.width,height:s.height},c.text||"");n.updateLabel(s,c.text,l)}}),this.postExecute(["shape.create","connection.create"],function(o){var a=o.context;if(!1!==(a.hints||{}).createElementsBehavior){var c=a.shape||a.connection,l=c.businessObject;if(!mi(c)&&ya(c)&&Go(c)){var d=nu(c),u=i.getExternalLabelBounds(Qse,Go(c));n.createLabel(c,d,{id:l.id+"_label",businessObject:l,width:u.width,height:u.height})}}}),this.postExecute("shape.delete",function(o){var a=o.context,s=a.labelTarget;s&&!1!==(a.hints||{}).unsetLabel&&n.updateLabel(s,null,null,{removeShape:!1})}),this.postExecute(["label.create"],function(o){var l,s=o.context.shape;s.labelTarget&&b(s.labelTarget||s,"bpmn:BaseElement")&&((l=s.businessObject.di).label||(l.label=t.create("bpmndi:BPMNLabel",{bounds:t.create("dc:Bounds")})),I(l.label.bounds,{x:s.x,y:s.y,width:s.width,height:s.height}))}),this.postExecute(["connection.layout","connection.updateWaypoints"],function(o){var a=o.context;if(!1!==(a.hints||{}).labelBehavior){var d,l=a.connection.label;!l||!l.parent||(d=function r(o){var a=o.context,s=a.connection,c=s.label,l=I({},a.hints),d=a.newWaypoints||s.waypoints,u=a.oldWaypoints;return typeof l.startChanged>"u"&&(l.startChanged=!!l.connectionStart),typeof l.endChanged>"u"&&(l.endChanged=!!l.connectionEnd),function Use(e,n,t,i){var r=0,o=0,a=function Gse(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),s=function Vse(e,n){var i,r,o,a,s,l,d,u,h,f,t=0;for(t=0;t line intersections");1===l.length&&(d={type:"bendpoint",position:l[0],segmentIndex:t,bendpointIndex:e3(i,l[0])?t:t+1}),2===l.length&&(d={type:"segment",position:s=Hse(l[0],l[1]),segmentIndex:t,relativeLocation:Yf(i,s)/Yf(i,r)}),u=Yf(d.position,e),(!f||h>u)&&(f=d,h=u)}return f}(a,t),c=s.segmentIndex,l=function $se(e,n,t,i){var r=t.segmentIndex,o=n.length-e.length;if(i.segmentMove){var s=i.segmentMove.newSegmentStartIndex;return r===i.segmentMove.segmentStartIndex?s:r>=s?r+o=l&&(d=c?r+1:r-1),rn.length-2)return{x:r,y:o};var d=n3(t,c),u=n3(n,l),h=s.position,f=function Yse(e,n){var t=k_(e[0],e[1]),i=k_(e[0],n);return 0===t?0:i/t}(d,h),p=function Wse(e,n){var t=YL(e);return YL(n)-t}(d,u);if("bendpoint"===s.type){var g=n.length-t.length,v=s.bendpointIndex;if(-1!==n.indexOf(t[v]))return{x:r,y:o};if(0===g){var E=n[v];return{x:E.x-s.position.x,y:E.y-s.position.y}}g<0&&0!==v&&v"+o+"
"})}(r,t("flow elements must be children of pools/participants"))})}function fC(e,n,t,i){Ve.call(this,e);var r=i.get("dragging",!1);function o(c){var h,f,l=c.source,d=c.target;c.parent&&(b(c,"bpmn:SequenceFlow")&&(t.canConnectSequenceFlow(l,d)||(f=!0),t.canConnectMessageFlow(l,d)&&(h="bpmn:MessageFlow")),b(c,"bpmn:MessageFlow")&&(t.canConnectMessageFlow(l,d)||(f=!0),t.canConnectSequenceFlow(l,d)&&(h="bpmn:SequenceFlow")),b(c,"bpmn:Association")&&!t.canConnectAssociation(l,d)&&(f=!0),f&&n.removeConnection(c),h&&n.connect(l,d,{type:h,waypoints:c.waypoints.slice()}))}this.postExecuted("elements.move",function(c){R(c.closure.allConnections,o)},!0),this.preExecute("connection.reconnect",function a(c){var f,p,l=c.context,d=l.connection,u=l.newSource||d.source,h=l.newTarget||d.target;(f=t.canConnect(u,h))&&f.type!==d.type&&(p=n.connect(u,h,{type:f.type,waypoints:d.waypoints.slice()}),n.removeConnection(d),l.connection=p,r&&function s(c,l){var h,d=r.context(),u=d&&d.payload.previousSelection;!u||!u.length||-1!==(h=u.indexOf(c))&&u.splice(h,1,l)}(d,p))}),this.postExecuted("element.updateProperties",function(c){var f,l=c.context,d=l.properties,u=l.element,h=u.businessObject;d.default&&(f=on(u.outgoing,$o({id:u.businessObject.default.id})))&&n.updateProperties(f,{conditionExpression:void 0}),d.conditionExpression&&h.sourceRef.default===h&&n.updateProperties(u.source,{default:void 0})})}function pC(e,n){Ve.call(this,e),this.preExecute("shape.delete",function(t){var i=t.shape,r=i.parent;b(i,"bpmn:Participant")&&(t.collaborationRoot=r)},!0),this.postExecute("shape.delete",function(t){var i=t.collaborationRoot;i&&!i.businessObject.participants.length&&n.makeProcess()},!0)}function O_(e,n,t,i,r,o){i.invoke(Ve,this),this._bpmnReplace=e,this._elementRegistry=t,this._selection=o,this.postExecuted(["elements.create"],500,function(a){var s=a.context,l=s.elements,d=n.canReplace(l,s.parent);d&&this.replaceElements(l,d.replacements)},this),this.postExecuted(["elements.move"],500,function(a){var s=a.context,c=s.newParent,l=s.newHost,d=[];R(s.closure.topLevel,function(h){d=Gr(h)?d.concat(h.children):d.concat(h)}),1===d.length&&l&&(c=l);var u=n.canReplace(d,c);u&&this.replaceElements(d,u.replacements,l)},this),this.postExecute(["shape.replace"],1500,function(a){var u,s=a.context,d=s.oldShape.attachers;d&&d.length&&(u=n.canReplace(d,s.newShape),this.replaceElements(d,u.replacements))},this),this.postExecuted(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape;r.unclaimId(c.businessObject.id,c.businessObject),r.updateProperties(l,{id:c.id})})}Xe()(lC,Ve),lC.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],hC.$inject=["eventBus","modeling"],Xe()(hC,Ve),l3.$inject=["eventBus","tooltips","translate"],Xe()(fC,Ve),fC.$inject=["eventBus","modeling","bpmnRules","injector"],pC.$inject=["eventBus","modeling"],Xe()(pC,Ve),Xe()(O_,Ve),O_.prototype.replaceElements=function(e,n){var t=this._elementRegistry,i=this._bpmnReplace,r=this._selection;R(n,function(o){var a={type:o.newElementType},s=t.get(o.oldElementId),c=e.indexOf(s);e[c]=i.replaceElement(s,a,{select:!1})}),n&&r.select(e)},O_.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var rl={width:300,height:60},Kf={width:300,height:150},d3={width:140,height:120},u3={width:50,height:30};function h3(e){e.on("resize.start",1500,function(n){var t=n.context,i=t.shape,r=t.direction,o=t.balanced;(b(i,"bpmn:Lane")||b(i,"bpmn:Participant"))&&(t.resizeConstraints=function mce(e,n,t){var i=Ko(e),r=!0,o=!0,a=u_(i,[i]),s=ot(e),c={},l={};return/e/.test(n)?l.right=s.left+rl.width:/w/.test(n)&&(l.left=s.right-rl.width),a.forEach(function(u){var h=ot(u);/n/.test(n)&&(h.tops.bottom+10&&(o=!1),t&&R_(s.bottom-h.top)<10&&P_(c,"bottom",h.bottom-rl.height),R_(s.bottom-h.bottom)<5&&N_(l,"bottom",h.top+rl.height))}),i.children.filter(function(u){return!u.hidden&&!u.waypoints&&(b(u,"bpmn:FlowElement")||b(u,"bpmn:Artifact"))}).forEach(function(u){var h=ot(u);r&&/n/.test(n)&&P_(l,"top",h.top-fce),/e/.test(n)&&N_(l,"right",h.right+uce),o&&/s/.test(n)&&N_(l,"bottom",h.bottom+pce),/w/.test(n)&&P_(l,"left",h.left-hce)}),{min:l,max:c}}(i,r,o)),b(i,"bpmn:Participant")&&(t.minDimensions=Kf),b(i,"bpmn:SubProcess")&&ln(i)&&(t.minDimensions=d3),b(i,"bpmn:TextAnnotation")&&(t.minDimensions=u3)})}h3.$inject=["eventBus"];var R_=Math.abs,lce=Math.min,dce=Math.max;function f3(e,n,t,i){var r=e[n];e[n]=void 0===r?t:i(t,r)}function P_(e,n,t){return f3(e,n,t,lce)}function N_(e,n,t){return f3(e,n,t,dce)}var uce=20,hce=50,fce=20,pce=20;function m3(e,n){e.on("resize.start",1501,function(t){var i=t.context,r=i.shape;(b(r,"bpmn:Lane")||b(r,"bpmn:Participant"))&&(i.balanced=!ru(t))}),e.on("resize.end",1001,function(t){var i=t.context,r=i.shape,o=i.canExecute,a=i.newBounds;if(b(r,"bpmn:Lane")||b(r,"bpmn:Participant"))return o&&(a=jN(a),n.resizeLane(r,a,i.balanced)),!1})}function mC(e,n,t){Ve.call(this,e),this.preExecute("shape.delete",function(i){var r=i.context.shape;if(1===r.incoming.length&&1===r.outgoing.length){var o=r.incoming[0],a=r.outgoing[0];if(b(o,"bpmn:SequenceFlow")&&b(a,"bpmn:SequenceFlow")&&n.canConnect(o.source,a.target,o)){var s=function gce(e,n){var t=sC(fu(e[e.length-2]),fu(e[e.length-1]),fu(n[1]),fu(n[0]));return t?[].concat(e.slice(0,e.length-1),[t],n.slice(1)):[fu(e[0]),fu(n[n.length-1])]}(o.waypoints,a.waypoints);t.reconnectEnd(o,a.target,s)}}})}function fu(e){return e.original||e}m3.$inject=["eventBus","modeling"],Xe()(mC,Ve),mC.$inject=["eventBus","bpmnRules","modeling"];var vce=Math.max;function g3(e){e.on("spaceTool.getMinDimensions",function(n){var i=n.axis,r=n.start,o={};return R(n.shapes,function(a){var s=a.id;b(a,"bpmn:Participant")&&(o[s]=function _ce(e){return"x"===e}(i)?Kf:{width:Kf.width,height:yce(a,r)}),b(a,"bpmn:SubProcess")&&ln(a)&&(o[s]=d3),b(a,"bpmn:TextAnnotation")&&(o[s]=u3)}),o})}function yce(e,n){var t;return function bce(e){return!!nl(e).length}(e)?(t=function xce(e,n){var i;return i=v3(nl(e),n),e.height-i.height+rl.height}(e,n),vce(Kf.height,t)):Kf.height}function v3(e,n){var t,i,r;for(t=0;t=(i=e[t]).y&&n<=i.y+i.height)return(r=nl(i)).length?v3(r,n):i}function gC(e,n){e.invoke(Ve,this),this.postExecuted("shape.replace",function(t){var i=t.context.oldShape,r=t.context.newShape;if(b(r,"bpmn:SubProcess")&&b(i,"bpmn:Task")&&ln(r)){var o=function wce(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}(r);n.createShape({type:"bpmn:StartEvent"},o,r)}})}function _C(e,n,t,i){Ve.call(this,e),this.executed(["shape.toggleCollapse"],500,function(s){var l=s.context.shape;b(l,"bpmn:SubProcess")&&(l.collapsed?$e(l).di.isExpanded=!1:(function r(s){s.length&&s.forEach(function(c){"label"===c.type&&!c.businessObject.name&&(c.hidden=!0)})}(l.children),$e(l).di.isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],500,function(s){var l=s.context.shape;$e(l).di.isExpanded=!l.collapsed}),this.postExecuted(["shape.toggleCollapse"],500,function(s){var d,c=s.context.shape,l=n._getDefaultSize(c);d=c.collapsed?function a(s,c){return{x:s.x+(s.width-c.width)/2,y:s.y+(s.height-c.height)/2,width:c.width,height:c.height}}(c,l):function o(s,c){var u,h,d=c;return u=function Ece(e){return e.filter(function(n){return!n.hidden})}(s.children).concat([s]),(h=cL(u))?(d.width=Math.max(h.width,d.width),d.height=Math.max(h.height,d.height),d.x=h.x+(h.width-d.width)/2,d.y=h.y+(h.height-d.height)/2):(d.x=s.x+(s.width-d.width)/2,d.y=s.y+(s.height-d.height)/2),d}(c,l),t.resizeShape(c,d,null,{autoResize:!c.collapsed&&"nwse"})})}function yC(e,n,t,i){n.invoke(Ve,this),this.preExecute("shape.delete",function(r){var a=r.context.shape,s=a.businessObject;mi(a)||(b(a,"bpmn:Participant")&&ln(a)&&t.ids.unclaim(s.processRef.id),i.unclaimId(s.id,s))}),this.preExecute("connection.delete",function(r){var s=r.context.connection.businessObject;i.unclaimId(s.id,s)}),this.preExecute("canvas.updateRoot",function(){var r=e.getRootElement(),o=r.businessObject;b(r,"bpmn:Collaboration")&&t.ids.unclaim(o.id)})}function bC(e,n,t){var i;Ve.call(this,e);var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,5e3,function(c){!function r(){(i=i||new Dce).enter()}()}),this.postExecuted(s,500,function(c){!function a(){if(!i)throw new Error(t("out of bounds release"));var c=i.leave();c&&(n.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(c){var d=c.context.shape,u=function o(){if(!i)throw new Error(t("out of bounds release"));return i}();d.labelTarget||(b(d,"bpmn:Lane")&&u.addLane(d),b(d,"bpmn:FlowNode")&&u.addFlowNode(d))})}function Dce(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function xC(e,n){Ve.call(this,e),this.preExecute("connection.delete",function(t){var r=t.context.connection,o=r.source;(function kce(e,n){if(!b(e,"bpmn:SequenceFlow"))return!1;var t=$e(n),i=$e(e);return t.get("default")===i})(r,o)&&n.updateProperties(o,{default:null})})}g3.$inject=["eventBus"],gC.$inject=["injector","modeling"],Xe()(gC,Ve),Xe()(_C,Ve),_C.$inject=["eventBus","elementFactory","modeling"],Xe()(yC,Ve),yC.$inject=["canvas","injector","moddle","modeling"],bC.$inject=["eventBus","modeling","translate"],Xe()(bC,Ve),Xe()(xC,Ve),xC.$inject=["eventBus","modeling"];const Tce={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","rootElementReferenceBehavior","createBehavior","fixHoverBehavior","createDataObjectBehavior","createParticipantBehavior","dataStoreBehavior","dataInputAssociationBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","toggleElementCollapseBehaviour","spaceToolBehavior","subProcessStartEventBehavior","unclaimIdBehavior","unsetDefaultFlowBehavior","updateFlowNodeRefsBehavior"],adaptiveLabelPositioningBehavior:["type",UE],appendBehavior:["type",GE],associationBehavior:["type",WE],attachEventBehavior:["type",w_],boundaryEventBehavior:["type",YE],rootElementReferenceBehavior:["type",qE],createBehavior:["type",KE],fixHoverBehavior:["type",FL],createDataObjectBehavior:["type",XE],createParticipantBehavior:["type",JE],dataInputAssociationBehavior:["type",eC],dataStoreBehavior:["type",tC],deleteLaneBehavior:["type",nC],detachEventBehavior:["type",D_],dropOnFlowBehavior:["type",iC],eventBasedGatewayBehavior:["type",rC],groupBehavior:["type",aC],importDockingFix:["type",UL],isHorizontalFix:["type",cC],labelBehavior:["type",lC],messageFlowBehavior:["type",hC],modelingFeedback:["type",l3],replaceConnectionBehavior:["type",fC],removeParticipantBehavior:["type",pC],replaceElementBehaviour:["type",O_],resizeBehavior:["type",h3],resizeLaneBehavior:["type",m3],removeElementBehavior:["type",mC],toggleElementCollapseBehaviour:["type",_C],spaceToolBehavior:["type",g3],subProcessStartEventBehavior:["type",gC],unclaimIdBehavior:["type",yC],updateFlowNodeRefsBehavior:["type",bC],unsetDefaultFlowBehavior:["type",xC]};function _3(e,n){var t=Li(e,n,-15);return"intersect"!==t?t:null}function Vi(e){Ea.call(this,e)}function wC(e){return!e||mi(e)}function y3(e){do{if(b(e,"bpmn:Process"))return $e(e);if(b(e,"bpmn:Participant"))return $e(e).processRef||$e(e)}while(e=e.parent)}function EC(e){return b(e,"bpmn:TextAnnotation")}function CC(e){return b(e,"bpmn:Group")&&!e.labelTarget}function SC(e){return b(e,"bpmn:BoundaryEvent")&&Sa(e,"bpmn:CompensateEventDefinition")}function pu(e){return $e(e).isForCompensation}function b3(e){for(var n=e;n=n.parent;){if(b(n,"bpmn:FlowElementsContainer"))return $e(n);if(b(n,"bpmn:Participant"))return $e(n).processRef}return null}function Sa(e,n){return!!on($e(e).eventDefinitions||[],function(i){return b(i,n)})}function x3(e,n){return($e(e).eventDefinitions||[]).every(function(i){return b(i,n)})}function w3(e){return b(e,"bpmn:ReceiveTask")||b(e,"bpmn:IntermediateCatchEvent")&&(Sa(e,"bpmn:MessageEventDefinition")||Sa(e,"bpmn:TimerEventDefinition")||Sa(e,"bpmn:ConditionalEventDefinition")||Sa(e,"bpmn:SignalEventDefinition"))}function F_(e){return e.waypoints}function DC(e,n){var t=function Lce(e){for(var n=[];e;)(e=e.parent)&&n.push(e);return n}(n);return-1!==t.indexOf(e)}function L_(e,n,t){if(wC(e)||wC(n))return null;if(!b(t,"bpmn:DataAssociation")){if(M3(e,n))return{type:"bpmn:MessageFlow"};if(I3(e,n))return{type:"bpmn:SequenceFlow"}}return TC(e,n)||(SC(e)&&pu(n)?{type:"bpmn:Association",associationDirection:"One"}:!!A3(e,n)&&{type:"bpmn:Association"})}function mu(e,n,t){return!(!mi(e)&&!CC(e))||!(b(n,"bpmn:Participant")&&!ln(n))&&(b(e,"bpmn:Participant")?b(n,"bpmn:Process")||b(n,"bpmn:Collaboration"):Kt(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?n===e.parent:b(e,"bpmn:Lane")?b(n,"bpmn:Participant")||b(n,"bpmn:Lane"):!(b(e,"bpmn:BoundaryEvent")&&!function Bce(e){return $e(e).cancelActivity&&(E3(e)||C3(e))}(e))&&(b(e,"bpmn:FlowElement")&&!b(e,"bpmn:DataStoreReference")?b(n,"bpmn:FlowElementsContainer")?ln(n):Kt(n,["bpmn:Participant","bpmn:Lane"]):b(e,"bpmn:DataStoreReference")&&b(n,"bpmn:Collaboration")?Gc($e(n).get("participants"),function(i){return!!i.get("processRef")}):Kt(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Kt(n,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!b(e,"bpmn:MessageFlow")&&(b(n,"bpmn:Collaboration")||e.source.parent==n||e.target.parent==n)))}function jce(e){return b(e,"bpmn:Lane")}function E3(e){var n=$e(e);return n&&!(n.eventDefinitions&&n.eventDefinitions.length)}function C3(e){return S3(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function S3(e,n){return n.some(function(t){return Sa(e,t)})}function Xf(e,n,t,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!(mi(r)||!function zce(e){return!!(function Vce(e){return!mi(e)&&b(e,"bpmn:BoundaryEvent")}(e)||b(e,"bpmn:IntermediateThrowEvent")&&E3(e))||b(e,"bpmn:IntermediateCatchEvent")&&C3(e)}(r)||Gr(n)||!b(n,"bpmn:Activity")||pu(n)||i&&!_3(i,n)||function Hce(e){return b(e,"bpmn:ReceiveTask")&&on(e.incoming,function(n){return b(n.source,"bpmn:EventBasedGateway")})}(n))&&"attach"}function D3(e,n,t){if(!n)return!1;var i={replacements:[]};return R(e,function(r){Gr(n)||b(r,"bpmn:StartEvent")&&"label"!==r.type&&mu(r,n)&&(function Qne(e){return e&&!1!==$e(e).isInterrupting}(r)||i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),(function Jne(e){return zv(e,"bpmn:ErrorEventDefinition")}(r)||function eie(e){return zv(e,"bpmn:EscalationEventDefinition")}(r)||function tie(e){return zv(e,"bpmn:CompensateEventDefinition")}(r))&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),S3(r,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&b(n,"bpmn:SubProcess")&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"})),b(n,"bpmn:Transaction")||Sa(r,"bpmn:CancelEventDefinition")&&"label"!==r.type&&(b(r,"bpmn:EndEvent")&&mu(r,n)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:EndEvent"}),b(r,"bpmn:BoundaryEvent")&&Xf(r,n,0,t)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:BoundaryEvent"}))}),!!i.replacements.length&&i}function k3(e,n){return!Gc(e,jce)&&(!n||e.every(function(t){return mu(t,n)}))}function kC(e,n,t,i){return!!n&&(!(!mi(e)&&!CC(e))||!(function Mce(e,n){return e===n}(t,n)||t&&DC(t,n))&&(mu(e,n)||B_(e,n)))}function T3(e,n){return b(e,"bpmn:SubProcess")?ln(e)&&(!n||n.width>=100&&n.height>=80):b(e,"bpmn:Lane")?!n||n.width>=130&&n.height>=60:b(e,"bpmn:Participant")?!n||n.width>=250&&n.height>=50:!(!EC(e)&&!CC(e))}function A3(e,n){return!(F_(e)||F_(n)||(!SC(e)||!pu(n))&&(DC(n,e)||DC(e,n)||!function $ce(e,n){var t=EC(e),i=EC(n);return(t||i)&&t!==i}(e,n)&&!TC(e,n)))}function M3(e,n){return!(R3(e)&&!R3(n))&&function Oce(e){return b(e,"bpmn:InteractionNode")&&!b(e,"bpmn:BoundaryEvent")&&(!b(e,"bpmn:Event")||b(e,"bpmn:ThrowEvent")&&x3(e,"bpmn:MessageEventDefinition"))}(e)&&function Rce(e){return b(e,"bpmn:InteractionNode")&&!pu(e)&&(!b(e,"bpmn:Event")||b(e,"bpmn:CatchEvent")&&x3(e,"bpmn:MessageEventDefinition"))&&!(b(e,"bpmn:BoundaryEvent")&&!Sa(e,"bpmn:MessageEventDefinition"))}(n)&&!function Ice(e,n){return y3(e)===y3(n)}(e,n)}function I3(e,n){return!(w3(n)&&n.incoming.length>0&&function Wce(e){return(e=e||[]).some(Gce)}(n.incoming)&&!b(e,"bpmn:EventBasedGateway"))&&function Nce(e){return b(e,"bpmn:FlowNode")&&!b(e,"bpmn:EndEvent")&&!Gr(e)&&!(b(e,"bpmn:IntermediateThrowEvent")&&Sa(e,"bpmn:LinkEventDefinition"))&&!SC(e)&&!pu(e)}(e)&&function Fce(e){return b(e,"bpmn:FlowNode")&&!b(e,"bpmn:StartEvent")&&!b(e,"bpmn:BoundaryEvent")&&!Gr(e)&&!(b(e,"bpmn:IntermediateCatchEvent")&&Sa(e,"bpmn:LinkEventDefinition"))&&!pu(e)}(n)&&function Pce(e,n){return b3(e)===b3(n)}(e,n)&&!(b(e,"bpmn:EventBasedGateway")&&!w3(n))}function TC(e,n){return Kt(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Kt(n,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!Kt(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!Kt(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function B_(e,n,t){if(!n)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return n.source!==e&&n.target!==e&&Kt(n,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!mi(n)&&b(e,"bpmn:FlowNode")&&!b(e,"bpmn:BoundaryEvent")&&mu(e,n.parent)}function O3(e,n){return!!mi(n)||!(b(n,"bpmn:Lane")&&!function Uce(e,n){return e&&n&&-1!==e.indexOf(n)}(e,n.parent))}function Gce(e){if(e&&e.source)return b(e.source,"bpmn:EventBasedGateway")}function R3(e){return a_(e,"bpmn:Process")||a_(e,"bpmn:Collaboration")}Xe()(Vi,Ea),Vi.$inject=["eventBus"],Vi.prototype.init=function(){this.addRule("connection.start",function(e){return function Ace(e){return wC(e)?null:Kt(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)}),this.addRule("connection.create",function(e){var n=e.source,t=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(t.parent=r);try{return L_(n,t)}finally{r&&(t.parent=null)}}),this.addRule("connection.reconnect",function(e){return L_(e.source,e.target,e.connection)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){return T3(e.shape,e.newBounds)}),this.addRule("elements.create",function(e){var n=e.elements,t=e.position,i=e.target;return!(F_(i)&&!B_(n,i))&&Uc(n,function(r){return F_(r)?L_(r.source,r.target,r):r.host?Xf(r,r.host,0,t):kC(r,i,null)})}),this.addRule("elements.move",function(e){var n=e.target,t=e.shapes,i=e.position;return Xf(t,n,0,i)||D3(t,n,i)||k3(t,n)||B_(t,n)}),this.addRule("shape.create",function(e){return kC(e.shape,e.target,e.source)}),this.addRule("shape.attach",function(e){return Xf(e.shape,e.target,0,e.position)}),this.addRule("element.copy",function(e){return O3(e.elements,e.element)})},Vi.prototype.canConnectMessageFlow=M3,Vi.prototype.canConnectSequenceFlow=I3,Vi.prototype.canConnectDataAssociation=TC,Vi.prototype.canConnectAssociation=A3,Vi.prototype.canMove=k3,Vi.prototype.canAttach=Xf,Vi.prototype.canReplace=D3,Vi.prototype.canDrop=mu,Vi.prototype.canInsert=B_,Vi.prototype.canCreate=kC,Vi.prototype.canConnect=L_,Vi.prototype.canResize=T3,Vi.prototype.canCopy=O3;const Yce={__depends__:[Ca],__init__:["bpmnRules"],bpmnRules:["type",Vi]};function P3(e,n){e.on("saveXML.start",2e3,function t(){var a,i=n.getRootElement(),r=$e(i).di;a=Ti(St(Tv([i],!1),function(s){return s!==i&&!s.labelTarget}),Qd),r.set("planeElement",a)})}P3.$inject=["eventBus","canvas"];const Kce={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",P3]};function V_(e){Ve.call(this,e);var n=this;this.preExecute(["shape.create","connection.create"],function(t){var i=t.context,a=n.getOrdering(i.shape||i.connection,i.parent);a&&(void 0!==a.parent&&(i.parent=a.parent),i.parentIndex=a.index)}),this.preExecute(["shape.move","connection.move"],function(t){var i=t.context,r=i.shape||i.connection,a=n.getOrdering(r,i.newParent||r.parent);a&&(void 0!==a.parent&&(i.newParent=a.parent),i.newParentIndex=a.index)})}function AC(e,n,t){V_.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function o(s){var c=s.order;if(c||(s.order=c=function r(s){if(s.labelTarget)return{level:10};var c=on(i,function(l){return Kt(s,[l.type])});return c&&c.order||{level:1}}(s)),!c)throw new Error("no order for <"+s.id+">");return c}this.getOrdering=function(s,c){if(s.labelTarget)return{parent:n.getRootElement(),index:-1};var l=o(s);l.containers&&(c=function a(s,c,l){for(var d=c;d&&!Kt(d,l);)d=d.parent;if(!d)throw new Error("no parent for <"+s.id+"> in <"+(c&&c.id)+">");return d}(s,c,l.containers));var d=c.children.indexOf(s),u=hN(c.children,function(h){return!(!s.labelTarget&&h.labelTarget)&&l.level");this._pushAction(e),n||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo(function(){t._fire(i,"execute",e),o.execute&&t._markDirty(o.execute(r)),t._executedAction(e,n),t._fire(i,"executed",e)}),n||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},kn.prototype._pushAction=function(e){var n=this._currentExecution,t=n.actions,i=t[0];if(n.atomic)throw new Error("illegal invocation in or phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),t.push(e)},kn.prototype._popAction=function(){var e=this._currentExecution,n=e.trigger,t=e.actions,i=e.dirty;t.pop(),t.length||(this._eventBus.fire("elements.changed",{elements:fN("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:n}),e.trigger=null)},kn.prototype._markDirty=function(e){var n=this._currentExecution;e&&(e=Lt(e)?e:[e],n.dirty=n.dirty.concat(e))},kn.prototype._executedAction=function(e,n){var t=++this._stackIdx;n||this._stack.splice(t,this._stack.length,e)},kn.prototype._revertedAction=function(e){this._stackIdx--},kn.prototype._getHandler=function(e){return this._handlerMap[e]},kn.prototype._setHandler=function(e,n){if(!e||!n)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=n};const Zce={commandStack:["type",kn]};var Qce=new sE("tt");function MC(e,n){e.style.display=!1===n?"none":""}var N3="djs-tooltip",IC="."+N3;function lr(e,n){this._eventBus=e,this._canvas=n,this._ids=Qce,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=function Jce(e){var n=Dn('
');return e.insertBefore(n,e.firstChild),n}(n.getContainer());var t=this;Hr.bind(this._tooltipRoot,IC,"mousedown",function(i){i.stopPropagation()}),Hr.bind(this._tooltipRoot,IC,"mouseover",function(i){t.trigger("mouseover",i)}),Hr.bind(this._tooltipRoot,IC,"mouseout",function(i){t.trigger("mouseout",i)}),this._init()}lr.$inject=["eventBus","canvas"],lr.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=I({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},lr.prototype.trigger=function(e,n){var i=this.get(zr(n.delegateTarget||n.target,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},lr.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},lr.prototype.clearTimeout=function(e){if(e=this.get(e)){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},lr.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},lr.prototype.remove=function(e){var n=this.get(e);n&&(ga(n.html),ga(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},lr.prototype.show=function(){MC(this._tooltipRoot)},lr.prototype.hide=function(){MC(this._tooltipRoot,!1)},lr.prototype._updateRoot=function(e){var n=e.scale||1,t=e.scale||1,i="matrix("+n+",0,0,"+t+","+-1*e.x*n+","+-1*e.y*t+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},lr.prototype._addTooltip=function(e){var i,n=e.id,t=e.html,r=this._tooltipRoot;t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),Vr(t)&&(t=Dn(t)),(i=Dn('
')).appendChild(t),e.type&&fi(i).add("djs-tooltip-"+e.type),e.className&&fi(i).add(e.className),e.htmlContainer=i,r.appendChild(i),this._tooltips[n]=e,this._updateTooltip(e)},lr.prototype._updateTooltip=function(e){var n=e.position;!function ele(e,n,t){I(e.style,{left:n+"px",top:t+"px"})}(e.htmlContainer,n.x,n.y)},lr.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(n){var t=n.show,r=!0;t&&((t.minZoom>e.scale||t.maxZoomNC(e.dy)?"x":"y",i=e["d"+t],r=e[t]-i;if(NC(i)<5)return!1;i<0&&(i*=-1),ru(e)&&(i*=-1);var o=function hle(e,n){if("x"===e){if(n>0)return"e";if(n<0)return"w"}if("y"===e){if(n>0)return"s";if(n<0)return"n"}return null}(t,i),s=Tv(this._canvas.getRootElement(),!0),c=this.calculateAdjustments(s,t,i,r),d=function vle(e,n,t,i,r){var o=e.movingShapes,a=e.resizingShapes;if(a.length){var c,l,s={};return R(a,function(d){var p,g,v,u=ot(d),h=St(d.children,function(E){return!(LC(E)||U3(E)||FC(o,E)||FC(a,E))}),f=St(d.children,function(E){return!LC(E)&&!U3(E)&&FC(o,E)});h.length&&(g=H3(ot(Fi(h))),p=i-u[z_[t]]+g[z_[t]],"n"===t?s.bottom=l=yt(l)?Math.min(l,p):p:"w"===t?s.right=l=yt(l)?Math.min(l,p):p:"s"===t?s.top=c=yt(c)?Math.max(c,p):p:"e"===t&&(s.left=c=yt(c)?Math.max(c,p):p)),f.length&&(v=H3(ot(Fi(f))),p=i-v[z_[z3[t]]]+u[z_[z3[t]]],"n"===t?s.bottom=l=yt(l)?Math.min(l,p):p:"w"===t?s.right=l=yt(l)?Math.min(l,p):p:"s"===t?s.top=c=yt(c)?Math.max(c,p):p:"e"===t&&(s.left=c=yt(c)?Math.max(c,p):p));var k=r&&r[d.id];k&&("n"===t?(p=i+d[ls[n]]-k[ls[n]],s.bottom=l=yt(l)?Math.min(l,p):p):"w"===t?(p=i+d[ls[n]]-k[ls[n]],s.right=l=yt(l)?Math.min(l,p):p):"s"===t?(p=i-d[ls[n]]+k[ls[n]],s.top=c=yt(c)?Math.max(c,p):p):"e"===t&&(p=i-d[ls[n]]+k[ls[n]],s.left=c=yt(c)?Math.max(c,p):p))}),s}}(c,t,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:t,direction:o,shapes:c.resizingShapes,start:r}));return I(n,c,{axis:t,direction:o,spaceToolConstraints:d,start:r}),Kv("resize-"+("x"===t?"ew":"ns")),!0},ds.prototype.calculateAdjustments=function(e,n,t,i){var r=this._rules,o=[],a=[];return R(e,function(s){if(s.parent&&!LC(s)){var c=s[n],l=c+s[ls[n]];if(t>0&&c>i||t<0&&li&&r.allowed("shape.resize",{shape:s}))return a.push(s)}}),{movingShapes:o,resizingShapes:a}},ds.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},ds.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var BC="djs-dragging",G3="djs-resizing",$_=Math.max;function W3(e,n,t,i,r){function o(a,s){R(a,function(c){r.addDragger(c,s),t.addMarker(c,BC)})}e.on("spaceTool.selection.start",function(a){var s=t.getLayer("space"),c=a.context,d=qe("g");ge(d,i.cls("djs-crosshair-group",["no-events"])),Ze(s,d);var u=qe("path");ge(u,"d","M 0,-10000 L 0,10000"),Pt(u).add("djs-crosshair"),Ze(d,u);var h=qe("path");ge(h,"d","M -10000,0 L 10000,0"),Pt(h).add("djs-crosshair"),Ze(d,h),c.crosshairGroup=d}),e.on("spaceTool.selection.move",function(a){sr(a.context.crosshairGroup,a.x,a.y)}),e.on("spaceTool.selection.cleanup",function(a){var c=a.context.crosshairGroup;c&&ti(c)}),e.on("spaceTool.move",250,function(a){var s=a.context,c=s.line,l=s.axis,d=s.movingShapes,u=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var h=t.getLayer("space");ge(c=qe("path"),"d","M0,0 L0,0"),Pt(c).add("djs-crosshair"),Ze(h,c),s.line=c;var f=qe("g");ge(f,i.cls("djs-drag-group",["no-events"])),Ze(t.getActiveLayer(),f),o(d,f);var p=s.movingConnections=n.filter(function(x){var D=!1;R(d,function(Q){R(Q.outgoing,function(be){x===be&&(D=!0)})});var P=!1;R(d,function(Q){R(Q.incoming,function(be){x===be&&(P=!0)})});var V=!1;R(u,function(Q){R(Q.outgoing,function(be){x===be&&(V=!0)})});var F=!1;return R(u,function(Q){R(Q.incoming,function(be){x===be&&(F=!0)})}),function yle(e){return e.waypoints}(x)&&(D||V)&&(P||F)});o(p,f),s.dragGroup=f}if(!s.frameGroup){var g=qe("g");ge(g,i.cls("djs-frame-group",["no-events"])),Ze(t.getActiveLayer(),g);var v=[];R(u,function(x){var D=r.addFrame(x,g),P=D.getBBox();v.push({element:D,initialBounds:P}),t.addMarker(x,G3)}),s.frameGroup=g,s.frames=v}ge(c,{d:{x:"M"+a.x+", -10000 L"+a.x+", 10000",y:"M -10000, "+a.y+" L 10000, "+a.y}[l]});var C={x:a.dx,y:a.dy};C[{x:"y",y:"x"}[s.axis]]=0,sr(s.dragGroup,C.x,C.y),R(s.frames,function(x){var V,F,D=x.element,P=x.initialBounds;ge(D,"e"===s.direction?{width:$_(P.width+C.x,5)}:{width:V=$_(P.width-C.x,5),x:P.x+P.width-V}),ge(D,"s"===s.direction?{height:$_(P.height+C.y,5)}:{height:F=$_(P.height-C.y,5),y:P.y+P.height-F})})}}),e.on("spaceTool.cleanup",function(a){var s=a.context,l=s.movingConnections,d=s.resizingShapes,u=s.line,h=s.dragGroup,f=s.frameGroup;R(s.movingShapes,function(p){t.removeMarker(p,BC)}),R(l,function(p){t.removeMarker(p,BC)}),h&&(ti(u),ti(h)),R(d,function(p){t.removeMarker(p,G3)}),f&&ti(f)})}W3.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];const Y3={__init__:["spaceToolPreview"],__depends__:[as,Ca,j_,Ff,Vf],spaceTool:["type",ds],spaceToolPreview:["type",W3]};function yo(e){this._model=e}function Er(e,n,t,i){Ve.call(this,e),this._bpmnFactory=n,this._translate=i;var r=this;function c(f){R(f.context.oldRoot.children,function(k){b(k,"bpmn:BaseElement")&&r.updateParent(k)})}function l(f){var p=f.context.shape;b(p,"bpmn:BaseElement")&&r.updateBounds(p)}function d(f){r.updateConnection(f.context)}function u(f){r.updateConnectionWaypoints(f.context.connection)}function h(f){r.updateAttachment(f.context)}this.executed(["connection.layout","connection.create"],function o(f){var v,p=f.context;!p.cropped&&!1!==(p.hints||{}).createElementsBehavior&&((v=p.connection).waypoints=t.getCroppedWaypoints(v),p.cropped=!0)}),this.reverted(["connection.layout"],function(f){delete f.context.cropped}),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],bo(function a(f){var p=f.context;r.updateParent(p.shape||p.connection,p.oldParent)})),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],bo(function s(f){var p=f.context;r.updateParent(p.shape||p.connection,p.parent||p.newParent)})),this.executed(["canvas.updateRoot"],c),this.reverted(["canvas.updateRoot"],c),this.executed(["shape.move","shape.create","shape.resize"],bo(function(f){"label"!==f.context.shape.type&&l(f)})),this.reverted(["shape.move","shape.create","shape.resize"],bo(function(f){"label"!==f.context.shape.type&&l(f)})),e.on("shape.changed",function(f){"label"===f.element.type&&l({context:{shape:f.element}})}),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],bo(d)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],bo(d)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],bo(u)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],bo(u)),this.executed("connection.reconnect",bo(function(f){var p=f.context,v=p.oldSource,k=p.newSource,E=$e(p.connection),C=$e(v),x=$e(k);E.conditionExpression&&!Kt(x,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(p.oldConditionExpression=E.conditionExpression,delete E.conditionExpression),v!==k&&C.default===E&&(p.oldDefault=C.default,delete C.default)})),this.reverted("connection.reconnect",bo(function(f){var p=f.context,v=p.oldSource,k=p.newSource,E=$e(p.connection),C=$e(v),x=$e(k);p.oldConditionExpression&&(E.conditionExpression=p.oldConditionExpression),p.oldDefault&&(C.default=p.oldDefault,delete x.default)})),this.executed(["element.updateAttachment"],bo(h)),this.reverted(["element.updateAttachment"],bo(h))}function bo(e){return function(n){var t=n.context;b(t.shape||t.connection,"bpmn:BaseElement")&&e(n)}}function xo(e,n,t){ns.call(this),this._bpmnFactory=e,this._moddle=n,this._translate=t}function q3(e,n,t){e[t]=n[t],delete n[t]}function U_(e,n){this._modeling=e,this._canvas=n}function G_(e){this._modeling=e}function W_(e,n){this._canvas=e,this._layouter=n}yo.$inject=["moddle"],yo.prototype._needsId=function(e){return Kt(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},yo.prototype._ensureId=function(e){var n;e.id?this._model.ids.claim(e.id,e):(n=b(e,"bpmn:Activity")?"Activity":b(e,"bpmn:Event")?"Event":b(e,"bpmn:Gateway")?"Gateway":Kt(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),n+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(n,e)))},yo.prototype.create=function(e,n){var t=this._model.create(e,n||{});return this._ensureId(t),t},yo.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},yo.prototype.createDiShape=function(e,n,t){return this.create("bpmndi:BPMNShape",I({bpmnElement:e,bounds:this.createDiBounds(n)},t))},yo.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},yo.prototype.createDiWaypoints=function(e){var n=this;return Ti(e,function(t){return n.createDiWaypoint(t)})},yo.prototype.createDiWaypoint=function(e){return this.create("dc:Point",jr(e,["x","y"]))},yo.prototype.createDiEdge=function(e,n,t){return this.create("bpmndi:BPMNEdge",I({bpmnElement:e,waypoint:this.createDiWaypoints(n)},t))},yo.prototype.createDiPlane=function(e){return this.create("bpmndi:BPMNPlane",{bpmnElement:e})},Xe()(Er,Ve),Er.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Er.prototype.updateAttachment=function(e){var n=e.shape,i=n.host;n.businessObject.attachedToRef=i&&i.businessObject},Er.prototype.updateParent=function(e,n){if(!(e instanceof Iv||b(e,"bpmn:DataStoreReference")&&e.parent&&b(e.parent,"bpmn:Collaboration"))){var t=e.parent,i=e.businessObject,r=t&&t.businessObject,o=r&&r.di;b(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,r,n&&n.businessObject),b(e,"bpmn:DataOutputAssociation")&&(r=e.source?e.source.businessObject:null),b(e,"bpmn:DataInputAssociation")&&(r=e.target?e.target.businessObject:null),this.updateSemanticParent(i,r),b(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,r),this.updateDiParent(i.di,o)}},Er.prototype.updateBounds=function(e){var n=e.businessObject.di,t=e instanceof Iv?this._getLabel(n):n,i=t.bounds;i||(i=this._bpmnFactory.createDiBounds(),t.set("bounds",i)),I(i,{x:e.x,y:e.y,width:e.width,height:e.height})},Er.prototype.updateFlowNodeRefs=function(e,n,t){t!==n&&(b(t,"bpmn:Lane")&&$n(t.get("flowNodeRef"),e),b(n,"bpmn:Lane")&&Un(n.get("flowNodeRef"),e))},Er.prototype.updateDiConnection=function(e,n,t){e.sourceElement&&e.sourceElement.bpmnElement!==n&&(e.sourceElement=n&&n.di),e.targetElement&&e.targetElement.bpmnElement!==t&&(e.targetElement=t&&t.di)},Er.prototype.updateDiParent=function(e,n){if(n&&!b(n,"bpmndi:BPMNPlane")&&(n=n.$parent),e.$parent!==n){var t=(n||e.$parent).get("planeElement");n?(t.push(e),e.$parent=n):($n(t,e),e.$parent=null)}},Er.prototype.getLaneSet=function(e){var n,t;return b(e,"bpmn:Lane")?((n=e.childLaneSet)||(n=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=n,n.$parent=e),n):(b(e,"bpmn:Participant")&&(e=e.processRef),(n=(t=e.get("laneSets"))[0])||((n=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,t.push(n)),n)},Er.prototype.updateSemanticParent=function(e,n,t){var i,r=this._translate;if(e.$parent!==n&&(!b(e,"bpmn:DataInput")&&!b(e,"bpmn:DataOutput")||(b(n,"bpmn:Participant")&&"processRef"in n&&(n=n.processRef),!("ioSpecification"in n)||n.ioSpecification!==e.$parent))){if(b(e,"bpmn:Lane"))n&&(n=this.getLaneSet(n)),i="lanes";else if(b(e,"bpmn:FlowElement")){if(n)if(b(n,"bpmn:Participant"))n=n.processRef;else if(b(n,"bpmn:Lane"))do{n=n.$parent.$parent}while(b(n,"bpmn:Lane"));i="flowElements"}else if(b(e,"bpmn:Artifact")){for(;n&&!b(n,"bpmn:Process")&&!b(n,"bpmn:SubProcess")&&!b(n,"bpmn:Collaboration");){if(b(n,"bpmn:Participant")){n=n.processRef;break}n=n.$parent}i="artifacts"}else if(b(e,"bpmn:MessageFlow"))i="messageFlows";else if(b(e,"bpmn:Participant")){i="participants";var a,o=e.processRef;o&&(a=function ble(e){for(;e&&!b(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||n),e.$parent&&($n(a.get("rootElements"),o),o.$parent=null),n&&(Un(a.get("rootElements"),o),o.$parent=a))}else b(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":b(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:n.id}));var s;if(e.$parent&&$n(s=e.$parent.get(i),e),n?((s=n.get(i)).push(e),e.$parent=n):e.$parent=null,t){var c=t.get(i);$n(s,e),n&&(c||n.set(i,c=[]),c.push(e))}}},Er.prototype.updateConnectionWaypoints=function(e){e.businessObject.di.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Er.prototype.updateConnection=function(e){var n=e.connection,t=$e(n),i=$e(n.source),r=$e(n.target);if(b(t,"bpmn:DataAssociation"))b(t,"bpmn:DataInputAssociation")?(t.get("sourceRef")[0]=i,this.updateSemanticParent(t,r,e.parent||e.newParent||r)):b(t,"bpmn:DataOutputAssociation")&&(this.updateSemanticParent(t,i,e.parent||e.newParent||i),t.targetRef=r);else{var a=b(t,"bpmn:SequenceFlow");t.sourceRef!==i&&(a&&($n(t.sourceRef&&t.sourceRef.get("outgoing"),t),i&&i.get("outgoing")&&i.get("outgoing").push(t)),t.sourceRef=i),t.targetRef!==r&&(a&&($n(t.targetRef&&t.targetRef.get("incoming"),t),r&&r.get("incoming")&&r.get("incoming").push(t)),t.targetRef=r)}this.updateConnectionWaypoints(n),this.updateDiConnection(t.di,i,r)},Er.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},Xe()(xo,ns),xo.$inject=["bpmnFactory","moddle","translate"],xo.prototype.baseCreate=ns.prototype.create,xo.prototype.create=function(e,n){return"label"===e?this.baseCreate(e,I({type:"label"},eu,n)):this.createBpmnElement(e,n)},xo.prototype.createBpmnElement=function(e,n){var t,o,a,r=(n=n||{}).businessObject;if(!r){if(!n.type)throw new Error((0,this._translate)("no shape type specified"));r=this._bpmnFactory.create(n.type)}return r.di||(r.di="root"===e?this._bpmnFactory.createDiPlane(r,[],{id:r.id+"_di"}):"connection"===e?this._bpmnFactory.createDiEdge(r,[],{id:r.id+"_di"}):this._bpmnFactory.createDiShape(r,{},{id:r.id+"_di"})),b(r,"bpmn:Group")&&(n=I({isFrame:!0},n)),n.di&&(I(r.di,n.di),delete n.di),function xle(e,n,t){R(t,function(i){void 0!==n[i]&&q3(e,n,i)})}(r,n,["processRef","isInterrupting","associationDirection","isForCompensation"]),n.isExpanded&&q3(r.di,n,"isExpanded"),b(r,"bpmn:ExclusiveGateway")&&(r.di.isMarkerVisible=!0),n.eventDefinitionType&&(o=r.get("eventDefinitions")||[],a=this._bpmnFactory.create(n.eventDefinitionType,n.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===n.eventDefinitionType&&(a.condition=this._bpmnFactory.create("bpmn:FormalExpression")),o.push(a),a.$parent=r,r.eventDefinitions=o,delete n.eventDefinitionType),t=this._getDefaultSize(r),n=I({businessObject:r,id:r.id},t,n),this.baseCreate(e,n)},xo.prototype._getDefaultSize=function(e){return b(e,"bpmn:SubProcess")?ln(e)?{width:350,height:200}:{width:100,height:80}:b(e,"bpmn:Task")?{width:100,height:80}:b(e,"bpmn:Gateway")?{width:50,height:50}:b(e,"bpmn:Event")?{width:36,height:36}:b(e,"bpmn:Participant")?ln(e)?{width:600,height:250}:{width:400,height:60}:b(e,"bpmn:Lane")?{width:400,height:100}:b(e,"bpmn:DataObjectReference")?{width:36,height:50}:b(e,"bpmn:DataStoreReference")?{width:50,height:50}:b(e,"bpmn:TextAnnotation")?{width:100,height:30}:b(e,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},xo.prototype.createParticipantShape=function(e){return si(e)||(e={isExpanded:e}),!1!==(e=I({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},U_.$inject=["modeling","canvas"],U_.prototype.preExecute=function(e){var n=this._modeling,i=e.alignment;R(e.elements,function(r){var o={x:0,y:0};i.left?o.x=i.left-r.x:i.right?o.x=i.right-r.width-r.x:i.center?o.x=i.center-Math.round(r.width/2)-r.x:i.top?o.y=i.top-r.y:i.bottom?o.y=i.bottom-r.height-r.y:i.middle&&(o.y=i.middle-Math.round(r.height/2)-r.y),n.moveElements([r],o,r.parent)})},U_.prototype.postExecute=function(e){},G_.$inject=["modeling"],G_.prototype.preExecute=function(e){var n=e.source;if(!n)throw new Error("source required");var i=e.shape;i=e.shape=this._modeling.createShape(i,e.position,e.target||n.parent,{attach:(e.hints||{}).attach}),e.shape=i},G_.prototype.postExecute=function(e){var n=e.hints||{};(function wle(e,n){return Gc(e.outgoing,function(t){return t.target===n})})(e.source,e.shape)||(n.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},W_.$inject=["canvas","layouter"],W_.prototype.execute=function(e){var n=e.connection,t=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!t||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return n.source=t,n.target=i,n.waypoints||(n.waypoints=this._layouter.layoutConnection(n,a)),this._canvas.addConnection(n,r,o),n},W_.prototype.revert=function(e){var n=e.connection;return this._canvas.removeConnection(n),n.source=null,n.target=null,n};var Y_=Math.round;function VC(e){this._modeling=e}function K3(e){return!!e.waypoints}VC.$inject=["modeling"],VC.prototype.preExecute=function(e){var n=e.elements,t=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;R(n,function(d){yt(d.x)||(d.x=0),yt(d.y)||(d.y=0)});var s=Fi(n);R(n,function(d){K3(d)&&(d.waypoints=Ti(d.waypoints,function(u){return{x:Y_(u.x-s.x-s.width/2+r.x),y:Y_(u.y-s.y-s.height/2+r.y)}})),I(d,{x:Y_(d.x-s.x-s.width/2+r.x),y:Y_(d.y-s.y-s.height/2+r.y)})});var c=IN(n),l={};R(n,function(d){if(K3(d))l[d.id]=yt(i)?a.createConnection(l[d.source.id],l[d.target.id],i,d,d.parent||t,o):a.createConnection(l[d.source.id],l[d.target.id],d,d.parent||t,o);else{var u=I({},o);-1===c.indexOf(d)&&(u.autoResize=!1),l[d.id]=yt(i)?a.createShape(d,jr(d,["x","y","width","height"]),d.parent||t,i,u):a.createShape(d,jr(d,["x","y","width","height"]),d.parent||t,u)}}),e.elements=x1(l)};var X3=Math.round;function Js(e){this._canvas=e}function Qf(e){Js.call(this,e)}Js.$inject=["canvas"],Js.prototype.execute=function(e){var n=e.shape,t=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!t)throw new Error("position required");return I(n,void 0!==t.width?t:{x:t.x-X3(n.width/2),y:t.y-X3(n.height/2)}),this._canvas.addShape(n,i,r),n},Js.prototype.revert=function(e){var n=e.shape;return this._canvas.removeShape(n),n},Xe()(Qf,Js),Qf.$inject=["canvas"];var Ele=Js.prototype.execute;Qf.prototype.execute=function(e){var n=e.shape;return function Sle(e){["width","height"].forEach(function(n){typeof e[n]>"u"&&(e[n]=0)})}(n),n.labelTarget=e.labelTarget,Ele.call(this,e)};var Cle=Js.prototype.revert;function q_(e,n){this._canvas=e,this._modeling=n}function jC(e,n){this._modeling=e,this._elementRegistry=n}function Jf(e,n){this._canvas=e,this._modeling=n}function K_(e){this._modeling=e}Qf.prototype.revert=function(e){return e.shape.labelTarget=null,Cle.call(this,e)},q_.$inject=["canvas","modeling"],q_.prototype.execute=function(e){var n=e.connection,t=n.parent;return e.parent=t,e.parentIndex=j1(t.children,n),e.source=n.source,e.target=n.target,this._canvas.removeConnection(n),n.source=null,n.target=null,n},q_.prototype.revert=function(e){var n=e.connection,t=e.parent,i=e.parentIndex;return n.source=e.source,n.target=e.target,Un(t.children,n,i),this._canvas.addConnection(n,t),n},jC.$inject=["modeling","elementRegistry"],jC.prototype.postExecute=function(e){var n=this._modeling,t=this._elementRegistry;R(e.elements,function(r){t.get(r.id)&&(r.waypoints?n.removeConnection(r):n.removeShape(r))})},Jf.$inject=["canvas","modeling"],Jf.prototype.preExecute=function(e){var n=this._modeling,t=e.shape;gu(t.incoming,function(i){n.removeConnection(i,{nested:!0})}),gu(t.outgoing,function(i){n.removeConnection(i,{nested:!0})}),gu(t.children,function(i){!function Dle(e){return e.waypoints}(i)?n.removeShape(i,{nested:!0}):n.removeConnection(i,{nested:!0})})},Jf.prototype.execute=function(e){var n=this._canvas,t=e.shape,i=t.parent;return e.oldParent=i,e.oldParentIndex=j1(i.children,t),n.removeShape(t),t},Jf.prototype.revert=function(e){var n=this._canvas,t=e.shape,i=e.oldParent;return Un(i.children,t,e.oldParentIndex),n.addShape(t,i),t},K_.$inject=["modeling"];var Z3={x:"y",y:"x"};function X_(e,n){this._layouter=e,this._canvas=n}function zC(){}function HC(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function ep(e){this._modeling=e}function Z_(e){this._helper=new ep(e)}function al(e){this._modeling=e,this._helper=new ep(e)}function tp(e){this._modeling=e}function Q3(e){return e.original||e}function us(e,n){this._modeling=e,this._rules=n}function np(e){this._modeling=e}function ec(e){this._modeling=e}function J3(e){return I({},e)}function e5(e){switch(e){case"n":case"s":return"y";case"w":case"e":return"x"}}function t5(e,n,t){var i=e5(t);return/e|s/.test(t)?e[i]>n:/n|w/.test(t)?e[i] required");var r=e.changed||this.getVisualReferences(t).concat(n),o=e.oldProperties||function Ale(e,n){return br(n,function(t,i){return t[i]=e.get(i),t},{})}(t,xv(i));return c5(t,i),e.oldProperties=o,e.changed=r,r},ip.prototype.revert=function(e){var i=e.changed;return c5(e.moddleElement,e.oldProperties),i},ip.prototype.getVisualReferences=function(e){var n=this._elementRegistry;return b(e,"bpmn:DataObject")?function Mle(e,n){return n.filter(function(t){return b(t,"bpmn:DataObjectReference")&&$e(t).dataObjectRef===e})}(e,n):[]};var rp="default",hs="id",Ile={width:0,height:0};function op(e,n,t,i,r){this._elementRegistry=e,this._moddle=n,this._translate=t,this._modeling=i,this._textRenderer=r}function d5(e,n){return hs in e&&e[hs]!==n[hs]}function u5(e,n){R(n,function(t,i){"di"!==i?e.set(i,t):e.di&&function Ple(e,n){R(n,function(t,i){e.set(i,t)})}(e.di,t)})}op.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],op.prototype.execute=function(e){var n=e.element,t=[n];if(!n)throw new Error((0,this._translate)("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=n.businessObject,s=function Fle(e){var n=I({},e);return Nle.forEach(function(t){t in e&&(n[t]=$e(n[t]))}),n}(e.properties),c=e.oldProperties||function Ole(e,n){return br(xv(n),function(i,r){return i[r]="di"!==r?e.get(r):function Rle(e,n){return br(n,function(t,i){return t[i]=e.get(i),t},{})}(e.di,xv(n.di)),i},{})}(a,s);return d5(s,a)&&(o.unclaim(a[hs]),r.updateId(n,s[hs]),o.claim(s[hs],a)),rp in s&&(s[rp]&&t.push(r.get(s[rp].id)),a[rp]&&t.push(r.get(a[rp].id))),u5(a,s),e.oldProperties=c,e.changed=t,t},op.prototype.postExecute=function(e){var t=e.element.label,i=t&&$e(t).name;if(i){var r=this._textRenderer.getExternalLabelBounds(t,i);this._modeling.resizeShape(t,r,Ile)}},op.prototype.revert=function(e){var n=e.element,t=e.properties,i=e.oldProperties,r=n.businessObject,o=this._elementRegistry,a=this._moddle.ids;return u5(r,i),d5(t,r)&&(a.unclaim(t[hs]),o.updateId(n,i[hs]),a.claim(i[hs],r)),e.changed};var Nle=["default"];function ey(e,n){this._canvas=e,this._modeling=n}function UC(e,n){this._modeling=e,this._spaceTool=n}function GC(e,n){this._modeling=e,this._translate=n}function ap(e,n){this._modeling=e,this._spaceTool=n}ey.$inject=["canvas","modeling"],ey.prototype.execute=function(e){var n=this._canvas,t=e.newRoot,i=t.businessObject,r=n.getRootElement(),o=r.businessObject,a=o.$parent,s=o.di;n.setRootElement(t,!0),Un(a.rootElements,i),i.$parent=a,$n(a.rootElements,o),o.$parent=null,o.di=null,s.bpmnElement=i,i.di=s,e.oldRoot=r},ey.prototype.revert=function(e){var i=e.newRoot.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=i.di;this._canvas.setRootElement(r,!0),$n(a.rootElements,i),i.$parent=null,Un(a.rootElements,o),o.$parent=a,i.di=null,s.bpmnElement=o,o.di=s},UC.$inject=["modeling","spaceTool"],UC.prototype.preExecute=function(e){var n=this._spaceTool,t=this._modeling,i=e.shape,r=e.location,o=Ko(i),a=o===i,s=a?i:i.parent;nl(s).length||t.createShape({type:"bpmn:Lane"},{x:i.x+30,y:i.y,width:i.width-30,height:i.height},s);var l=[];Yc(o,function(g){return l.push(g),g.label&&l.push(g.label),g===i?[]:St(g.children,function(v){return v!==i})});var d="top"===r?-120:120,u="top"===r?i.y:i.y+i.height,h=u+("top"===r?10:-10),f="top"===r?"n":"s",p=n.calculateAdjustments(l,"y",d,h);n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:d},f,h),e.newLane=t.createShape({type:"bpmn:Lane"},{x:i.x+(a?30:0),y:u-("top"===r?120:0),width:i.width-(a?30:0),height:120},s)},GC.$inject=["modeling","translate"],GC.prototype.preExecute=function(e){var n=this._modeling,t=this._translate,i=e.shape,r=e.count,o=nl(i),a=o.length;if(a>r)throw new Error(t("more than {count} child lanes",{count:r}));var d,h,s=Math.round(i.height/r);for(h=0;h0||o.bottom<0?-l:l,e.y+(o.bottom?e.height:0)+(o.bottom?-10:10)),t.makeSpace(f.movingShapes,f.resizingShapes,{x:0,y:l},u)),(o.left||o.right)&&(l=o.right||o.left,u=o.right?"e":"w",f=t.calculateAdjustments(c,"x",o.left>0||o.right<0?-l:l,e.x+(o.right?e.width:0)+(o.right?-10:100)),t.makeSpace(f.movingShapes,f.resizingShapes,{x:l,y:0},u))};var sp="flowNodeRef",WC="lanes";function cp(e){this._elementRegistry=e}function ty(e){this._moddle=e}cp.$inject=["elementRegistry"],cp.prototype.computeUpdates=function(e,n){var t=[],i=[],r={},o=[];function s(d){-1===t.indexOf(d)&&(o.push(d),t.push(d))}return n.forEach(function(d){var u=Ko(d);u&&-1===t.indexOf(u)&&(u.children.filter(function(f){return b(f,"bpmn:FlowNode")}).forEach(s),t.push(u))}),e.forEach(s),o.forEach(function(d){var u=d.businessObject,f=u.get(WC).slice(),p=function l(d){if(!d.parent)return[];var u=function c(d){var u=Ko(d);return r[u.id]||(r[u.id]=u_(u)),r[u.id]}(d);return u.filter(function(h){return function a(d,u){var h=ot(u),f_x=d.x+d.width/2,f_y=d.y+d.height/2;return f_x>h.left&&f_xh.top&&f_y"u"&&(u=n.getExternalLabelBounds(l,f)),u&&e.resizeShape(l,u,zle)}}}function f5(e){return!e||!e.trim()}function Zn(e,n,t,i){mn.call(this,e,n,t),this._bpmnRules=i}function p5(){}h5.$inject=["modeling","textRenderer"],Xe()(Zn,mn),Zn.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],Zn.prototype.getHandlers=function(){var e=mn.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=ip,e["element.updateProperties"]=op,e["canvas.updateRoot"]=ey,e["lane.add"]=UC,e["lane.resize"]=ap,e["lane.split"]=GC,e["lane.updateRefs"]=cp,e["id.updateClaim"]=ty,e["element.setColor"]=YC,e["element.updateLabel"]=h5,e},Zn.prototype.updateLabel=function(e,n,t,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:t,hints:i||{}})},Zn.prototype.connect=function(e,n,t,i){if(t||(t=this._bpmnRules.canConnect(e,n)),t)return this.createConnection(e,n,t,e.parent,i)},Zn.prototype.updateModdleProperties=function(e,n,t){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n,properties:t})},Zn.prototype.updateProperties=function(e,n){this._commandStack.execute("element.updateProperties",{element:e,properties:n})},Zn.prototype.resizeLane=function(e,n,t){this._commandStack.execute("lane.resize",{shape:e,newBounds:n,balanced:t})},Zn.prototype.addLane=function(e,n){var t={shape:e,location:n};return this._commandStack.execute("lane.add",t),t.newLane},Zn.prototype.splitLane=function(e,n){this._commandStack.execute("lane.split",{shape:e,count:n})},Zn.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"});return this._commandStack.execute("canvas.updateRoot",{newRoot:e}),e},Zn.prototype.updateLaneRefs=function(e,n){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:n})},Zn.prototype.makeProcess=function(){var e=this._create("root",{type:"bpmn:Process"});this._commandStack.execute("canvas.updateRoot",{newRoot:e})},Zn.prototype.claimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n,claiming:!0})},Zn.prototype.unclaimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n})},Zn.prototype.setColor=function(e,n){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:n})},p5.prototype.layoutConnection=function(e,n){return[(n=n||{}).connectionStart||Mt(n.source||e.source),n.connectionEnd||Mt(n.target||e.target)]};var ny=20,Hle=5,iy=Math.round,m5=20,$le={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function g5(e,n,t){var s,c,i=Li(n,e,Hle),r=t.split(":")[0],o=iy((n.x-e.x)/2+e.x),a=iy((n.y-e.y)/2+e.y),l=function Gle(e,n){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[e].test(n)}(r,i),d=/h|r|l/.test(r),u=!1,h=!1;return l?(s=d?{x:o,y:e.y}:{x:e.x,y:a},c=d?"h:h":"v:v"):(u=function Ule(e,n){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[n].test(e)}(i,r),c=d?"h:v":"v:h",u?d?(h=a===e.y,s={x:e.x+ny*(/l/.test(r)?-1:1),y:h?a+ny:a}):s={x:(h=o===e.x)?o+ny:o,y:e.y+ny*(/t/.test(r)?-1:1)}:s={x:o,y:a}),{waypoints:qC(e,s,c).concat(s),directions:c,turnNextDirections:h}}function v5(e){return e.split(":").reverse().join(":")}function qC(e,n,t){if(!function rde(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(t=t||"h:h"))throw new Error("unknown directions: <"+t+">: must be specified as : with start/end in { h,v,t,r,b,l }");if(y5(t)){var i=function Wle(e,n,t){return g5(e,n,t)}(e,n,t),r=function Yle(e,n,t){var i=g5(n,e,v5(t));return{waypoints:i.waypoints.slice().reverse(),directions:v5(i.directions),turnNextDirections:i.turnNextDirections}}(e,n,t),o=function qle(e,n){var t=e.directions.split(":")[1],i=n.directions.split(":")[0];e.turnNextDirections&&(t="h"==t?"v":"h"),n.turnNextDirections&&(i="h"==i?"v":"h");var r=t+":"+i;return{waypoints:qC(e.waypoints[e.waypoints.length-1],n.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function Kle(e,n,t){var i=iy((n.x-e.x)/2+e.x),r=iy((n.y-e.y)/2+e.y);if("h:v"===t)return[{x:n.x,y:e.y}];if("v:h"===t)return[{x:e.x,y:n.y}];if("h:h"===t)return[{x:i,y:e.y},{x:i,y:n.y}];if("v:v"===t)return[{x:e.x,y:r},{x:n.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,n,t)}function Zle(e,n,t,i,r){var a=function KJ(e,n){return js(e)?[]:(function qJ(e){if(!Lt(e))throw new Error("must supply array")}(e),n=E1(n),e.filter(function(t,i){return!n(t,i)}))}(r&&r.preferredLayouts||[],"straight")[0]||"h:h",c=Li(e,n,$le[a]||0),l=function ide(e,n){if(y5(n))return n;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return n}}(c,a);t=t||Mt(e),i=i||Mt(n);var d=l.split(":"),u=b5(t,e,d[0],function ode(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(c));return function Xle(e,n,t){var i=qC(e,n,t);return i.unshift(e),i.push(n),x5(i)}(u,b5(i,n,d[1],c),l)}function _5(e,n,t){return function Jle(e,n,t){return e>=n&&e<=t}(n[e],t[e],t[e]+t[{x:"width",y:"height"}[e]])}function KC(e,n,t,i){if(function r(d){return d.length<3||!(d.length>4)&&!!on(d,function(u,h){var f=d[h-1];return f&&yf(u,f)<3})}(i))return null;var l,s=i[0],c=i.slice();return c[0]=t,c[1]=function o(d,u,h){switch(ts(u,d)){case"v":return{x:h.x,y:d.y};case"h":return{x:d.x,y:h.y}}return{x:d.x,y:d.y}}(c[1],s,t),(l=function a(d,u,h){var f;for(f=d.length-2;0!==f;f--)if(BN(d[f],u,m5)||BN(d[f],h,m5))return d.slice(f);return d}(c,e,n))!==c&&(c=KC(e,n,t,l)),c&&ts(c)?null:c}function y5(e){return e&&/t|r|b|l/.test(e)}function b5(e,n,t,i){if("h"===t&&(t=/left/.test(i)?"l":"r"),"v"===t&&(t=/top/.test(i)?"t":"b"),"t"===t)return{original:e,x:e.x,y:n.y};if("r"===t)return{original:e,x:n.x+n.width,y:e.y};if("b"===t)return{original:e,x:e.x,y:n.y+n.height};if("l"===t)return{original:e,x:n.x,y:e.y};throw new Error("unexpected dockingDirection: <"+t+">")}function x5(e){return e.reduce(function(n,t,i){return z1(n[n.length-1],e[i+1],t,0)||n.push(t),n},[])}var sde=40,XC={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},ry={top:"t",right:"r",bottom:"b",left:"l"};function ZC(){}function dde(e,n){return b(n,"bpmn:Participant")?"source":b(e,"bpmn:Participant")?"target":lp(n)?"source":lp(e)||b(n,"bpmn:Event")?"target":b(e,"bpmn:Event")?"source":null}function hde(e){return lp(e)?"target":"source"}function w5(e,n){return e?e.original||e:Mt(n)}function E5(e,n){return b(n,"bpmn:Activity")&&b(e,"bpmn:BoundaryEvent")&&n.businessObject.isForCompensation}function lp(e){return b(e,"bpmn:SubProcess")&&ln(e)}function dp(e,n){return e===n}function up(e){var n=/right|left/.exec(e);return n&&n[0]}function sl(e){var n=/top|bottom/.exec(e);return n&&n[0]}function QC(e){return"right"===e||"left"===e}function vde(e,n){var t=n.waypoints,i=t&&t.length&&Li(t[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function _de(e,n,t){var a,s,i=Mt(e),r=Mt(n),o=function cde(e){var n=e.host;return Li(Mt(e),n,-10)}(e),c=dp(e.host,n),l=function fde(e,n){return-1!==n.indexOf(e)}(o,["top","right","bottom","left"]),d=Li(r,i,{x:e.width/2+n.width/2,y:e.height/2+n.height/2});return c?function yde(e,n,t,i,r){var o=n?e:sl(e);return[ry[o]+":"+(n?QC(e)?C5("y",t,i,r)?"h":"b":C5("x",t,i,r)?"v":"l":"v")]}(o,l,e,n,t):(a=function bde(e,n,t){return t?ry[e]:dp(sl(e),sl(n))||function pde(e,n){return XC[e]===n}(up(e),up(n))?ry[sl(e)]:ry[up(e)]}(o,d,l),s=function xde(e,n,t){return t?QC(e)?function mde(e,n){var t=up(e);return-1!==n.indexOf(XC[t])}(e,n)||dp(e,n)?"h":"v":function gde(e,n){var t=sl(e);return-1!==n.indexOf(XC[t])}(e,n)||dp(e,n)?"v":"h":QC(n)||dp(sl(e),sl(n))&&up(n)?"h":"v"}(o,d,l),[a+":"+s])}function C5(e,n,t,i){var r=sde;return!(JC(e,i,t,r)||JC(e,i,{x:t.x+t.width,y:t.y+t.height},r)||JC(e,i,Mt(n),r))}function JC(e,n,t,i){return Math.abs(n[e]-t[e])
'),e.appendChild(o));var s=Dn(t.html||(t.separator?'
':'
'));o.appendChild(s),t.separator||(zr(s,"data-action",i),t.title&&zr(s,"title",t.title),t.className&&function Nde(e,n){var t=fi(e);(Lt(n)?n:n.split(/\s+/g)).forEach(function(r){t.add(r)})}(s,t.className),t.imageUrl&&s.appendChild(Dn('')))}),this.open()},li.prototype.trigger=function(e,n,t){var r,o,a,i=this._entries,s=n.delegateTarget||n.target;if(!s)return n.preventDefault();(r=i[zr(s,"data-action")])&&(a=n.originalEvent||n,Gi(o=r.action)?"click"===e&&o(a,t):o[e]&&o[e](a,t),n.preventDefault())},li.prototype._layoutChanged=function(){this._toggleState({})},li.prototype._needsCollapse=function(e,n){return e<46*Object.keys(n).length+50},li.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},li.prototype.open=function(){this._toggleState({open:!0})},li.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},li.prototype.isActiveTool=function(e){return e&&this._activeTool===e},li.prototype.updateToolHighlight=function(e){var n;this._toolsContainer||(n=Bn(".djs-palette-entries",this._container),this._toolsContainer=Bn("[data-group=tools]",n)),R(this._toolsContainer.children,function(i){var r=i.getAttribute("data-action");if(r){var o=fi(i);r=r.replace("-tool",""),o.contains("entry")&&r===e?o.add("highlighted-entry"):o.remove("highlighted-entry")}})},li.prototype.isOpen=function(){return fi(this._container).has(nS)},li.prototype._getParentContainer=function(){return this._canvas.getContainer()},li.HTML_MARKUP='
';const Lde={__init__:["palette"],palette:["type",li]};var F5="crosshair";function cl(e,n,t,i,r,o,a){this._selection=r,this._dragging=t,this._mouse=a;var s=this;o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",function(l){!l.hover&&!(l.originalEvent.target instanceof SVGElement)||e.once("lasso.selection.ended",function(){s.activateLasso(l.originalEvent,!0)})}),e.on("lasso.end",function(l){var d=iS(l),u=i.filter(function(h){return h});s.select(u,d)}),e.on("lasso.start",function(l){var d=l.context;d.bbox=iS(l),function(l){var u,d=n.getActiveLayer();ge(u=l.frame=qe("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Ze(d,u)}(d)}),e.on("lasso.move",function(l){var d=l.context;d.bbox=iS(l),function(l){var u=l.bbox;ge(l.frame,{x:u.x,y:u.y,width:u.width,height:u.height})}(d)}),e.on("lasso.cleanup",function(l){!function(l){l.frame&&ti(l.frame)}(l.context)}),e.on("element.mousedown",1500,function(l){if(AF(l))return s.activateLasso(l.originalEvent),!0})}function iS(e){var n={x:e.x-e.dx,y:e.y-e.dy},t={x:e.x,y:e.y};return n.x<=t.x&&n.y=t.x&&n.yt.x&&n.y<=t.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:n.x<=t.x&&n.y>t.y||n.x=t.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:n.x>=t.x&&n.y>t.y||n.x>t.x&&n.y>=t.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:{x:t.x,y:t.y,width:0,height:0}}cl.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],cl.prototype.activateLasso=function(e,n){this._dragging.init(e,"lasso",{autoActivate:n,cursor:F5,data:{context:{}}})},cl.prototype.activateSelection=function(e,n){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:n,cursor:F5,data:{context:{}}})},cl.prototype.select=function(e,n){var t=function Gee(e,n){var t={};return R(e,function(i){var r=i;r.waypoints&&(r=Fi(r)),!yt(n.y)&&r.x>n.x&&(t[i.id]=i),!yt(n.x)&&r.y>n.y&&(t[i.id]=i),r.x>n.x&&r.y>n.y&&(yt(n.width)&&yt(n.height)&&r.width+r.xn[i]+r-t&&gi(e,i,n[i]+r-t)})}(n,o,function Qde(e){return b(e,"bpmn:Task")?10:20}(o)),o&&function Zde(e,n){return Gc(n,function(t){return G5(e,t)})}(i,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=po(r),Kt(o,["bpmn:Event","bpmn:Gateway"])&&U5(n,po(o)),Kt(o,["bpmn:Task","bpmn:SubProcess"])&&function Kde(e,n){var t=po(n);H5.forEach(function(i){(function Jde(e,n,t){return e[t]>n[t]+20&&e[t]r[s]?r[s]+40:r[s]-40)})}}(n)):G5(i,"bpmn:MessageFlow")?(b(r,"bpmn:Event")&&(t.connectionStart=po(r)),b(o,"bpmn:Event")&&U5(n,po(o))):t.connectionStart=t.initialConnectionStart)})}function U5(e,n){gi(e,"x",n.x),gi(e,"y",n.y)}function G5(e,n){return e&&e.type===n}function W5(e,n){return"x"===e?n.width:n.height}function ic(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function ay(e){this._snapValues={}}$5.$inject=["eventBus"],ic.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},ic.prototype.setSnapOrigin=function(e,n){this._snapOrigins[e]=n,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},ic.prototype.addDefaultSnap=function(e,n){var t=this._defaultSnaps[e];t||(t=this._defaultSnaps[e]=[]),t.push(n)},ic.prototype.getSnapLocations=function(){return this._snapLocations},ic.prototype.setSnapLocations=function(e){this._snapLocations=e},ic.prototype.pointsForTarget=function(e){var n=e.id||e,t=this._targets[n];return t||(t=this._targets[n]=new ay).initDefaults(this._defaultSnaps),t},ay.prototype.add=function(e,n){var t=this._snapValues[e];t||(t=this._snapValues[e]={x:[],y:[]}),-1===t.x.indexOf(n.x)&&t.x.push(n.x),-1===t.y.indexOf(n.y)&&t.y.push(n.y)},ay.prototype.snap=function(e,n,t,i){var r=this._snapValues[n];return r&&function voe(e,n,t){var i,r;for(t=void 0===t?10:t,i=0;i=e.x||r&&r<=e.x)&&gi(e,"x",e.x),(i&&i>=e.y||o&&o<=e.y)&&gi(e,"y",e.y)}}function q5(e,n){return-1!==e.indexOf(n)}function K5(e,n,t){return n?{x:e.x-t.x,y:e.y-t.y}:{x:e.x,y:e.y}}function hp(e,n){var t=this;e.on(["resize.start"],function(i){t.initSnap(i)}),e.on(["resize.move","resize.end"],1250,function(i){var r=i.context,o=r.shape,a=o.parent,s=r.direction,c=r.snapContext;if(!(i.originalEvent&&Wr(i.originalEvent)||du(i))){var l=c.pointsForTarget(a);l.initialized||((l=t.addSnapTargetPoints(l,o,a,s)).initialized=!0),function fue(e){return"n"===e||"s"===e}(s)&&gi(i,"x",i.x),function pue(e){return"e"===e||"w"===e}(s)&&gi(i,"y",i.y),n.snap(i,l)}}),e.on(["resize.cleanup"],function(){n.hide()})}function X5(e,n){var t=Mt(e),i=ot(e),r={x:t.x,y:t.y};return-1!==n.indexOf("n")?r.y=i.top:-1!==n.indexOf("s")&&(r.y=i.bottom),-1!==n.indexOf("e")?r.x=i.right:-1!==n.indexOf("w")&&(r.x=i.left),r}function rc(e){this._canvas=e,this._asyncHide=pN(Wi(this.hide,this),1e3)}Da.$inject=["elementRegistry","eventBus","snapping"],Da.prototype.initSnap=function(e){var o,n=this._elementRegistry,t=e.context,i=t.shape,r=t.snapContext;r||(r=t.snapContext=new ic);var a_x=(o=n.get(i.id)?po(i,e):{x:e.x+po(i).x,y:e.y+po(i).y}).x-i.width/2,a_y=o.y-i.height/2,s_x=o.x+i.width/2,s_y=o.y+i.height/2;return r.setSnapOrigin("mid",{x:o.x-e.x,y:o.y-e.y}),cS(i)||(r.setSnapOrigin("top-left",{x:a_x-e.x,y:a_y-e.y}),r.setSnapOrigin("bottom-right",{x:s_x-e.x,y:s_y-e.y})),r},Da.prototype.addSnapTargetPoints=function(e,n,t){return R(this.getSnapTargets(n,t),function(r){if(cS(r))cS(n)&&e.add("mid",po(r));else if(function nue(e){return!!e.waypoints}(r)){if(r.waypoints.length<3)return;R(r.waypoints.slice(1,-1),function(a){e.add("mid",a)})}else e.add("mid",po(r))}),!yt(n.x)||!yt(n.y)||this._elementRegistry.get(n.id)&&e.add("mid",po(n)),e},Da.prototype.getSnapTargets=function(e,n){return M4(n).filter(function(t){return!function iue(e){return!!e.hidden}(t)})},Xe()(yu,Da),yu.$inject=["eventBus","injector"],yu.prototype.initSnap=function(e){var n=Da.prototype.initSnap.call(this,e),t=e.shape,i=!!this._elementRegistry.get(t.id);return R(t.outgoing,function(r){var o=r.waypoints[0];n.setSnapOrigin(r.id+"-docking",K5(o=o.original||o,i,e))}),R(t.incoming,function(r){var o=r.waypoints[r.waypoints.length-1];n.setSnapOrigin(r.id+"-docking",K5(o=o.original||o,i,e))}),b(t,"bpmn:Participant")&&n.setSnapLocations(["top-left","bottom-right","mid"]),n},yu.prototype.addSnapTargetPoints=function(e,n,t){Da.prototype.addSnapTargetPoints.call(this,e,n,t);var i=this.getSnapTargets(n,t);R(i,function(o){(function aue(e){return!(!b(e,"bpmn:SubProcess")||!ln(e))||b(e,"bpmn:Participant")}(o)||function oue(e,n){return e.every(function(t){return b(t,n)})}([n,o],"bpmn:TextAnnotation"))&&(e.add("top-left",T4(o)),e.add("bottom-right",A4(o)))});var r=this._elementRegistry;return R(n.incoming,function(o){if(r.get(n.id)){q5(i,o.source)||e.add("mid",Mt(o.source));var a=o.waypoints[0];e.add(o.id+"-docking",a.original||a)}}),R(n.outgoing,function(o){if(r.get(n.id)){q5(i,o.target)||e.add("mid",Mt(o.target));var a=o.waypoints[o.waypoints.length-1];e.add(o.id+"-docking",a.original||a)}}),b(t,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,n,t.parent)),e},yu.prototype.getSnapTargets=function(e,n){return Da.prototype.getSnapTargets.call(this,e,n).filter(function(t){return!b(t,"bpmn:Lane")})},hp.prototype.initSnap=function(e){var n=e.context,t=n.shape,i=n.direction,r=n.snapContext;r||(r=n.snapContext=new ic);var o=X5(t,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},hp.prototype.addSnapTargetPoints=function(e,n,t,i){return R(this.getSnapTargets(n,t),function(o){e.add("corner",A4(o)),e.add("corner",T4(o))}),e.add("corner",X5(n,i)),e},hp.$inject=["eventBus","snapping"],hp.prototype.getSnapTargets=function(e,n){return M4(n).filter(function(t){return!(function lue(e,n){return e.host===n}(t,e)||function due(e){return!!e.waypoints}(t)||function uue(e){return!!e.hidden}(t)||function hue(e){return!!e.labelTarget}(t))})},rc.$inject=["canvas"],rc.prototype.snap=function(e,n){var i=e.context.snapContext,r=i.getSnapLocations(),o={x:du(e,"x"),y:du(e,"y")};R(r,function(a){var s=i.getSnapOrigin(a),c={x:e.x+s.x,y:e.y+s.y};if(R(["x","y"],function(l){var d;o[l]||void 0!==(d=n.snap(c,a,l,7))&&(o[l]={value:d,originValue:d-s[l]})}),o.x&&o.y)return!1}),this.showSnapLine("vertical",o.x&&o.x.value),this.showSnapLine("horizontal",o.y&&o.y.value),R(["x","y"],function(a){var s=o[a];si(s)&&gi(e,a,s.originValue)})},rc.prototype._createLine=function(e){var n=this._canvas.getLayer("snap"),t=qe("path");return ge(t,{d:"M0,0 L0,0"}),Pt(t).add("djs-snap-line"),Ze(n,t),{update:function(i){yt(i)?ge(t,"horizontal"===e?{d:"M-100000,"+i+" L+100000,"+i,display:""}:{d:"M "+i+",-100000 L "+i+", +100000",display:""}):ge(t,{display:"none"})}}},rc.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},rc.prototype.showSnapLine=function(e,n){var t=this.getSnapLine(e);t&&t.update(n),this._asyncHide()},rc.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},rc.prototype.hide=function(){R(this._snapLines,function(e){e.update()})};const vue={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Da],resizeSnapping:["type",hp],snapping:["type",rc]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",$5],createMoveSnapping:["type",yu]};var _ue={"&":"&","<":"<",">":">",'"':""","'":"'"};function Z5(e){return(e=""+e)&&e.replace(/[&<>"']/g,function(n){return _ue[n]})}function ht(e,n,t,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=n,this._overlays=t,this._selection=i,this._container=Dn(ht.BOX_HTML),this._searchInput=Bn(ht.INPUT_SELECTOR,this._container),this._resultsContainer=Bn(ht.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),n.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Q5(e,n,t){var i=function bue(e){var n="";return e.forEach(function(t){n+=t.matched?''+Z5(t.matched)+"":Z5(t.normal)}),""!==n?n:null}(n),r=Dn(t);r.innerHTML=i,e.appendChild(r)}ht.$inject=["canvas","eventBus","overlays","selection"],ht.prototype._bindEvents=function(){var e=this;function n(t,i,r,o){e._eventMaps.push({el:t,type:r,listener:Hr.bind(t,i,r,o)})}n(document,"html","click",function(t){e.close()}),n(this._container,ht.INPUT_SELECTOR,"click",function(t){t.stopPropagation(),t.delegateTarget.focus()}),n(this._container,ht.RESULT_SELECTOR,"mouseover",function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)}),n(this._container,ht.RESULT_SELECTOR,"click",function(t){t.stopPropagation(),e._select(t.delegateTarget)}),n(this._container,ht.INPUT_SELECTOR,"keydown",function(t){38===t.keyCode&&t.preventDefault(),40===t.keyCode&&t.preventDefault()}),n(this._container,ht.INPUT_SELECTOR,"keyup",function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var i=e._getCurrentResult();return i?e._select(i):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37===t.keyCode||39===t.keyCode||e._search(t.delegateTarget.value))})},ht.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){Hr.unbind(e.el,e.type,e.listener)})},ht.prototype._search=function(e){var n=this;if(this._clearResults(),e&&""!==e){var t=this._searchProvider.find(e);if(t.length){t.forEach(function(r){var o=r.element.id,a=n._createResultNode(r,o);n._results[o]={element:r.element,node:a}});var i=Bn(ht.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},ht.prototype._scrollToDirection=function(e){var n=this._getCurrentResult();if(n){var t=e?n.previousElementSibling:n.nextElementSibling;t&&(this._scrollToNode(t),this._preselect(t))}},ht.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var n=e.offsetTop,t=this._resultsContainer.scrollTop,i=n-this._resultsContainer.clientHeight+e.clientHeight;n0&&Q5(t,e.primaryTokens,ht.RESULT_PRIMARY_HTML),Q5(t,e.secondaryTokens,ht.RESULT_SECONDARY_HTML),zr(t,ht.RESULT_ID_ATTRIBUTE,n),this._resultsContainer.appendChild(t),t},ht.prototype.registerProvider=function(e){this._searchProvider=e},ht.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,fi(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},ht.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,fi(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},ht.prototype.toggle=function(){this.isOpen()?this.close():this.open()},ht.prototype.isOpen=function(){return this._open},ht.prototype._preselect=function(e){var n=this._getCurrentResult();if(e!==n){n&&fi(n).remove(ht.RESULT_SELECTED_CLASS);var t=zr(e,ht.RESULT_ID_ATTRIBUTE),i=this._results[t].element;fi(e).add(ht.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},ht.prototype._select=function(e){var n=zr(e,ht.RESULT_ID_ATTRIBUTE),t=this._results[n].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(t,{top:400}),this._selection.select(t),this._eventBus.fire("searchPad.selected",t)},ht.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function yue(e){var t=e.width+12,i=e.height+12;return{position:{bottom:i-6,right:t-6},show:!0,html:'
'}}(Fi(e));this._overlayId=this._overlays.add(e,t)}},ht.CONTAINER_SELECTOR=".djs-search-container",ht.INPUT_SELECTOR=".djs-search-input input",ht.RESULTS_CONTAINER_SELECTOR=".djs-search-results",ht.RESULT_SELECTOR=".djs-search-result",ht.RESULT_SELECTED_SELECTOR="."+(ht.RESULT_SELECTED_CLASS="djs-search-result-selected"),ht.RESULT_ID_ATTRIBUTE="data-result-id",ht.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",ht.OVERLAY_CLASS="djs-search-overlay",ht.BOX_HTML='
',ht.RESULT_HTML='
',ht.RESULT_PRIMARY_HTML='
',ht.RESULT_SECONDARY_HTML='

';const xue={__depends__:[cE,ba],searchPad:["type",ht]};function lS(e,n,t){this._elementRegistry=e,this._canvas=t,n.registerProvider(this)}function J5(e){return St(e,function(t){return!!t.matched}).length>0}function eB(e,n){var t=[],i=e;if(!e)return t;e=e.toLowerCase(),n=n.toLowerCase();var r=e.indexOf(n);return r>-1?(0!==r&&t.push({normal:i.substr(0,r)}),t.push({matched:i.substr(r,n.length)}),n.length+r')}),Xo.prototype._modules=[].concat(Xs.prototype._modules,Xo.prototype._interactionModules=[HF,WF,Dre,KF],Xo.prototype._modelingModules=[Tre,Ure,noe,Xre,yoe,ME,Soe,Tae,eL,uu,Iae,Pae,Kae,Qae,Jae,rse,mse,wde,Ide,zde,$de,b_,vue,wue]);let dS=[];function uS(){}function tB(e){let n;return n=e>9999?0:e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e,n}function Due(e){let n=!1;return dS.forEach(t=>{e===t&&(n=!0)}),n}function fp(e,n){xo.call(this,e,n);let t=this,i=new uS;this.create=function(r,o){let a=o.type;if("label"===r)return t.baseCreate(r,I({type:"label"},eu,o));if(/^domainStory:/.test(a)){o.businessObject||(o.businessObject={type:a,name:o.name?o.name:""}),o.id?i.registerId(o.id):o.id=i.getId(r),I(o.businessObject,{id:o.id});let s=o.id;return o.businessObject.get=function(c){if("id"===c)return s},o.businessObject.set=function(c,l){"id"===c&&I(o.businessObject,{id:l})},o.businessObject.$type||I(o.businessObject,{$type:"Element"}),I(o.businessObject,{di:{}}),o.businessObject.$descriptor||I(o.businessObject,{$descriptor:{}}),(!/:activity$/.test(a)||!/:connection$/.test(a))&&!(/:group$/.test(a)&&o.height||o.width)&&I(o,t._getCustomElementSize(a)),"$instanceOf"in o.businessObject||Object.defineProperty(o.businessObject,"$instanceOf",{value:function(c){return this.type===c}}),t.baseCreate(r,o)}return t.createBpmnElement(r,o)}}function Cr(e,n){const t=nB(e);return t&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)}function nB(e){return e&&e.businessObject||e}uS.prototype.getId=function(e){return function Cue(e){let n=function Sue(){return Math.floor(1e4*Math.random())}(),t=e+"_"+tB(n);for(;Due(t);)n++,t=e+"_"+tB(n);return dS.push(t),t}(e)},uS.prototype.registerId=function(e){dS.push(e)},Xe()(fp,xo),fp.$inject=["bpmnFactory","moddle"],fp.prototype._getCustomElementSize=function(e){let n={__default:{width:75,height:75},"domainStory:textAnnotation":{width:100,height:30},"domainStory:group":{width:525,height:275}};return n[e]||n.__default};const iB="djs-element-hidden",rB="djs-label-hidden";let hS=0;function oB(e,n,t){let o,a,s,i=this,r=n.getDefaultLayer();e.on("directEditing.activate",function(c){let l=c.active;if(o=l.element.label||l.element,Cr(o,Z.TEXTANNOTATION)){a=n.getAbsoluteBBox(o),s=qe("g"),hS=o.height;let d=t.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:o.height,position:{mx:0,my:0}}),u=i.path=qe("path");ge(u,{d,strokeWidth:2,stroke:"black"}),Ze(s,u),Ze(r,s),sr(s,o.x,o.y)}Cr(o,Z.TEXTANNOTATION)||o.labelTarget?n.addMarker(o,iB):(o.type.includes(Z.ACTOR)||o.type.includes(Z.WORKOBJECT)||o.type.includes(Z.ACTIVITY)||o.type.includes(Z.GROUP))&&n.addMarker(o,rB)}),e.on("directEditing.resize",function(c){if(Cr(o,Z.TEXTANNOTATION)){let u=Math.max(o.height/a.height*(c.height+c.dy),0);hS=u;let h=t.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:u,position:{mx:0,my:0}});ge(i.path,{d:h})}}),e.on(["directEditing.complete","directEditing.cancel"],function(c){let l=c.active;l&&(n.removeMarker(l.element.label||l.element,iB),n.removeMarker(o,rB)),o=void 0,a=void 0,s&&(ti(s),s=void 0)})}function aB(e){return e.type.includes(Z.ACTOR)||e.type.includes(Z.WORKOBJECT)||e.type.includes(Z.ACTIVITY)||e.type.includes(Z.GROUP)?"name":Cr(e,Z.TEXTANNOTATION)?"text":void 0}function sB(e){if(Cr(e,Z.ACTIVITY))return"number"}function cB(e){let n;n=e.businessObject?e.businessObject:e;let t=aB(n);if(t&&n)return n[t]||""}oB.$inject=["eventBus","canvas","pathMap"];let lB,dB=0,sy=!1;function uB(e){setTimeout(()=>e.focus(),0)}function pp(e,n,t,i,r,o,a){function s(l,d){(d||Kt(l,[Z.TEXTANNOTATION])||l.businessObject.type.includes(Z.DOMAINSTORY))&&t.activate(l)}this._canvas=n,this._modeling=i,this._textRenderer=o,this._updateLabelHandler=a,t.registerProvider(this),e.on("element.dblclick",function(l){s(l.element,!0),Cr(l.element,Z.ACTIVITY)&&(dB=l.element.businessObject.number,sy=!0,t.complete())}),e.on(["element.mousedown","drag.init","canvas.viewbox.changing","autoPlace","popupMenu.open"],function(){t.isActive()&&t.complete()}),e.on(["commandStack.changed"],function(){t.isActive()&&t.cancel()}),e.on("directEditing.activate",function(l){r.removeResizers(),function c(l){let d=document.getElementsByClassName("djs-direct-editing-content");uB(d.item(0)),function Fue(e,n,t,i){let r,o;function a(l){if(!l||l.length<1)return!1;(function s(l){if(l.length>1)for(const d of l)d.classList.remove("autocomplete-active")})(l),r>=l.length&&(r=0),r<0&&(r=l.length-1),l[r].classList.add("autocomplete-active")}function c(l){let d=document.getElementsByClassName("autocomplete-items");for(const u of d)l!=u&&l!=e&&u.parentNode.removeChild(u)}c(),e.addEventListener("input",function(){if(0===n.length)return;t.type.includes(Z.WORKOBJECT)&&(this.value=this.innerHTML);let l,d,u=this.value;c(),r=-1,l=document.createElement("DIV"),l.setAttribute("id","autocomplete-list"),l.setAttribute("class","autocomplete-items"),this.parentNode.appendChild(l),o=[];for(const h of n)u&&h.substring(0,u.length).toUpperCase()===u.toUpperCase()&&(d=document.createElement("DIV"),d.innerHTML=""+h.substring(0,u.length)+""+h.substring(u.length),d.innerHTML+="",l.appendChild(d),o.push(h));t.type.includes(Z.ACTOR)&&(l.style.visibility="hidden")}),e.onkeydown=function(l){let d=document.getElementById("autocomplete-list");d&&(d=d.getElementsByTagName("div")),40===l.keyCode?(r++,a(d)):38===l.keyCode?(r--,a(d)):13===l.keyCode&&(l.preventDefault(),r>-1&&(t.businessObject.name=o[r],i.fire("element.changed",{element:t})))},document.addEventListener("click",function(l){c(l.target)})}(d[0],lB.getUniqueWorkObjectNames(),l,e)}(l.active.element)}),e.on("create.end",500,function(l){let d=l.shape;!l.isTouch&&l.context.canExecute&&(Cr(d,Z.ACTIVITY)||s(d),uB(document.getElementsByClassName("djs-direct-editing-content").item(0)))}),e.on("autoPlace.end",500,function(l){s(l.shape)})}function cy(e){return 180*e/Math.PI}function mp(e,n){let t;t=e.x<=n.x?e.y>=n.y?0:3:e.y>=n.y?1:2;const i=Math.abs(e.y-n.y),r=Math.abs(e.x-n.x);return 0===t?90-cy(Math.atan2(r,i)):1===t?90+cy(Math.atan2(r,i)):2===t?270-cy(Math.atan2(r,i)):3===t?270+cy(Math.atan2(r,i)):void 0}function jue(e,n,t,i,r,o){return r>t&&ri&&o2){let a=new Array(t-1);for(let c=0;c49&&(t=r);return t}(e,a);return r=fB(e[s],e[s+1]),o=pB(e[s],e[s+1],n),i={x:r,y:o,selected:s},i}return r=fB(e[0],e[1]),o=pB(e[0],e[1],n),i={x:r,y:o,selected:0},i}function fB(e,n){let t=mp(e,n),i=0,r=0;return 0===t||180===t||90===t||270===t?i=0:t>0&&t<90?i=5-t/6:t>90&&t<180?(r=t-90,i=5-r/18):t>180&&t<270?(r=t-180,i=r/18):t>270&&(r=t-270,i=5-r/6),i+(e.x+n.x)/2}function pB(e,n,t=1){let i=mp(e,n),r=0,o=0;return 0===i||180===i?r=15:90===i||270===i?r=0:i>0&&i<90?r=15-i/6:i>90&&i<180?(o=i-90,r=-o/9*t):i>180&&i<270?(o=i-180,r=15-o/3):i>270&&(o=i-270,r=-o/9*t),r+(e.y+n.y)/2}pp.$inject=["eventBus","canvas","directEditing","modeling","resizeHandles","textRenderer","updateLabelHandler"],pp.prototype.activate=function(e){if("__implicitrootbase"===e.id)return;let n=cB(e);if(void 0===n)return;let t={text:n};I(t,this.getEditingBBox(e));let r={};return ya(e)&&I(r,{autoResize:!0}),Cr(e,Z.TEXTANNOTATION)&&I(r,{resizable:!0,autoResize:!0}),I(t,{options:r}),t},pp.prototype.getEditingBBox=function(e){let n=this._canvas,t=e.label||e,i=n.getAbsoluteBBox(t),r_x=i.x+i.width/2,o={x:i.x,y:i.y},a=n.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,d=c.lineHeight,u=s.fontSize*a,h=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};Cr(e,Z.GROUP)&&(I(o,{minWidth:i.width/2.5>125?i.width/2.5:125,maxWidth:i.width,minHeight:30*a,x:i.x,y:i.y}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",textAlign:"left"})),(/^domainStory:actor\w*/.test(e.type)||/^domainStory:workObject\w*/.test(e.type))&&(I(o,{width:i.width,minHeight:30,y:i.y+i.height-20,x:i.x}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));let p=90*a,g=7*a,v=4*a;if(t.labelTarget&&(I(o,{width:p,height:i.height+g+v,x:r_x-p/2,y:i.y-g}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})),ya(t)&&!tu(t)&&!mi(t)){let k=nu(e),E=n.getAbsoluteBBox({x:k.x,y:k.y,width:0,height:0}),C=l+g+v;I(o,{width:p,height:C,x:E.x-p/2,y:E.y-C/2}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})}return Cr(e,Z.TEXTANNOTATION)&&(I(o,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",fontSize:u+"px",lineHeight:h})),{bounds:o,style:f}},pp.prototype.update=function(e,n,t,i){let r,o;Cr(e,Z.TEXTANNOTATION)&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),this._modeling.updateLabel(e,n,r)};let fS,mB=[],gB=[!1];function vB(e,n){const t=e.businessObject,i=[0];let r=-1;const o=fS.getActivitiesFromActors();o.forEach(a=>{a.businessObject.number&&i.push(+a.businessObject.number)});for(let a=0;a{let r=+i.businessObject.number;r>=n&&(n++,setTimeout(function(){t.execute("activity.changed",{businessObject:i.businessObject,newLabel:i.businessObject.name,newNumber:r,element:i})},10))})}(o,r,n),t.number=r,r}function _B(e,n,t){let i=[[]];e.forEach(o=>{i[o.businessObject.number]||(i[o.businessObject.number]=[]),i[o.businessObject.number].push(o)});let r=n;for(;r{if(i){let r=i.businessObject;r&&(r.number=n),t.fire("element.changed",{element:i})}})}let pS,xB,mS,ll,Jue,Xue=new S1,Zue=[];function oc(e,n,t,i,r,o){Uo.call(this,e,2e3);let a=Xue.next(),s={},c=n.computeStyle;function f(_,m,S,A){return C(_,m.businessObject.name,{box:m,align:S,padding:A||0,style:{fill:"#000000"}},m.type)}function g(_,m){if(m&&m.source){let S=m.businessObject,A=function $ue(e){let r=hB(e.waypoints),o=0;e.waypoints.length>1&&(o=mp(e.waypoints[0],e.waypoints[1]));let a=r.x,s=r.y;return o>=0&&o<=45?(s=s-30+o/2,a=a-25-o/2):o<=90?(s=s-10+(o-45)/4.5,a=a-35-o/9):o<=145?(s+=o/7.25,a=a-45-o/14.5):o<180?(s=s+20+o/9,a=a-50+o/4.5):o<=225?(s=s-45+o/12.25,a=a+10-o/6.125):o<=270?(s=s-80+o/3.375,a=a-5-o/6.125):o<=315?(s=s-135+o/2,a-=50):(s=s+22.5+(o-315)/6,a=a-50+(o-315)/1.8),{textAlign:"center",width:30,height:30,x:a,y:s}}(m);null==S.number&&m.source.type&&m.source.type.includes(Z.ACTOR)&&vB(m,o),S.number&&m.source.type.includes(Z.ACTOR)?function l(_,m,S){let A=function Bue(){let e={use:sy,number:dB};return sy=!1,e}(),z=m.businessObject;A.use&&(z.number=A.number),Zue[z.number]=!0;let L=function v(_,m,S,A){m<10&&(m=String(m)),m=String(m);let z=i.createText(m||"",S);return Pt(z).add("djs-labelNumber"),E(A,z,S,0,_),Ze(_,z),function k(_,m,S){const A=qe("ellipse");ge(A,{cx:m.box.x+15+3*S,cy:m.box.y-4,rx:"20",ry:"12",style:"fill:transparent;stroke:black;stroke-width:1"}),Ze(_,A)}(_,S,m.length),z}(_,z.number,function d(_){return{box:_,fitBox:!0,style:I({},i.getExternalStyle(),{fill:"black",position:"absolute"})}}(S),m.type);!function Wue(e,n){mB[n]=e}(L,z.number)}(_,m,A):S.number=null}}function E(_,m,S,A,z){/:activity$/.test(_)?(m.innerHTML=function D(_,m,S){if(_){let A="";for(let z=0;z<_.length;z++)A+=_[z].outerHTML.replace(/x="-?\d*.\d*"/,'x="'+(Number(m)+S+14)+'"');return A}}(m.children,S.box.x,0),m.innerHTML=x(m.children,S.box.y,0)):/:actor/.test(_)?m.innerHTML=x(m.children,z.firstChild.attributes.height.nodeValue,0):/:workObject/.test(_)&&(m.innerHTML=x(m.children,z.firstChild.attributes.height.nodeValue,26))}function C(_,m,S,A){let z=i.createText(m||"",S);return Pt(z).add("djs-label"),E(A,z,S,0,_),Ze(_,z),z}function x(_,m,S){if(_){let A="";for(let z=0;z<_.length;z++)A+=_[z].outerHTML.replace(/y="-?\d*.\d*"/,'y="'+(Number(m)+S+14*z)+'"');return A}}function V(_,m){return _.startsWith("data")?'':function P(_,m){_.businessObject.pickedColor||(_.businessObject.pickedColor="black");const S=m.match(/fill=".*?"/);if(S&&S.length>1)return m.replace(/fill=".*?"/,'fill="'+_.businessObject.pickedColor+'"');{const A=m.indexOf("m.y+60&&_.x>m.x+3&&_.x_.y&&(_.y+=S)}}function je(_,m,S,A,z,L){si(z)&&(L=z,z=0),z=z||0,L=c(L,{stroke:"black",strokeWidth:2,fill:"white"});let $=qe("rect");return ge($,{x:z,y:z,width:m-2*z,height:S-2*z,rx:A,ry:A}),ge($,L),Ze(_,$),$}function Ht(_,m,S){let A=_+"-"+m+"-"+S+"-"+a;return s[A]||function fe(_,m,S){let A=_+"-"+m+"-"+S+"-"+a;if("activity"===_){let z=qe("path");ge(z,{d:"M 1 5 L 11 10 L 1 15 Z"}),function ve(_,m){let S=I({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},m.attrs),A=m.ref||{x:0,y:0},z=m.scale||1;"none"===S.strokeDasharray&&(S.strokeDasharray=[1e4,1]);let L=qe("marker");ge(m.element,S),Ze(L,m.element),ge(L,{id:_,viewBox:"0 0 20 20",refX:A.x,refY:A.y,markerWidth:20*z,markerHeight:20*z,orient:"auto"});let $=Bn("defs",t._svg);$||($=qe("defs"),Ze(t._svg,$)),Ze($,L),s[_]=L}(A,{element:z,ref:{x:11,y:10},scale:.5,attrs:{fill:S,stroke:S}})}}(_,m,S),"url(#"+A+")"}this.drawGroup=function(_,m){m.businessObject.pickedColor||(m.businessObject.pickedColor="black");let S=je(_,m.width,m.height,0,I({fill:"none",stroke:m.businessObject.pickedColor},m.attrs));return f(_,m,"left-top",8),S},this.drawActor=function(_,m){let A,S={width:m.width,height:m.height},z=pS.getTypeIconSRC(Z.ACTOR,m.type);return z=V(z,m),A=qe(z),ge(A,S),Ze(_,A),f(_,m,"center",-5),A},this.drawWorkObject=function(_,m){let A,S={width:.65*m.width,height:.65*m.height,x:m.width/2-25,y:m.height/2-25},z=pS.getTypeIconSRC(Z.WORKOBJECT,m.type);return z=V(z,m),A=qe(z),ge(A,S),Ze(_,A),f(_,m,"center",-5),A},this.drawActivity=function(_,m){if(function be(_){let m=_.source,A=_.waypoints,z=A[0],L=A[A.length-1];z&&L&&m&&_.target&&(Q(z,m),Q(L,m))}(m),m){let S=function F(_){return _.businessObject.pickedColor||(_.businessObject.pickedColor="black"),c("",{stroke:_.businessObject.pickedColor,fill:"none",strokeWidth:1.5,strokeLinejoin:"round",markerEnd:Ht("activity","black",_.businessObject.pickedColor)})}(m),A=Ze(_,vf(m.waypoints,S));return function p(_,m){let S=m.businessObject,A=m.waypoints,z=function zue(e){return e.split(/\r\n|\r|\n/).length}(S.name);if(null!=m.waypoints){let L=hB(A,z),$=m.waypoints[L.selected],Pe=m.waypoints[L.selected+1],ut=mp($,Pe),bt="left",xn=500,gn=L.x;if((0===ut||180===ut)&&(xn=Math.abs($.x-Pe.x),bt="center",gn=($.x+Pe.x)/2-function Nue(e){if(!e)return 0;let n=5.1*e.length;return n/=2,n+=20,n}(S.name)),S.name&&S.name.length)C(_,S.name,{box:{textAlign:bt,width:xn,height:30,x:gn,y:L.y},fitBox:!0,style:I({},i.getExternalStyle(),{fill:"black",wordWrap:"break-word",overflowWrap:"break-word",hyphens:"auto"})},m.type)}}(_,m),g(_,m),function de(_){if(_){let m=_.getElementsByTagName("polyline");m.length>1&&m[1].setAttribute("points",m[0].getAttribute("points"))}}(_.parentElement),A}},this.drawDSConnection=function(_,m){let S="";return S=c(S,{stroke:"#000000",strokeWidth:1.5,strokeLinejoin:"round",strokeDasharray:"5, 5"}),Ze(_,vf(m.waypoints,S))},this.drawAnnotation=function(_,m){let A=m.businessObject.text||"";if(m.businessObject.text){let $=function Aue(){return hS}();0===$&&m.businessObject.number&&($=m.businessObject.number),I(m,{height:$}),I(m.businessObject,{number:$})}let z=je(_,m.width,m.height,0,0,{fill:"none",stroke:"none"});return function we(_,m,S){S=c(S,["no-fill"],{strokeWidth:2,stroke:"black"});let A=qe("path");ge(A,{d:m}),ge(A,S),Ze(_,A)}(_,r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:m.width,containerHeight:m.height,position:{mx:0,my:0}}),{stroke:"black"}),C(_,A,{box:m,align:"left-top",padding:5,style:{fill:"black"}}),z},this.getWorkObjectPath=function(_){return va(gS(_))},this.getGroupPath=function(_){return va(gS(_))},this.getActivityPath=function(_){let m=_.waypoints.map(function(A){return A.original||A}),S=[["M",m[0].x,m[0].y]];return m.forEach(function(A,z){0!==z&&S.push(["L",A.x,A.y])}),va(S)},this.getActorPath=function(_){return va(gS(_))}}function gS(e){let r=e.width/2+5,o=e.height/2+5;return[["M",e.x,e.y],["l",r,0],["l",r,o],["l",-r,o],["l",-r,0],["z"]]}function ly(e,n,t,i,r){this._create=n,this._elementFactory=t,this._spaceTool=i,this._lassoTool=r,e.registerProvider(this)}function wB(e,n,t,i){let r=Vs(e),o=ll.getIconForBPMN(e),a=[];a["domainStory-"+i+r]=n(e,i,o,r),I(t,a)}Xe()(oc,Uo),oc.$inject=["eventBus","styles","canvas","textRenderer","pathMap","commandStack"],oc.prototype.canRender=function(e){return/^domainStory:/.test(e.type)},oc.prototype.drawShape=function(e,n){String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(i,r){return this.substring(r=!r||r<0?0:+r,r+i.length)===i}});let t=n.type;return n.businessObject.type=t,xB.correctInitialize(),mS.makeDirty(),t.includes(Z.ACTOR)?this.drawActor(e,n):t.includes(Z.WORKOBJECT)?this.drawWorkObject(e,n):t.includes(Z.TEXTANNOTATION)?this.drawAnnotation(e,n):t.includes(Z.GROUP)?this.drawGroup(e,n):void 0},oc.prototype.getShapePath=function(e){let n=e.type;return n.includes(Z.ACTOR)?this.getActorPath(e):n.includes(Z.WORKOBJECT)?this.getWorkObjectPath(e):n.includes(Z.GROUP)?this.getGroupPath(e):void 0},oc.prototype.drawConnection=function(e,n){let t=n.type;return mS.makeDirty(),n.businessObject.type||(n.businessObject.type=t),t===Z.ACTIVITY?this.drawActivity(e,n):t===Z.CONNECTION?this.drawDSConnection(e,n):void 0},ly.$inject=["palette","create","elementFactory","spaceTool","lassoTool","modeling"],ly.prototype.getPaletteEntries=function(){let n=this._create,t=this._elementFactory;return function nhe(e,n,t,i){let r=ll?.getCurrentIconConfigurationForBPMN(),o=localStorage.getItem("appendedIcons");if(o&&(o=JSON.parse(o),function ihe(e){return!(1===Object.keys(e).length&&"entries"===Object.keys(e)[0])}(o)&&(o=function rhe(e){let n=new tn;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}(o)),o.entries&&o.entries.forEach)){const c=new tn;o.entries.forEach(l=>{c.putEntry(l)}),oN(c),function the(e){const n=document.createElement("style");document.head.appendChild(n);let t=new tn;t.appendDict(e),t.keysArray().forEach(r=>{if(ll.getAppendedIconDictionary().has(r)){let o=t.get(r);const a=".icon-domain-story-"+r.toLowerCase()+'::before{ display: block; content: url("data:image/svg+xml;utf8,'+function ohe(e){return""}(o)+'"); margin: 3px;}';n.sheet.insertRule(a,n.sheet.cssRules.length)}})}(o)}return ll?.initTypeDictionaries(r.actors,r.workObjects),ll?.getTypeDictionary(Z.ACTOR)?.keysArray().forEach(c=>{wB(c,i,e,"actor")}),I(e,{"actor-separator":{group:"actor",separator:!0}}),ll?.getTypeDictionary(Z.WORKOBJECT)?.keysArray().forEach(c=>{wB(c,i,e,"actor")}),I(e,{"workObject-separator":{group:"workObject",separator:!0},"domainStory-group":i(Z.GROUP,"group","icon-domain-story-tool-group","group"),"group-separator":{group:"group",separator:!0},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:"Activate the lasso tool",action:{click:function(c){t.activateSelection(c)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:"Activate the create/remove space tool",action:{click:function(c){n.activateSelection(c)}}}}),e}({},this._spaceTool,this._lassoTool,function o(a,s,c,l,d){function u(f){let p=t.createShape(I({type:a},d));I(p.businessObject,{id:p.id}),d&&(p.businessObject.di.isExpanded=d.isExpanded),n.start(f,p)}return a.replace(/^domainStory:/,""),{group:s,className:c,title:"Create "+l||0,action:{dragstart:u,click:u}}})};const wo=125;function ac(e){return e&&/^domainStory:/.test(e.type)}function EB(e){return e&&/^domainStory:group/.test(e.type)}function vS(e){return e&&/^domainStory:actor\w*/.test(e.type)}function _S(e){return e&&/^domainStory:activity/.test(e.type)}function gp(e){return e&&/^domainStory:connection/.test(e.type)}function vp(e){return e&&/^domainStory:textAnnotation/.test(e.type)}function uy(e,n){if(!EB(n)&&ac(e)&&ac(n)&&e!==n&&(!vS(e)||!vS(n))&&!_S(e)&&!_S(n)&&!gp(e)&&!gp(n))return vp(n)?{type:Z.CONNECTION}:{type:Z.ACTIVITY}}function CB(e,n){if(Cr(e,Z.GROUP)){if(n){let t={x:e.x,y:e.y+e.height},i={x:e.x+e.width,y:e.y+e.height},r={x:e.x+e.width,y:e.y};n.x!==e.x&&n.y!==e.y&&(n.x>i.x-wo&&I(n,{x:i.x-wo}),n.y>i.y-wo&&I(n,{y:i.y-wo})),n.x!==e.x&&n.y===e.y&&n.x>r.x-wo&&I(n,{x:r.x-wo}),n.x===e.x&&n.y!==e.y&&n.y>t.y-wo&&I(n,{y:t.y-wo}),n.height{t.id!==n.id&&t.x>=n.x&&t.x<=n.x+n.width&&t.y>=n.y&&t.y<=n.y+n.height&&(t.parent=n,n.children.includes(t)||n.children.push(t))})}(l,s)),s&&s.parent&&"type"in s.parent&&s.parent.type===Z.GROUP&&I(c,{parent:s.parent.id})}function i(o){let s=o.context.connection,c=s.source,l=s.target,d=s.businessObject;o.newTarget&&(l=o.newTarget),o.newSource&&(c=o.newSource);let h=n._customElements;s.parent?Un(h,d):$n(h,d),I(d,{waypoints:r(s)}),c&&(d.source?d.source=c.id:I(d,{source:c.id})),l&&(d.target?d.target=l.id:I(d,{target:l.id}))}function r(o){return o.waypoints.map(function(a){return a.original?{original:{x:a.original.x,y:a.original.y},x:a.x,y:a.y}:{x:a.x,y:a.y}})}Ve.call(this,e),this.executed(["shape.create","shape.move","shape.delete","shape.resize","shape.removeGroupWithChildren"],fy(t)),this.reverted(["shape.create","shape.move","shape.delete","shape.resize","shape.removeGroupWithChildren"],fy(t)),this.executed(["connection.create","connection.reconnect","connection.updateWaypoints","connection.delete","connection.layout","connection.move"],fy(i)),this.reverted(["connection.create","connection.reconnect","connection.updateWaypoints","connection.delete","connection.layout","connection.move"],fy(i))}function fy(e){return n=>{const t=n.context;(function che(e){return e&&/domainStory:/.test(e.type)})(t.shape||t.connection)&&e(n)}}Xe()(fs,Ea),fs.$inject=["eventBus"],fs.prototype.init=function(){function e(n,t){if(ac(n))return!ac(t)||EB(t)}this.addRule("elements.create",function(n){const r=n.target;return Uc(n.elements,function(o){return gp(o)?uy(o.source,o.target):o.host?SB(o,o.host,null):e(o,r)})}),this.addRule("elements.move",1500,function(n){let r,t=n.target;return br(n.shapes,function(o,a){return void 0===r&&(r=ac(a)),r===ac(a)&&!1!==o&&e(a,t)},void 0)}),this.addRule("shape.create",1500,function(n){return e(n.shape,n.target)}),this.addRule("connection.create",1500,function(n){return uy(n.source,n.target)}),this.addRule("connection.reconnect",1500,function(n){let i=n.hover||n.source,r=n.target;if(function she(e,n,t){return!(_S(t)&&vp(n)||gp(t)&&vp(e)&&vp(n)||gp(t)&&!vp(n)&&(vS(e)||function ahe(e){return e&&/^domainStory:workObject/.test(e.type)}(e)))}(i,r,n.connection))return uy(i,r)}),this.addRule("shape.resize",function(n){return CB(n.shape,n.newBounds)})},fs.prototype.canConnect=uy,fs.prototype.canAttach=SB,fs.prototype.isDomainStory=ac,fs.prototype.canResize=CB,Xe()(hy,Ve),hy.$inject=["eventBus","bpmnjs"];const lhe={width:0,height:0};function py(e,n,t){t.registerHandler("element.updateCustomLabel",function i(){this.preExecute=function(r){let o=r.element,a=o.businessObject,s=r.newLabel,c=r.newNumber;if(!mi(o)&&ya(o)&&!tu(o)&&(""!==s||""!==c)){let l=7,d=nu(o);d={x:d.x,y:d.y+l},e.createLabel(o,d,{id:a.id+"_label",businessObject:a})}},this.execute=function(r){return r.oldLabel=cB(r.element),r.oldNumber=function Iue(e){let n=e.businessObject,t=sB(n);if(t)return n[t]||""}(r.element),DB(r.element,r.newLabel,r.newNumber)},this.revert=function(r){return DB(r.element,r.oldLabel,r.oldNumber)},this.postExecute=function(r){let o=r.element,a=o.label||o,s=r.newLabel,c=r.newBounds;if(mi(a)&&""===s.trim())return void e.removeShape(a);if(!ya(o)&&!Cr(o,Z.TEXTANNOTATION))return;let l=nB(a),d=l.name||l.text;d&&(typeof c>"u"&&(c=n.getLayoutedBounds(a,d)),c&&e.resizeShape(a,c,lhe))}})}function DB(e,n,t){let i=e.label||e,r=e.number||e,o=e.labelTarget||e,a=e.numberTarget||e;return function Oue(e,n){let t;t=e.businessObject?e.businessObject:e;let i=aB(t);i&&(t[i]=n)}(i,n),function Rue(e,n){let t=e.businessObject,i=sB(t);i&&(t[i]=n)}(r,t),[i,o,r,a]}function yS(e,n){e.registerHandler("story.updateHeadlineAndDescription",function t(){this.execute=function(i){i.oldTitle=n.getTitle(),i.oldDescription=n.getDescription(),n.updateTitleAndDescription(i.newTitle,i.newDescription,!1)},this.revert=function(i){n.updateTitleAndDescription(i.oldTitle,i.oldDescription,!1)}})}let my,_p,yp;function gy(e,n,t,i,r,o,a,s,c,l,d,u){let h,f;e.invoke(Hf,this),e.get("autoPlace",!1);let g=Wi(this.getContextPadEntries,this);const v=document.getElementById("colorPicker");function C(de){I(de,{colorChange:{group:"edit",className:"icon-domain-story-color-picker",title:t("Change color"),action:{click:function(we,je){f=je,v.click()}}}})}function x(de){I(de,{"append.text-annotation":He(Z.TEXTANNOTATION,"bpmn-icon-text-annotation","textannotation","connect")})}function D(de,we){I(de,{connect:{group:"connect",className:"bpmn-icon-connection",title:t("Connect with activity"),action:{click:we,dragstart:we}}})}function P(de,we){_p.getTypeDictionary(Z.WORKOBJECT).keysArray().forEach(Ht=>{let fe=Vs(Ht),ve=_p.getIconForBPMN(Ht),_=[];_["append.workObject"+fe]=de(Ht,ve,fe,"workObjects"),I(we,_)})}function be(de){let je=o.getContainer(),Ht=a.getPad(de).html,fe=je.getBoundingClientRect(),ve=Ht.getBoundingClientRect();return{x:ve.left-fe.left,y:ve.top-fe.top+ve.height+5}}function He(de,we,je,Ht,fe){return"string"!=typeof je&&(fe=je,je=t("{type}",{type:de.replace(/^domainStory:/,"")})),{group:Ht,className:we,title:"Append "+je,action:{dragstart:h,click:function ve(_,m){let S=i.createShape(I({type:de},fe));r.start(_,S,{elements:[S],hints:{},source:m})}}}}v.onchange=de=>{l.execute("element.colorChange",{businessObject:f.businessObject,newColor:de.target.value,element:f}),my.makeDirty()},s.registerProvider("ds-replace",c),s.registerProvider("bpmn-replace",c),this.getContextPadEntries=function(de){const we=function VJ(){const e=new tn;return e.addEach(gv),e.keysArray()}();let je=g(de);return h=function(Ht,fe,ve){n.start(Ht,fe,ve)},de.type.includes(Z.WORKOBJECT)?(we.includes(de.type.replace(Z.WORKOBJECT,""))&&C(je),D(je,h),x(je),function V(de,we){_p.getTypeDictionary(Z.ACTOR).keysArray().forEach(Ht=>{let fe=Vs(Ht),ve=_p.getIconForBPMN(Ht),_=[];_["append.actor"+fe]=de(Ht,ve,fe,"actors"),I(we,_)})}(He,je),P(He,je),function F(de){I(de,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:t("Change type"),action:{click:function(we,je){let Ht=I(be(je),{cursor:{x:we.x,y:we.y}});s.open(je,"ds-replace",Ht)}}}})}(je)):de.type.includes(Z.ACTOR)?(we.includes(de.type.replace(Z.ACTOR,""))&&C(je),D(je,h),x(je),P(He,je),function E(de){I(de,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:t("Change type"),action:{click:function(we,je){let Ht=I(be(je),{cursor:{x:we.x,y:we.y}});s.open(je,"ds-replace",Ht)}}}})}(je)):de.type.includes(Z.GROUP)?(delete je.delete,x(je),I(je,{deleteGroup:{group:"edit",className:"bpmn-icon-trash",title:"Remove Group without Child-Elements",action:{click:function(Ht,fe){u.removeGroup(fe),my.makeDirty()}}}}),C(je)):de.type.includes(Z.ACTIVITY)&&(function k(de){delete de.delete,I(de,{changeDirection:{group:"edit",className:"icon-domain-story-changeDirection",title:t("Change direction"),action:{click:function(we,je){!function Q(de){let we,Ht,je=de.businessObject;Ht=de.source.type.includes(Z.ACTOR)?0:vB(de,l),we={businessObject:je,newNumber:Ht,element:de},l.execute("activity.directionChange",we)}(je)}}}})}(je),C(je),I(je,{delete:{group:"edit",className:"bpmn-icon-trash",title:"Remove",action:{click:function(Ht,fe){u.removeElements({element:fe}),my.makeDirty()}}}})),je}}function kB(e){this._modeling=e}function bu(e){this._dsReplace=new kB(e),this._modeling=e}py.$inject=["modeling","textRenderer","commandStack"],Xe()(gy,Hf),gy.$inject=["injector","connect","translate","elementFactory","create","canvas","contextPad","popupMenu","replaceMenuProvider","commandStack","eventBus","modeling"],kB.prototype.replaceElement=function uhe(e,n,t){let i=function hhe(e,n,t){return e.x=Math.ceil(n.x+(e.width||n.width)/2),e.y=Math.ceil(n.y+(e.height||n.height)/2),I(e,{name:n.businessObject.name}),t.replaceShape(n,e,{})}(n,e,t),o=i.incoming;return i.outgoing.forEach(a=>{a.businessObject.source=i.id}),o.forEach(a=>{a.businessObject.target=i.id}),i},bu.$inject=["modeling"],bu.prototype.getEntries=function(e){let n;return e.type.includes("actor")?n=function phe(e){const n=yp.getTypeDictionary(Z.ACTOR);let t={},i=0;return n.keysArray().forEach(r=>{if(!e.includes(r)){const o=Vs(r);t[i]={label:"Change to "+o,actionName:"replace-with-actor-"+o.toLowerCase(),className:yp.getIconForBPMN(r),target:{type:r}},i++}}),t}(e.type):e.type.includes("workObject")&&(n=function mhe(e){const n=yp.getTypeDictionary(Z.WORKOBJECT);let t={},i=0;return n.keysArray().forEach(r=>{if(!e.includes(r)){const o=Vs(r);t[i]={label:"Change to "+o,actionName:"replace-with-actor-"+o,className:yp.getIconForBPMN(r),target:{type:r}}}i++}),t}(e.type)),this._createEntries(e,n)},bu.prototype._createEntries=function(e,n){let t=[],i=this;return R(n,function(r){let o=i._createMenuEntry(r,e);t.push(o)}),t},bu.prototype._createMenuEntry=function(e,n,t){let i=this._dsReplace.replaceElement,r=this._modeling;return{label:e.label,className:e.className,id:e.actionName,action:t=t||function(){return i(n,e.target,r)}}};var ghe=J(302);function bp(e,n,t,i){Zn.call(this,e,n,t,i)}Zn.prototype.updateLabel=function(e,n,t){(e.businessObject?n!==e.businessObject.name:n!==e.name)&&(/^domainStory:/.test(e.type)?this._commandStack.execute("element.updateCustomLabel",{element:e,newLabel:n,newBounds:t}):this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:t}))},Zn.prototype.updateNumber=function(e,n,t){(e.businessObject?n!==e.businessObject.number:n!==e.number)&&(/^domainStory:/.test(e.type)?this._commandStack.execute("element.updateCustomLabel",{element:e,newNumber:n,newBounds:t}):this._commandStack.execute("element.updateLabel",{element:e,newNumber:n,newBounds:t}))},Zn.prototype.replaceShape=function(e,n,t){let i={oldShape:e,newData:n,hints:t||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Zn.prototype.removeGroup=function(e){this._commandStack.execute("shape.removeGroupWithoutChildren",{element:e}),this.removeElements({element:e})},(0,ghe.inherits)(bp,Zn),bp.$inject=["eventBus","elementFactory","commandStack","domainStoryRules"];const vhe={__depends__:[uu,RE,LE],__init__:["domainStoryRenderer","paletteProvider","domainStoryRules","domainStoryUpdater","contextPadProvider","replaceMenuProvider"],elementFactory:["type",fp],domainStoryRenderer:["type",oc],paletteProvider:["type",ly],domainStoryRules:["type",fs],domainStoryUpdater:["type",hy],contextPadProvider:["type",gy],elementFactoryBpmn:["type",xo],pathMap:["type",rE],replaceMenuProvider:["type",bu],commandStack:["type",kn],updateLabelHandler:["type",py],headlineAndDescriptionUpdateHandler:["type",yS],modeling:["type",bp]},_he={__depends__:[jE,b_,OE],__init__:["dSlabelEditingProvider","dSlabelEditingPreview"],dSlabelEditingProvider:["type",pp],dSlabelEditingPreview:["type",oB],updateLabelHandler:["type",py],commandStack:["type",kn],modeling:["type ",bp]},yhe={__depends__:[uu,RE,LE],__init__:["domainStoryRenderer","paletteProvider","domainStoryRules","domainStoryUpdater","contextPadProvider","replaceMenuProvider"],elementFactory:["type",fp],domainStoryRenderer:["type",oc],paletteProvider:["type",ly],domainStoryRules:["type",fs],domainStoryUpdater:["type",hy],contextPadProvider:["type",gy],elementFactoryBpmn:["type",xo],pathMap:["type",rE],replaceMenuProvider:["type",bu],commandStack:["type",kn],updateLabelHandler:["type",py],headlineAndDescriptionUpdateHandler:["type",yS],modeling:["type",bp]};function ka(e){Xo.call(this,e),this._customElements=[],this._groupElements=[]}function bS(e){return e&&e.type===Z.GROUP}Xe()(ka,Xo),ka.prototype._modules=[].concat(ka.prototype._modules,[vhe,_he,yhe],[b_]),ka.prototype._addCustomShape=function(e){let n=e.parent;delete e.children,delete e.parent,this._customElements.push(e);let t=this.get("canvas"),i=this.get("elementFactory"),r=I({businessObject:e},e),o=i.create("shape",r);if(bS(e)&&(this._groupElements[e.id]=o),n){let a=this._groupElements[n];if(bS(a))return t.addShape(o,a,a.id)}return t.addShape(o)},ka.prototype._addCustomConnection=function(e){this._customElements.push(e);let n=this.get("canvas"),t=this.get("elementFactory"),i=this.get("elementRegistry"),r=I({businessObject:e},e),o=t.create("connection",I(r,{source:i.get(e.source),target:i.get(e.target)}),i.get(e.source).parent);return n.addConnection(o)},ka.prototype.importCustomElements=function(e){this.get("eventBus").fire("diagram.clear",{}),this._customElements=[],this._groupElements=[],this.addCustomElements(e)},ka.prototype.addCustomElements=function(e){if(!Lt(e))throw new Error("argument must be an array");let n=[],t=[],i=[];e.forEach(function(r){!function bhe(e){return e.type===Z.ACTIVITY||e.type===Z.CONNECTION}(r)?bS(r)?i.push(r):n.push(r):t.push(r)}),i.forEach(this._addCustomShape,this),n.forEach(this._addCustomShape,this),t.forEach(this._addCustomConnection,this)},ka.prototype.getCustomElements=function(){return this._customElements},ka.prototype.createDiagram=function(e){};class TB{constructor(n,t,i,r){this.activity=n,this.numberIsAllowedMultipleTimes=t,this.showNumberFields=i,this.saveFN=r}}const xhe=["mat-button",""],whe=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Ehe=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],She=["mat-icon-button",""],Dhe=["*"],khe=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],The=Nw(AR(Fw(class{constructor(e){this._elementRef=e}})));let AB=(()=>{class e extends The{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=rn(t),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._updateRippleDisabled()}constructor(t,i,r,o){super(t),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=vt(Od),this._rippleLoader=vt(yX),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=t.nativeElement.classList;for(const s of khe)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...t){return t.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){Rm()};static#t=this.\u0275dir=Me({type:e,features:[dt]})}return e})(),ps=(()=>{class e extends AB{constructor(t,i,r,o){super(t,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(hn("disabled",r.disabled||null),Ct("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:xhe,ngContentSelectors:Ehe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(bi(whe),at(0,"span",0),_t(1),j(2,"span",1),_t(3,1),W(),_t(4,2),at(5,"span",2)(6,"span",3)),2&i&&Ct("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),Ihe=(()=>{class e extends AB{constructor(t,i,r,o){super(t,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(hn("disabled",r.disabled||null),Ct("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:She,ngContentSelectors:Dhe,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(bi(),at(0,"span",0),_t(1),at(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),xS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,Cn]})}return e})();class MB extends Y{constructor(n=1/0,t=1/0,i=Dw){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;t||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;athis._resizeSubject.next(t)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new pt(t=>{const i=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Pr(t=>t.some(i=>i.target===n)),function Ohe(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,hc({connector:()=>new MB(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Bo(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Phe=(()=>{class e{constructor(){this._observers=new Map,this._ngZone=vt(rt)}ngOnDestroy(){for(const[,t]of this._observers)t.destroy();this._observers.clear()}observe(t,i){const r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Rhe(r)),this._observers.get(r).observe(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Nhe=["notch"],Fhe=["matFormFieldNotchedOutline",""],Lhe=["*"],Bhe=["textField"],Vhe=["iconPrefixContainer"],jhe=["textPrefixContainer"];function zhe(e,n){1&e&&at(0,"span",19)}function Hhe(e,n){if(1&e&&(j(0,"label",17),_t(1,1),et(2,zhe,1,0,"span",18),W()),2&e){const t=st(2);Ae("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),hn("for",t._control.id),ye(2),Ae("ngIf",!t.hideRequiredMarker&&t._control.required)}}function $he(e,n){1&e&&et(0,Hhe,3,5,"label",16),2&e&&Ae("ngIf",st()._hasFloatingLabel())}function Uhe(e,n){1&e&&at(0,"div",20)}function Ghe(e,n){}function Whe(e,n){1&e&&et(0,Ghe,0,0,"ng-template",22),2&e&&(st(2),Ae("ngTemplateOutlet",er(1)))}function Yhe(e,n){if(1&e&&(j(0,"div",21),et(1,Whe,1,1,"ng-template",9),W()),2&e){const t=st();Ae("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),ye(1),Ae("ngIf",!t._forceDisplayInfixLabel())}}function qhe(e,n){1&e&&(j(0,"div",23,24),_t(2,2),W())}function Khe(e,n){1&e&&(j(0,"div",25,26),_t(2,3),W())}function Xhe(e,n){}function Zhe(e,n){1&e&&et(0,Xhe,0,0,"ng-template",22),2&e&&(st(),Ae("ngTemplateOutlet",er(1)))}function Qhe(e,n){1&e&&(j(0,"div",27),_t(1,4),W())}function Jhe(e,n){1&e&&(j(0,"div",28),_t(1,5),W())}function efe(e,n){1&e&&at(0,"div",29)}function tfe(e,n){1&e&&(j(0,"div",30),_t(1,6),W()),2&e&&Ae("@transitionMessages",st()._subscriptAnimationState)}function nfe(e,n){if(1&e&&(j(0,"mat-hint",34),Fe(1),W()),2&e){const t=st(2);Ae("id",t._hintLabelId),ye(1),io(t.hintLabel)}}function ife(e,n){if(1&e&&(j(0,"div",31),et(1,nfe,2,2,"mat-hint",32),_t(2,7),at(3,"div",33),_t(4,8),W()),2&e){const t=st();Ae("@transitionMessages",t._subscriptAnimationState),ye(1),Ae("ngIf",t.hintLabel)}}const rfe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ofe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let xu=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-label"]]})}return e})();const afe=new Ce("MatError");let sfe=0,IB=(()=>{class e{constructor(){this.align="start",this.id="mat-mdc-hint-"+sfe++}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){2&i&&(yd("id",r.id),hn("align",null),Ct("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}})}return e})();const cfe=new Ce("MatPrefix"),lfe=new Ce("MatSuffix"),OB=new Ce("FloatingLabelParent");let RB=(()=>{class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=vt(Phe),this._ngZone=vt(rt),this._parent=vt(OB),this._resizeSubscription=new ee}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function dfe(e){if(null!==e.offsetParent)return e.scrollWidth;const t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);const i=t.scrollWidth;return t.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return e})();const PB="mdc-line-ripple--active",vy="mdc-line-ripple--deactivating";let NB=(()=>{class e{constructor(t,i){this._elementRef=t,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(vy);"opacity"===r.propertyName&&a&&o.remove(PB,vy)},i.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const t=this._elementRef.nativeElement.classList;t.remove(vy),t.add(PB)}deactivate(){this._elementRef.nativeElement.classList.add(vy)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt))};static#t=this.\u0275dir=Me({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return e})(),FB=(()=>{class e{constructor(t,i){this._elementRef=t,this._ngZone=i,this.open=!1}ngAfterViewInit(){const t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){this._notch.nativeElement.style.width=this.open&&t?`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&wi(Nhe,5),2&i){let o;Vt(o=jt())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mdc-notched-outline--notched",r.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:Fhe,ngContentSelectors:Lhe,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,r){1&i&&(bi(),at(0,"div",0),j(1,"div",1,2),_t(3),W(),at(4,"div",3))},encapsulation:2,changeDetection:0})}return e})();const ufe={transitionMessages:Qh("transitionMessages",[Xa("enter",ar({opacity:1,transform:"translateY(0%)"})),Lc("void => enter",[ar({opacity:0,transform:"translateY(-5px)"}),Fc("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let LB=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e})}return e})();const BB=new Ce("MatFormField"),hfe=new Ce("MAT_FORM_FIELD_DEFAULT_OPTIONS");let VB=0,_y=(()=>{class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=rn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){const i=this._appearance;this._appearance=t||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,i,r,o,a,s,c,l){this._elementRef=t,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+VB++,this._hintLabelId="mat-mdc-hint-"+VB++,this._subscriptAnimationState="",this._destroyed=new Y,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Bo(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),To(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Bo(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Bo(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const t=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(t.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;t.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(No),T(rt),T(Yh),T(Xn),T(hfe,8),T($i,8),T(qt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(oi(o,xu,5),oi(o,xu,7),oi(o,LB,5),oi(o,cfe,5),oi(o,lfe,5),oi(o,afe,5),oi(o,IB,5)),2&i){let a;Vt(a=jt())&&(r._labelChildNonStatic=a.first),Vt(a=jt())&&(r._labelChildStatic=a.first),Vt(a=jt())&&(r._formFieldControl=a.first),Vt(a=jt())&&(r._prefixChildren=a),Vt(a=jt())&&(r._suffixChildren=a),Vt(a=jt())&&(r._errorChildren=a),Vt(a=jt())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(1&i&&(wi(Bhe,5),wi(Vhe,5),wi(jhe,5),wi(RB,5),wi(FB,5),wi(NB,5)),2&i){let o;Vt(o=jt())&&(r._textField=o.first),Vt(o=jt())&&(r._iconPrefixContainer=o.first),Vt(o=jt())&&(r._textPrefixContainer=o.first),Vt(o=jt())&&(r._floatingLabel=o.first),Vt(o=jt())&&(r._notchedOutline=o.first),Vt(o=jt())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){2&i&&Ct("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Yt([{provide:BB,useExisting:e},{provide:OB,useExisting:e}])],ngContentSelectors:ofe,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,r){1&i&&(bi(rfe),et(0,$he,1,1,"ng-template",null,0,Ed),j(2,"div",1,2),Le("click",function(a){return r._control.onContainerClick(a)}),et(4,Uhe,1,0,"div",3),j(5,"div",4),et(6,Yhe,2,2,"div",5),et(7,qhe,3,0,"div",6),et(8,Khe,3,0,"div",7),j(9,"div",8),et(10,Zhe,1,1,"ng-template",9),_t(11),W(),et(12,Qhe,2,0,"div",10),et(13,Jhe,2,0,"div",11),W(),et(14,efe,1,0,"div",12),W(),j(15,"div",13),et(16,tfe,2,1,"div",14),et(17,ife,5,2,"div",15),W()),2&i&&(ye(2),Ct("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),ye(2),Ae("ngIf",!r._hasOutline()&&!r._control.disabled),ye(2),Ae("ngIf",r._hasOutline()),ye(1),Ae("ngIf",r._hasIconPrefix),ye(1),Ae("ngIf",r._hasTextPrefix),ye(2),Ae("ngIf",!r._hasOutline()||r._forceDisplayInfixLabel()),ye(2),Ae("ngIf",r._hasTextSuffix),ye(1),Ae("ngIf",r._hasIconSuffix),ye(1),Ae("ngIf",!r._hasOutline()),ye(1),Ct("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),Ae("ngSwitch",r._getDisplayedMessages()),ye(1),Ae("ngSwitchCase","error"),ye(1),Ae("ngSwitchCase","hint"))},dependencies:[co,Bx,vg,TI,IB,RB,FB,NB],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[ufe.transitionMessages]},changeDetection:0})}return e})(),yy=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Wa,Mw,Cn]})}return e})();const HB=$h({passive:!0});let mfe=(()=>{class e{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Co;const i=qa(t),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Y,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,HB),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",s,HB)}}),o}stopMonitoring(t){const i=qa(t),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((t,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gfe=(()=>{class e{get minRows(){return this._minRows}set minRows(t){this._minRows=pa(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=pa(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=rn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(t,i,r,o){this._elementRef=t,this._platform=i,this._ngZone=r,this._destroyed=new Y,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{iv(this._getWindow(),"resize").pipe(d1(16),Bo(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const t=this._textareaElement,i=t.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(a);const s=t.scrollHeight-4;return t.classList.remove(a),o&&(t.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,r=i.value;if(!t&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:i,selectionEnd:r}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T(qt,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){1&i&&Le("input",function(){return r._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return e})(),vfe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const _fe=new Ce("MAT_INPUT_VALUE_ACCESSOR"),yfe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bfe=0;const xfe=uX(class{constructor(e,n,t,i){this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=t,this.ngControl=i,this.stateChanges=new Y}});let UB,xp=(()=>{class e extends xfe{get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(pq.required)??!1}set required(t){this._required=rn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&iR().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=rn(t)}constructor(t,i,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=t,this._platform=i,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+bfe++,this.focused=!1,this.stateChanges=new Y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>iR().has(p)),this._iOSKeyupListener=p=>{const g=p.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){const t=this._getPlaceholder();if(t!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=t,t?i.setAttribute("placeholder",t):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){yfe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(Ya,10),T(jh,8),T(Ad,8),T(fX),T(_fe,10),T(mfe),T(rt),T(BB,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){1&i&&Le("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&i&&(yd("id",r.id)("disabled",r.disabled)("required",r.required),hn("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Ct("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Yt([{provide:LB,useExisting:e}]),dt,Tr]})}return e})(),$B=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,yy,yy,vfe,Cn]})}return e})(),wfe=(()=>{class e{constructor(t,i,r){this.fb=t,this.dialogRef=i,this.activity=r.activity,this.activityLabel=r.activity.businessObject.name,this.numberIsAllowedMultipleTimes=r.numberIsAllowedMultipleTimes,this.activityNumber=r.activity.businessObject.number,this.showNumberFields=r.showNumberFields,this.saveFN=r.saveFN,this.form=this.fb.group({activityLabel:[this.activityLabel,[]],activityNumber:[this.activityNumber,[]],multipleNumbers:[this.numberIsAllowedMultipleTimes,[]]})}onSubmit(){this.numberIsAllowedMultipleTimes=!this.numberIsAllowedMultipleTimes,this.form.patchValue({multipleNumbers:this.numberIsAllowedMultipleTimes})}save(){this.saveFN({activity:this.activity,...this.form.value}),this.dialogRef.close()}close(){this.dialogRef.close()}preventDefault(t){t.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||e)(T(xw),T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-activity-dialog"]],decls:20,vars:2,consts:[[3,"formGroup"],[3,"hidden"],[1,"shortWidth"],["matInput","","type","number","formControlName","activityNumber"],["type","checkbox","formControlName","multipleNumbers",3,"change"],[1,"fullWidth"],["matInput","","type","text","formControlName","activityLabel","autofocus","","cdkFocusInitial","",3,"keydown.enter","keyup.enter","keyup.escape"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2,"Edit Activity"),W(),j(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),Fe(7,"Number"),W(),at(8,"input",3),W(),j(9,"input",4),Le("change",function(){return r.onSubmit()}),W(),Fe(10," multiple "),W(),j(11,"mat-form-field",5)(12,"mat-label"),Fe(13,"Label"),W(),j(14,"textarea",6),Le("keydown.enter",function(a){return r.preventDefault(a)})("keyup.enter",function(){return r.save()})("keyup.escape",function(){return r.close()}),W()()()(),j(15,"mat-dialog-actions")(16,"button",7),Le("click",function(){return r.close()}),Fe(17,"Cancel"),W(),j(18,"button",8),Le("click",function(){return r.save()}),Fe(19,"Save"),W()()),2&i&&(ye(3),Ae("formGroup",r.form),ye(1),Ae("hidden",!r.showNumberFields))},dependencies:[Og,Rh,hw,Jx,iw,Eg,Ad,Rg,ps,Ld,lf,_y,xu,xp],styles:[".shortWidth[_ngcontent-%COMP%]{width:200px}.fullWidth[_ngcontent-%COMP%]{width:100%} .mat-form-field-label{font-size:12pt!important}"]})}return e})();let GB=(()=>{class e{constructor(t,i){this.elementRegistryService=t,this.commandStackService=i}massChangeNames(t,i,r){const o=[];this.elementRegistryService.getAllCanvasObjects().forEach(s=>{s.type.includes(r)&&s.businessObject.name===t&&o.push(s)}),this.commandStackService.execute("domainStoryObjects.massRename",{elements:o,newValue:i})}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo),N(b1))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wS=(()=>{class e{constructor(t,i,r){this.massNamingService=t,this.elementRegistryService=i,this.iconDictionaryService=r,this.activityLabels=[],this.workObjektLabels=[]}createLabelDictionaries(){this.activityLabels=[],this.workObjektLabels=[],this.elementRegistryService.getAllCanvasObjects().forEach(i=>{const r=i.businessObject.name;if(r&&r.length>0&&i.type.includes(Z.ACTIVITY)&&!this.activityLabels.map(o=>o.name).includes(r))this.activityLabels.push({name:r,originalName:r});else if(r&&r.length>0&&i.type.includes(Z.WORKOBJECT)&&!this.workObjektLabels.map(o=>o.name).includes(r)){const o=i.type.replace(Z.WORKOBJECT,"");let a=this.iconDictionaryService.getIconSource(o);if(!a)return;a.startsWith("data")||(a="data:image/svg+xml,"+a),this.workObjektLabels.push({name:r,originalName:r,icon:a})}}),this.activityLabels.sort((i,r)=>i.name.toLowerCase().localeCompare(r.name.toLowerCase())),this.workObjektLabels.sort((i,r)=>i.name.toLowerCase().localeCompare(r.name.toLowerCase()))}getActivityLabels(){return this.activityLabels.slice()}getWorkObjectLabels(){return this.workObjektLabels.slice()}getUniqueWorkObjectNames(){const t=this.elementRegistryService.getAllWorkobjects();return[...new Set(t.filter(i=>!!i.businessObject.name).map(i=>i.businessObject.name))]}massRenameLabels(t,i,r,o){for(let a=0;a{class e{constructor(){this.replayOnSubject=new Qt(!1),this.replayOn$=this.replayOnSubject.asObservable()}setReplayState(t){this.replayOnSubject.next(t)}getReplayOn(){return this.replayOnSubject.value}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Tfe=J(625),Afe=J.n(Tfe);let Lfe=(()=>{class e{constructor(t){this.elementRegistryService=t}showAll(){this.removeHighlights(),this.elementRegistryService.getAllCanvasObjects().slice().concat(this.elementRegistryService.getAllGroups().slice()).map(t=>t.businessObject).forEach(t=>{document.querySelector("[data-element-id="+t.id+"]").style.display="block"})}showStep(t,i){this.removeHighlights(),this.getAllNotShown(t.objects).forEach(o=>{const a=document.querySelector("[data-element-id="+o.id+"]");a&&(a.style.display="none")}),this.hightlightStep(i?t.objects.filter(o=>!i.objects.includes(o)):t.objects),t.objects.forEach(o=>{const a=document.querySelector("[data-element-id="+o.id+"]");a&&(a.style.display="block")})}getNumberDomForActivity(t){const i=t.parentElement?.getElementsByClassName("djs-labelNumber")||["",""];return{numberBackgroundDom:i[0],numberTextDom:i[1]}}removeHighlights(){const t=this.elementRegistryService.getAllActivities(),i=this.elementRegistryService.getAllConnections();t.forEach(r=>{const o=document.querySelector("[data-element-id="+r.id+"]");if(o){const a=o.getElementsByTagName("polyline")[0];a.style.stroke=r.businessObject.pickedColor||"black",a.style.strokeWidth="1.5";const{numberBackgroundDom:s,numberTextDom:c}=this.getNumberDomForActivity(a);s&&c&&(s.style.fill="white",c.style.fill="black")}}),i.forEach(r=>{const o=document.querySelector("[data-element-id="+r.id+"]").getElementsByTagName("polyline")[0];o.style.stroke=r.businessObject.pickedColor||"black",o.style.strokeWidth="1.5"})}hightlightStep(t){t.filter(i=>i.type===Z.ACTIVITY).forEach(i=>{const r=document.querySelector("[data-element-id="+i.id+"]");if(r){const o=r.getElementsByTagName("polyline")[0];o.style.stroke="black",o.style.strokeWidth="4";const{numberBackgroundDom:a,numberTextDom:s}=this.getNumberDomForActivity(o);s&&a&&(a.style.fill="#43acbf",s.style.fill="black")}})}getAllNotShown(t){const i=[];return this.elementRegistryService.getAllCanvasObjects().concat(this.elementRegistryService.getAllGroups()).forEach(o=>{t.includes(o.businessObject)||(o.type.includes(Z.CONNECTION)&&o.source.type.includes(Z.GROUP)?t.push(o.target):i.push(o.businessObject))}),i}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bfe=(()=>{class e{constructor(t){this.elementRegistryService=t}traceActivitiesAndCreateStory(){const t=new tn,i=[];this.elementRegistryService.getActivitiesFromActors().forEach(o=>{const a=Number(o.businessObject.number),s=t.get(""+(a-1))?t.get(""+(a-1)):[];s.push(o),t.set(""+(a-1),s)});for(let o=0;os.id);i>0&&r[i-1].objects.forEach(s=>{o.includes(s)||o.push(s)}),r[i]={highlightedObjects:a,objects:o}}getMissingSteps(t){if(!t||0===t.length)return[];const i=[];let r=!0;for(let o=0;o0)||t[o].objects.filter(a=>a.type===Z.ACTIVITY).length<=0)&&(i.push(o+1),r=!1);return i}getStepObjects(t){const i=[],r=t,o=[];return t.forEach(a=>{i.push(a.source),o.push(a.target);for(const c of o)c.businessObject&&!c.businessObject.type.includes("actor")&&c.outgoing&&c.outgoing.forEach(l=>{r.push(l);const d=l.target;d&&!o.includes(d)&&o.push(d)})}),i.map(a=>a.businessObject).concat(r.map(a=>a.businessObject)).concat(o.map(a=>a.businessObject))}addGroupStep(t){const i=this.elementRegistryService.getAllGroups();i.length>0&&t.push({highlightedObjects:[],objects:i.map(r=>r.businessObject).concat(t[t.length-1].objects)})}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vfe(e,n){if(1&e){const t=tr();j(0,"div",2)(1,"button",3),Le("click",function(){return yn(t),bn(st().action())}),Fe(2),W()()}if(2&e){const t=st();ye(2),$a(" ",t.data.action," ")}}const jfe=["label"];function zfe(e,n){}const Hfe=Math.pow(2,31)-1;class ES{constructor(n,t){this._overlayRef=t,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,Hfe))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const WB=new Ce("MatSnackBarData");class by{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let $fe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return e})(),Ufe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return e})(),Gfe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return e})(),Wfe=(()=>{class e{constructor(t,i){this.snackBarRef=t,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||e)(T(ES),T(WB))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){1&i&&(j(0,"div",0),Fe(1),W(),et(2,Vfe,3,1,"div",1)),2&i&&(ye(1),$a(" ",r.data.message,"\n"),ye(1),Ae("ngIf",r.hasAction))},dependencies:[co,ps,$fe,Ufe,Gfe],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return e})();const Yfe={snackBarState:Qh("state",[Xa("void, hidden",ar({transform:"scale(0.8)",opacity:0})),Xa("visible",ar({transform:"scale(1)",opacity:1})),Lc("* => visible",Fc("150ms cubic-bezier(0, 0, 0.2, 1)")),Lc("* => void, * => hidden",Fc("75ms cubic-bezier(0.4, 0.0, 1, 1)",ar({opacity:0})))])};let qfe=0,Kfe=(()=>{class e extends sv{constructor(t,i,r,o,a){super(),this._ngZone=t,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=vt(qt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Y,this._onExit=new Y,this._onEnter=new Y,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+qfe++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),i}attachTemplatePortal(t){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),i}onAnimationEnd(t){const{fromState:i,toState:r}=t;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ps(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const t=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>t.classList.add(r)):t.classList.add(i)),this._exposeToModals()}_exposeToModals(){const t=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=t.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?t.setAttribute("aria-owns",r):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(r=document.activeElement),t.removeAttribute("aria-hidden"),i.appendChild(t),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||e)(T(rt),T(Ft),T(No),T(Xn),T(by))};static#t=this.\u0275dir=Me({type:e,viewQuery:function(i,r){if(1&i&&wi(Pd,7),2&i){let o;Vt(o=jt())&&(r._portalOutlet=o.first)}},features:[dt]})}return e})(),Xfe=(()=>{class e extends Kfe{_afterPortalAttached(){super._afterPortalAttached();const t=this._label.nativeElement,i="mdc-snackbar__label";t.classList.toggle(i,!t.querySelector(`.${i}`))}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&wi(jfe,7),2&i){let o;Vt(o=jt())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){1&i&&F0("@state.done",function(a){return r.onAnimationEnd(a)}),2&i&&U0("@state",r._animationState)},features:[dt],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1,2)(3,"div",3),et(4,zfe,0,0,"ng-template",4),W(),at(5,"div"),W()()),2&i&&(ye(5),hn("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Pd],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Yfe.snackBarState]}})}return e})(),CS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[p1,Nd,Wa,xS,Cn,Cn]})}return e})();const YB=new Ce("mat-snack-bar-default-options",{providedIn:"root",factory:function Zfe(){return new by}});let Qfe=(()=>{class e{get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,i,r,o,a,s){this._overlay=t,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(t,i){return this._attach(t,i)}openFromTemplate(t,i){return this._attach(t,i)}open(t,i="",r){const o={...this._defaultConfig,...r};return o.data={message:t,action:i},o.announcementMessage===t&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,i){const o=ri.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:by,useValue:i}]}),a=new sf(this.snackBarContainerComponent,i.viewContainerRef,o),s=t.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(t,i){const r={...new by,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new ES(a,o);if(t instanceof ro){const c=new av(t,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new sf(t,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Bo(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(t,i){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),i.duration&&i.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(i.duration))}_createOverlay(t){const i=new f1;i.direction=t.direction;let r=this._overlay.position().global();const o="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!o||"end"===t.horizontalPosition&&o,s=!a&&"center"!==t.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===t.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(t,i){return ri.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:ES,useValue:i},{provide:WB,useValue:t.data}]})}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ER),N(ri),N(Ow),N(e,12),N(YB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),dl=(()=>{class e extends Qfe{constructor(t,i,r,o,a,s){super(t,i,r,o,a,s),this.simpleSnackBarComponent=Wfe,this.snackBarContainerComponent=Xfe,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ER),N(ri),N(Ow),N(e,12),N(YB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:CS})}return e})(),Ep=(()=>{class e{constructor(t,i,r,o){this.replayStateService=t,this.domManipulationService=i,this.storyCreatorService=r,this.snackbar=o,this.story=[],this.currentStep=new Qt(-1),this.maxStepNumber=new Qt(0),this.currentStep$=this.currentStep.asObservable(),this.maxStepNumber$=this.maxStepNumber.asObservable()}initializeReplay(){this.currentStep.next(1),this.story=this.storyCreatorService.traceActivitiesAndCreateStory(),this.maxStepNumber.next(this.story.length)}getCurrentStepNumber(){return this.currentStep.value}getMaxStepNumber(){return this.maxStepNumber.value}nextStep(){this.currentStep.value1&&(this.currentStep.next(this.currentStep.value-1),this.showCurrentStep())}showCurrentStep(){this.domManipulationService.showStep(this.story[this.currentStep.value-1],this.currentStep.value>1?this.story[this.currentStep.value-2]:void 0)}startReplay(){if(this.initializeReplay(),this.story?.length){const t=this.storyCreatorService.getMissingSteps(this.story);if(0===t.length)this.replayStateService.setReplayState(!0),this.domManipulationService.showStep(this.story[this.currentStep.getValue()-1]);else{const i=t.join(", ");this.snackbar.open(1===i.length?`The Domain Story is not complete. Step ${i} is missing.`:`The Domain Story is not complete. Steps ${i} are missing.`,void 0,{duration:4e3,panelClass:Bs})}}else this.snackbar.open("You need a Domain Story for replay.",void 0,{duration:4e3,panelClass:Bs})}stopReplay(){this.currentStep.next(-1),this.maxStepNumber.next(0),this.replayStateService.setReplayState(!1),this.domManipulationService.showAll()}static#e=this.\u0275fac=function(i){return new(i||e)(N(wp),N(Lfe),N(Bfe),N(dl))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qB=(()=>{class e{constructor(t,i){this.replayService=t,this.titleService=i}setModelerClasses(t,i,r){this.modeler=r}static viewBoxCoordinates(t){return t.match(/width="([^"]+)"\s+height="([^"]+)"\s+viewBox="([^"]+)"/)[3]}downloadHTMLPresentation(t){var i=this;return uN(function*(){const r=[];i.replayService.startReplay();try{const l=yield i.modeler.saveSVG({});i.fixActivityMarkersForEachStep(l,i.replayService.getCurrentStepNumber()),r.push({content:e.createSVGData(l.svg),transition:"slide"})}catch(l){alert("There was an error exporting the SVG.\n"+l)}for(;i.replayService.getCurrentStepNumber()"),t.svg.indexOf("")+7),o=r.split("{const d=l.substring(4,l.length-1),u=d.slice(0,l.length-5)+"customId"+i+d.slice(d.length-2);t.svg=t.svg.replaceAll(d,u)}),a+='{class e{constructor(t,i,r,o,a,s,c,l,d,u){this.dirtyFlagService=t,this.iconDictionaryService=i,this.elementRegistryService=r,this.configurationService=o,this.labelDictionaryService=a,this.replayStateService=s,this.dialogService=c,this.commandStackService=l,this.titleService=d,this.htmlPresentationService=u}initializeDomainStoryModelerClasses(){(function dhe(e,n){my=e,_p=n})(this.dirtyFlagService,this.iconDictionaryService),function ehe(e,n){ll=e,Jue=n}(this.iconDictionaryService,this.configurationService),function Que(e,n,t){pS=e,xB=n,mS=t}(this.iconDictionaryService,this.elementRegistryService,this.dirtyFlagService),function Lue(e){lB=e}(this.labelDictionaryService),function fhe(e){yp=e}(this.iconDictionaryService),function Hue(e){fS=e}(this.elementRegistryService),function Cfe(e){UB=e}(this.elementRegistryService)}propagateDomainStoryModelerClassesToServices(t,i,r,o,a){this.commandStackService.setCommandStack(t),this.elementRegistryService.setElementRegistry(i),this.htmlPresentationService.setModelerClasses(r,o,a)}initializeDomainStoryModelerEventHandlers(t,i){(function Sfe(e,n){e.registerHandler("activity.directionChange",function i(r){this.preExecute=function(o){o.oldNumber=o.businessObject.number,o.oldWaypoints=o.element.waypoints,o.name=o.businessObject.name,o.oldNumber||(o.oldNumber=0),r.updateNumber(o.businessObject,o.newNumber)},this.execute=function(o){let a=o.businessObject,s=o.element,c=s.source,l=[],d=s.waypoints;for(let u=d.length-1;u>=0;u--)l.push(d[u]);s.source=s.target,a.source=a.target,s.target=c,a.target=c.id,a.name=o.name,a.number=o.newNumber,s.waypoints=l,n.fire("element.changed",{element:s})},this.revert=function(o){let a=o.businessObject,s=o.element,c=s.source;s.source=s.target,a.source=a.target,s.target=c,a.target=c.id,a.name=o.name,a.number=o.oldNumber,s.waypoints=o.oldWaypoints,n.fire("element.changed",{element:s})}}),e.registerHandler("activity.changed",function t(r){this.preExecute=function(o){o.oldLabel=o.businessObject.name||" ";let a=function Gue(){let e=[],n=fS.getActivitiesFromActors();for(let t=n.length-1;t>=0;t--)e.push({id:n[t].businessObject.id,number:n[t].businessObject.number});return e}();r.updateLabel(o.businessObject,o.newLabel),r.updateNumber(o.businessObject,o.newNumber),o.oldNumber=o.businessObject.number,o.oldNumbersWithIDs=a},this.execute=function(o){let a=o.businessObject,s=o.element;o.newLabel&&o.newLabel.length<1&&(o.newLabel=" "),a.name=o.newLabel,a.number=o.newNumber,n.fire("element.changed",{element:s})},this.revert=function(o){let a=o.businessObject,s=o.element;a.name=o.oldLabel,a.number=o.oldNumber,function Dfe(e,n){let t=UB?.getActivitesFromActors();for(let i=t.length-1;i>=0;i--)for(let r=e.length-1;r>=0;r--)if(e[r].id.includes(t[i].businessObject.id)){let o=t[i];o.businessObject.number=e[r].number,r=-5,n.fire("element.changed",{element:o}),e.splice(r,1)}}(o.oldNumbersWithIDs,n),n.fire("element.changed",{element:s})}})})(t,i),function Efe(e,n){e.registerHandler("domainStoryObjects.massRename",function t(i){this.preExecute=function(r){let o=r.elements;r.oldLabel=o[0].businessObject.name,o.forEach(a=>{i.updateLabel(a.businessObject,confirm.newValue)})},this.execute=function(r){r.elements.forEach(a=>{a.businessObject.name=r.newValue,n.fire("element.changed",{element:a})})},this.revert=function(r){r.elements.forEach(a=>{a.businessObject.name=r.oldLabel,n.fire("element.changed",{element:a})})}})}(t,i),function kfe(e,n){e.registerHandler("element.colorChange",function t(){this.preExecute=function(r){r.oldColor=r.businessObject.pickedColor},this.execute=function(r){let a=r.element;r.businessObject.pickedColor=r.newColor,n.fire("element.changed",{element:a})},this.revert=function(r){let a=r.element;r.businessObject.pickedColor=r.oldColor,n.fire("element.changed",{element:a})}}),e.registerHandler("shape.removeGroupWithoutChildren",function i(){this.preExecute=function(r){r.parent=r.element.parent,r.children=r.element.children.slice()},this.execute=function(r){let o=r.element;r.children.forEach(a=>{(function Tue(e,n){const t=e.parent;e.children.remove(n),t.children.add(n),n.parent=t;const i=document.querySelector("[data-element-id="+n.id+"]").parentElement,r=i.parentElement,o=r.parentElement.parentElement;r.removeChild(i),o.appendChild(i)})(o,a),n.fire("element.changed",{element:a})}),n.fire("shape.remove",{element:o})},this.revert=function(r){let o=r.element;n.fire("shape.added",{element:o}),r.element.children.forEach(a=>{reworkGroupElements(o,a)})}})}(t,i),yS(t,this.titleService)}initiateEventBusListeners(t,i){t.on("element.dblclick",r=>{if(!this.replayStateService.getReplayOn()){const o=r.element;if(o.type===Z.ACTIVITY)this.activityDoubleClick(o,t,i);else{const a=function que(){return mB.slice(0)}();if(a.length>1){const s=this.elementRegistryService.getActivitiesFromActors();if(s.length>0){const c=document.getElementById("canvas");if(c){let E,f=c.getElementsByClassName("djs-container")[0].getElementsByTagName("svg")[0].getElementsByClassName("viewport")[0].getAttribute("transform"),p=0,g=0,v=1,k=1;const C=r.originalEvent.offsetX,x=r.originalEvent.offsetY;f&&(f=f.replace("matrix(",""),f.replace(")",""),E=f.split(","),v=parseFloat(E[0]),k=parseFloat(E[3]),p=parseInt(E[4],void 0),g=parseInt(E[5],void 0));const D=25*v,P=22*k;for(let V=1;V{Ht.businessObject.number===de&&jue(D,P,we,je,C,x)&&this.activityDoubleClick(Ht,t,i)})}}}}}}}}),t.on(["element.click","element.dblclick","element.mousedown","drag.init","canvas.viewbox.changing","autoPlace","popupMenu.open"],1e10,r=>{this.replayStateService.getReplayOn()&&(r.stopPropagation(),r.preventDefault())})}activityDoubleClick(t,i,r){const o=t.source;!function Vue(e){sy=e}(!1);const a=new uo;a.disableClose=!1,a.autoFocus=!0,t.businessObject.number&&o&&o.type.includes(Z.ACTOR)?a.data=new TB(t,yB()[t.businessObject.number],!0,s=>this.saveActivityInputLabel(s,i,r)):o&&o.type.includes(Z.WORKOBJECT)&&(a.data=new TB(t,!1,!1,s=>this.saveActivityInputLabel(s,i,r))),this.dialogService.openDialog(wfe,a)}saveActivityInputLabel(t,i,r){const o=t.activityLabel,a=t.activityNumber??!1,s=t.activityNumber,c=t.multipleNumbers??!1,l=t.activity,d=this.elementRegistryService.getActivitiesFromActors(),u=d.indexOf(l);let h;d.splice(u,1),a&&function Yue(e,n){gB[e]=n}(s,c),l.businessObject.multipleNumberAllowed=c,h=a?{businessObject:l.businessObject,newLabel:o,newNumber:s,element:l}:{businessObject:l.businessObject,newLabel:o,element:l},r.execute("activity.changed",h),!1!==l.businessObject.multipleNumberAllowed?!1===yB()[s]&&_B(d,s,i):!1===l.businessObject.multipleNumberAllowed&&_B(d,s,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(_v),N(Qa),N(jo),N($c),N(wS),N(wp),N(df),N(b1),N(Br),N(qB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Cp(e){const n=new tn,t=new tn;return Object.keys(e.actors).forEach(i=>{n.add(e.actors[i],i)}),Object.keys(e.workObjects).forEach(i=>{t.add(e.workObjects[i],i)}),{name:e.name,actors:n,workObjects:t}}structuredClone({$descriptor:void 0,$type:void 0,di:void 0,get:void 0,set:void 0,id:"test",name:"test",type:Z.WORKOBJECT,x:0,y:0,height:38,width:38,pickedColor:void 0}).type=Z.ACTOR;let xy=(()=>{class e{set(t,i){localStorage.setItem(t,JSON.stringify(i))}get(t){const i=localStorage.getItem(t);return i?JSON.parse(i):null}removeItem(t){localStorage.removeItem(t)}checkValidityOfConfiguration(t){return t.actors.keysArray().length>1&&t.workObjects.keysArray().length>1&&!t.actors.all().some(i=>"string"!=typeof i.value)&&!t.workObjects.all().some(i=>"string"!=typeof i.value)}getStoredDomainConfiguration(){const t=localStorage.getItem(tN);if(t){const i=Cp(JSON.parse(t));if(this.checkValidityOfConfiguration(i))return i}}setStoredDomainConfiguration(t){const i={};t.actors.keysArray().forEach(a=>{i[a]=t.actors.get(a)});const r={};t.workObjects.keysArray().forEach(a=>{r[a]=t.workObjects.get(a)}),localStorage.setItem(tN,JSON.stringify({name:t.name,actors:i,workObjects:r},null,2))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wu=(()=>{class e{constructor(t,i,r,o,a){this.initializerService=t,this.elementRegistryService=i,this.iconDictionaryService=r,this.domainConfigurationService=o,this.storageService=a}postInit(){const t=this.storageService.getStoredDomainConfiguration();t&&(this.iconDictionaryService.setCusomtConfiguration(t),this.domainConfigurationService.loadConfiguration(t)),this.initializerService.initializeDomainStoryModelerClasses(),this.modeler=new ka({container:"#canvas",keyboard:{bindTo:document},additionalModules:[{bpmnSearch:["value","foo"]}]}),this.modeler.get&&(this.canvas=this.modeler.get("canvas"),this.elementRegistry=this.modeler.get("elementRegistry"),this.eventBus=this.modeler.get("eventBus"),this.commandStack=this.modeler.get("commandStack"),this.selection=this.modeler.get("selection")),this.initializerService.initializeDomainStoryModelerEventHandlers(this.commandStack,this.eventBus),this.initializerService.propagateDomainStoryModelerClassesToServices(this.commandStack,this.elementRegistry,this.canvas,this.selection,this.modeler);const i=this.debounce(this.saveSVG,500);this.modeler.get&&this.modeler.on("commandStack.changed",i),this.initializerService.initiateEventBusListeners(this.eventBus,this.commandStack),this.modeler.createDiagram(),I(window,{bpmnjs:this.modeler}),this.startDebounce()}restart(t,i){const r=i??this.elementRegistryService.createObjectListForDSTDownload().map(o=>o.businessObject);t||(t=this.storageService.getStoredDomainConfiguration()),t&&(this.storageService.setStoredDomainConfiguration(t),this.iconDictionaryService.setCusomtConfiguration(t),this.domainConfigurationService.loadConfiguration(t)),this.elementRegistryService.clear(),this.modeler?.destroy(),this.postInit(),r&&this.modeler.get&&this.modeler.importCustomElements(r)}getModeler(){return this.modeler}commandStackChanged(){this.eventBus.fire("commandStack.changed",this.debounce(this.saveSVG,500))}startDebounce(){this.debounce(this.saveSVG,500)}debounce(t,i){return()=>{let r;r&&clearTimeout(r),r=setTimeout(()=>{t(this.modeler).then(o=>{this.encoded=o})},i)}}getEncoded(){return this.encoded?this.encoded:""}saveSVG(t){return uN(function*(){try{return(yield t.saveSVG()).svg}catch(i){alert("There was an error saving the SVG.\n"+i)}})()}static#e=this.\u0275fac=function(i){return new(i||e)(N(Jfe),N(jo),N(Qa),N($c),N(xy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),npe=(()=>{class e{constructor(t){this.modelerService=t,this.cacheData=""}createSVGData(t,i,r,o,a){this.cacheData=this.modelerService.getEncoded();let h,f,p,g,s=structuredClone(this.cacheData),c=s.indexOf('width="'),{width:l,height:d,viewBox:u}=this.viewBoxCoordinates(s);const v=u.split(/\s/);h=+v[0],p=+v[1],f=+v[2],g=+v[3],f<300&&(f+=300,l+=300);const{insertText:k,extraHeight:E}=cN(t,i,h,p,l);o&&(d+=E+80);const C=this.createBounds(l,d,h,p,f,g,o),x=s.substring(0,c);c=s.indexOf('" version');const D=s.substring(c);D.substring(c),s=x+C+D;const P=this.findIndexToInsertData(s);if(o&&(s=s.slice(0,P)+k+s.slice(P)),a){const V=s.indexOf('width="'),F='style="background-color:white" ';s=s.slice(0,V)+F+s.slice(V)}return this.appendDST(s,r)}findIndexToInsertData(t){let i=t.indexOf("");return i<0?i=t.indexOf('version="1.2">')+14:i+=7,i}createBounds(t,i,r,o,a,s,c){return'width="'+t+'" height=" '+i+'" viewBox="'+r+" "+(c?o-80:o)+" "+a+" "+(s+30)}viewBoxCoordinates(t){const r=t.match(/width="([^"]+)"\s+height="([^"]+)"\s+viewBox="([^"]+)"/);return r?{width:+r[1],height:+r[2],viewBox:r[3]}:{width:0,height:0,viewBox:""}}appendDST(t,i){return t+"\n\x3c!-- \n"+JSON.stringify(i,null,2)+"\n --\x3e"}static#e=this.\u0275fac=function(i){return new(i||e)(N(wu))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wy=(()=>{class e{constructor(t,i,r){this.modelerService=t,this.elementRegistryService=i,this.dirtyFlagService=r}renderStory(t){this.modelerService.getModeler().importCustomElements(t)}reset(){this.renderStory([])}importStory(t,i,r,o=!0){this.modelerService.restart(r,t),this.renderStory(t),this.elementRegistryService.correctInitialize(),this.modelerService.commandStackChanged(),this.modelerService.startDebounce(),o&&this.dirtyFlagService.makeClean()}getStory(){return this.elementRegistryService.createObjectListForDSTDownload().map(t=>t.businessObject)}static#e=this.\u0275fac=function(i){return new(i||e)(N(wu),N(jo),N(_v))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ey=(()=>{class e{constructor(t,i,r,o,a,s,c){this.configurationService=t,this.titleService=i,this.dirtyFlagService=r,this.pngService=o,this.svgService=a,this.htmlPresentationService=s,this.rendererService=c,this.title="",this.description="",this.titleSubscription=this.titleService.title$.subscribe(l=>{this.title=l}),this.descriptionSubscription=this.titleService.description$.subscribe(l=>{this.description=l})}ngOnDestroy(){this.titleSubscription.unsubscribe(),this.descriptionSubscription.unsubscribe()}isDomainStoryExportable(){return this.rendererService.getStory().length>=1}createConfigAndDST(t){return new BJ(this.configurationService.getCurrentConfigurationForExport(),t)}downloadDST(){const t=this.getStoryForDownload(),i=this.createConfigAndDST(t),r=JSON.stringify(i,null,2),o=uf(this.title+"_"+this.getCurrentDateString());this.downloadFile(r,"data:text/plain;charset=utf-8,",o,".egn",!0)}downloadFile(t,i,r,o,a){const s=document.createElement("a");s.setAttribute("href",i+encodeURIComponent(t)),s.setAttribute("download",r+o),s.style.display="none",document.body.appendChild(s),s.click(),a&&this.dirtyFlagService.makeClean(),document.body.removeChild(s)}downloadSVG(t,i){const r=this.getStoryForDownload(),o=this.createConfigAndDST(r),a=this.svgService.createSVGData(this.title,this.description,o,t,i);this.downloadFile(a,"data:application/bpmn20-xml;charset=UTF-8,",uf(this.title+"_"+this.getCurrentDateString()),".egn.svg",!0)}downloadPNG(t){const i=document.getElementById("canvas");if(i){const a=i.getElementsByClassName("djs-container")[0].getElementsByTagName("svg")[0],s=a.getElementsByClassName("viewport")[0],c=s.getElementsByClassName("layer-base")[0],l=document.createElement("img");let d=this.pngService.extractSVG(s,a);d=this.pngService.prepareSVG(d,c,this.description,this.title,t),l.onload=()=>{const u=document.createElement("canvas");u.width=this.pngService.getWidth()+10,u.height=this.pngService.getHeight()+10;const h=u.getContext("2d");h&&(h.rect(0,0,u.width,u.height),h.fillStyle="white",h.fill(),h.drawImage(l,0,0));const f=u.toDataURL("image/png"),p=document.createElement("a");p.setAttribute("download",uf(this.title)+"_"+this.getCurrentDateString()+".png"),p.setAttribute("href",f),document.body.appendChild(p),p.click(),document.body.removeChild(p),l.src=""},l.onchange=l.onload,l.width=this.pngService.getWidth(),l.height=this.pngService.getHeight(),l.src="data:image/svg+xml,"+d}}downloadHTMLPresentation(){const t=uf(this.title+"_"+this.getCurrentDateString());this.htmlPresentationService.downloadHTMLPresentation(t).then()}getStoryForDownload(){const t=this.rendererService.getStory();return t.push({info:this.titleService.getDescription()}),t.push({version:fv_version}),t}getCurrentDateString(){return vI(new Date,"YYYY-MM-dd","en-GB")}static#e=this.\u0275fac=function(i){return new(i||e)(N($c),N(Br),N(_v),N(WJ),N(npe),N(qB),N(wy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ipe=(()=>{class e{constructor(t,i,r){this.fb=t,this.dialogRef=i,this.titleService=r,this.title="< name of this Domain Story >"===this.titleService.getTitle()?"":this.titleService.getTitle(),this.description=this.titleService.getDescription(),this.form=this.fb.group({title:[this.title,[]],description:[this.description,[]]})}ngOnInit(){}save(){this.titleService.updateTitleAndDescription(this.form.get("title")?.value,this.form.get("description")?.value,!0),this.dialogRef.close()}close(){this.dialogRef.close()}preventDefault(t){t.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||e)(T(xw),T(Fd),T(Br))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header-dialog"]],decls:16,vars:1,consts:[[3,"formGroup"],[1,"dialogWidth"],["matInput","","type","text","formControlName","title"],["maxlength","2000","matInput","","formControlName","description",1,"descriptionInput",3,"keydown.enter","keyup.enter","keyup.escape"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"form",0)(2,"mat-form-field",1)(3,"mat-label"),Fe(4,"Title"),W(),at(5,"input",2),W(),at(6,"br"),j(7,"mat-form-field",1)(8,"mat-label"),Fe(9,"Description"),W(),j(10,"textarea",3),Le("keydown.enter",function(a){return r.preventDefault(a)})("keyup.enter",function(){return r.save()})("keyup.escape",function(){return r.close()}),W()()()(),j(11,"mat-dialog-actions")(12,"button",4),Le("click",function(){return r.close()}),Fe(13,"Cancel"),W(),j(14,"button",5),Le("click",function(){return r.save()}),Fe(15,"Save"),W()()),2&i&&(ye(1),Ae("formGroup",r.form))},dependencies:[Og,Rh,iw,Eg,bw,Ad,Rg,ps,Ld,lf,_y,xu,xp],styles:[".dialogWidth[_ngcontent-%COMP%]{width:50vw}.dialogWidth[_ngcontent-%COMP%] mat-label[_ngcontent-%COMP%]{font-size:12pt}.descriptionInput[_ngcontent-%COMP%]{min-height:75px}"]})}return e})();class rpe{constructor(n,t){this.title=n,this.options=t}}class Cy{constructor(n,t,i){this.text=n,this.tooltip=t,this.fn=i}}function ope(e,n){if(1&e){const t=tr();j(0,"button",3),Le("click",function(){const o=yn(t).index;return bn(st().doOption(o))}),Fe(1),W()}if(2&e){const t=n.$implicit;Ae("title",t.tooltip),ye(1),$a(" ",t.text," ")}}let ape=(()=>{class e{constructor(t,i){this.dialogRef=t,this.withTitle=new Qt(!0),this.useWhiteBackground=new Qt(!0),this.title=i.title,this.options=i.options}ngOnInit(){}doOption(t){this.options[t].fn(this.withTitle.value,this.useWhiteBackground.value),this.close()}close(){this.dialogRef.close()}updateWithTitle(t){this.withTitle.next(t.target.checked)}updateUseWhiteBackground(t){this.useWhiteBackground.next(t.target.checked)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-export-dialog"]],decls:18,vars:8,consts:[["type","checkbox",3,"checked","change"],["mat-flat-button","",3,"click"],["mat-stroked-button","","class","mr-1",3,"title","click",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-1",3,"title","click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2),W(),j(3,"label")(4,"input",0),Le("change",function(a){return r.updateWithTitle(a)}),$t(5,"async"),W(),Fe(6," Add title and description to image "),W(),at(7,"br"),j(8,"label")(9,"input",0),Le("change",function(a){return r.updateUseWhiteBackground(a)}),$t(10,"async"),W(),Fe(11," Add white background to SVG (default: transparent) "),W()(),j(12,"mat-dialog-actions"),at(13,"br"),j(14,"div")(15,"button",1),Le("click",function(){return r.close()}),Fe(16,"Cancel"),W(),et(17,ope,2,2,"button",2),W()()),2&i&&(ye(2),io(r.title),ye(2),Ae("checked",Ut(5,4,r.withTitle)),ye(5),Ae("checked",Ut(10,6,r.useWhiteBackground)),ye(8),Ae("ngForOf",r.options))},dependencies:[kd,ps,Ld,lf,fa]})}return e})(),spe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();class SS{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,t,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,t&&t.length&&(n?t.forEach(o=>this._markSelected(o)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...n){this._verifyValueAssignment(n);const t=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),t.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const t=this._hasQueuedChanges();return n&&this._emitChangeEvent(),t}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let t of this._selection)if(this.compareWith(n,t))return t;return n}return n}}let KB=(()=>{class e{constructor(){this._listeners=[]}notify(t,i){for(let r of this._listeners)r(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const XB=["*"],QB=["unscopedContent"],cpe=["text"],lpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],dpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],JB=new Ce("ListOption");let e6=(()=>{class e{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return e})(),t6=(()=>{class e{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return e})(),Tpe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return e})(),n6=(()=>{class e{constructor(t){this._listOption=t}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(i){return new(i||e)(T(JB,8))};static#t=this.\u0275dir=Me({type:e,hostVars:4,hostBindings:function(i,r){2&i&&Ct("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return e})(),Ape=(()=>{class e extends n6{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[dt]})}return e})(),Mpe=(()=>{class e extends n6{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[dt]})}return e})();const Ipe=new Ce("MAT_LIST_CONFIG");let Eu=(()=>{class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=vt(Ipe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=rn(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,hostVars:1,hostBindings:function(i,r){2&i&&hn("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return e})(),DS=(()=>{class e{set lines(t){this._explicitLines=pa(t,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=rn(t)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(t){this._disabled=rn(t)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(t,i,r,o,a,s){this._elementRef=t,this._ngZone=i,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new ee,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=a||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===s,r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Xh(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(To(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();const i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===i),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===i),this._hasUnscopedTextContent){const o=0===this._titles.length&&1===i;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!(!t.textContent||!t.textContent.trim()))}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Eu,8),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275dir=Me({type:e,contentQueries:function(i,r,o){if(1&i&&(oi(o,Ape,4),oi(o,Mpe,4)),2&i){let a;Vt(a=jt())&&(r._avatars=a),Vt(a=jt())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){2&i&&(hn("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),Ct("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return e})(),i6=(()=>{class e extends Eu{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Yt([{provide:Eu,useExisting:e}]),dt],ngContentSelectors:XB,decls:1,vars:0,template:function(i,r){1&i&&(bi(),_t(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0})}return e})(),r6=(()=>{class e extends DS{get activated(){return this._activated}set activated(t){this._activated=rn(t)}constructor(t,i,r,o,a,s){super(t,i,r,o,a,s),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Eu,8),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(1&i&&(oi(o,t6,5),oi(o,e6,5),oi(o,Tpe,5)),2&i){let a;Vt(a=jt())&&(r._lines=a),Vt(a=jt())&&(r._titles=a),Vt(a=jt())&&(r._meta=a)}},viewQuery:function(i,r){if(1&i&&(wi(QB,5),wi(cpe,5)),2&i){let o;Vt(o=jt())&&(r._unscopedContent=o.first),Vt(o=jt())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(i,r){2&i&&(hn("aria-current",r._getAriaCurrent()),Ct("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",0!==r._avatars.length)("mdc-list-item--with-leading-icon",0!==r._icons.length)("mdc-list-item--with-trailing-meta",0!==r._meta.length)("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[dt],ngContentSelectors:dpe,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(i,r){1&i&&(bi(lpe),_t(0),j(1,"span",0),_t(2,1),_t(3,2),j(4,"span",1,2),Le("cdkObserveContent",function(){return r._updateItemLines(!0)}),_t(6,3),W()(),_t(7,4),_t(8,5),at(9,"div",3))},dependencies:[dR],encapsulation:2,changeDetection:0})}return e})(),a6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Mw,Wa,Cn,zg,_X,spe]})}return e})();function Fpe(e,n){if(1&e){const t=tr();j(0,"mat-list-item")(1,"mat-form-field",6)(2,"input",7),Le("change",function(r){const a=yn(t).$implicit;return bn(st().updateWorkobjectEntry(r,a))}),W()()()}if(2&e){const t=n.$implicit;ye(2),Ae("value",t.name)}}function Lpe(e,n){if(1&e){const t=tr();j(0,"mat-list-item")(1,"mat-form-field",6)(2,"textarea",8),Le("change",function(r){const a=yn(t).$implicit;return bn(st().updateActivityEntry(r,a))})("keydown.enter",function(r){return yn(t),bn(st().preventDefault(r))})("keyup.enter",function(){return yn(t),bn(st().save())})("keyup.escape",function(){return yn(t),bn(st().close())}),W()()()}if(2&e){const t=n.$implicit;ye(2),Ae("value",t.name)}}let Bpe=(()=>{class e{constructor(t){this.labelDictionaryService=t,this.closeEmitter=new Xt,this.labelDictionaryService.createLabelDictionaries(),this.workObjectEntries=this.labelDictionaryService.getWorkObjectLabels(),this.activityEntries=this.labelDictionaryService.getActivityLabels(),this.workobjectEntriesSubject=new Qt(this.workObjectEntries),this.activityEntriesSubject=new Qt(this.activityEntries)}ngAfterViewInit(){this.labelDictionaryService.createLabelDictionaries(),this.workobjectEntriesSubject.next(this.labelDictionaryService.getWorkObjectLabels()),this.activityEntriesSubject.next(this.labelDictionaryService.getActivityLabels())}save(){this.workObjectEntries=this.workobjectEntriesSubject.value,this.activityEntries=this.activityEntriesSubject.value;const t=[],i=[],r=[],o=[];this.activityEntries.filter(a=>a.name!==a.originalName).forEach(a=>{t.push(a.name),i.push(a.originalName)}),this.workObjectEntries.filter(a=>a.name!==a.originalName).forEach(a=>{r.push(a.name),o.push(a.originalName)}),this.labelDictionaryService.massRenameLabels(t,i,r,o),this.closeEmitter.emit()}cancel(){this.workObjectEntries.forEach(t=>{t.name=t.originalName}),this.activityEntries.forEach(t=>{t.name=t.originalName}),this.workobjectEntriesSubject.next(this.workObjectEntries),this.activityEntriesSubject.next(this.activityEntries)}updateActivityEntry(t,i){let r=this.activityEntriesSubject.value;r.filter(o=>o.originalName===i.originalName)[0].name=t.target.value,this.activityEntriesSubject.next(r)}updateWorkobjectEntry(t,i){let r=this.workobjectEntriesSubject.value;r.filter(o=>o.originalName===i.originalName)[0].name=t.target.value,this.workobjectEntriesSubject.next(r)}preventDefault(t){t.preventDefault()}close(){this.closeEmitter.emit()}static#e=this.\u0275fac=function(i){return new(i||e)(T(wS))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-label-dictionary"]],outputs:{closeEmitter:"closeEmitter"},decls:18,vars:6,consts:[[1,"workobjectList"],[4,"ngFor","ngForOf"],[1,"activityList"],[1,"activityListTitle"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"],[1,"inputText"],["matInput","",1,"inputText",3,"value","change"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","3",1,"inputText","activity",3,"value","change","keydown.enter","keyup.enter","keyup.escape"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"div",0)(2,"h3"),Fe(3,"Workobjects"),W(),j(4,"mat-list"),et(5,Fpe,3,1,"mat-list-item",1),$t(6,"async"),W()(),j(7,"div",2)(8,"h3",3),Fe(9,"Activities"),W(),j(10,"mat-list"),et(11,Lpe,3,1,"mat-list-item",1),$t(12,"async"),W()()(),j(13,"mat-dialog-actions")(14,"button",4),Le("click",function(){return r.close()}),Fe(15,"Cancel"),W(),j(16,"button",5),Le("click",function(){return r.save()}),Fe(17,"Save"),W()()),2&i&&(ye(5),Ae("ngForOf",Ut(6,2,r.workobjectEntriesSubject)),ye(6),Ae("ngForOf",Ut(12,4,r.activityEntriesSubject)))},dependencies:[kd,ps,i6,r6,Ld,lf,_y,xp,gfe,fa],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto;top:0;bottom:0;max-height:75vh;grid-column-gap:5px;width:75vw}mat-dialog-content[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:unset!important}mat-dialog-content[_ngcontent-%COMP%] mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}h3[_ngcontent-%COMP%]{font-weight:700}.icon[_ngcontent-%COMP%]{width:36px;height:36px}.inputText[_ngcontent-%COMP%]{width:98%;resize:none;font-family:sans-serif;font-size:small;padding-top:1px;padding-bottom:1px;margin:0}.activityListHeader[_ngcontent-%COMP%]{display:inline-grid;grid-template-columns:auto auto auto;width:100%}.activityListTitle[_ngcontent-%COMP%]{justify-self:left}.saveButton[_ngcontent-%COMP%]{justify-self:end;padding-right:0!important}.saveButtonSpan[_ngcontent-%COMP%]{margin-left:2px}.activity[_ngcontent-%COMP%]{max-height:3rem}"]})}return e})(),Vpe=(()=>{class e{constructor(t){this.dialogRef=t}close(){this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-label-dictionary-dialog"]],decls:4,vars:0,consts:[[3,"closeEmitter"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2,"Label Dictionary"),W(),j(3,"app-label-dictionary",0),Le("closeEmitter",function(){return r.close()}),W()())},dependencies:[Bpe,Ld]})}return e})(),s6=(()=>{class e{checkForUnreferencedElementsInActivitiesAndRepair(t){const i=[],r=[];let o=!0;return t.forEach(a=>{const s=a.type;s===Z.ACTIVITY||s===Z.CONNECTION?i.push(a):r.push(a.id)}),i.forEach(a=>{const c=a.target;if(!r.includes(a.source)||!r.includes(c)){o=!1;const l=t.indexOf(a);t=t.splice(l,1)}}),o}updateCustomElementsPreviousV050(t){for(const i of t)i.type===Z.WORKOBJECT?i.type=Z.WORKOBJECT+"Document":i.type===Z.WORKOBJECT+"Bubble"&&(i.type=Z.WORKOBJECT+"Conversation");return t}adjustPositions(t){let i=0,r=0;this.findFirstElement(t,!0,i,r),(i<75||i>150||r<0||r>50)&&(i-=75,r-=50,t.forEach(a=>this.adjustElementPosition(a,i,r)))}adjustElementPosition(t,i,r){t.type===Z.ACTIVITY||t.type===Z.CONNECTION?t.waypoints.forEach(a=>{a.x-=i,a.y-=r,a.original&&(a.original.x=a.x,a.original.y=a.y)}):(t.x-=i,t.y-=r)}findFirstElement(t,i,r,o){t.forEach(a=>{let s,c;a.type!==Z.ACTIVITY&&a.type!==Z.CONNECTION&&(i&&(r=a.x,o=a.y,i=!1),s=a.x,c=a.y,s{class e{constructor(t,i,r,o,a,s,c){this.iconDictionaryService=t,this.importRepairService=i,this.titleService=r,this.rendererService=o,this.dialogService=a,this.domainConfigurationService=s,this.snackbar=c,this.title=pv,this.description=mv,this.importedConfiguration=null,this.importedConfigurationEmitter=new Xt,this.titleSubscription=this.titleService.title$.subscribe(l=>{this.title=l}),this.descriptionSubscription=this.titleService.description$.subscribe(l=>{this.description=l})}ngOnDestroy(){this.titleSubscription.unsubscribe(),this.descriptionSubscription.unsubscribe()}get importedConfigurationEvent(){return this.importedConfigurationEmitter.asObservable()}getImportedConfiguration(){const t={name:this.importedConfiguration?.name||"",actors:this.importedConfiguration?.actors||new tn,workObjects:this.importedConfiguration?.workObjects||new tn};return this.importedConfiguration=null,t}importDST(t,i,r){const o=new FileReader,a=iN(i,r);this.titleService.updateTitleAndDescription(a,null,!1),o.onloadend=s=>{s&&s.target&&this.fileReaderFunction(s.target.result,r,!1)},o.readAsText(t)}importEGN(t,i,r){const o=new FileReader,a=iN(i,r);this.titleService.updateTitleAndDescription(a,null,!1),o.onloadend=s=>{s&&s.target&&this.fileReaderFunction(s.target.result,r,!0)},o.readAsText(t)}fileReaderFunction(t,i,r){let o;if("string"==typeof t){o=i?this.removeXMLComments(t):t;let a,s,c,l=this.extractDstAndConfig(o,i);if(null==l)return;l.domain?(c=r?l.domain:JSON.parse(l.domain),s=Cp(c),a=r?l.dst:JSON.parse(l.dst)):l.config?(c=JSON.parse(l.config),s=Cp(c),a=JSON.parse(l.dst)):(a=JSON.parse(o),s=this.domainConfigurationService.createMinimalConfigurationWithDefaultIcons());const d=this.checkConfigForChanges(s);let u=a[a.length-1];if(!u.id){u=a.pop();let h=u;h.version&&(u=a.pop()),h.version?h=h.version:(h="?",this.snackbar.open("The version number is unreadable.",void 0,{duration:Lr,panelClass:nN})),a=this.handleVersionNumber(h,a)}this.importRepairService.checkForUnreferencedElementsInActivitiesAndRepair(a)||this.showBrokenImportDialog(i?"SVG":"DST"),this.titleService.updateTitleAndDescription(null,u.info,!1),this.importRepairService.adjustPositions(a),this.updateIconRegistries(a,s),this.rendererService.importStory(a,d,s)}}handleVersionNumber(t,i){const r=+t.substring(0,t.lastIndexOf("."));return r<=.5&&(i=this.importRepairService.updateCustomElementsPreviousV050(i),this.showPreviousV050Dialog(r)),i}extractDstAndConfig(t,i){let r=null;try{r=JSON.parse(t)}catch{this.showBrokenImportDialog(i?"SVG":"DST")}return r}removeXMLComments(t){for(t=t.substring(t.indexOf(""));t.includes("\x3c!--")||t.includes("--\x3e");)t=t.replace("\x3c!--","").replace("--\x3e","");return(t=t.replace("","")).replace("","")}checkConfigForChanges(t){const i=t.actors.keysArray(),r=t.workObjects.keysArray(),o=this.iconDictionaryService.getTypeDictionaryKeys(Z.ACTOR),a=this.iconDictionaryService.getTypeDictionaryKeys(Z.WORKOBJECT);let s=!1;if(i.length!==o.length||r.length!==a.length)return!0;for(let c=0;c{class e{constructor(t,i,r,o,a,s,c,l,d,u,h){this.settingsService=t,this.modelerService=i,this.replayStateService=r,this.dirtyFlagService=o,this.dialogService=a,this.replayService=s,this.exportService=c,this.importService=l,this.titleService=d,this.renderService=u,this.snackbar=h,this.isReplay$=this.replayStateService.replayOn$,this.isDirty$=this.dirtyFlagService.dirty$}import(){const t=document.getElementById("import").files[0].name;t.endsWith(".dst")?this.importService.importDST(document.getElementById("import").files[0],t,!1):t.endsWith(".dst.svg")?this.importService.importDST(document.getElementById("import").files[0],t,!0):t.endsWith(".egn")?this.importService.importEGN(document.getElementById("import").files[0],t,!1):t.endsWith(".egn.svg")&&this.importService.importEGN(document.getElementById("import").files[0],t,!0),this.modelerService.commandStackChanged()}openSettings(){this.settingsService.open()}openDownloadDialog(){if(this.exportService.isDomainStoryExportable()){const t=new Cy("SVG","Download an SVG-Image with the Domain-Story embedded. Can be used to save and share your Domain-Story.",(s,c)=>this.exportService.downloadSVG(s,c)),i=new Cy("EGN","Download an EGN-File with the Domain-Story. Can be used to save and share your Domain-Story.",(s,c)=>this.exportService.downloadDST()),r=new Cy("PNG","Donwload a PNG-Image of the DOmain-Story. This does not include the Domain-Story!",(s,c)=>this.exportService.downloadPNG(s)),o=new Cy("HTML-Presentation","Download an HTML-Presentation. This does not include the Domain-Story!",(s,c)=>this.exportService.downloadHTMLPresentation()),a=new uo;a.disableClose=!1,a.autoFocus=!0,a.data=new rpe("Export",[t,i,r,o]),this.dialogService.openDialog(ape,a)}else this.snackbar.open("No Domain Story to be exported",void 0,{duration:Lr,panelClass:Bs})}openKeyboardShortcutsDialog(){const r=new uo;r.disableClose=!1,r.autoFocus=!0,r.data=new uv("Keyboard shortcuts","Undo:\t\t\t\t\tctrl + Z \nRedo:\t\t\t\t\tctrl + Y OR ctrl + shift + Z\nSelect All:\t\t\t\tctrl + A\nExport as EGN:\t\t\tctrl + S\nImport Domain Story: \tctrl + L\nSearch for text:\t\t\tctrl + F\nDirect editing:\t\t\tE\nHand tool:\t\t\t\tH\nLasso tool:\t\t\t\tL\nSpace tool:\t\t\t\tS",!0),this.dialogService.openDialog(hv,r)}openLabelDictionary(){if(this.exportService.isDomainStoryExportable()){const t=new uo;t.disableClose=!1,t.autoFocus=!0,this.dialogService.openDialog(Vpe,t)}else this.snackbar.open("There are currently no Elements on the canvas",void 0,{duration:Lr,panelClass:Bs})}createNewDomainStory(){this.titleService.reset(),this.renderService.reset()}startReplay(){this.replayService.startReplay()}stopReplay(){this.replayService.stopReplay()}previousStep(){this.replayService.previousStep()}nextStep(){this.replayService.nextStep()}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(wu),T(wp),T(_v),T(df),T(Ep),T(Ey),T(kS),T(Br),T(wy),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header-buttons"]],decls:4,vars:6,consts:[[4,"ngIf"],["id","buttonStartReplay","title","Start replay",1,"headerButton",3,"click"],[1,"material-icons","materialIconButton"],["id","buttonImport","title","Import story from file","onclick","document.getElementById('import').click();",1,"headerButton"],["type","file","accept",".dst, .dst.svg, .egn, .egn.svg","id","import","onclick","this.value=null;","name","file",2,"display","none",3,"change"],["id","export","title","Export story as .egn, .svg or .png file",1,"headerButton",3,"click"],["class","material-icons-outlined materialIconButton",4,"ngIf"],["class","material-icons materialIconButton",4,"ngIf"],["title","Label Dictionary",1,"headerButton",3,"click"],["title","Label Dictionary",1,"material-icons","materialIconButton"],["title","Settings",1,"headerButton",3,"click"],["title","Change Icons and Settings",1,"material-icons","materialIconButton"],["title","Show keyboard shortcuts",1,"headerButton",3,"click"],["title","Create a new domain story",1,"headerButton",3,"click"],[1,"material-icons-outlined","materialIconButton"],["title","Previous Step",1,"headerButton",3,"click"],["title","NextStep",1,"headerButton",3,"click"],["title","Stop replay",1,"headerButton",3,"click"]],template:function(i,r){1&i&&(et(0,Hpe,25,6,"div",0),$t(1,"async"),et(2,$pe,10,0,"div",0),$t(3,"async")),2&i&&(Ae("ngIf",!Ut(1,2,r.isReplay$)),ye(2),Ae("ngIf",Ut(3,4,r.isReplay$)))},dependencies:[co,fa],styles:["span[_ngcontent-%COMP%]{font-size:15pt;color:#fff}#dictionaryButton[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}.headerButton[_ngcontent-%COMP%]:hover{cursor:pointer;color:#fff}.materialIconButton[_ngcontent-%COMP%]:hover{color:#d3d3d3}"]})}return e})();const Gpe=["*",[["mat-toolbar-row"]]],Wpe=["*","mat-toolbar-row"],Ype=Nw(class{constructor(e){this._elementRef=e}});let TS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),c6=(()=>{class e extends Ype{constructor(t,i,r){super(t),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(qt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&oi(o,TS,5),2&i){let a;Vt(a=jt())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[dt],ngContentSelectors:Wpe,decls:2,vars:0,template:function(i,r){1&i&&(bi(Gpe),_t(0),_t(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return e})(),l6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();const qpe=["*"],Zpe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Qpe=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Jpe=new Ce("MAT_CARD_CONFIG");let AS=(()=>{class e{constructor(t){this.appearance=t?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||e)(T(Jpe,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:qpe,decls:1,vars:0,template:function(i,r){1&i&&(bi(),_t(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return e})(),d6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return e})(),u6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return e})(),h6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:Qpe,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){1&i&&(bi(Zpe),_t(0),j(1,"div",0),_t(2,1),W(),_t(3,2))},encapsulation:2,changeDetection:0})}return e})(),f6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Wa,Cn]})}return e})();function ime(e,n){if(1&e){const t=tr();j(0,"button",10),Le("click",function(){return yn(t),bn(st().setShowDescription(!1))}),j(1,"span",11),Fe(2," expand_less "),W()()}}function rme(e,n){if(1&e){const t=tr();j(0,"button",12),Le("click",function(){return yn(t),bn(st().setShowDescription(!0))}),j(1,"span",11),Fe(2," expand_more"),W()()}}function ome(e,n){if(1&e&&(j(0,"span",13),Fe(1),$t(2,"async"),W()),2&e){const t=st();ye(1),$a(" Step: ",Ut(2,1,t.stepDescription$),"")}}function ame(e,n){if(1&e&&(j(0,"mat-card",14)(1,"span",15),Fe(2),$t(3,"async"),W()()),2&e){const t=st();ye(2),io(Ut(3,1,t.description$))}}let sme=(()=>{class e{constructor(t,i,r,o){this.titleService=t,this.replayService=i,this.replayStateService=r,this.dialogService=o,this.title$=this.titleService.title$,this.description$=this.titleService.description$,this.showDescription$=this.titleService.showDescription$,this.isReplay$=this.replayStateService.replayOn$,this.stepDescription$=uR([this.replayService.currentStep$,this.replayService.maxStepNumber$]).pipe(ce(([a,s])=>`${a}/${s}`)),this.showDescription=this.titleService.showDescription$}openHeaderDialog(){const t=new uo;t.disableClose=!1,t.autoFocus=!0,this.dialogService.openDialog(ipe,t)}setShowDescription(t){this.titleService.setShowDescription(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Br),T(Ep),T(wp),T(df))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header"]],decls:19,vars:15,consts:[["color","primary",1,"toolbar"],["class","headerButton","title","Hide Description",3,"click",4,"ngIf"],["class","headerButton","title","Show Description",3,"click",4,"ngIf"],[1,"mr-10"],["title","Edit Title and Description",1,"headline",3,"click"],[1,"material-icons","materialIconButton","editIcon"],[1,"domainNameSpacer"],["title","Replay Step",4,"ngIf"],[1,"buttonSpacer"],["class","smallScrollbar description",4,"ngIf"],["title","Hide Description",1,"headerButton",3,"click"],[1,"material-icons","materialIconButton","toggle"],["title","Show Description",1,"headerButton",3,"click"],["title","Replay Step"],[1,"smallScrollbar","description"],[1,"descriptionText"]],template:function(i,r){1&i&&(j(0,"mat-toolbar",0)(1,"mat-toolbar-row"),et(2,ime,3,0,"button",1),$t(3,"async"),et(4,rme,3,0,"button",2),$t(5,"async"),j(6,"span",3)(7,"span",4),Le("click",function(){return r.openHeaderDialog()}),Fe(8),$t(9,"async"),j(10,"span",5),Fe(11," edit "),W()()(),at(12,"span",6),et(13,ome,3,3,"span",7),$t(14,"async"),at(15,"span",8)(16,"app-header-buttons"),W()(),et(17,ame,4,3,"mat-card",9),$t(18,"async")),2&i&&(ye(2),Ae("ngIf",Ut(3,5,r.showDescription)),ye(2),Ae("ngIf",!Ut(5,7,r.showDescription)),ye(4),$a(" ",Ut(9,9,r.title$)," "),ye(5),Ae("ngIf",Ut(14,11,r.isReplay$)),ye(4),Ae("ngIf",Ut(18,13,r.showDescription$)))},dependencies:[co,Upe,c6,TS,AS,fa],styles:[".noPointer[_ngcontent-%COMP%]{cursor:default!important}.description[_ngcontent-%COMP%]{top:0;max-width:100vw;overflow-y:scroll;display:grid}.descriptionText[_ngcontent-%COMP%]{position:relative;font-size:10pt;overflow-wrap:anywhere;word-wrap:anywhere;white-space:pre-wrap;padding-left:15px;padding-right:15px;align-self:center;line-height:12pt}.description[_ngcontent-%COMP%]:hover{cursor:default}.domainNameSpacer[_ngcontent-%COMP%]{flex:1 1 auto}.buttonSpacer[_ngcontent-%COMP%]{margin-right:15px}.headline[_ngcontent-%COMP%]:hover > .editIcon[_ngcontent-%COMP%]{display:contents}.headline[_ngcontent-%COMP%] > .editIcon[_ngcontent-%COMP%]{display:none}.headerButton[_ngcontent-%COMP%]:hover{cursor:pointer;color:#fff}"]})}return e})(),Sy=(()=>{class e{constructor(t,i,r,o,a,s,c){this.configurationService=t,this.iconDictionaryService=i,this.importService=r,this.titleService=o,this.storageService=a,this.elementRegistryService=s,this.snackbar=c,this.allIconListItems=new tn,this.configurationHasChanged=!1,this.selectedActors$=new Qt([]),this.selectedWorkobjects$=new Qt([]),this.domainConfigurationTypes=new Qt(this.configurationService.getCurrentConfigurationNamesWithoutPrefix()),this.selectedWorkobjects$.next(this.domainConfigurationTypes.value.workObjects),this.selectedActors$.next(this.domainConfigurationTypes.value.actors),i.getAllIconDictionary().keysArray().forEach(u=>{this.addIconToAllIconList(u)}),r.importedConfigurationEvent.subscribe(u=>{this.importConfiguration(u)});const l=this.storageService.getStoredDomainConfiguration();l&&this.importConfiguration(l,!1);const d=this.importService.getImportedConfiguration();d&&this.importConfiguration(d,!1)}importConfiguration(t,i=!0){const r=t.actors.keysArray(),o=t.workObjects.keysArray();this.changeName(t.name),r.forEach(a=>{this.allIconListItems.has(a)||this.addIconToAllIconList(a),this.selectedActors$.value.includes(a)||this.selectActor(a)}),o.forEach(a=>{this.allIconListItems.has(a)||this.addIconToAllIconList(a),this.selectedWorkobjects$.value.includes(a)||this.selectWorkObject(a)}),i&&this.saveDomain(this.elementRegistryService.getUsedIcons(),!0)}getDomainConfiguration(){return this.domainConfigurationTypes}getIconForName(t){return this.allIconListItems.get(t)}isIconActor(t){return this.domainConfigurationTypes.value.actors.filter(i=>i===t).length>0}isIconWorkObject(t){return this.domainConfigurationTypes.value.workObjects.filter(i=>i===t).length>0}changeName(t){this.titleService.setDomainName(t);const i=this.domainConfigurationTypes.value;i.name=t,this.domainConfigurationTypes.next(i)}setAsUnassigned(t,i){i?this.deselectActor(t):this.deselectWorkobject(t),this.updateIcon(!1,!1,t)}setAsActor(t,i){if(t){this.updateIcon(!0,!1,i),this.selectActor(i),this.deselectWorkobject(i);const r=this.iconDictionaryService.getFullDictionary().get(i);this.iconDictionaryService.getActorsDictionary().add(r,i)}else this.deselectActor(i),this.updateIcon(!1,!1,i),this.iconDictionaryService.getActorsDictionary().delete(i)}setAsWorkobject(t,i){if(t){this.updateIcon(!1,!0,i),this.selectWorkObject(i),this.deselectActor(i);const r=this.iconDictionaryService.getFullDictionary().get(i);this.iconDictionaryService.getWorkObjectsDictionary().add(r,i)}else this.deselectWorkobject(i),this.updateIcon(!1,!1,i),this.iconDictionaryService.getWorkObjectsDictionary().delete(i)}selectActor(t){const i=this.domainConfigurationTypes.value;i.actors.includes(t)||(i.actors.push(t),this.domainConfigurationTypes.next(i),this.updateActorSubject())}selectWorkObject(t){const i=this.domainConfigurationTypes.value;i.workObjects.includes(t)||(i.workObjects.push(t),this.domainConfigurationTypes.next(i),this.updateWorkObjectSubject())}deselectActor(t){this.domainConfigurationTypes&&this.domainConfigurationTypes.next({name:this.domainConfigurationTypes.value.name,actors:this.domainConfigurationTypes.value.actors.filter(i=>!i.includes(t)),workObjects:this.domainConfigurationTypes.value.workObjects}),this.updateActorSubject()}deselectWorkobject(t){this.domainConfigurationTypes&&this.domainConfigurationTypes.next({name:this.domainConfigurationTypes.value.name,actors:this.domainConfigurationTypes.value.actors,workObjects:this.domainConfigurationTypes.value.workObjects.filter(i=>!i.includes(t))}),this.updateWorkObjectSubject()}setSelectedWorkObject(t){const i=this.domainConfigurationTypes.value;i.workObjects=t,this.domainConfigurationTypes.next(i),this.updateWorkObjectSubject()}setSelectedActors(t){const i=this.domainConfigurationTypes.value;i.actors=t,this.domainConfigurationTypes.next(i),this.updateActorSubject()}updateActorSubject(){this.selectedActors$.next(this.domainConfigurationTypes.value.actors),this.configurationHasChanged=!0}updateWorkObjectSubject(){this.selectedWorkobjects$.next(this.domainConfigurationTypes.value.workObjects),this.configurationHasChanged=!0}resetDomain(){const t=this.configurationService.createMinimalConfigurationWithDefaultIcons();this.selectedWorkobjects$.value.forEach(i=>{t.workObjects.has(i)||this.deselectWorkobject(i)}),this.selectedActors$.value.forEach(i=>{t.actors.has(i)||this.deselectActor(i)}),this.domainConfigurationTypes.next({name:t.name,actors:t.actors.keysArray(),workObjects:t.workObjects.keysArray()}),this.updateAllIconBehaviourSubjects()}cancel(){this.domainConfigurationTypes.next(this.configurationService.getCurrentConfigurationNamesWithoutPrefix()),this.updateAllIconBehaviourSubjects(),this.resetToInitialConfiguration()}resetToInitialConfiguration(){this.updateActorSubject(),this.updateWorkObjectSubject()}saveDomain(t,i=!1){const r=[],o=[];if(this.configurationHasChanged){const a=this.createDomainConfiguration(),s=a.actors.keysArray();t?.actors.forEach(l=>{!s?.includes(l)&&!r.includes(l)&&r.push(l)});const c=a.workObjects.keysArray();t?.workobjects.forEach(l=>{!c?.includes(l)&&!o.includes(l)&&o.push(l)}),!r.length&&!o.length&&(this.changedDomainCofiguration=a,this.updateIcons(a),this.storageService.setStoredDomainConfiguration(this.changedDomainCofiguration),this.snackbar.open(i?"Configuration imported successfully":"Configuration saved sucessfully",void 0,{duration:Lr,panelClass:y1}))}else this.snackbar.open(i?"No configuration to be imported":"No configuration to be saved",void 0,{duration:Lr,panelClass:Bs});if(r.length||o.length){if(r.length){const a=r.join(", ");this.snackbar.open(`The following icons are already in use as actors and cannot be changed: ${a}`,void 0,{duration:6e3,panelClass:Bs})}if(o.length){const a=o.join(", ");this.snackbar.open(`The following icons are already in use as workobjects and cannot be changed: ${a}`,void 0,{duration:6e3,panelClass:Bs})}}}exportDomain(){this.configurationService.exportConfiguration()}getAndClearSavedConfiguration(){const t=this.changedDomainCofiguration;return this.changedDomainCofiguration=void 0,t}createDomainConfiguration(){const t=new tn,i=new tn;return this.domainConfigurationTypes.value.actors.forEach(r=>{t.add(this.iconDictionaryService.getIconSource(r),r)}),this.domainConfigurationTypes.value.workObjects.forEach(r=>{i.add(this.iconDictionaryService.getIconSource(r),r)}),{name:this.domainConfigurationTypes.value.name||"",actors:t,workObjects:i}}addNewIcon(t){const i=new tn;i.add(this.getSrcForIcon(t),t),this.iconDictionaryService.addIconsToCss(i),this.addIconToAllIconList(t)}addIconToAllIconList(t){this.allIconListItems.add(new Qt({name:t,svg:this.getSrcForIcon(t),isActor:this.isIconActor(t),isWorkObject:this.isIconWorkObject(t)}),t)}updateIcon(t,i,r){const o=this.getIconForName(r),a=o.value;a.isActor=t,a.isWorkObject=i,o.next(a)}updateAllIconBehaviourSubjects(){const t=this.domainConfigurationTypes.value;this.allIconListItems.keysArray().forEach(i=>{t.actors.includes(i)?this.updateIcon(!0,!1,i):t.workObjects.includes(i)?this.updateIcon(!1,!0,i):this.updateIcon(!1,!1,i)})}getSrcForIcon(t){let i;i=t.includes(Z.DOMAINSTORY)?Vs(t):t;const r=this.iconDictionaryService.getIconSource(i);return r?r.startsWith("data")?r:"data:image/svg+xml,"+r:""}updateIcons(t){this.allIconListItems.keysArray().forEach(i=>this.setAsUnassigned(i,this.isIconActor(i))),t.actors.keysArray().forEach(i=>this.setAsActor(!0,i)),t.workObjects.keysArray().forEach(i=>this.setAsWorkobject(!0,i))}static#e=this.\u0275fac=function(i){return new(i||e)(N($c),N(Qa),N(kS),N(Br),N(xy),N(jo),N(dl))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const p6="autosaveConfiguration",m6={activated:!0,interval:30,amount:5};let g6=(()=>{class e{constructor(t){this.storageService=t,this.configuration=m6,this.configurationSubject=new MB(1),this.configuration$=this.configurationSubject.asObservable(),this.initializeConfiguration()}initializeConfiguration(){this.loadConfiguration(),this.configurationSubject.next(this.configuration)}setConfiguration(t){try{return this.configuration=t,this.saveConfiguration(),this.configurationSubject.next(t),!0}catch{return!1}}loadConfiguration(){this.configuration=this.storageService.get(p6)??m6}saveConfiguration(){this.storageService.set(p6,this.configuration)}static#e=this.\u0275fac=function(i){return new(i||e)(N(xy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cme(e,n){if(1&e){const t=tr();j(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),Fe(3,"Autosave Options"),W()(),j(4,"mat-card-content",1)(5,"div",2),at(6,"input",3,4),j(8,"mat-label"),Fe(9,"Enabled"),W()(),j(10,"div",5)(11,"mat-label"),Fe(12,"Interval"),W(),at(13,"input",6,7),W(),j(15,"div",5)(16,"mat-label"),Fe(17,"Amount"),W(),at(18,"input",6,8),W(),j(20,"button",9),Le("click",function(){yn(t);const r=er(7),o=er(19),a=er(14);return bn(st().save(r.checked,+o.value,+a.value))}),Fe(21," Apply "),W()()()}if(2&e){const t=n.ngIf;ye(6),Ae("checked",t.activated),ye(7),Ae("value",t.interval),ye(5),Ae("value",t.amount)}}let lme=(()=>{class e{constructor(t,i){this.autosaveConfiguration=t,this.snackbar=i}save(t,i,r){this.autosaveConfiguration.setConfiguration({activated:t,amount:i,interval:r})?this.snackbar.open("Settings for Autosave saved",void 0,{duration:Lr,panelClass:y1}):this.snackbar.open("Unable to save settings for Autosave - please try again",void 0,{duration:4e3,panelClass:nN})}static#e=this.\u0275fac=function(i){return new(i||e)(T(g6),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosave-options"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"cardContent"],[1,"alignSelfCenter"],["type","checkbox",3,"checked"],["activated",""],[1,"inputContainer"],["min","1","type","number",1,"numberInput",3,"value"],["interval",""],["amount",""],["mat-raised-button","","color","primary",1,"saveButton",3,"click"]],template:function(i,r){1&i&&(et(0,cme,22,3,"mat-card",0),$t(1,"async")),2&i&&Ae("ngIf",Ut(1,1,r.autosaveConfiguration.configuration$))},dependencies:[co,ps,xu,AS,u6,h6,d6,fa],styles:[".autosaveEnabled[_ngcontent-%COMP%], .autosaveInterval[_ngcontent-%COMP%]{display:inline-grid;grid-template-columns:120px auto;width:300px;grid-row-gap:5px;height:20px}.enableButton[_ngcontent-%COMP%]{justify-self:start}.autosaveEnabled[_ngcontent-%COMP%]{padding-bottom:2px}.autosaveInterval[_ngcontent-%COMP%]{padding-bottom:10px}.autosaveIntervalSpan[_ngcontent-%COMP%]{padding-top:2px;justify-self:start}.saveButton[_ngcontent-%COMP%]{align-self:end;right:0;margin-left:-5px}.cardContent[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.inputContainer[_ngcontent-%COMP%]{display:inline-grid;width:-moz-fit-content;width:fit-content}.numberInput[_ngcontent-%COMP%]{justify-self:end;width:64px}.alignSelfCenter[_ngcontent-%COMP%]{align-self:center}"]})}return e})();const MS="autosaveDrafts";let Dy=(()=>{class e{constructor(t,i,r,o,a,s,c){this.autosaveConfiguration=t,this.exportService=i,this.iconDictionaryService=r,this.rendererService=o,this.snackbar=a,this.storageService=s,this.titleService=c,this.autosavedDraftsChanged$=new Y,this.autosaveConfiguration.configuration$.subscribe(l=>this.updateConfiguration(l))}loadCurrentDrafts(){const t=this.readDrafts();return this.sortDrafts(t),t}loadDraft(t){const r=Cp(t.configAndDST.domain),o=JSON.parse(t.configAndDST.dst);this.titleService.updateTitleAndDescription(t.title,t.description,!1);const a=this.iconDictionaryService.getElementsOfType(o,Z.ACTOR),s=this.iconDictionaryService.getElementsOfType(o,Z.WORKOBJECT);this.iconDictionaryService.updateIconRegistries(a,s,r),this.rendererService.importStory(o,!0,r,!1)}removeAllDrafts(){this.storageService.set(MS,[]),this.autosavedDraftsChanged$.next()}loadLatestDraft(){const t=this.readDrafts();0!==t.length&&this.loadDraft(t[0])}updateConfiguration(t){this.stopTimer(),t.activated&&this.startTimer(t.interval,t.amount)}stopTimer(){this.autosaveTimer&&(clearInterval(this.autosaveTimer),this.autosaveTimer=void 0)}startTimer(t,i){this.autosaveTimer=setInterval(()=>{const r=this.loadCurrentDrafts(),o=this.createDraft();let a=i>0;if(r.length>0&&(a=a&&!this.isSame(o,r[0])),a&&!this.isDraftEmpty(o)){for(r.unshift(o);r.length>i;)r.pop();this.writeDrafts(r),this.snackbar.open("Draft Saved",void 0,{panelClass:Bs,duration:Lr}),this.autosavedDraftsChanged$.next()}},1e3*t)}isDraftEmpty(t){return t.title===pv&&t.description===mv&&0===JSON.parse(t.configAndDST.dst).length}isSame(t,i){return t.title===i.title&&t.description===i.description&&JSON.stringify(t.configAndDST)===JSON.stringify(i.configAndDST)}writeDrafts(t){this.storageService.set(MS,t)}readDrafts(){return this.storageService.get(MS)??[]}createDraft(){const t=JSON.stringify(this.rendererService.getStory(),null,2),i=this.exportService.createConfigAndDST(t),r=(new Date).toString().slice(0,25);return{title:this.titleService.getTitle(),description:this.titleService.getDescription(),configAndDST:i,date:r}}sortDrafts(t){t.sort((i,r)=>Date.parse(i.date)>Date.parse(r.date)?0:1)}static#e=this.\u0275fac=function(i){return new(i||e)(N(g6),N(Ey),N(Qa),N(wy),N(dl),N(xy),N(Br))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dme=0;const IS=new Ce("CdkAccordion");let ume=(()=>{class e{constructor(){this._stateChanges=new Y,this._openCloseAllActions=new Y,this.id="cdk-accordion-"+dme++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=rn(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Yt([{provide:IS,useExisting:e}]),Tr]})}return e})(),hme=0,fme=(()=>{class e{get expanded(){return this._expanded}set expanded(t){t=rn(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t)}constructor(t,i,r){this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=ee.EMPTY,this.closed=new Xt,this.opened=new Xt,this.destroyed=new Xt,this.expandedChange=new Xt,this.id="cdk-accordion-child-"+hme++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}static#e=this.\u0275fac=function(i){return new(i||e)(T(IS,12),T(No),T(KB))};static#t=this.\u0275dir=Me({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Yt([{provide:IS,useValue:void 0}])]})}return e})(),pme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const mme=["body"];function gme(e,n){}const vme=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],_me=["mat-expansion-panel-header","*","mat-action-row"];function yme(e,n){1&e&&at(0,"span",2),2&e&&Ae("@indicatorRotate",st()._getExpandedState())}const bme=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xme=["mat-panel-title","mat-panel-description","*"],OS=new Ce("MAT_ACCORDION"),v6="225ms cubic-bezier(0.4,0.0,0.2,1)",_6={indicatorRotate:Qh("indicatorRotate",[Xa("collapsed, void",ar({transform:"rotate(0deg)"})),Xa("expanded",ar({transform:"rotate(180deg)"})),Lc("expanded <=> collapsed, void => collapsed",Fc(v6))]),bodyExpansion:Qh("bodyExpansion",[Xa("collapsed, void",ar({height:"0px",visibility:"hidden"})),Xa("expanded",ar({height:"*",visibility:""})),Lc("expanded <=> collapsed, void => collapsed",Fc(v6))])},y6=new Ce("MAT_EXPANSION_PANEL");let wme=(()=>{class e{constructor(t,i){this._template=t,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||e)(T(ro),T(y6,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]})}return e})(),Eme=0;const b6=new Ce("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let x6=(()=>{class e extends fme{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=rn(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,i,r,o,a,s,c){super(t,i,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Xt,this.afterCollapse=new Xt,this._inputChanges=new Y,this._headerId="mat-expansion-panel-header-"+Eme++,this._bodyAnimationDone=new Y,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Ao((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{"void"!==l.fromState&&("expanded"===l.toState?this.afterExpand.emit():"collapsed"===l.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Wh(null),Pr(()=>this.expanded&&!this._portal),Ps(1)).subscribe(()=>{this._portal=new av(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,i=this._body.nativeElement;return t===i||i.contains(t)}return!1}static#e=this.\u0275fac=function(i){return new(i||e)(T(OS,12),T(No),T(KB),T(oo),T(qt),T($i,8),T(b6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&oi(o,wme,5),2&i){let a;Vt(a=jt())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(1&i&&wi(mme,5),2&i){let o;Vt(o=jt())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){2&i&&Ct("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Yt([{provide:OS,useValue:void 0},{provide:y6,useExisting:e}]),dt,Tr],ngContentSelectors:_me,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){1&i&&(bi(vme),_t(0),j(1,"div",0,1),Le("@bodyExpansion.done",function(a){return r._bodyAnimationDone.next(a)}),j(3,"div",2),_t(4,1),et(5,gme,0,0,"ng-template",3),W(),_t(6,2),W()),2&i&&(ye(1),Ae("@bodyExpansion",r._getExpandedState())("id",r.id),hn("aria-labelledby",r._headerId),ye(4),Ae("cdkPortalOutlet",r._portal))},dependencies:[Pd],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_6.bodyExpansion]},changeDetection:0})}return e})();class Cme{}const Sme=MR(Cme);let w6=(()=>{class e extends Sme{constructor(t,i,r,o,a,s,c){super(),this.panel=t,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=ee.EMPTY;const l=t.accordion?t.accordion._stateChanges.pipe(Pr(d=>!(!d.hideToggle&&!d.togglePosition))):Co;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=To(t.opened,t.closed,l,t._inputChanges.pipe(Pr(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Pr(()=>t._containsFocus())).subscribe(()=>r.focusVia(i,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Uh(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,i){t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(i){return new(i||e)(T(x6,1),T(Ft),T(Od),T(No),T(b6,8),T($i,8),Vl("tabindex"))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,r){1&i&&Le("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),2&i&&(hn("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),z0("height",r._getHeaderHeight()),Ct("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[dt],ngContentSelectors:xme,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,r){1&i&&(bi(bme),j(0,"span",0),_t(1),_t(2,1),_t(3,2),W(),et(4,yme,1,1,"span",1)),2&i&&(Ct("mat-content-hide-toggle",!r._showToggle()),ye(4),Ae("ngIf",r._showToggle()))},dependencies:[co],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_6.indicatorRotate]},changeDetection:0})}return e})(),Dme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return e})(),kme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return e})(),Tme=(()=>{class e extends ume{constructor(){super(...arguments),this._ownHeaders=new wd,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=rn(t)}ngAfterContentInit(){this._headers.changes.pipe(Wh(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new vR(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["mat-accordion"]],contentQueries:function(i,r,o){if(1&i&&oi(o,w6,5),2&i){let a;Vt(a=jt())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mat-accordion-multi",r.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Yt([{provide:OS,useExisting:e}]),dt]})}return e})(),E6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa,Cn,pme,Nd]})}return e})();function Ame(e,n){if(1&e){const t=tr();j(0,"div",6)(1,"div")(2,"div",7),Fe(3),W(),j(4,"div",8),Fe(5),W()(),j(6,"button",5),Le("click",function(){const o=yn(t).$implicit;return bn(st(2).loadDraft(o))}),Fe(7," Load Draft "),W()()}if(2&e){const t=n.$implicit;ye(3),io(t.title),ye(2),io(t.date)}}function Mme(e,n){if(1&e){const t=tr();j(0,"div",2),et(1,Ame,8,2,"div",3),j(2,"div",4),at(3,"div"),j(4,"button",5),Le("click",function(){return yn(t),bn(st().removeAllDrafts())}),Fe(5," Remove All Drafts "),W()()()}if(2&e){const t=st();ye(1),Ae("ngForOf",t.drafts)}}function Ime(e,n){1&e&&Fe(0,"No drafts found.")}let Ome=(()=>{class e{constructor(t,i){this.autosaveService=t,this.snackbar=i,this.drafts=[],this.subscription=this.autosaveService.autosavedDraftsChanged$.subscribe(()=>this.initDrafts())}ngOnInit(){this.initDrafts()}initDrafts(){this.drafts=this.autosaveService.loadCurrentDrafts()}loadDraft(t){this.autosaveService.loadDraft(t),this.snackbar.open("Draft loaded",void 0,{duration:Lr,panelClass:y1})}removeAllDrafts(){this.autosaveService.removeAllDrafts()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Dy),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosaved-drafts"]],decls:10,vars:4,consts:[["class","items",4,"ngIf","ngIfElse"],["noDrafts",""],[1,"items"],["class","item border-bottom",4,"ngFor","ngForOf"],[1,"item"],["mat-raised-button","","color","primary",1,"item-button",3,"click"],[1,"item","border-bottom"],[1,"item-title"],[1,"item-date"]],template:function(i,r){if(1&i&&(j(0,"mat-accordion")(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),Fe(4," Autosaves "),W(),j(5,"mat-panel-description"),Fe(6),W()(),et(7,Mme,6,1,"div",0),W()(),et(8,Ime,1,0,"ng-template",null,1,Ed)),2&i){const o=er(9);ye(6),$0(" ",r.drafts.length?r.drafts.length:"no"," ",r.drafts.length>1?"drafts":"draft"," available "),ye(1),Ae("ngIf",r.drafts.length)("ngIfElse",o)}},dependencies:[kd,co,ps,Tme,x6,w6,kme,Dme],styles:[".items[_ngcontent-%COMP%]{padding-top:0!important}.items[_ngcontent-%COMP%] .mat-list-item-content{padding:0}.item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding:8px 0;width:400px}.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid darkgray}.item-title[_ngcontent-%COMP%]{font-weight:700;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.item-date[_ngcontent-%COMP%]{font-weight:400}.item-button[_ngcontent-%COMP%]{margin-left:1rem}mat-list-item[_ngcontent-%COMP%]{border-bottom:1px solid darkgray}"]})}return e})(),Rme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosave-settings"]],decls:2,vars:0,template:function(i,r){1&i&&at(0,"app-autosave-options")(1,"app-autosaved-drafts")},dependencies:[lme,Ome]})}return e})(),Pme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-general-settings"]],decls:2,vars:0,consts:[[1,"content"]],template:function(i,r){1&i&&(j(0,"div",0),at(1,"app-autosave-settings"),W())},dependencies:[Rme],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:450px auto}"]})}return e})();var dr=function(e){return e.ICON_FILTER_ACTOR="ICON_FILTER_ACTOR",e.ICON_FILTER_WORKOBJECT="ICON_FILTER_WORKOBJECT",e.ICON_FILTER_UNASSIGNED="ICON_FILTER_UNASSIGNED",e.ICON_FILTER_NONE="ICON_FILTER_NONE",e}(dr||{});const C6=["*"];class Fme{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const n=Math.max(...this.tracker);return n>1?this.rowCount+n-1:this.rowCount}update(n,t){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(n),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(i=>this._trackTile(i))}_trackTile(n){const t=this._findMatchingGap(n.colspan);return this._markTilePosition(t,n),this.columnIndex=t+n.colspan,new Lme(this.rowIndex,t)}_findMatchingGap(n){let t=-1,i=-1;do{this.columnIndex+n>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):(t=this.tracker.indexOf(0,this.columnIndex),-1!=t?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)))}while(i-t{class e{constructor(t,i){this._element=t,this._gridList=i,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(pa(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(pa(t))}_setStyle(t,i){this._element.nativeElement.style[t]=i}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(S6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(i,r){2&i&&hn("rowspan",r.rowspan)("colspan",r.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:C6,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(i,r){1&i&&(bi(),j(0,"div",0),_t(1),W())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size)}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size)}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size)}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size)}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0})}return e})();const Bme=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class RS{constructor(){this._rows=0,this._rowspan=0}init(n,t,i,r){this._gutterSize=k6(n),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=r}getBaseTileSize(n,t){return`(${n}% - (${this._gutterSize} * ${t}))`}getTilePosition(n,t){return 0===t?"0":ul(`(${n} + ${this._gutterSize}) * ${t}`)}getTileSize(n,t){return`(${n} * ${t}) + (${t-1} * ${this._gutterSize})`}setStyle(n,t,i){let r=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(n,i,r,o),this.setRowStyles(n,t,r,o)}setColStyles(n,t,i,r){let o=this.getBaseTileSize(i,r);n._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(o,t)),n._setStyle("width",ul(this.getTileSize(o,n.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(n){return`${this._rowspan} * ${this.getTileSize(n,1)}`}getComputedHeight(){return null}}class Vme extends RS{constructor(n){super(),this.fixedRowHeight=n}init(n,t,i,r){super.init(n,t,i,r),this.fixedRowHeight=k6(this.fixedRowHeight),Bme.test(this.fixedRowHeight)}setRowStyles(n,t){n._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),n._setStyle("height",ul(this.getTileSize(this.fixedRowHeight,n.rowspan)))}getComputedHeight(){return["height",ul(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["height",null]),n._tiles&&n._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class jme extends RS{constructor(n){super(),this._parseRatio(n)}setRowStyles(n,t,i,r){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,r),n._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),n._setStyle("paddingTop",ul(this.getTileSize(this.baseTileHeight,n.rowspan)))}getComputedHeight(){return["paddingBottom",ul(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["paddingBottom",null]),n._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(n){const t=n.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}class zme extends RS{setRowStyles(n,t){let o=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);n._setStyle("top",this.getTilePosition(o,t)),n._setStyle("height",ul(this.getTileSize(o,n.rowspan)))}reset(n){n._tiles&&n._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ul(e){return`calc(${e})`}function k6(e){return e.match(/([A-Za-z%]+)$/)?e:`${e}px`}let $me=(()=>{class e{constructor(t,i){this._element=t,this._dir=i,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(pa(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${t??""}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const i=`${t??""}`;i!==this._rowHeight&&(this._rowHeight=i,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new zme:t&&t.indexOf(":")>-1?new jme(t):new Vme(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Fme);const t=this._tileCoordinator,i=this._tiles.filter(o=>!o._gridList||o._gridList===this),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,t,this.cols,r),i.forEach((o,a)=>{const s=t.positions[a];this._tileStyler.setStyle(o,s.row,s.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Yh,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-grid-list"]],contentQueries:function(i,r,o){if(1&i&&oi(o,D6,5),2&i){let a;Vt(a=jt())&&(r._tiles=a)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(i,r){2&i&&hn("cols",r.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Yt([{provide:S6,useExisting:e}])],ngContentSelectors:C6,decls:2,vars:0,template:function(i,r){1&i&&(bi(),j(0,"div"),_t(1),W())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size)}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size)}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size)}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size)}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0})}return e})(),T6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[IR,Cn,IR,Cn]})}return e})();const Ume=["button"],Gme=["*"],A6=new Ce("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),M6=new Ce("MatButtonToggleGroup"),Wme={provide:Rr,useExisting:y(()=>R6),multi:!0};let I6=0;class O6{constructor(n,t){this.source=n,this.value=t}}let R6=(()=>{class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(t){this._vertical=rn(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(i=>i.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=rn(t),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._markButtonsForCheck()}constructor(t,i){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+I6++,this.valueChange=new Xt,this.change=new Xt,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new SS(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(t){const i=new O6(t,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,i,r=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,r)):this._updateModelValue(t,r)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=t.value&&i===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===t);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(t,i){i&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(T(No),T(A6,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,r,o){if(1&i&&oi(o,P6,5),2&i){let a;Vt(a=jt())&&(r._buttonToggles=a)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(i,r){2&i&&(hn("aria-disabled",r.disabled),Ct("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Yt([Wme,{provide:M6,useExisting:e}])]})}return e})();const Yme=Fw(class{});let P6=(()=>{class e extends Yme{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const i=rn(t);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=rn(t)}constructor(t,i,r,o,a,s){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Xt;const c=Number(a);this.tabIndex=c||0===c?c:null,this.buttonToggleGroup=t,this.appearance=s&&s.appearance?s.appearance:"standard"}ngOnInit(){const t=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I6++,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector()||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new O6(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static#e=this.\u0275fac=function(i){return new(i||e)(T(M6,8),T(No),T(Ft),T(Od),Vl("tabindex"),T(A6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(i,r){if(1&i&&wi(Ume,5),2&i){let o;Vt(o=jt())&&(r._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(i,r){1&i&&Le("focus",function(){return r.focus()}),2&i&&(hn("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),Ct("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[dt],ngContentSelectors:Gme,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){if(1&i&&(bi(),j(0,"button",0,1),Le("click",function(){return r._onButtonClick()}),j(2,"span",2),_t(3),W()(),at(4,"span",3)(5,"span",4)),2&i){const o=er(1);Ae("id",r.buttonId)("disabled",r.disabled||null),hn("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),ye(5),Ae("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[jg],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0})}return e})(),N6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,Cn]})}return e})(),qme=(()=>{class e{get name(){return this.iconName}get id(){return"domain-configuration-icon-"+this.iconName}constructor(t){this.domainCustomizationService=t,this.iconName="",this.iconInitiated=!1,this.icon=new Qt({}),this.isActor=!1,this.isWorkobject=!1,this.isNone=!0}ngOnInit(){this.icon=this.domainCustomizationService.getIconForName(this.iconName),this.icon&&(this.icon.subscribe(t=>{this.isActor=t.isActor,this.isWorkobject=t.isWorkObject,this.isNone=!(t.isActor||t.isWorkObject)}),this.isActor=this.icon.value.isActor,this.isWorkobject=this.icon.value.isWorkObject,this.isNone=!(this.icon.value.isActor||this.icon.value.isWorkObject))}ngAfterViewChecked(){this.createIcon()}createIcon(){const t=document.getElementById(this.id);t&&!this.iconInitiated&&(t.src=""+this.icon.value?.svg,this.iconInitiated=!0)}toggleNone(){this.domainCustomizationService.setAsUnassigned(this.iconName,this.icon.value.isActor)}toggleActor(){this.domainCustomizationService.setAsActor(!0,this.iconName)}toggleWorkobject(){this.domainCustomizationService.setAsWorkobject(!0,this.iconName)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Sy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-icon-list-item"]],inputs:{iconName:"iconName"},decls:16,vars:13,consts:[[1,"IconContainer"],[1,"content"],["src","",1,"icon",3,"id","alt"],[1,"name"],[1,"footer"],[3,"value","checked","change"],[1,"toggleButtonTitle"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1),at(2,"img",2),j(3,"div",3),Fe(4),W()(),j(5,"div",4)(6,"mat-button-toggle-group")(7,"mat-button-toggle",5),Le("change",function(){return r.toggleNone()}),j(8,"span",6),Fe(9,"None"),W()(),j(10,"mat-button-toggle",5),Le("change",function(){return r.toggleActor()}),j(11,"span",6),Fe(12,"Actor"),W()(),j(13,"mat-button-toggle",5),Le("change",function(){return r.toggleWorkobject()}),j(14,"span",6),Fe(15,"Workobject"),W()()()()()),2&i&&(ye(2),Cc("id",r.id),Cc("alt",r.name),ye(2),io(r.name),ye(3),Ae("value",r.isNone)("checked",r.isNone),ye(3),Ct("activeMatButtonActor",r.isActor),Ae("value",r.isActor)("checked",r.isActor),ye(3),Ct("activeMatButtonWorkObject",r.isWorkobject),Ae("value",r.isWorkobject)("checked",r.isWorkobject))},dependencies:[R6,P6],styles:[".IconContainer[_ngcontent-%COMP%]{width:170px;height:170px}.content[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto;justify-items:center}.icon[_ngcontent-%COMP%]{width:50px;height:50px}.name[_ngcontent-%COMP%]{word-wrap:anywhere;max-height:75px;overflow:hidden;padding-bottom:2px}.footer[_ngcontent-%COMP%]{display:flex;justify-content:center}.footer[_ngcontent-%COMP%] .mat-button-toggle-label-content{font-size:10pt!important;padding:0 5px!important;line-height:inherit!important}.footer[_ngcontent-%COMP%] .activeMatButtonActor button{background-color:#43acbf;color:#fff}.footer[_ngcontent-%COMP%] .activeMatButtonWorkObject button{background-color:#0168b7;color:#fff}"]})}return e})(),Kme=(()=>{class e{constructor(){this.iconInitiated=!1}get id(){return"domain-configuration-details-icon-"+this.icon.name.toLowerCase()+"-"+(this.icon.isWorkObject?"workobject":"actor")}get name(){return this.icon.name}ngAfterViewChecked(){this.createIcon()}createIcon(){const t=document.getElementById(this.id);t&&!this.iconInitiated&&(t.src=""+this.icon.svg,this.iconInitiated=!0)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-details-list-item"]],inputs:{icon:"icon"},decls:4,vars:4,consts:[[1,"detailsListItem"],[1,"icon",3,"id","alt","src"],[1,"iconName"]],template:function(i,r){1&i&&(j(0,"div",0),at(1,"img",1),j(2,"mat-label",2),Fe(3),W()()),2&i&&(ye(1),Cc("id",r.id),Cc("alt",r.name),Ae("src",r.icon.svg,bm),ye(2),io(r.icon.name))},dependencies:[xu],styles:[".icon[_ngcontent-%COMP%]{width:20px;height:20px;padding-right:3px}.detailsListItem[_ngcontent-%COMP%]{display:flex;justify-items:center;align-items:center;width:250px}.iconName[_ngcontent-%COMP%]{max-width:225px;word-wrap:anywhere;white-space:pre-wrap!important}"]})}return e})();function Xme(e,n){if(1&e){const t=tr();j(0,"mat-list-item",7),Le("dragover",function(r){return yn(t),bn(st().allowDrop(r,"actorList"))})("dragstart",function(){const o=yn(t).index;return bn(st().onDragStart(o,"actorList"))})("drop",function(r){const o=yn(t),a=o.$implicit,s=o.index;return bn(st().onDrop(r,a,!0,s))}),at(1,"app-details-list-item",8),W()}if(2&e){const t=n.$implicit,i=st();ye(1),Ae("icon",i.getIconForName(t))}}function Zme(e,n){if(1&e){const t=tr();j(0,"mat-list-item",7),Le("dragover",function(r){return yn(t),bn(st().allowDrop(r,"workobjectList"))})("dragstart",function(){const o=yn(t).index;return bn(st().onDragStart(o,"workobjectList"))})("drop",function(r){const o=yn(t),a=o.$implicit,s=o.index;return bn(st().onDrop(r,a,!1,s))}),at(1,"app-details-list-item",8),W()}if(2&e){const t=n.$implicit,i=st();ye(1),Ae("icon",i.getIconForName(t))}}let Qme=(()=>{class e{constructor(t,i){this.customizationService=t,this.draggedList="",this.draggedIndex=0,this.selectedActors$=this.customizationService.selectedActors$,this.selectedWorkobjects$=this.customizationService.selectedWorkobjects$,this.domainName=i.domainName$}ngOnInit(){}changeName(t){this.customizationService.changeName(t.target.value)}getIconForName(t){return this.customizationService.getIconForName(t).value}allowDrop(t,i){this.draggedList===i&&t.preventDefault()}onDrop(t,i,r,o){let a;a=r?this.selectedActors$:this.selectedWorkobjects$;const s=a.value,c=s[this.draggedIndex];s.splice(this.draggedIndex,1),s.splice(o,0,c),a.next(s),r?this.customizationService.setSelectedActors(s):this.customizationService.setSelectedWorkObject(s)}onDragStart(t,i){this.draggedList=i,this.draggedIndex=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Sy),T(Br))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-domain-details"]],decls:20,vars:9,consts:[[1,"details","smallScrollbar"],[1,"domainDetails","bottom-border"],[1,"inputWidth"],["matInput","","type","text",3,"value","input"],[1,"actorList","bottom-border"],["class","compactItem","draggable","true",3,"dragover","dragstart","drop",4,"ngFor","ngForOf"],[1,"workobjectList"],["draggable","true",1,"compactItem",3,"dragover","dragstart","drop"],[3,"icon"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1)(2,"h3"),Fe(3,"Icon Set name"),W(),j(4,"form")(5,"mat-form-field",2)(6,"input",3),Le("input",function(a){return r.changeName(a)}),$t(7,"async"),W()()()(),j(8,"div",4)(9,"h3"),Fe(10,"Order of actors"),W(),j(11,"mat-list"),et(12,Xme,2,1,"mat-list-item",5),$t(13,"async"),W()(),j(14,"div",6)(15,"h3"),Fe(16,"Order of work objects"),W(),j(17,"mat-list"),et(18,Zme,2,1,"mat-list-item",5),$t(19,"async"),W()()()),2&i&&(ye(6),Ae("value",Ut(7,3,r.domainName)),ye(6),Ae("ngForOf",Ut(13,5,r.selectedActors$)),ye(6),Ae("ngForOf",Ut(19,7,r.selectedWorkobjects$)))},dependencies:[kd,Og,Eg,jh,i6,r6,_y,xp,Kme,fa],styles:[".details[_ngcontent-%COMP%]{display:grid;grid-template-rows:68px auto auto;min-height:100vh;grid-row-gap:1px;overflow-y:scroll;overflow-x:hidden;width:250px;border-left:solid 1px #ccc}.domainDetails[_ngcontent-%COMP%]{margin-top:10px}.domainDetails[_ngcontent-%COMP%] .mat-mdc-form-field-infix{border:none;padding-bottom:0!important;padding-top:0!important}.domainDetails[_ngcontent-%COMP%] .mdc-text-field{padding-left:0!important}.compactItem[_ngcontent-%COMP%]{height:40px!important}.fullWidth[_ngcontent-%COMP%]{width:100%;padding-left:15px}.inputWidth[_ngcontent-%COMP%]{width:200px;padding-left:15px;height:46px}h3[_ngcontent-%COMP%]{padding-left:15px;margin-bottom:0;font-weight:700}mat-list[_ngcontent-%COMP%]{overflow:auto;padding-top:0}.bottom-border[_ngcontent-%COMP%]{border-bottom:2px solid #ccc}"]})}return e})();function Jme(e,n){if(1&e&&(j(0,"mat-grid-tile",25),at(1,"app-icon-list-item",26),W()),2&e){const t=n.$implicit;Ae("colspan",1)("rowspan",1),ye(1),Ae("iconName",t)}}let ege=(()=>{class e{constructor(t,i,r,o){this.configurationService=t,this.iconDictionaryService=i,this.domainCustomizationService=r,this.elementRegistryService=o,this.filter=new Qt(dr.ICON_FILTER_NONE),this.selectedActors=new Qt([]),this.selectedWorkobjects=new Qt([]),this.allIconNames=new Qt([]),this.allFilteredIconNames=new Qt([]),this.domainConfigurationTypes=this.domainCustomizationService.getDomainConfiguration().value,this.allIcons=new Qt(this.iconDictionaryService.getFullDictionary()),this.allIcons.subscribe(a=>{this.allIconNames.next(a.keysArray().sort(this.sortByName))}),this.selectedActors=this.domainCustomizationService.selectedActors$,this.selectedWorkobjects=this.domainCustomizationService.selectedWorkobjects$}ngOnInit(){this.filter.subscribe(t=>{let i=this.getFilteredNamesForType(t);this.allFilteredIconNames.next(i.sort(this.sortByName))})}sortByName(t,i){return t.includes("_custom")==i.includes("_custom")?t{if(s.target){const c=s.target.result;this.iconDictionaryService.addIMGToIconDictionary(c,a),this.iconDictionaryService.registerIconForBPMN(a,c),this.allIcons.next(this.iconDictionaryService.getFullDictionary()),this.filter.next(this.filter.value),this.domainCustomizationService.addNewIcon(a)}},r.readAsDataURL(i)}}startDomainImport(){document.getElementById("importDomain")?.click()}importDomain(){const t=document.getElementById("importDomain").files[0],i=new FileReader;i.onloadend=r=>{const a=Cp(JSON.parse(r.target?.result));this.configurationService.loadConfiguration(a,!1),this.domainCustomizationService.importConfiguration(a)},i.readAsText(t)}filterForActors(){this.filter.next(this.filter.value!==dr.ICON_FILTER_ACTOR?dr.ICON_FILTER_ACTOR:dr.ICON_FILTER_NONE)}filterForWorkobjects(){this.filter.next(this.filter.value!==dr.ICON_FILTER_WORKOBJECT?dr.ICON_FILTER_WORKOBJECT:dr.ICON_FILTER_NONE)}filterForUnassigned(){this.filter.next(this.filter.value!==dr.ICON_FILTER_UNASSIGNED?dr.ICON_FILTER_UNASSIGNED:dr.ICON_FILTER_NONE)}filterByNameAndType(t){const i=this.getFilteredNamesForType(this.filter.value).filter(r=>r.toLowerCase().includes(t.target.value.toLowerCase()));this.allFilteredIconNames.next(i.sort(this.sortByName))}getFilteredNamesForType(t){let i=[];switch(t){case dr.ICON_FILTER_NONE:i=this.allIconNames.value;break;case dr.ICON_FILTER_ACTOR:i=this.allIconNames.value.filter(r=>this.domainCustomizationService.isIconActor(r));break;case dr.ICON_FILTER_WORKOBJECT:i=this.allIconNames.value.filter(r=>this.domainCustomizationService.isIconWorkObject(r));break;case dr.ICON_FILTER_UNASSIGNED:i=this.allIconNames.value.filter(r=>!this.domainCustomizationService.isIconActor(r)&&!this.domainCustomizationService.isIconWorkObject(r))}return i}static#e=this.\u0275fac=function(i){return new(i||e)(T($c),T(Qa),T(Sy),T(jo))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-domain-configuration"]],decls:53,vars:15,consts:[[1,"content"],[1,"header"],[1,"buttons"],["mat-button","","title","Upload Icon",3,"click"],[1,"material-icons-outlined","materialIconButton"],["type","file","multiple","","accept",".svg, image/png, image/jpeg, image/gif, image/bpmn","id","importIcon","name","file","onclick","this.value=null",2,"display","none",3,"change"],["mat-button","","title","Reset to default icon set",1,"button",3,"click"],[1,"searchbar"],["mat-button","","title","Unassigned Icons",3,"click"],["mat-button","","title","Actors",3,"click"],["mat-button","","title","Workobjects",3,"click"],["matInput","","type","text","placeholder","Filter by name",1,"textInput",3,"input"],[1,"saveButtons"],["mat-button","","title","Export icon set",3,"click"],["mat-button","","title","Import icon set",3,"click"],["type","file","accept",".domain","id","importDomain","name","file","onclick","this.value=null",2,"display","none",3,"change"],[1,"divider"],["mat-button","","title","Cancel changes",3,"click"],["mat-button","","title","Save icon set",3,"click"],[1,"domainConfiguration"],[1,"icons"],[1,"iconList","smallScrollbar"],["cols","8","rowHeight","170px"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"domainDetails"],[3,"colspan","rowspan"],[1,"iconListItem",3,"iconName"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"button",3),Le("click",function(){return r.startIconUpload()}),j(5,"span",4),Fe(6,"upload"),W(),j(7,"input",5),Le("change",function(){return r.importIcon()}),W()(),j(8,"button",6),Le("click",function(){return r.loadMinimalIconConfigurationWithDefaultIcons()}),j(9,"span",4),Fe(10," home "),W()()(),j(11,"div",7),at(12,"div"),j(13,"div"),Fe(14,"Filter:"),W(),j(15,"button",8),Le("click",function(){return r.filterForUnassigned()}),$t(16,"async"),j(17,"span"),Fe(18,"None"),W()(),at(19,"div"),j(20,"button",9),Le("click",function(){return r.filterForActors()}),$t(21,"async"),j(22,"span"),Fe(23,"Actors"),W()(),at(24,"div"),j(25,"button",10),Le("click",function(){return r.filterForWorkobjects()}),$t(26,"async"),j(27,"span"),Fe(28,"Workobjects"),W()(),at(29,"div"),j(30,"input",11),Le("input",function(a){return r.filterByNameAndType(a)}),W()(),j(31,"div",12)(32,"button",13),Le("click",function(){return r.exportDomain()}),j(33,"span",4),Fe(34,"archive"),W()(),j(35,"button",14),Le("click",function(){return r.startDomainImport()}),j(36,"span",4),Fe(37,"unarchive"),W(),j(38,"input",15),Le("change",function(){return r.importDomain()}),W()(),at(39,"div",16),j(40,"button",17),Le("click",function(){return r.loadInitialConfiguration()}),j(41,"span",4),Fe(42,"close"),W()(),j(43,"button",18),Le("click",function(){return r.saveDomain()}),j(44,"span",4),Fe(45,"save"),W()()()(),j(46,"div",19)(47,"div",20)(48,"div",21)(49,"mat-grid-list",22),et(50,Jme,2,3,"mat-grid-tile",23),$t(51,"async"),W()()()()(),at(52,"app-domain-details",24),W()),2&i&&(ye(15),Ct("activeNone","ICON_FILTER_UNASSIGNED"===Ut(16,7,r.filter)),ye(5),Ct("activeActor","ICON_FILTER_ACTOR"===Ut(21,9,r.filter)),ye(5),Ct("activeWorkObject","ICON_FILTER_WORKOBJECT"===Ut(26,11,r.filter)),ye(25),Ae("ngForOf",Ut(51,13,r.allFilteredIconNames)))},dependencies:[kd,ps,$me,D6,xp,qme,Qme,fa],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 250px}.header[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content auto max-content;border-bottom:#ccc 2px solid;height:46px}.buttons[_ngcontent-%COMP%]{align-self:center;justify-self:left}.buttons[_ngcontent-%COMP%] .mat-button{min-width:36px}.saveButtons[_ngcontent-%COMP%]{align-self:center;display:inline-flex;justify-items:center;padding-right:5px}.saveButtons[_ngcontent-%COMP%] .mat-button{min-width:36px}.button[_ngcontent-%COMP%]{width:36px}.mat-button[_ngcontent-%COMP%]{color:#666}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.domainConfiguration[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:5px;margin-top:15px;height:100%}.icons[_ngcontent-%COMP%]{display:grid;grid-template-rows:2rem auto;height:100%;grid-row-gap:1px}.divider[_ngcontent-%COMP%]{border-left:#ccc 2px solid}.searchbar[_ngcontent-%COMP%]{display:grid;grid-template-columns:5px 40px 65px 10px 65px 10px 100px 20px 300px;margin-left:15px;margin-right:10px;align-self:center;align-items:center;justify-self:left;border-left:#ccc 2px solid;height:inherit}.activeActor[_ngcontent-%COMP%]{background-color:#42aebb;color:#fff}.activeNone[_ngcontent-%COMP%]{background-color:#e0e0e0;color:#000}.activeWorkObject[_ngcontent-%COMP%]{background-color:#42aebb;color:#fff}.textInput[_ngcontent-%COMP%]{width:300px;border:#666666 1px solid}.iconList[_ngcontent-%COMP%]{display:grid;overflow-y:scroll;height:calc(100vh - 130px)}.domainDetails[_ngcontent-%COMP%]{overflow-y:scroll;width:250px;height:calc(100vh - 65px)} .mat-grid-tile .mat-grid-tile-content{justify-content:inherit}"]})}return e})();function tge(e,n){1&e&&at(0,"app-general-settings")}function nge(e,n){1&e&&at(0,"app-domain-configuration",10)}let ige=(()=>{class e{constructor(t,i,r){this.settingsService=t,this.modelerService=i,this.domainCustomizationService=r,this.showGeneralSettings=new Qt(!1),this.showDomainCustomization=new Qt(!0)}close(){const t=this.domainCustomizationService.getAndClearSavedConfiguration();t&&this.modelerService.restart(t),this.settingsService.close()}openGeneralSettings(){this.showGeneralSettings.next(!0),this.showDomainCustomization.next(!1)}openDomainCustomization(){this.showGeneralSettings.next(!1),this.showDomainCustomization.next(!0)}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(wu),T(Sy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-settings"]],decls:19,vars:14,consts:[[1,"settings"],["color","primary",1,"toolbar"],["mat-icon-button","",1,"headerButton","noPadding",3,"click"],[1,"material-icons-outlined","materialIconButton"],[1,"paddedButton"],["mat-button","",1,"headerButton","mr-10",3,"click"],[1,"headline"],["mat-button","",1,"headerButton",3,"click"],[4,"ngIf"],["class","tab",4,"ngIf"],[1,"tab"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row")(3,"button",2),Le("click",function(){return r.close()}),j(4,"span",3),Fe(5," arrow_back"),W()(),j(6,"div",4)(7,"button",5),Le("click",function(){return r.openDomainCustomization()}),$t(8,"async"),j(9,"span",6),Fe(10,"Customize Icons for Your Domain"),W()(),j(11,"button",7),Le("click",function(){return r.openGeneralSettings()}),$t(12,"async"),j(13,"span",6),Fe(14,"General Settings"),W()()()()(),et(15,tge,1,0,"app-general-settings",8),$t(16,"async"),et(17,nge,1,0,"app-domain-configuration",9),$t(18,"async"),W()),2&i&&(ye(7),Ct("highlight",Ut(8,6,r.showDomainCustomization)),ye(4),Ct("highlight",Ut(12,8,r.showGeneralSettings)),ye(4),Ae("ngIf",Ut(16,10,r.showGeneralSettings)),ye(2),Ae("ngIf",Ut(18,12,r.showDomainCustomization)))},dependencies:[co,Pme,ege,ps,Ihe,c6,TS,fa],styles:["mat-toolbar[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff}app-general-settings[_ngcontent-%COMP%]{overflow-y:auto}.settings[_ngcontent-%COMP%]{display:grid;grid-template-rows:65px auto;width:100%;height:100%}.settings[_ngcontent-%COMP%] .mat-button{padding:0}.settings[_ngcontent-%COMP%] .materialIconButton[_ngcontent-%COMP%]{margin-top:0;margin-right:5px;padding:0}.highlight[_ngcontent-%COMP%]{border:2px solid white}.tab[_ngcontent-%COMP%]{display:inline-block;height:calc(100% - 10px);width:100%;overflow:hidden} .mat-tab-label, .mat-tab-label-active{height:30px!important}"]})}return e})(),rge=(()=>{class e{constructor(t,i){this.modelerService=t,this.autosaveService=i}ngOnInit(){this.modelerService.postInit(),this.autosaveService.loadLatestDraft()}static#e=this.\u0275fac=function(i){return new(i||e)(T(wu),T(Dy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-modeler"]],decls:1,vars:0,consts:[["id","canvas"]],template:function(i,r){1&i&&at(0,"div",0)},styles:["#canvas[_ngcontent-%COMP%], #canvas[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{top:0;width:100%;height:100%;position:relative;bottom:0;overflow:hidden}"]})}return e})();function oge(e,n){1&e&&at(0,"app-settings")}let age=(()=>{class e{constructor(t,i,r,o,a,s){this.settingsService=t,this.dialogService=i,this.titleService=r,this.exportService=o,this.replayStateSerice=a,this.version=fv_version,this.showSettings$=new Qt(!1),this.showDescription$=new Qt(!0),document.onkeydown=c=>{c.ctrlKey&&"s"===c.key&&(this.exportService.isDomainStoryExportable()&&this.exportService.downloadDST(),c.preventDefault(),c.stopPropagation()),c.ctrlKey&&"l"===c.key&&(document.getElementById("import")?.click(),c.preventDefault(),c.stopPropagation()),"ArrowRight"===c.key&&this.replayStateSerice.getReplayOn()&&(c.preventDefault(),c.stopPropagation(),s.nextStep()),"ArrowLeft"===c.key&&this.replayStateSerice.getReplayOn()&&(c.preventDefault(),c.stopPropagation(),s.previousStep())}}ngOnInit(){this.showDescription$=this.titleService.showDescription$,this.showSettings$=this.settingsService.showSettings$}openLinkDialog(t,i,r){const o=new uo;o.disableClose=!1,o.autoFocus=!0,o.data=new uv(i,r,!0,!0,t),this.dialogService.openDialog(hv,o)}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(df),T(Br),T(Ey),T(wp),T(Ep))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-root"]],decls:27,vars:36,consts:[["role","main",1,"content"],[4,"ngIf"],["type","color","id","colorPicker",2,"display","none"],["src","./assets/logo/dst_logo.png","height","74","width","74","alt","",3,"click"],["href","https://egon.io","target","_blank"],["href","https://github.com/WPS/egon.io/releases/latest","target","_blank"],["href","https://www.wps.de/","target","_blank"]],template:function(i,r){1&i&&(j(0,"div",0),et(1,oge,1,0,"app-settings",1),$t(2,"async"),j(3,"div"),$t(4,"async"),$t(5,"async"),$t(6,"async"),$t(7,"async"),$t(8,"async"),at(9,"input",2),j(10,"app-header"),$t(11,"async"),$t(12,"async"),W(),at(13,"app-modeler"),W(),j(14,"div"),$t(15,"async"),$t(16,"async"),j(17,"img",3),Le("click",function(){return r.openLinkDialog("https://domainstorytelling.org/","Domain-Storytelling","Check us out at: ")}),W(),j(18,"span")(19,"a",4),Fe(20,"egon.io"),W()(),j(21,"span")(22,"a",5),Fe(23),W(),Fe(24," by "),j(25,"a",6),Fe(26,"WPS"),W()()()()),2&i&&(ye(1),Ae("ngIf",Ut(2,16,r.showSettings$)),ye(2),Ct("headerAndCanvas",!Ut(4,18,r.showSettings$)&&Ut(5,20,r.showDescription$))("headerAndCanvasCollapsed",!Ut(6,22,r.showSettings$)&&!Ut(7,24,r.showDescription$))("hidden",Ut(8,26,r.showSettings$)),ye(7),Ct("header",Ut(11,28,r.showDescription$))("headerCollapsed",!Ut(12,30,r.showDescription$)),ye(4),Ct("logoContainer",!Ut(15,32,r.showSettings$))("hidden",Ut(16,34,r.showSettings$)),ye(9),io(r.version))},dependencies:[co,sme,ige,rge,fa],styles:[".content[_ngcontent-%COMP%]{height:100%;overflow:hidden}.headerAndCanvas[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-template-rows:220px auto;overflow:hidden}.headerAndCanvasCollapsed[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-template-rows:65px auto;overflow:hidden}.settings[_ngcontent-%COMP%]{height:100%}.header[_ngcontent-%COMP%]{display:grid;grid-template-rows:65px 155px}.logoContainer[_ngcontent-%COMP%]{display:flex;position:absolute;bottom:0;right:100px;align-items:flex-end}.logoContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{cursor:pointer}.logoContainer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:16px;margin-bottom:14px}.hidden[_ngcontent-%COMP%]{height:1px;width:1px}#wrapper[_ngcontent-%COMP%]{padding:16px;min-height:100%;height:100%;box-sizing:border-box}#tab-group[_ngcontent-%COMP%]{height:100%}#tab-group[_ngcontent-%COMP%] mat-tab-body[_ngcontent-%COMP%]{flex-grow:1}.mat-button-toggle-label-content[_ngcontent-%COMP%]{font-size:10pt!important;padding:0 5px!important;line-height:inherit!important} .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}"]})}return e})(),PS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[xS,N6,a6,UR,JP,yy,T6,$B,l6,E6,CS,f6,xS,N6,a6,UR,JP,yy,T6,$B,l6,E6,CS,f6]})}return e})(),sge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa,tR,PS]})}return e})(),cge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[sge,Wa,tR,PS]})}return e})(),lge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa]})}return e})(),dge=(()=>{class e{constructor(t){this.autosaveService=t}ngDoBootstrap(t){const i=document.createElement("app-root");document.body.append(i),t.bootstrap(age)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Dy))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[Dy,Ey,kS,s6,Qa,Br,wS,Ep,jo,$c,wu,GB,xw,{provide:jR,useValue:{clickAction:"noop"}}],imports:[KI,kQ,iK,cge,lge,PS]})}return e})();YY().bootstrapModule(dge).catch(e=>console.error(e))},17:ze=>{"use strict";var X=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],J=typeof globalThis>"u"?global:globalThis;ze.exports=function(){for(var le=[],Ee=0;Ee{ze(ze.s=650)}]); \ No newline at end of file +(self.webpackChunkegon=self.webpackChunkegon||[]).push([[179],{131:(ze,X,J)=>{"use strict";var B=J(876),le=J(685),Ee=le(B("String.prototype.indexOf"));ze.exports=function(ee,se){var ae=B(ee,!!se);return"function"==typeof ae&&Ee(ee,".prototype.")>-1?le(ae):ae}},685:(ze,X,J)=>{"use strict";var B=J(617),le=J(876),Ee=J(431),Re=le("%TypeError%"),ee=le("%Function.prototype.apply%"),se=le("%Function.prototype.call%"),ae=le("%Reflect.apply%",!0)||B.call(se,ee),ne=le("%Object.defineProperty%",!0),te=le("%Math.max%");if(ne)try{ne({},"a",{value:1})}catch{ne=null}ze.exports=function(Oe){if("function"!=typeof Oe)throw new Re("a function is required");var Ye=ae(B,se,arguments);return Ee(Ye,1+te(0,Oe.length-(arguments.length-1)),!0)};var De=function(){return ae(B,ee,arguments)};ne?ne(ze.exports,"apply",{value:De}):ze.exports.apply=De},298:function(ze){var X;X=typeof global<"u"?global:this,ze.exports=function(X){if(X.CSS&&X.CSS.escape)return X.CSS.escape;var J=function(B){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var ee,le=String(B),Ee=le.length,Re=-1,se="",ae=le.charCodeAt(0);++Re=1&&ee<=31||127==ee||0==Re&&ee>=48&&ee<=57||1==Re&&ee>=48&&ee<=57&&45==ae?"\\"+ee.toString(16)+" ":0==Re&&1==Ee&&45==ee||!(ee>=128||45==ee||95==ee||ee>=48&&ee<=57||ee>=65&&ee<=90||ee>=97&&ee<=122)?"\\"+le.charAt(Re):le.charAt(Re):se+="\ufffd";return se};return X.CSS||(X.CSS={}),X.CSS.escape=J,J}(X)},491:(ze,X,J)=>{"use strict";var B=J(65)(),le=J(876),Ee=B&&le("%Object.defineProperty%",!0);if(Ee)try{Ee({},"a",{value:1})}catch{Ee=!1}var Re=le("%SyntaxError%"),ee=le("%TypeError%"),se=J(108);ze.exports=function(ne,te,De){if(!ne||"object"!=typeof ne&&"function"!=typeof ne)throw new ee("`obj` must be an object or a function`");if("string"!=typeof te&&"symbol"!=typeof te)throw new ee("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new ee("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new ee("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new ee("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new ee("`loose`, if provided, must be a boolean");var Te=arguments.length>3?arguments[3]:null,Oe=arguments.length>4?arguments[4]:null,Ye=arguments.length>5?arguments[5]:null,Ue=arguments.length>6&&arguments[6],it=!!se&&se(ne,te);if(Ee)Ee(ne,te,{configurable:null===Ye&&it?it.configurable:!Ye,enumerable:null===Te&&it?it.enumerable:!Te,value:De,writable:null===Oe&&it?it.writable:!Oe});else{if(!Ue&&(Te||Oe||Ye))throw new Re("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");ne[te]=De}}},625:(ze,X,J)=>{var B;!function(){"use strict";var Ee,le={name:"doT",version:"1.1.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0,log:!0,encodeHTMLSource:function(ne){var te={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},De=ne?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(Te){return Te?Te.toString().replace(De,function(Oe){return te[Oe]||Oe}):""}}};Ee=function(){return this||(0,eval)("this")}(),ze.exports?ze.exports=le:void 0!==(B=function(){return le}.call(X,J,X,ze))&&(ze.exports=B);var Re={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},ee=/$^/;function se(ne,te,De){return("string"==typeof te?te:te.toString()).replace(ne.define||ee,function(Te,Oe,Ye,Ue){return 0===Oe.indexOf("def.")&&(Oe=Oe.substring(4)),Oe in De||(":"===Ye?(ne.defineParams&&Ue.replace(ne.defineParams,function(it,Qe,Ke){De[Oe]={arg:Qe,text:Ke}}),Oe in De||(De[Oe]=Ue)):new Function("def","def['"+Oe+"']="+Ue)(De)),""}).replace(ne.use||ee,function(Te,Oe){ne.useParams&&(Oe=Oe.replace(ne.useParams,function(Ue,it,Qe,Ke){if(De[Qe]&&De[Qe].arg&&Ke){var Ne=(Qe+":"+Ke).replace(/'|\\/g,"_");return De.__exp=De.__exp||{},De.__exp[Ne]=De[Qe].text.replace(new RegExp("(^|[^\\w$])"+De[Qe].arg+"([^\\w$])","g"),"$1"+Ke+"$2"),it+"def.__exp['"+Ne+"']"}}));var Ye=new Function("def","return "+Oe)(De);return Ye&&se(ne,Ye,De)})}function ae(ne){return ne.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}le.template=function(ne,te,De){var Oe,Ue,Te=(te=te||le.templateSettings).append?Re.append:Re.split,Ye=0,it=te.use||te.define?se(te,ne,De||{}):ne;it=("var out='"+(te.strip?it.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):it).replace(/'|\\/g,"\\$&").replace(te.interpolate||ee,function(Qe,Ke){return Te.start+ae(Ke)+Te.end}).replace(te.encode||ee,function(Qe,Ke){return Oe=!0,Te.startencode+ae(Ke)+Te.end}).replace(te.conditional||ee,function(Qe,Ke,Ne){return Ke?Ne?"';}else if("+ae(Ne)+"){out+='":"';}else{out+='":Ne?"';if("+ae(Ne)+"){out+='":"';}out+='"}).replace(te.iterate||ee,function(Qe,Ke,Ne,nt){return Ke?(Ye+=1,Ue=nt||"i"+Ye,Ke=ae(Ke),"';var arr"+Ye+"="+Ke+";if(arr"+Ye+"){var "+Ne+","+Ue+"=-1,l"+Ye+"=arr"+Ye+".length-1;while("+Ue+"{"use strict";var B=J(331),le=Object.prototype.toString,Ee=Object.prototype.hasOwnProperty;ze.exports=function(te,De,Te){if(!B(De))throw new TypeError("iterator must be a function");var Oe;arguments.length>=3&&(Oe=Te),"[object Array]"===le.call(te)?function(te,De,Te){for(var Oe=0,Ye=te.length;Oe{"use strict";var J=Object.prototype.toString,B=Math.max,Ee=function(ae,ne){for(var te=[],De=0;De{"use strict";var B=J(222);ze.exports=Function.prototype.bind||B},876:(ze,X,J)=>{"use strict";var B,le=SyntaxError,Ee=Function,Re=TypeError,ee=function(dn){try{return Ee('"use strict"; return ('+dn+").constructor;")()}catch{}},se=Object.getOwnPropertyDescriptor;if(se)try{se({},"")}catch{se=null}var ae=function(){throw new Re},ne=se?function(){try{return ae}catch{try{return se(arguments,"callee").get}catch{return ae}}}():ae,te=J(939)(),De=J(315)(),Te=Object.getPrototypeOf||(De?function(dn){return dn.__proto__}:null),Oe={},Ye=typeof Uint8Array>"u"||!Te?B:Te(Uint8Array),Ue={"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":te&&Te?Te([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":Oe,"%AsyncGenerator%":Oe,"%AsyncGeneratorFunction%":Oe,"%AsyncIteratorPrototype%":Oe,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":Ee,"%GeneratorFunction%":Oe,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&Te?Te(Te([][Symbol.iterator]())):B,"%JSON%":"object"==typeof JSON?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!te||!Te?B:Te((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!te||!Te?B:Te((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&Te?Te(""[Symbol.iterator]()):B,"%Symbol%":te?Symbol:B,"%SyntaxError%":le,"%ThrowTypeError%":ne,"%TypedArray%":Ye,"%TypeError%":Re,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet};if(Te)try{null.error}catch(dn){var it=Te(Te(dn));Ue["%Error.prototype%"]=it}var Qe=function dn(Ot){var nn;if("%AsyncFunction%"===Ot)nn=ee("async function () {}");else if("%GeneratorFunction%"===Ot)nn=ee("function* () {}");else if("%AsyncGeneratorFunction%"===Ot)nn=ee("async function* () {}");else if("%AsyncGenerator%"===Ot){var Gt=dn("%AsyncGeneratorFunction%");Gt&&(nn=Gt.prototype)}else if("%AsyncIteratorPrototype%"===Ot){var pt=dn("%AsyncGenerator%");pt&&Te&&(nn=Te(pt.prototype))}return Ue[Ot]=nn,nn},Ke={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ne=J(617),nt=J(926),Pn=Ne.call(Function.call,Array.prototype.concat),Gn=Ne.call(Function.apply,Array.prototype.splice),Ci=Ne.call(Function.call,String.prototype.replace),Si=Ne.call(Function.call,String.prototype.slice),Nn=Ne.call(Function.call,RegExp.prototype.exec),vi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fn=/\\(\\)?/g,Wn=function(Ot,nn){var pt,Gt=Ot;if(nt(Ke,Gt)&&(Gt="%"+(pt=Ke[Gt])[0]+"%"),nt(Ue,Gt)){var zn=Ue[Gt];if(zn===Oe&&(zn=Qe(Gt)),typeof zn>"u"&&!nn)throw new Re("intrinsic "+Ot+" exists, but is not available. Please file an issue!");return{alias:pt,name:Gt,value:zn}}throw new le("intrinsic "+Ot+" does not exist!")};ze.exports=function(Ot,nn){if("string"!=typeof Ot||0===Ot.length)throw new Re("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof nn)throw new Re('"allowMissing" argument must be a boolean');if(null===Nn(/^%?[^%]*%?$/,Ot))throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Gt=function(Ot){var nn=Si(Ot,0,1),Gt=Si(Ot,-1);if("%"===nn&&"%"!==Gt)throw new le("invalid intrinsic syntax, expected closing `%`");if("%"===Gt&&"%"!==nn)throw new le("invalid intrinsic syntax, expected opening `%`");var pt=[];return Ci(Ot,vi,function(zn,Di,H,ie){pt[pt.length]=H?Ci(ie,Fn,"$1"):Di||zn}),pt}(Ot),pt=Gt.length>0?Gt[0]:"",zn=Wn("%"+pt+"%",nn),Di=zn.name,H=zn.value,ie=!1,Y=zn.alias;Y&&(pt=Y[0],Gn(Gt,Pn([0,1],Y)));for(var M=1,U=!0;M=Gt.length){var ce=se(H,G);H=(U=!!ce)&&"get"in ce&&!("originalValue"in ce.get)?ce.get:H[G]}else U=nt(H,G),H=H[G];U&&!ie&&(Ue[Di]=H)}}return H}},108:(ze,X,J)=>{"use strict";var le=J(876)("%Object.getOwnPropertyDescriptor%",!0);if(le)try{le([],"length")}catch{le=null}ze.exports=le},490:(ze,X,J)=>{var B;!function(le,Ee,Re,ee){"use strict";var Qe,se=["","webkit","Moz","MS","ms","o"],ae=Ee.createElement("div"),ne="function",te=Math.round,De=Math.abs,Te=Date.now;function Oe(y,w,O){return setTimeout(Pn(y,O),w)}function Ye(y,w,O){return!!Array.isArray(y)&&(Ue(y,O[w],O),!0)}function Ue(y,w,O){var K;if(y)if(y.forEach)y.forEach(w,O);else if(y.length!==ee)for(K=0;K\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",q=le.console&&(le.console.warn||le.console.log);return q&&q.call(le.console,K,We),y.apply(this,arguments)}}Qe="function"!=typeof Object.assign?function(w){if(w===ee||null===w)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(w),K=1;K-1}function _i(y){return y.trim().split(/\s+/g)}function Wn(y,w,O){if(y.indexOf&&!O)return y.indexOf(w);for(var K=0;Kwt[w]}):K.sort()),K}function nn(y,w){for(var O,K,xe=w[0].toUpperCase()+w.slice(1),We=0;We1&&!O.firstMultiple?O.firstMultiple=hl(w):1===xe&&(O.firstMultiple=!1);var We=O.firstInput,q=O.firstMultiple,Yn=q?q.center:We.center,Je=w.center=Sr(K);w.timeStamp=Te(),w.deltaTime=w.timeStamp-We.timeStamp,w.angle=gs(Yn,Je),w.distance=Aa(Yn,Je),function Su(y,w){var O=w.center,K=y.offsetDelta||{},xe=y.prevDelta||{},We=y.prevInput||{};(w.eventType===ce||We.eventType===me)&&(xe=y.prevDelta={x:We.deltaX||0,y:We.deltaY||0},K=y.offsetDelta={x:O.x,y:O.y}),w.deltaX=xe.x+(O.x-K.x),w.deltaY=xe.y+(O.y-K.y)}(O,w),w.offsetDirection=fl(w.deltaX,w.deltaY);var wt=cc(w.deltaTime,w.deltaX,w.deltaY);w.overallVelocityX=wt.x,w.overallVelocityY=wt.y,w.overallVelocity=De(wt.x)>De(wt.y)?wt.x:wt.y,w.scale=q?function ml(y,w){return Aa(w[0],w[1],Bt)/Aa(y[0],y[1],Bt)}(q.pointers,K):1,w.rotation=q?function pl(y,w){return gs(w[1],w[0],Bt)+gs(y[1],y[0],Bt)}(q.pointers,K):0,w.maxPointers=O.prevInput?w.pointers.length>O.prevInput.maxPointers?w.pointers.length:O.prevInput.maxPointers:w.pointers.length,function Du(y,w){var xe,We,q,Yn,O=y.lastInterval||w,K=w.timeStamp-O.timeStamp;if(w.eventType!=Ie&&(K>ke||O.velocity===ee)){var Je=w.deltaX-O.deltaX,wt=w.deltaY-O.deltaY,Zr=cc(K,Je,wt);We=Zr.x,q=Zr.y,xe=De(Zr.x)>De(Zr.y)?Zr.x:Zr.y,Yn=fl(Je,wt),y.lastInterval=w}else xe=O.velocity,We=O.velocityX,q=O.velocityY,Yn=O.direction;w.velocity=xe,w.velocityX=We,w.velocityY=q,w.direction=Yn}(O,w);var Zr=y.element;vi(w.srcEvent.target,Zr)&&(Zr=w.srcEvent.target),w.target=Zr}(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function hl(y){for(var w=[],O=0;O=De(w)?y<0?he:_e:w<0?ft:xt}function Aa(y,w,O){O||(O=En);var K=w[O[0]]-y[O[0]],xe=w[O[1]]-y[O[1]];return Math.sqrt(K*K+xe*xe)}function gs(y,w,O){return O||(O=En),180*Math.atan2(w[O[1]]-y[O[1]],w[O[0]]-y[O[0]])/Math.PI}an.prototype={handler:function(){},init:function(){this.evEl&&Si(this.element,this.evEl,this.domHandler),this.evTarget&&Si(this.target,this.evTarget,this.domHandler),this.evWin&&Si(zn(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Nn(this.element,this.evEl,this.domHandler),this.evTarget&&Nn(this.target,this.evTarget,this.domHandler),this.evWin&&Nn(zn(this.element),this.evWin,this.domHandler)}};var gl={mousedown:ce,mousemove:2,mouseup:me},Qo="mousedown",vl="mousemove mouseup";function Ma(){this.evEl=Qo,this.evWin=vl,this.pressed=!1,an.apply(this,arguments)}nt(Ma,an,{handler:function(w){var O=gl[w.type];O&ce&&0===w.button&&(this.pressed=!0),2&O&&1!==w.which&&(O=me),this.pressed&&(O&me&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[w],changedPointers:[w],pointerType:G,srcEvent:w}))}});var _l={pointerdown:ce,pointermove:2,pointerup:me,pointercancel:Ie,pointerout:Ie},qr={2:M,3:"pen",4:G,5:"kinect"},yl="pointerdown",bl="pointermove pointerup pointercancel";function Jo(){this.evEl=yl,this.evWin=bl,an.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}le.MSPointerEvent&&!le.PointerEvent&&(yl="MSPointerDown",bl="MSPointerMove MSPointerUp MSPointerCancel"),nt(Jo,an,{handler:function(w){var O=this.store,K=!1,xe=w.type.toLowerCase().replace("ms",""),We=_l[xe],q=qr[w.pointerType]||w.pointerType,Yn=q==M,Je=Wn(O,w.pointerId,"pointerId");We&ce&&(0===w.button||Yn)?Je<0&&(O.push(w),Je=O.length-1):We&(me|Ie)&&(K=!0),!(Je<0)&&(O[Je]=w,this.callback(this.manager,We,{pointers:O,changedPointers:[w],pointerType:q,srcEvent:w}),K&&O.splice(Je,1))}});var Ia={touchstart:ce,touchmove:2,touchend:me,touchcancel:Ie};function ku(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,an.apply(this,arguments)}function Ty(y,w){var O=dn(y.touches),K=dn(y.changedTouches);return w&(me|Ie)&&(O=Ot(O.concat(K),"identifier",!0)),[O,K]}nt(ku,an,{handler:function(w){var O=Ia[w.type];if(O===ce&&(this.started=!0),this.started){var K=Ty.call(this,w,O);O&(me|Ie)&&K[0].length-K[1].length==0&&(this.started=!1),this.callback(this.manager,O,{pointers:K[0],changedPointers:K[1],pointerType:M,srcEvent:w})}}});var Sp={touchstart:ce,touchmove:2,touchend:me,touchcancel:Ie},Dp="touchstart touchmove touchend touchcancel";function lc(){this.evTarget=Dp,this.targetIds={},an.apply(this,arguments)}function kp(y,w){var O=dn(y.touches),K=this.targetIds;if(w&(2|ce)&&1===O.length)return K[O[0].identifier]=!0,[O,O];var xe,We,q=dn(y.changedTouches),Yn=[],Je=this.target;if(We=O.filter(function(wt){return vi(wt.target,Je)}),w===ce)for(xe=0;xe-1&&K.splice(We,1)},ji)}}function Mp(y){for(var w=y.srcEvent.clientX,O=y.srcEvent.clientY,K=0;K-1&&this.requireFail.splice(w,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var w=this,O=this.state;function K(xe){w.manager.emit(xe,y)}O<8&&K(w.options.event+Mu(O)),K(w.options.event),y.additionalEvent&&K(y.additionalEvent),O>=8&&K(w.options.event+Mu(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=32},canEmit:function(){for(var y=0;yw.threshold&&xe&w.direction},attrTest:function(y){return ki.prototype.attrTest.call(this,y)&&(2&this.state||!(2&this.state)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var w=Np(y.direction);w&&(y.additionalEvent=this.options.event+w),this._super.emit.call(this,y)}}),nt(Qt,ki,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ea]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||2&this.state)},emit:function(y){1!==y.scale&&(y.additionalEvent=this.options.event+(y.scale<1?"in":"out")),this._super.emit.call(this,y)}}),nt(vs,ko,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(y){var w=this.options,O=y.pointers.length===w.pointers,K=y.distancew.time;if(this._input=y,!K||!O||y.eventType&(me|Ie)&&!xe)this.reset();else if(y.eventType&ce)this.reset(),this._timer=Oe(function(){this.state=8,this.tryEmit()},w.time,this);else if(y.eventType&me)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(y){8===this.state&&(y&&y.eventType&me?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=Te(),this.manager.emit(this.options.event,this._input)))}}),nt(hc,ki,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ea]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||2&this.state)}}),nt(fc,ki,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|_n,pointers:1},getTouchAction:function(){return To.prototype.getTouchAction.call(this)},attrTest:function(y){var O,w=this.options.direction;return w&(Nt|_n)?O=y.overallVelocity:w&Nt?O=y.overallVelocityX:w&_n&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&w&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&De(O)>this.options.velocity&&y.eventType&me},emit:function(y){var w=Np(y.offsetDirection);w&&this.manager.emit(this.options.event+w,y),this.manager.emit(this.options.event,y)}}),nt(kl,ko,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[dc]},process:function(y){var w=this.options,O=y.pointers.length===w.pointers,K=y.distance{"use strict";var le=J(876)("%Object.defineProperty%",!0),Ee=function(){if(le)try{return le({},"a",{value:1}),!0}catch{return!1}return!1};Ee.hasArrayLengthDefineBug=function(){if(!Ee())return null;try{return 1!==le([],"length",{value:1}).length}catch{return!0}},ze.exports=Ee},315:ze=>{"use strict";var X={foo:{}},J=Object;ze.exports=function(){return{__proto__:X}.foo===X.foo&&!({__proto__:null}instanceof J)}},939:(ze,X,J)=>{"use strict";var B=typeof Symbol<"u"&&Symbol,le=J(324);ze.exports=function(){return"function"==typeof B&&"function"==typeof Symbol&&"symbol"==typeof B("foo")&&"symbol"==typeof Symbol("bar")&&le()}},324:ze=>{"use strict";ze.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var J={},B=Symbol("test"),le=Object(B);if("string"==typeof B||"[object Symbol]"!==Object.prototype.toString.call(B)||"[object Symbol]"!==Object.prototype.toString.call(le))return!1;for(B in J[B]=42,J)return!1;if("function"==typeof Object.keys&&0!==Object.keys(J).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(J).length)return!1;var Re=Object.getOwnPropertySymbols(J);if(1!==Re.length||Re[0]!==B||!Object.prototype.propertyIsEnumerable.call(J,B))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ee=Object.getOwnPropertyDescriptor(J,B);if(42!==ee.value||!0!==ee.enumerable)return!1}return!0}},72:(ze,X,J)=>{"use strict";var B=J(324);ze.exports=function(){return B()&&!!Symbol.toStringTag}},926:(ze,X,J)=>{"use strict";var B=Function.prototype.call,le=Object.prototype.hasOwnProperty,Ee=J(617);ze.exports=Ee.call(B,le)},767:ze=>{ze.exports="function"==typeof Object.create?function(J,B){B&&(J.super_=B,J.prototype=Object.create(B.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}))}:function(J,B){if(B){J.super_=B;var le=function(){};le.prototype=B.prototype,J.prototype=new le,J.prototype.constructor=J}}},22:(ze,X,J)=>{"use strict";var B=J(72)(),Ee=J(131)("Object.prototype.toString"),Re=function(ne){return!(B&&ne&&"object"==typeof ne&&Symbol.toStringTag in ne)&&"[object Arguments]"===Ee(ne)},ee=function(ne){return!!Re(ne)||null!==ne&&"object"==typeof ne&&"number"==typeof ne.length&&ne.length>=0&&"[object Array]"!==Ee(ne)&&"[object Function]"===Ee(ne.callee)},se=function(){return Re(arguments)}();Re.isLegacyArguments=ee,ze.exports=se?Re:ee},331:ze=>{"use strict";var B,le,X=Function.prototype.toString,J="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof J&&"function"==typeof Object.defineProperty)try{B=Object.defineProperty({},"length",{get:function(){throw le}}),le={},J(function(){throw 42},null,B)}catch(Ke){Ke!==le&&(J=null)}else J=null;var Ee=/^\s*class\b/,Re=function(Ne){try{var nt=X.call(Ne);return Ee.test(nt)}catch{return!1}},ee=function(Ne){try{return!Re(Ne)&&(X.call(Ne),!0)}catch{return!1}},se=Object.prototype.toString,Ye="function"==typeof Symbol&&!!Symbol.toStringTag,Ue=!(0 in[,]),it=function(){return!1};if("object"==typeof document){var Qe=document.all;se.call(Qe)===se.call(document.all)&&(it=function(Ne){if((Ue||!Ne)&&(typeof Ne>"u"||"object"==typeof Ne))try{var nt=se.call(Ne);return("[object HTMLAllCollection]"===nt||"[object HTML document.all class]"===nt||"[object HTMLCollection]"===nt||"[object Object]"===nt)&&null==Ne("")}catch{}return!1})}ze.exports=J?function(Ne){if(it(Ne))return!0;if(!Ne||"function"!=typeof Ne&&"object"!=typeof Ne)return!1;try{J(Ne,null,B)}catch(nt){if(nt!==le)return!1}return!Re(Ne)&&ee(Ne)}:function(Ne){if(it(Ne))return!0;if(!Ne||"function"!=typeof Ne&&"object"!=typeof Ne)return!1;if(Ye)return ee(Ne);if(Re(Ne))return!1;var nt=se.call(Ne);return!("[object Function]"!==nt&&"[object GeneratorFunction]"!==nt&&!/^\[object HTML/.test(nt))&&ee(Ne)}},605:(ze,X,J)=>{"use strict";var ae,B=Object.prototype.toString,le=Function.prototype.toString,Ee=/^\s*(?:function)?\*/,Re=J(72)(),ee=Object.getPrototypeOf;ze.exports=function(te){if("function"!=typeof te)return!1;if(Ee.test(le.call(te)))return!0;if(!Re)return"[object GeneratorFunction]"===B.call(te);if(!ee)return!1;if(typeof ae>"u"){var Te=function(){if(!Re)return!1;try{return Function("return function*() {}")()}catch{}}();ae=!!Te&&ee(Te)}return ee(te)===ae}},540:(ze,X,J)=>{"use strict";var B=J(63);ze.exports=function(Ee){return!!B(Ee)}},235:(ze,X,J)=>{ze.exports=J(639),ze.exports.Collection=J(933)},933:ze=>{"use strict";ze.exports.extend=function X(B,le,Ee,Re){var ee=Ee.inverse;return Object.defineProperty(B,"remove",{value:function(se){var ae=this.indexOf(se);return-1!==ae&&(this.splice(ae,1),le.unset(se,ee,Re)),se}}),Object.defineProperty(B,"contains",{value:function(se){return-1!==this.indexOf(se)}}),Object.defineProperty(B,"add",{value:function(se,ae){var ne=this.indexOf(se);if(typeof ae>"u"){if(-1!==ne)return;ae=this.length}-1!==ne&&this.splice(ne,1),this.splice(ae,0,se),-1===ne&&le.set(se,ee,Re)}}),Object.defineProperty(B,"__refs_collection",{value:!0}),B},ze.exports.isExtended=function J(B){return!0===B.__refs_collection}},639:(ze,X,J)=>{"use strict";var B=J(933);function Ee(se,ae,ne){var te=B.extend(ne[ae.name]||[],se,ae,ne);Object.defineProperty(ne,ae.name,{enumerable:ae.enumerable,value:te}),te.length&&te.forEach(function(De){se.set(De,ae.inverse,ne)})}function ee(se,ae){if(!(this instanceof ee))return new ee(se,ae);se.inverse=ae,ae.inverse=se,this.props={},this.props[se.name]=se,this.props[ae.name]=ae}ee.prototype.bind=function(se,ae){if("string"==typeof ae){if(!this.props[ae])throw new Error("no property <"+ae+"> in ref");ae=this.props[ae]}ae.collection?Ee(this,ae,se):function Re(se,ae,ne){var te=ae.inverse,De=ne[ae.name];Object.defineProperty(ne,ae.name,{configurable:ae.configurable,enumerable:ae.enumerable,get:function(){return De},set:function(Te){if(Te!==De){var Oe=De;De=null,Oe&&se.unset(Oe,te,ne),se.set(De=Te,te,ne)}}})}(this,ae,se)},ee.prototype.ensureRefsCollection=function(se,ae){var ne=se[ae.name];return B.isExtended(ne)||Ee(this,ae,se),ne},ee.prototype.ensureBound=function(se,ae){(function le(se,ae){return Object.prototype.hasOwnProperty.call(se,ae.name||ae)})(se,ae)||this.bind(se,ae)},ee.prototype.unset=function(se,ae,ne){se&&(this.ensureBound(se,ae),ae.collection?this.ensureRefsCollection(se,ae).remove(ne):se[ae.name]=void 0)},ee.prototype.set=function(se,ae,ne){se&&(this.ensureBound(se,ae),ae.collection?this.ensureRefsCollection(se,ae).add(ne):se[ae.name]=ne)},ze.exports=ee},641:ze=>{"use strict";var X=/,?([a-z]),?/gi,J=parseFloat,B=Math,le=B.PI,Ee=B.min,Re=B.max,ee=B.pow,se=B.abs,ae=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,ne=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,te=Array.isArray||function(H){return H instanceof Array};function De(H,ie){return Object.prototype.hasOwnProperty.call(H,ie)}function Te(H){if("function"==typeof H||Object(H)!==H)return H;var ie=new H.constructor;for(var Y in H)De(H,Y)&&(ie[Y]=Te(H[Y]));return ie}function it(H){var ie=it.ps=it.ps||{};return ie[H]?ie[H].sleep=100:ie[H]={sleep:100},setTimeout(function(){for(var Y in ie)De(ie,Y)&&Y!=H&&(ie[Y].sleep--,!ie[Y].sleep&&delete ie[Y])}),ie[H]}function Qe(H,ie,Y,M){return 1===arguments.length&&(ie=H.y,Y=H.width,M=H.height,H=H.x),{x:H,y:ie,width:Y,height:M,x2:H+Y,y2:ie+M}}function Ke(){return this.join(",").replace(X,"$1")}function Ne(H){var ie=Te(H);return ie.toString=Ke,ie}function nt(H,ie,Y,M,U,G,ue,ke,ce){var re=1-ce,me=ee(re,3),Ie=ee(re,2),he=ce*ce*ce,ft=me*ie+3*Ie*ce*M+3*re*ce*ce*G+he*ke;return{x:Fn(me*H+3*Ie*ce*Y+3*re*ce*ce*U+he*ue),y:Fn(ft)}}function Pn(H){var ie=zn.apply(null,H);return Qe(ie.x0,ie.y0,ie.x1-ie.x0,ie.y1-ie.y0)}function Gn(H,ie,Y){return ie>=H.x&&ie<=H.x+H.width&&Y>=H.y&&Y<=H.y+H.height}function Si(H,ie,Y,M,U){return H*(H*(-3*ie+9*Y-9*M+3*U)+6*ie-12*Y+6*M)-3*ie+3*Y}function Nn(H,ie,Y,M,U,G,ue,ke,ce){null==ce&&(ce=1);for(var re=(ce=ce>1?1:ce<0?0:ce)/2,Ie=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],tt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],he=0,_e=0;_e<12;_e++){var ft=re*Ie[_e]+re,xt=Si(ft,H,Y,U,ue),Nt=Si(ft,ie,M,G,ke);he+=tt[_e]*B.sqrt(xt*xt+Nt*Nt)}return re*he}function vi(H,ie,Y,M,U,G,ue,ke){if(!(Re(H,Y)Re(U,ue)||Re(ie,M)Re(G,ke))){var re=(H*M-ie*Y)*(G-ke)-(ie-M)*(U*ke-G*ue),me=(H-Y)*(G-ke)-(ie-M)*(U-ue);if(me){var Ie=Fn(((H*M-ie*Y)*(U-ue)-(H-Y)*(U*ke-G*ue))/me),tt=Fn(re/me),he=+Ie.toFixed(2),_e=+tt.toFixed(2);if(!(he<+Ee(H,Y).toFixed(2)||he>+Re(H,Y).toFixed(2)||he<+Ee(U,ue).toFixed(2)||he>+Re(U,ue).toFixed(2)||_e<+Ee(ie,M).toFixed(2)||_e>+Re(ie,M).toFixed(2)||_e<+Ee(G,ke).toFixed(2)||_e>+Re(G,ke).toFixed(2)))return{x:Ie,y:tt}}}}function Fn(H){return Math.round(1e11*H)/1e11}function _i(H,ie,Y){if(!function Ci(H,ie){return H=Qe(H),Gn(ie=Qe(ie),H.x,H.y)||Gn(ie,H.x2,H.y)||Gn(ie,H.x,H.y2)||Gn(ie,H.x2,H.y2)||Gn(H,ie.x,ie.y)||Gn(H,ie.x2,ie.y)||Gn(H,ie.x,ie.y2)||Gn(H,ie.x2,ie.y2)||(H.xie.x||ie.xH.x)&&(H.yie.y||ie.yH.y)}(Pn(H),Pn(ie)))return Y?0:[];for(var G=Nn.apply(0,H),ue=Nn.apply(0,ie),ke=Ot(H)?1:~~(G/5)||1,ce=Ot(ie)?1:~~(ue/5)||1,re=[],me=[],Ie={},tt=Y?0:[],he=0;he=0&&un<=1&&Yr>=0&&Yr<=1&&(Y?tt++:tt.push({x:an.x,y:an.y,t1:un,t2:Yr}))}}return tt}function Ot(H){return H[0]===H[2]&&H[1]===H[3]&&H[4]===H[6]&&H[5]===H[7]}function nn(H,ie,Y,M){return[H,ie,Y,M,Y,M]}function Gt(H,ie,Y,M,U,G){var ue=.3333333333333333,ke=2/3;return[ue*H+ke*Y,ue*ie+ke*M,ue*U+ke*Y,ue*G+ke*M,U,G]}function pt(H,ie,Y,M,U,G,ue,ke,ce,re){var he,me=120*le/180,Ie=le/180*(+U||0),tt=[],_e=function Ye(H){return function ie(){var Y=Array.prototype.slice.call(arguments,0),M=Y.join("\u2400"),U=ie.cache=ie.cache||{},G=ie.count=ie.count||[];return De(U,M)?(function Oe(H,ie){for(var Y=0,M=H.length;Y=1e3&&delete U[G.shift()],G.push(M),U[M]=H.apply(0,Y),U[M])}}(function(bl,Jo,Ia){return{x:bl*B.cos(Ia)-Jo*B.sin(Ia),y:bl*B.sin(Ia)+Jo*B.cos(Ia)}});if(re)Ln=re[0],un=re[1],Bt=re[2],an=re[3];else{ie=(he=_e(H,ie,-Ie)).y;var ft=((H=he.x)-(ke=(he=_e(ke,ce,-Ie)).x))/2,xt=(ie-(ce=he.y))/2,Nt=ft*ft/(Y*Y)+xt*xt/(M*M);Nt>1&&(Y*=Nt=B.sqrt(Nt),M*=Nt);var _n=Y*Y,oe=M*M,En=(G==ue?-1:1)*B.sqrt(se((_n*oe-_n*xt*xt-oe*ft*ft)/(_n*xt*xt+oe*ft*ft))),Bt=En*Y*xt/M+(H+ke)/2,an=En*-M*ft/Y+(ie+ce)/2,Ln=B.asin(((ie-an)/M).toFixed(9)),un=B.asin(((ce-an)/M).toFixed(9));(Ln=Hun&&(Ln-=2*le),!ue&&un>Ln&&(un-=2*le)}var Yr=un-Ln;if(se(Yr)>me){var Su=un,Du=ke,hl=ce;tt=pt(ke=Bt+Y*B.cos(un=Ln+me*(ue&&un>Ln?1:-1)),ce=an+M*B.sin(un),Y,M,U,0,ue,Du,hl,[un,Su,Bt,an])}Yr=un-Ln;var Sr=B.cos(Ln),cc=B.sin(Ln),fl=B.cos(un),Aa=B.sin(un),gs=B.tan(Yr/4),pl=4/3*Y*gs,ml=4/3*M*gs,gl=[H,ie],Qo=[H+pl*cc,ie-ml*Sr],vl=[ke+pl*Aa,ce-ml*fl],Ma=[ke,ce];if(Qo[0]=2*gl[0]-Qo[0],Qo[1]=2*gl[1]-Qo[1],re)return[Qo,vl,Ma].concat(tt);for(var _l=[],qr=0,yl=(tt=[Qo,vl,Ma].concat(tt).join().split(",")).length;qr2&&(M.push([G].concat(ke.splice(0,2))),ce="l",G="m"==G?"l":"L");ke.length>=Y[ce]&&(M.push([G].concat(ke.splice(0,Y[ce]))),Y[ce]););}),M.toString=it.toString,ie.arr=Te(M),M}(H)),!H||!H.length)return[["M",0,0]];var ce,Y=[],M=0,U=0,G=0,ue=0,ke=0;"M"==H[0][0]&&(G=M=+H[0][1],ue=U=+H[0][2],ke++,Y[0]=["M",M,U]);for(var re,me,Ie=ke,tt=H.length;Ie7){he[_e].shift();for(var ft=he[_e];ft.length;)ue[_e]="A",he.splice(_e++,0,["C"].concat(ft.splice(0,6)));he.splice(_e,1),me=Y.length}},ue=[],ke="",ce="",re=0,me=Y.length;re{var J,B,X=ze.exports={};function le(){throw new Error("setTimeout has not been defined")}function Ee(){throw new Error("clearTimeout has not been defined")}function Re(Ue){if(J===setTimeout)return setTimeout(Ue,0);if((J===le||!J)&&setTimeout)return J=setTimeout,setTimeout(Ue,0);try{return J(Ue,0)}catch{try{return J.call(null,Ue,0)}catch{return J.call(this,Ue,0)}}}!function(){try{J="function"==typeof setTimeout?setTimeout:le}catch{J=le}try{B="function"==typeof clearTimeout?clearTimeout:Ee}catch{B=Ee}}();var ne,se=[],ae=!1,te=-1;function De(){!ae||!ne||(ae=!1,ne.length?se=ne.concat(se):te=-1,se.length&&Te())}function Te(){if(!ae){var Ue=Re(De);ae=!0;for(var it=se.length;it;){for(ne=se,se=[];++te1)for(var Qe=1;Qe{"use strict";var B=J(876),le=J(491),Ee=J(65)(),Re=J(108),ee=B("%TypeError%"),se=B("%Math.floor%");ze.exports=function(ne,te){if("function"!=typeof ne)throw new ee("`fn` is not a function");if("number"!=typeof te||te<0||te>4294967295||se(te)!==te)throw new ee("`length` must be a positive 32-bit integer");var De=arguments.length>2&&!!arguments[2],Te=!0,Oe=!0;if("length"in ne&&Re){var Ye=Re(ne,"length");Ye&&!Ye.configurable&&(Te=!1),Ye&&!Ye.writable&&(Oe=!1)}return(Te||Oe||!De)&&(Ee?le(ne,"length",te,!0,!0):le(ne,"length",te)),ne}},386:ze=>{ze.exports=function(J){return J&&"object"==typeof J&&"function"==typeof J.copy&&"function"==typeof J.fill&&"function"==typeof J.readUInt8}},172:(ze,X,J)=>{"use strict";var B=J(22),le=J(605),Ee=J(63),Re=J(540);function ee(oe){return oe.call.bind(oe)}var se=typeof BigInt<"u",ae=typeof Symbol<"u",ne=ee(Object.prototype.toString),te=ee(Number.prototype.valueOf),De=ee(String.prototype.valueOf),Te=ee(Boolean.prototype.valueOf);if(se)var Oe=ee(BigInt.prototype.valueOf);if(ae)var Ye=ee(Symbol.prototype.valueOf);function Ue(oe,En){if("object"!=typeof oe)return!1;try{return En(oe),!0}catch{return!1}}function Wn(oe){return"[object Map]"===ne(oe)}function Ot(oe){return"[object Set]"===ne(oe)}function Gt(oe){return"[object WeakMap]"===ne(oe)}function zn(oe){return"[object WeakSet]"===ne(oe)}function H(oe){return"[object ArrayBuffer]"===ne(oe)}function ie(oe){return!(typeof ArrayBuffer>"u")&&(H.working?H(oe):oe instanceof ArrayBuffer)}function Y(oe){return"[object DataView]"===ne(oe)}function M(oe){return!(typeof DataView>"u")&&(Y.working?Y(oe):oe instanceof DataView)}X.isArgumentsObject=B,X.isGeneratorFunction=le,X.isTypedArray=Re,X.isPromise=function it(oe){return typeof Promise<"u"&&oe instanceof Promise||null!==oe&&"object"==typeof oe&&"function"==typeof oe.then&&"function"==typeof oe.catch},X.isArrayBufferView=function Qe(oe){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(oe):Re(oe)||M(oe)},X.isUint8Array=function Ke(oe){return"Uint8Array"===Ee(oe)},X.isUint8ClampedArray=function Ne(oe){return"Uint8ClampedArray"===Ee(oe)},X.isUint16Array=function nt(oe){return"Uint16Array"===Ee(oe)},X.isUint32Array=function Pn(oe){return"Uint32Array"===Ee(oe)},X.isInt8Array=function Gn(oe){return"Int8Array"===Ee(oe)},X.isInt16Array=function Ci(oe){return"Int16Array"===Ee(oe)},X.isInt32Array=function Si(oe){return"Int32Array"===Ee(oe)},X.isFloat32Array=function Nn(oe){return"Float32Array"===Ee(oe)},X.isFloat64Array=function vi(oe){return"Float64Array"===Ee(oe)},X.isBigInt64Array=function Fn(oe){return"BigInt64Array"===Ee(oe)},X.isBigUint64Array=function _i(oe){return"BigUint64Array"===Ee(oe)},Wn.working=typeof Map<"u"&&Wn(new Map),X.isMap=function dn(oe){return!(typeof Map>"u")&&(Wn.working?Wn(oe):oe instanceof Map)},Ot.working=typeof Set<"u"&&Ot(new Set),X.isSet=function nn(oe){return!(typeof Set>"u")&&(Ot.working?Ot(oe):oe instanceof Set)},Gt.working=typeof WeakMap<"u"&&Gt(new WeakMap),X.isWeakMap=function pt(oe){return!(typeof WeakMap>"u")&&(Gt.working?Gt(oe):oe instanceof WeakMap)},zn.working=typeof WeakSet<"u"&&zn(new WeakSet),X.isWeakSet=function Di(oe){return zn(oe)},H.working=typeof ArrayBuffer<"u"&&H(new ArrayBuffer),X.isArrayBuffer=ie,Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1)),X.isDataView=M;var U=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function G(oe){return"[object SharedArrayBuffer]"===ne(oe)}function ue(oe){return!(typeof U>"u")&&(typeof G.working>"u"&&(G.working=G(new U)),G.working?G(oe):oe instanceof U)}function tt(oe){return Ue(oe,te)}function he(oe){return Ue(oe,De)}function _e(oe){return Ue(oe,Te)}function ft(oe){return se&&Ue(oe,Oe)}function xt(oe){return ae&&Ue(oe,Ye)}X.isSharedArrayBuffer=ue,X.isAsyncFunction=function ke(oe){return"[object AsyncFunction]"===ne(oe)},X.isMapIterator=function ce(oe){return"[object Map Iterator]"===ne(oe)},X.isSetIterator=function re(oe){return"[object Set Iterator]"===ne(oe)},X.isGeneratorObject=function me(oe){return"[object Generator]"===ne(oe)},X.isWebAssemblyCompiledModule=function Ie(oe){return"[object WebAssembly.Module]"===ne(oe)},X.isNumberObject=tt,X.isStringObject=he,X.isBooleanObject=_e,X.isBigIntObject=ft,X.isSymbolObject=xt,X.isBoxedPrimitive=function Nt(oe){return tt(oe)||he(oe)||_e(oe)||ft(oe)||xt(oe)},X.isAnyArrayBuffer=function _n(oe){return typeof Uint8Array<"u"&&(ie(oe)||ue(oe))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(oe){Object.defineProperty(X,oe,{enumerable:!1,value:function(){throw new Error(oe+" is not supported in userland")}})})},302:(ze,X,J)=>{var B=J(116),le=Object.getOwnPropertyDescriptors||function(U){for(var G=Object.keys(U),ue={},ke=0;ke=ke)return me;switch(me){case"%s":return String(ue[G++]);case"%d":return Number(ue[G++]);case"%j":try{return JSON.stringify(ue[G++])}catch{return"[Circular]"}default:return me}}),re=ue[G];G"u")return function(){return X.deprecate(M,U).apply(this,arguments)};var G=!1;return function ue(){if(!G){if(B.throwDeprecation)throw new Error(U);B.traceDeprecation?console.trace(U):console.error(U),G=!0}return M.apply(this,arguments)}};var Re={},ee=/^$/;if(B.env.NODE_DEBUG){var se=B.env.NODE_DEBUG;se=se.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+se+"$","i")}function ae(M,U){var G={seen:[],stylize:te};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),Ne(U)?G.showHidden=U:U&&X._extend(G,U),Nn(G.showHidden)&&(G.showHidden=!1),Nn(G.depth)&&(G.depth=2),Nn(G.colors)&&(G.colors=!1),Nn(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=ne),Te(G,M,G.depth)}function ne(M,U){var G=ae.styles[U];return G?"\x1b["+ae.colors[G][0]+"m"+M+"\x1b["+ae.colors[G][1]+"m":M}function te(M,U){return M}function Te(M,U,G){if(M.customInspect&&U&&dn(U.inspect)&&U.inspect!==X.inspect&&(!U.constructor||U.constructor.prototype!==U)){var ue=U.inspect(G,M);return Ci(ue)||(ue=Te(M,ue,G)),ue}var ke=function Oe(M,U){if(Nn(U))return M.stylize("undefined","undefined");if(Ci(U)){var G="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(G,"string")}return Gn(U)?M.stylize(""+U,"number"):Ne(U)?M.stylize(""+U,"boolean"):nt(U)?M.stylize("null","null"):void 0}(M,U);if(ke)return ke;var ce=Object.keys(U),re=function De(M){var U={};return M.forEach(function(G,ue){U[G]=!0}),U}(ce);if(M.showHidden&&(ce=Object.getOwnPropertyNames(U)),Wn(U)&&(ce.indexOf("message")>=0||ce.indexOf("description")>=0))return Ye(U);if(0===ce.length){if(dn(U))return M.stylize("[Function"+(U.name?": "+U.name:"")+"]","special");if(vi(U))return M.stylize(RegExp.prototype.toString.call(U),"regexp");if(_i(U))return M.stylize(Date.prototype.toString.call(U),"date");if(Wn(U))return Ye(U)}var ft,Ie="",tt=!1,he=["{","}"];return Ke(U)&&(tt=!0,he=["[","]"]),dn(U)&&(Ie=" [Function"+(U.name?": "+U.name:"")+"]"),vi(U)&&(Ie=" "+RegExp.prototype.toString.call(U)),_i(U)&&(Ie=" "+Date.prototype.toUTCString.call(U)),Wn(U)&&(Ie=" "+Ye(U)),0!==ce.length||tt&&0!=U.length?G<0?vi(U)?M.stylize(RegExp.prototype.toString.call(U),"regexp"):M.stylize("[Object]","special"):(M.seen.push(U),ft=tt?function Ue(M,U,G,ue,ke){for(var ce=[],re=0,me=U.length;re60?G[0]+(""===U?"":U+"\n ")+" "+M.join(",\n ")+" "+G[1]:G[0]+U+" "+M.join(", ")+" "+G[1]}(ft,Ie,he)):he[0]+Ie+he[1]}function Ye(M){return"["+Error.prototype.toString.call(M)+"]"}function it(M,U,G,ue,ke,ce){var re,me,Ie;if((Ie=Object.getOwnPropertyDescriptor(U,ke)||{value:U[ke]}).get?me=M.stylize(Ie.set?"[Getter/Setter]":"[Getter]","special"):Ie.set&&(me=M.stylize("[Setter]","special")),Di(ue,ke)||(re="["+ke+"]"),me||(M.seen.indexOf(Ie.value)<0?(me=nt(G)?Te(M,Ie.value,null):Te(M,Ie.value,G-1)).indexOf("\n")>-1&&(me=ce?me.split("\n").map(function(tt){return" "+tt}).join("\n").slice(2):"\n"+me.split("\n").map(function(tt){return" "+tt}).join("\n")):me=M.stylize("[Circular]","special")),Nn(re)){if(ce&&ke.match(/^\d+$/))return me;(re=JSON.stringify(""+ke)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.slice(1,-1),re=M.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=M.stylize(re,"string"))}return re+": "+me}function Ke(M){return Array.isArray(M)}function Ne(M){return"boolean"==typeof M}function nt(M){return null===M}function Gn(M){return"number"==typeof M}function Ci(M){return"string"==typeof M}function Nn(M){return void 0===M}function vi(M){return Fn(M)&&"[object RegExp]"===nn(M)}function Fn(M){return"object"==typeof M&&null!==M}function _i(M){return Fn(M)&&"[object Date]"===nn(M)}function Wn(M){return Fn(M)&&("[object Error]"===nn(M)||M instanceof Error)}function dn(M){return"function"==typeof M}function nn(M){return Object.prototype.toString.call(M)}function Gt(M){return M<10?"0"+M.toString(10):M.toString(10)}X.debuglog=function(M){if(M=M.toUpperCase(),!Re[M])if(ee.test(M)){var U=B.pid;Re[M]=function(){var G=X.format.apply(X,arguments);console.error("%s %d: %s",M,U,G)}}else Re[M]=function(){};return Re[M]},X.inspect=ae,ae.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ae.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},X.types=J(172),X.isArray=Ke,X.isBoolean=Ne,X.isNull=nt,X.isNullOrUndefined=function Pn(M){return null==M},X.isNumber=Gn,X.isString=Ci,X.isSymbol=function Si(M){return"symbol"==typeof M},X.isUndefined=Nn,X.isRegExp=vi,X.types.isRegExp=vi,X.isObject=Fn,X.isDate=_i,X.types.isDate=_i,X.isError=Wn,X.types.isNativeError=Wn,X.isFunction=dn,X.isPrimitive=function Ot(M){return null===M||"boolean"==typeof M||"number"==typeof M||"string"==typeof M||"symbol"==typeof M||typeof M>"u"},X.isBuffer=J(386);var pt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Di(M,U){return Object.prototype.hasOwnProperty.call(M,U)}X.log=function(){console.log("%s - %s",function zn(){var M=new Date,U=[Gt(M.getHours()),Gt(M.getMinutes()),Gt(M.getSeconds())].join(":");return[M.getDate(),pt[M.getMonth()],U].join(" ")}(),X.format.apply(X,arguments))},X.inherits=J(767),X._extend=function(M,U){if(!U||!Fn(U))return M;for(var G=Object.keys(U),ue=G.length;ue--;)M[G[ue]]=U[G[ue]];return M};var H=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ie(M,U){if(!M){var G=new Error("Promise was rejected with a falsy value");G.reason=M,M=G}return U(M)}X.promisify=function(U){if("function"!=typeof U)throw new TypeError('The "original" argument must be of type Function');if(H&&U[H]){var G;if("function"!=typeof(G=U[H]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,H,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var ue,ke,ce=new Promise(function(Ie,tt){ue=Ie,ke=tt}),re=[],me=0;me{"use strict";var B=J(216),le=J(17),Ee=J(685),Re=J(131),ee=J(108),se=Re("Object.prototype.toString"),ae=J(72)(),ne=typeof globalThis>"u"?global:globalThis,te=le(),De=Re("String.prototype.slice"),Te=Object.getPrototypeOf,Oe=Re("Array.prototype.indexOf",!0)||function(Ke,Ne){for(var nt=0;nt-1?Ne:"Object"===Ne&&function(Ke){var Ne=!1;return B(Ye,function(nt,Pn){if(!Ne)try{nt(Ke),Ne=De(Pn,1)}catch{}}),Ne}(Ke)}return ee?function(Ke){var Ne=!1;return B(Ye,function(nt,Pn){if(!Ne)try{"$"+nt(Ke)===Pn&&(Ne=De(Pn,1))}catch{}}),Ne}(Ke):null}},650:(ze,X,J)=>{"use strict";function B(e){return"function"==typeof e}function le(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Ee=le(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Re(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ee{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(B(i))try{i()}catch(o){n=o instanceof Ee?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{ne(o)}catch(a){n=n??[],a instanceof Ee?n=[...n,...a.errors]:n.push(a)}}if(n)throw new Ee(n)}}add(n){var t;if(n&&n!==this)if(this.closed)ne(n);else{if(n instanceof ee){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Re(t,n)}remove(n){const{_finalizers:t}=this;t&&Re(t,n),n instanceof ee&&n._removeParent(this)}}ee.EMPTY=(()=>{const e=new ee;return e.closed=!0,e})();const se=ee.EMPTY;function ae(e){return e instanceof ee||e&&"closed"in e&&B(e.remove)&&B(e.add)&&B(e.unsubscribe)}function ne(e){B(e)?e():e.unsubscribe()}const te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},De={setTimeout(e,n,...t){const{delegate:i}=De;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=De;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Te(e){De.setTimeout(()=>{const{onUnhandledError:n}=te;if(!n)throw e;n(e)})}function Oe(){}const Ye=Qe("C",void 0,void 0);function Qe(e,n,t){return{kind:e,value:n,error:t}}let Ke=null;function Ne(e){if(te.useDeprecatedSynchronousErrorHandling){const n=!Ke;if(n&&(Ke={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ke;if(Ke=null,t)throw i}}else e()}class Pn extends ee{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,ae(n)&&n.add(this)):this.destination=Wn}static create(n,t,i){return new Nn(n,t,i)}next(n){this.isStopped?_i(function it(e){return Qe("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?_i(function Ue(e){return Qe("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?_i(Ye,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Gn=Function.prototype.bind;function Ci(e,n){return Gn.call(e,n)}class Si{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){vi(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){vi(i)}else vi(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){vi(t)}}}class Nn extends Pn{constructor(n,t,i){let r;if(super(),B(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&te.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Ci(n.next,o),error:n.error&&Ci(n.error,o),complete:n.complete&&Ci(n.complete,o)}):r=n}this.destination=new Si(r)}}function vi(e){te.useDeprecatedSynchronousErrorHandling?function nt(e){te.useDeprecatedSynchronousErrorHandling&&Ke&&(Ke.errorThrown=!0,Ke.error=e)}(e):Te(e)}function _i(e,n){const{onStoppedNotification:t}=te;t&&De.setTimeout(()=>t(e,n))}const Wn={closed:!0,next:Oe,error:function Fn(e){throw e},complete:Oe},dn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ot(e){return e}let pt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function H(e){return e&&e instanceof Pn||function Di(e){return e&&B(e.next)&&B(e.error)&&B(e.complete)}(e)&&ae(e)}(t)?t:new Nn(t,i,r);return Ne(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=zn(i))((r,o)=>{const a=new Nn({next:s=>{try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[dn](){return this}pipe(...t){return function Gt(e){return 0===e.length?Ot:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=zn(t))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return e.create=n=>new e(n),e})();function zn(e){var n;return null!==(n=e??te.Promise)&&void 0!==n?n:Promise}const ie=le(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Y=(()=>{class e extends pt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new M(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new ie}next(t){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Ne(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?se:(this.currentObservers=null,o.push(t),new ee(()=>{this.currentObservers=null,Re(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new pt;return t.source=this,t}}return e.create=(n,t)=>new M(n,t),e})();class M extends Y{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:se}}function G(e){return n=>{if(function U(e){return B(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(e,n,t,i,r){return new ke(e,n,t,i,r)}class ke extends Pn{constructor(n,t,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ce(e,n){return G((t,i)=>{let r=0;t.subscribe(ue(i,o=>{i.next(e.call(n,o,r++))}))})}function Sr(e){return this instanceof Sr?(this.v=e,this):new Sr(e)}function Aa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function un(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=e[o](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Jo=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ia(e){return B(e?.then)}function xl(e){return B(e[dn])}function wl(e){return Symbol.asyncIterator&&B(e?.[Symbol.asyncIterator])}function ku(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sp=function Ty(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dp(e){return B(e?.[Sp])}function lc(e){return function cc(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof Sr?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(i[h](f))}catch(p){u(o[0][3],p)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield Sr(t.read());if(r)return yield Sr(void 0);yield yield Sr(i)}}finally{t.releaseLock()}})}function kp(e){return B(e?.getReader)}function ji(e){if(e instanceof pt)return e;if(null!=e){if(xl(e))return function Tp(e){return new pt(n=>{const t=e[dn]();if(B(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Jo(e))return function Tu(e){return new pt(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Te)})}(e);if(wl(e))return Mp(e);if(Dp(e))return function Ap(e){return new pt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(kp(e))return function Ip(e){return Mp(lc(e))}(e)}throw ku(e)}function Mp(e){return new pt(n=>{(function Op(e,n){var t,i,r,o;return function En(e,n,t,i){return new(t||(t=Promise))(function(o,a){function s(d){try{l(i.next(d))}catch(u){a(u)}}function c(d){try{l(i.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(a){a(o)})}(d.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Aa(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Kr(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function dc(e,n,t=1/0){return B(n)?dc((i,r)=>ce((o,a)=>n(i,o,r,a))(ji(e(i,r))),t):("number"==typeof n&&(t=n),G((i,r)=>function Rp(e,n,t,i,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&n.complete()},f=g=>l{o&&n.next(g),l++;let v=!1;ji(t(g,d++)).subscribe(ue(n,k=>{r?.(k),o?f(k):n.next(k)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lp(k)):p(k)}h()}catch(k){n.error(k)}}))};return e.subscribe(ue(n,f,()=>{u=!0,h()})),()=>{s?.()}}(i,r,e,t)))}function ea(e=1/0){return dc(Ot,e)}const Co=new pt(e=>e.complete());function Sl(e){return e&&B(e.schedule)}function Au(e){return e[e.length-1]}function Pp(e){return B(Au(e))?e.pop():void 0}function ta(e){return Sl(Au(e))?e.pop():void 0}function Oa(e,n=0){return G((t,i)=>{t.subscribe(ue(i,r=>Kr(i,e,()=>i.next(r),n),()=>Kr(i,e,()=>i.complete(),n),r=>Kr(i,e,()=>i.error(r),n)))})}function So(e,n=0){return G((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function Mu(e,n){if(!e)throw new Error("Iterable cannot be null");return new pt(t=>{Kr(t,n,()=>{const i=e[Symbol.asyncIterator]();Kr(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function ki(e,n){return n?function Dl(e,n){if(null!=e){if(xl(e))return function Do(e,n){return ji(e).pipe(So(n),Oa(n))}(e,n);if(Jo(e))return function Xr(e,n){return new pt(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(Ia(e))return function uc(e,n){return ji(e).pipe(So(n),Oa(n))}(e,n);if(wl(e))return Mu(e,n);if(Dp(e))return function ko(e,n){return new pt(t=>{let i;return Kr(t,n,()=>{i=e[Sp](),Kr(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void t.error(a)}o?t.complete():t.next(r)},0,!0)}),()=>B(i?.return)&&i.return()})}(e,n);if(kp(e))return function Np(e,n){return Mu(lc(e),n)}(e,n)}throw ku(e)}(e,n):ji(e)}function To(...e){const n=ta(e),t=function hr(e,n){return"number"==typeof Au(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?ji(i[0]):ea(t)(ki(i,n)):Co}class Qt extends Y{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function vs(...e){return ki(e,ta(e))}function hc(e={}){const{connector:n=(()=>new Y),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},p=()=>{const g=a;f(),g?.unsubscribe()};return G((g,v)=>{l++,!u&&!d&&h();const k=c=c??n();v.add(()=>{l--,0===l&&!u&&!d&&(s=fc(p,r))}),k.subscribe(v),!a&&l>0&&(a=new Nn({next:E=>k.next(E),error:E=>{u=!0,h(),s=fc(f,t,E),k.error(E)},complete:()=>{d=!0,h(),s=fc(f,i),k.complete()}}),ji(g).subscribe(a))})(o)}}function fc(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Nn({next:()=>{i.unsubscribe(),e()}});return ji(n(...t)).subscribe(i)}function Ao(e,n=Ot){return e=e??My,G((t,i)=>{let r,o=!0;t.subscribe(ue(i,a=>{const s=n(a);(o||!e(r,s))&&(o=!1,r=s,i.next(a))}))})}function My(e,n){return e===n}function sn(e){for(let n in e)if(e[n]===sn)return n;throw Error("Could not find renamed property on target object.")}function _s(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Qn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Iu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Iy=sn({__forward_ref__:sn});function y(e){return e.__forward_ref__=y,e.toString=function(){return Qn(this())},e}function w(e){return O(e)?e():e}function O(e){return"function"==typeof e&&e.hasOwnProperty(Iy)&&e.__forward_ref__===y}function K(e){return e&&!!e.\u0275providers}const We="https://g.co/ng/security#xss";class q extends Error{constructor(n,t){super(function Yn(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Je(e){return"string"==typeof e?e:null==e?"":String(e)}function Oy(e,n){throw new q(-201,!1)}function Qr(e,n){null==e&&function mt(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fp(e){return NS(e,Bp)||NS(e,FS)}function NS(e,n){return e.hasOwnProperty(n)?e[n]:null}function Lp(e){return e&&(e.hasOwnProperty(Ry)||e.hasOwnProperty(H6))?e[Ry]:null}const Bp=sn({\u0275prov:sn}),Ry=sn({\u0275inj:sn}),FS=sn({ngInjectableDef:sn}),H6=sn({ngInjectorDef:sn});var Zt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Zt||{});let Py;function fr(e){const n=Py;return Py=e,n}function BS(e,n,t){const i=Fp(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Zt.Optional?null:void 0!==n?n:void Oy(Qn(e))}const An=globalThis;class Ce{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Se({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ou={},Vy="__NG_DI_FLAG__",Vp="ngTempTokenPath",G6=/\n/gm,jS="__source";let Tl;function ys(e){const n=Tl;return Tl=e,n}function q6(e,n=Zt.Default){if(void 0===Tl)throw new q(-203,!1);return null===Tl?BS(e,void 0,n):Tl.get(e,n&Zt.Optional?null:void 0,n)}function N(e,n=Zt.Default){return(function LS(){return Py}()||q6)(w(e),n)}function vt(e,n=Zt.Default){return N(e,jp(n))}function jp(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function jy(e){const n=[];for(let t=0;tn){a=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==US(f,l,0)||2&i&&l!==h){if(Mo(i))return!1;a=!0}}}}else{if(!a&&!Mo(i)&&!Mo(c))return!1;if(a&&Mo(c))continue;a=!1,i=c|1&i}}return Mo(i)||a}function Mo(e){return 0==(1&e)}function t8(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Mo(a)&&(n+=ZS(o,r),r=""),i=a,o=o||!Mo(i);t++}return""!==r&&(n+=ZS(o,r)),n}function Tt(e){return Ra(()=>{const n=JS(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Jr.Emulated,styles:e.styles||cn,_:null,schemas:e.schemas||null,tView:null,id:""};eD(t);const i=e.dependencies;return t.directiveDefs=$p(i,!1),t.pipeDefs=$p(i,!0),t.id=function p8(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function d8(e){return Jt(e)||Ii(e)}function u8(e){return null!==e}function Rt(e){return Ra(()=>({type:e.type,bootstrap:e.bootstrap||cn,declarations:e.declarations||cn,imports:e.imports||cn,exports:e.exports||cn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QS(e,n){if(null==e)return na;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}function Me(e){return Ra(()=>{const n=JS(e);return eD(n),n})}function pr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jt(e){return e[Hp]||null}function Ii(e){return e[zy]||null}function Ki(e){return e[Hy]||null}function JS(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||na,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||cn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:QS(e.inputs,n),outputs:QS(e.outputs)}}function eD(e){e.features?.forEach(n=>n(e))}function $p(e,n){if(!e)return null;const t=n?Ki:d8;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(u8)}const Jn=0,Ge=1,At=2,Hn=3,Io=4,Lu=5,zi=6,Al=7,ni=8,bs=9,Ml=10,Et=11,Bu=12,tD=13,Il=14,ii=15,Vu=16,Ol=17,ia=18,ju=19,nD=20,xs=21,Na=22,zu=23,Hu=24,Wt=25,Uy=1,iD=2,ra=7,Rl=9,Oi=11;function mr(e){return Array.isArray(e)&&"object"==typeof e[Uy]}function Xi(e){return Array.isArray(e)&&!0===e[Uy]}function Gy(e){return 0!=(4&e.flags)}function mc(e){return e.componentOffset>-1}function Gp(e){return 1==(1&e.flags)}function Oo(e){return!!e.template}function Wy(e){return 0!=(512&e[At])}function gc(e,n){return e.hasOwnProperty(Pa)?e[Pa]:null}let Ri=null,Wp=!1;function eo(e){const n=Ri;return Ri=e,n}const aD={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function cD(e){if(!Uu(e)||e.dirty){if(!e.producerMustRecompute(e)&&!uD(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function dD(e){e.dirty=!0,function lD(e){if(void 0===e.liveConsumerNode)return;const n=Wp;Wp=!0;try{for(const t of e.liveConsumerNode)t.dirty||dD(t)}finally{Wp=n}}(e),e.consumerMarkedDirty?.(e)}function qy(e){return e&&(e.nextProducerIndex=0),eo(e)}function Ky(e,n){if(eo(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Uu(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function uD(e){Pl(e);for(let n=0;n0}function Pl(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let mD=null;function _D(e){const n=eo(null);try{return e()}finally{eo(n)}}const yD=()=>{},k8=(()=>({...aD,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:yD}))();class T8{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Tr(){return bD}function bD(e){return e.type.prototype.ngOnChanges&&(e.setInput=M8),A8}function A8(){const e=wD(this),n=e?.current;if(n){const t=e.previous;if(t===na)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function M8(e,n,t,i){const r=this.declaredInputs[t],o=wD(e)||function I8(e,n){return e[xD]=n}(e,{previous:na,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new T8(c&&c.currentValue,n,s===na),e[i]=n}Tr.ngInherit=!0;const xD="__ngSimpleChanges__";function wD(e){return e[xD]||null}const oa=function(e,n,t){};function Mn(e){for(;Array.isArray(e);)e=e[Jn];return e}function qp(e,n){return Mn(n[e])}function gr(e,n){return Mn(n[e.index])}function SD(e,n){return e.data[n]}function Nl(e,n){return e[n]}function Ar(e,n){const t=n[e];return mr(t)?t:t[Jn]}function Es(e,n){return null==n?null:e[n]}function DD(e){e[Ol]=0}function L8(e){1024&e[At]||(e[At]|=1024,TD(e,1))}function kD(e){1024&e[At]&&(e[At]&=-1025,TD(e,-1))}function TD(e,n){let t=e[Hn];if(null===t)return;t[Lu]+=n;let i=t;for(t=t[Hn];null!==t&&(1===n&&1===i[Lu]||-1===n&&0===i[Lu]);)t[Lu]+=n,i=t,t=t[Hn]}const gt={lFrame:VD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ID(){return gt.bindingsEnabled}function Fl(){return null!==gt.skipHydrationRootTNode}function pe(){return gt.lFrame.lView}function en(){return gt.lFrame.tView}function yn(e){return gt.lFrame.contextLView=e,e[ni]}function bn(e){return gt.lFrame.contextLView=null,e}function Pi(){let e=OD();for(;null!==e&&64===e.type;)e=e.parent;return e}function OD(){return gt.lFrame.currentTNode}function aa(e,n){const t=gt.lFrame;t.currentTNode=e,t.isParent=n}function eb(){return gt.lFrame.isParent}function tb(){gt.lFrame.isParent=!1}function Ll(){return gt.lFrame.bindingIndex++}function La(e){const n=gt.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function K8(e,n){const t=gt.lFrame;t.bindingIndex=t.bindingRootIndex=e,nb(n)}function nb(e){gt.lFrame.currentDirectiveIndex=e}function ib(e){const n=gt.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function FD(){return gt.lFrame.currentQueryIndex}function rb(e){gt.lFrame.currentQueryIndex=e}function Z8(e){const n=e[Ge];return 2===n.type?n.declTNode:1===n.type?e[zi]:null}function LD(e,n,t){if(t&Zt.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&Zt.Host||(r=Z8(o),null===r||(o=o[Il],10&r.type))););if(null===r)return!1;n=r,e=o}const i=gt.lFrame=BD();return i.currentTNode=n,i.lView=e,!0}function ob(e){const n=BD(),t=e[Ge];gt.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function BD(){const e=gt.lFrame,n=null===e?null:e.child;return null===n?VD(e):n}function VD(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function jD(){const e=gt.lFrame;return gt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zD=jD;function ab(){const e=jD();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Qi(){return gt.lFrame.selectedIndex}function vc(e){gt.lFrame.selectedIndex=e}function qn(){const e=gt.lFrame;return SD(e.tView,e.selectedIndex)}let $D=!0;function Kp(){return $D}function Cs(e){$D=e}function Xp(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[c]<0&&(e[Ol]+=65536),(s>13>16&&(3&e[At])===n&&(e[At]+=8192,GD(s,o)):GD(s,o)}const Bl=-1;class Wu{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function ub(e){return e!==Bl}function Yu(e){return 32767&e}function qu(e,n){let t=function sV(e){return e>>16}(e),i=n;for(;t>0;)i=i[Il],t--;return i}let hb=!0;function Jp(e){const n=hb;return hb=e,n}const WD=255,YD=5;let cV=0;const sa={};function em(e,n){const t=qD(e,n);if(-1!==t)return t;const i=n[Ge];i.firstCreatePass&&(e.injectorIndex=n.length,fb(i.data,e),fb(n,null),fb(i.blueprint,null));const r=tm(e,n),o=e.injectorIndex;if(ub(r)){const a=Yu(r),s=qu(r,n),c=s[Ge].data;for(let l=0;l<8;l++)n[o+l]=s[a+l]|c[a+l]}return n[o+8]=r,o}function fb(e,n){e.push(0,0,0,0,0,0,0,0,n)}function qD(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function tm(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=t2(r),null===i)return Bl;if(t++,r=r[Il],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return Bl}function pb(e,n,t){!function lV(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Pu)&&(i=t[Pu]),null==i&&(i=t[Pu]=cV++);const r=i&WD;n.data[e+(r>>YD)]|=1<=0?n&WD:pV:n}(t);if("function"==typeof o){if(!LD(n,e,i))return i&Zt.Host?KD(r,0,i):XD(n,t,i,r);try{let a;if(a=o(i),null!=a||i&Zt.Optional)return a;Oy()}finally{zD()}}else if("number"==typeof o){let a=null,s=qD(e,n),c=Bl,l=i&Zt.Host?n[ii][zi]:null;for((-1===s||i&Zt.SkipSelf)&&(c=-1===s?tm(e,n):n[s+8],c!==Bl&&e2(i,!1)?(a=n[Ge],s=Yu(c),n=qu(c,n)):s=-1);-1!==s;){const d=n[Ge];if(JD(o,s,d.data)){const u=uV(s,n,t,a,i,l);if(u!==sa)return u}c=n[s+8],c!==Bl&&e2(i,n[Ge].data[s+8]===l)&&JD(o,s,n)?(a=d,s=Yu(c),n=qu(c,n)):s=-1}}return r}function uV(e,n,t,i,r,o){const a=n[Ge],s=a.data[e+8],d=nm(s,a,t,null==i?mc(s)&&hb:i!=a&&0!=(3&s.type),r&Zt.Host&&o===s);return null!==d?_c(n,a,d,s):sa}function nm(e,n,t,i,r){const o=e.providerIndexes,a=n.data,s=1048575&o,c=e.directiveStart,d=o>>20,h=r?s+d:e.directiveEnd;for(let f=i?s:s+d;f=c&&p.type===t)return f}if(r){const f=a[c];if(f&&Oo(f)&&f.type===t)return c}return null}function _c(e,n,t,i){let r=e[t];const o=n.data;if(function rV(e){return e instanceof Wu}(r)){const a=r;a.resolving&&function Zr(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${t}`)}(function wt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Je(e)}(o[t]));const s=Jp(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?fr(a.injectImpl):null;LD(e,i,Zt.Default);try{r=e[t]=a.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function nV(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=bD(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&fr(l),Jp(s),a.resolving=!1,zD()}}return r}function JD(e,n,t){return!!(t[n+(e>>YD)]&1<{const n=e.prototype.constructor,t=n[Pa]||mb(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Pa]||mb(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function mb(e){return O(e)?()=>{const n=mb(w(e));return n&&n()}:gc(e)}function t2(e){const n=e[Ge],t=n.type;return 2===t?n.declTNode:1===t?e[zi]:null}function Vl(e){return function dV(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r{const i=function gb(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(zl)?c[zl]:Object.defineProperty(c,zl,{value:[]})[zl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function Gl(e,n){e.forEach(t=>Array.isArray(t)?Gl(t,n):n(t))}function r2(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function im(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Zu(e,n){const t=[];for(let i=0;i=0?e[1|i]=t:(i=~i,function wV(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function vb(e,n){const t=Wl(e,n);if(t>=0)return e[1|t]}function Wl(e,n){return function o2(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),a=e[o<n?r=o:i=o+1}return~(r<0&&(e[t-1][Io]=i[Io]);const o=im(e,Oi+n);!function oj(e,n){nh(e,n,n[Et],2,null,null),n[Jn]=null,n[zi]=null}(i[Ge],i);const a=o[ia];null!==a&&a.detachView(o[Ge]),i[Hn]=null,i[Io]=null,i[At]&=-129}return i}function Mb(e,n){if(!(256&n[At])){const t=n[Et];n[zu]&&hD(n[zu]),n[Hu]&&hD(n[Hu]),t.destroyNode&&nh(e,n,t,3,null,null),function cj(e){let n=e[Bu];if(!n)return Ib(e[Ge],e);for(;n;){let t=null;if(mr(n))t=n[Bu];else{const i=n[Oi];i&&(t=i)}if(!t){for(;n&&!n[Io]&&n!==e;)mr(n)&&Ib(n[Ge],n),n=n[Hn];null===n&&(n=e),mr(n)&&Ib(n[Ge],n),t=n&&n[Io]}n=t}}(n)}}function Ib(e,n){if(!(256&n[At])){n[At]&=-129,n[At]|=256,function hj(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[a]():i[-a].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[Al]=null);const r=n[xs];if(null!==r){n[xs]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===Jr.None||o===Jr.Emulated)return null}return gr(i,t)}}(e,n.parent,t)}function yc(e,n,t,i,r){e.insertBefore(n,t,i,r)}function I2(e,n,t){e.appendChild(n,t)}function O2(e,n,t,i,r){null!==i?yc(e,n,t,i,r):I2(e,n,t)}function pm(e,n){return e.parentNode(n)}function R2(e,n,t){return N2(e,n,t)}let Rb,Lb,N2=function P2(e,n,t){return 40&e.type?gr(e,t):null};function mm(e,n,t,i){const r=Ob(e,i,n),o=n[Et],s=R2(i.parent||n[zi],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c{t.push(a)};return Gl(n,a=>{const s=a;wm(s,o,[],i)&&(r||=[],r.push(s))}),void 0!==r&&ik(r,o),t}function ik(e,n){for(let t=0;t{n(o,i)})}}function wm(e,n,t,i){if(!(e=w(e)))return!1;let r=null,o=Lp(e);const a=!o&&Jt(e);if(o||a){if(a&&!a.standalone)return!1;r=e}else{const c=e.ngModule;if(o=Lp(c),!o)return!1;r=c}const s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)wm(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;i.add(r);try{Gl(o.imports,d=>{wm(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&ik(l,n)}if(!s){const l=gc(r)||(()=>new r);n({provide:r,useFactory:l,deps:cn},r),n({provide:ek,useValue:r,multi:!0},r),n({provide:xm,useValue:()=>N(r),multi:!0},r)}const c=o.providers;if(null!=c&&!s){const l=e;Ub(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function Ub(e,n){for(let t of e)K(t)&&(t=t.\u0275providers),Array.isArray(t)?Ub(t,n):n(t)}const Yj=sn({provide:String,useValue:sn});function Gb(e){return null!==e&&"object"==typeof e&&Yj in e}function bc(e){return"function"==typeof e}const Wb=new Ce("Set Injector scope."),Em={},Kj={};let Yb;function Cm(){return void 0===Yb&&(Yb=new $b),Yb}class Va{}class Jl extends Va{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kb(n,a=>this.processProvider(a)),this.records.set(J2,ed(void 0,this)),r.has("environment")&&this.records.set(Va,ed(void 0,this));const o=this.records.get(Wb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ek.multi,cn,Zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ys(this),i=fr(void 0);try{return n()}finally{ys(t),fr(i)}}get(n,t=Ou,i=Zt.Default){if(this.assertNotDestroyed(),n.hasOwnProperty($S))return n[$S](this);i=jp(i);const o=ys(this),a=fr(void 0);try{if(!(i&Zt.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function ez(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ce}(n)&&Fp(n);c=l&&this.injectableDefInScope(l)?ed(qb(n),Em):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&Zt.Self?Cm():this.parent).get(n,t=i&Zt.Optional&&t===Ou?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Vp]=s[Vp]||[]).unshift(Qn(n)),o)throw s;return function X6(e,n,t,i){const r=e[Vp];throw n[jS]&&r.unshift(n[jS]),e.message=function Z6(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Qn(n);if(Array.isArray(n))r=n.map(Qn).join(" -> ");else if("object"==typeof n){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Qn(s)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(G6,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Vp]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{fr(a),ys(o)}}resolveInjectorInitializers(){const n=ys(this),t=fr(void 0);try{const r=this.get(xm.multi,cn,Zt.Self);for(const o of r)o()}finally{ys(n),fr(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Qn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(n){let t=bc(n=w(n))?n:w(n&&n.provide);const i=function Zj(e){return Gb(e)?ed(void 0,e.useValue):ed(ak(e),Em)}(n);if(bc(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=ed(void 0,Em,!0),r.factory=()=>jy(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===Em&&(t.value=Kj,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Jj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=w(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function qb(e){const n=Fp(e),t=null!==n?n.factory:gc(e);if(null!==t)return t;if(e instanceof Ce)throw new q(204,!1);if(e instanceof Function)return function Xj(e){const n=e.length;if(n>0)throw Zu(n,"?"),new q(204,!1);const t=function z6(e){return e&&(e[Bp]||e[FS])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new q(204,!1)}function ak(e,n,t){let i;if(bc(e)){const r=w(e);return gc(r)||qb(r)}if(Gb(e))i=()=>w(e.useValue);else if(function ok(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...jy(e.deps||[]));else if(function rk(e){return!(!e||!e.useExisting)}(e))i=()=>N(w(e.useExisting));else{const r=w(e&&(e.useClass||e.provide));if(!function Qj(e){return!!e.deps}(e))return gc(r)||qb(r);i=()=>new r(...jy(e.deps))}return i}function ed(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Kb(e,n){for(const t of e)Array.isArray(t)?Kb(t,n):t&&K(t)?Kb(t.\u0275providers,n):n(t)}const Sm=new Ce("AppId",{providedIn:"root",factory:()=>tz}),tz="ng",sk=new Ce("Platform Initializer"),xc=new Ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$i=new Ce("AnimationModuleType"),Xb=new Ce("CSP nonce",{providedIn:"root",factory:()=>function Zl(){if(void 0!==Lb)return Lb;if(typeof document<"u")return document;throw new q(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let ck=(e,n,t)=>null;function o0(e,n,t=!1){return ck(e,n,t)}class uz{}class uk{}class fz{resolveComponentFactory(n){throw function hz(e){const n=Error(`No component factory found for ${Qn(e)}.`);return n.ngComponent=e,n}(n)}}let id=(()=>{class e{static#e=this.NULL=new fz}return e})();function pz(){return rd(Pi(),pe())}function rd(e,n){return new Ft(gr(e,n))}let Ft=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=pz}return e})();function mz(e){return e instanceof Ft?e.nativeElement:e}class ch{}let wc=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function gz(){const e=pe(),t=Ar(Pi().index,e);return(mr(t)?t:e)[Et]}()}return e})(),vz=(()=>{class e{static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>null})}return e})();class od{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const _z=new od("16.2.12"),c0={};function gk(e,n=null,t=null,i){const r=vk(e,n,t,i);return r.resolveInjectorInitializers(),r}function vk(e,n=null,t=null,i,r=new Set){const o=[t||cn,Wj(e)];return i=i||("object"==typeof e?void 0:Qn(e)),new Jl(o,n||Cm(),i||null,r)}let ri=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Ou;static#t=this.NULL=new $b;static create(t,i){if(Array.isArray(t))return gk({name:""},i,t,"");{const r=t.name??"";return gk({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=Se({token:e,providedIn:"any",factory:()=>N(J2)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function d0(e){return e.ngOriginalError}class ja{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&d0(n);for(;t&&d0(t);)t=d0(t);return t||null}}function h0(e){return n=>{setTimeout(e,void 0,n)}}const Xt=class Sz extends Y{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=h0(o),r&&(r=h0(r)),a&&(a=h0(a)));const s=super.subscribe({next:r,error:o,complete:a});return n instanceof ee&&n.add(s),s}};function yk(...e){}class rt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xt(!1),this.onMicrotaskEmpty=new Xt(!1),this.onStable=new Xt(!1),this.onError=new Xt(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Dz(){const e="function"==typeof An.requestAnimationFrame;let n=An[e?"requestAnimationFrame":"setTimeout"],t=An[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Az(e){const n=()=>{!function Tz(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(An,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,p0(e),e.isCheckStableRunning=!0,f0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),p0(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,a,s)=>{if(function Iz(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(s))return t.invokeTask(r,o,a,s);try{return bk(e),t.invokeTask(r,o,a,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),xk(e)}},onInvoke:(t,i,r,o,a,s,c)=>{try{return bk(e),t.invoke(r,o,a,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),xk(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,p0(e),f0(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rt.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(rt.isInAngularZone())throw new q(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,kz,yk,yk);try{return o.runTask(a,t,i)}finally{o.cancelTask(a)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const kz={};function f0(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function p0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bk(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xk(e){e._nesting--,f0(e)}class Mz{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xt,this.onMicrotaskEmpty=new Xt,this.onStable=new Xt,this.onError=new Xt}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}const wk=new Ce("",{providedIn:"root",factory:Ek});function Ek(){const e=vt(rt);let n=!0;return To(new pt(r=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(n),r.complete()})}),new pt(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const a=e.onUnstable.subscribe(()=>{rt.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),a.unsubscribe()}}).pipe(hc()))}let m0=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>new e})}return e})();function lh(e){for(;e;){e[At]|=64;const n=eh(e);if(Wy(e)&&!n)return e;e=n}return null}const Tk=new Ce("",{providedIn:"root",factory:()=>!1});let Om=null;function Ok(e,n){return e[n]??Nk()}function Rk(e,n){const t=Nk();t.producerNode?.length&&(e[n]=Om,t.lView=e,Om=Pk())}const zz={...aD,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{lh(e.lView)},lView:null};function Pk(){return Object.create(zz)}function Nk(){return Om??=Pk(),Om}const Dt={};function ye(e){Fk(en(),pe(),Qi()+e,!1)}function Fk(e,n,t,i){if(!i)if(3==(3&n[At])){const o=e.preOrderCheckHooks;null!==o&&Zp(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Qp(n,o,0,t)}vc(t)}function T(e,n=Zt.Default){const t=pe();return null===t?N(e,n):ZD(Pi(),t,w(e),n)}function Rm(){throw new Error("invalid")}function Pm(e,n,t,i,r,o,a,s,c,l,d){const u=n.blueprint.slice();return u[Jn]=r,u[At]=140|i,(null!==l||e&&2048&e[At])&&(u[At]|=2048),DD(u),u[Hn]=u[Il]=e,u[ni]=t,u[Ml]=a||e&&e[Ml],u[Et]=s||e&&e[Et],u[bs]=c||e&&e[bs]||null,u[zi]=o,u[ju]=function YV(){return WV++}(),u[Na]=d,u[nD]=l,u[ii]=2==n.type?e[ii]:u,u}function cd(e,n,t,i,r){let o=e.data[n];if(null===o)o=function g0(e,n,t,i,r){const o=OD(),a=eb(),c=e.data[n]=function Kz(e,n,t,i,r,o){let a=n?n.injectorIndex:-1,s=0;return Fl()&&(s|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(a?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,i,r),function q8(){return gt.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const a=function Gu(){const e=gt.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return aa(o,!0),o}function dh(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;oWt&&Fk(e,n,Wt,!1),oa(s?2:0,r);const l=s?o:null,d=qy(l);try{null!==l&&(l.dirty=!1),t(i,r)}finally{Ky(l,d)}}finally{s&&null===n[zu]&&Rk(n,zu),vc(a),oa(s?3:1,r)}}function v0(e,n,t){if(Gy(n)){const i=eo(null);try{const o=n.directiveEnd;for(let a=n.directiveStart;anull;function jk(e,n,t,i){for(let r in e)if(e.hasOwnProperty(r)){t=null===t?{}:t;const o=e[r];null===i?zk(t,n,r,o):i.hasOwnProperty(r)&&zk(t,n,i[r],o)}return t}function zk(e,n,t,i){e.hasOwnProperty(t)?e[t].push(n,i):e[t]=[n,i]}function Ir(e,n,t,i,r,o,a,s){const c=gr(n,t);let d,l=n.inputs;!s&&null!=l&&(d=l[i])?(S0(e,t,d,i,r),mc(n)&&function Qz(e,n){const t=Ar(n,e);16&t[At]||(t[At]|=64)}(t,n.index)):3&n.type&&(i=function Zz(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=a?a(r,n.value||"",i):r,o.setProperty(c,i,r))}function x0(e,n,t,i){if(ID()){const r=null===i?null:{"":-1},o=function rH(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=s&&a.push(s),a.push(t,i,o)}}(e,n,i,dh(e,t,r.hostVars,Dt),r)}function ca(e,n,t,i,r,o){const a=gr(e,n);!function E0(e,n,t,i,r,o,a){if(null==o)e.removeAttribute(n,r,t);else{const s=null==a?Je(o):a(o,i||"",r);e.setAttribute(n,r,s,t)}}(n[Et],a,o,e.value,t,i,r)}function dH(e,n,t,i,r,o){const a=o[n];if(null!==a)for(let s=0;s{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,i,r){const o=typeof Zone>"u"?null:Zone.current,a=function D8(e,n,t){const i=Object.create(k8);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=a=>{i.cleanupFn=a};return i.ref={notify:()=>dD(i),run:()=>{if(i.dirty=!1,i.hasRun&&!uD(i))return;i.hasRun=!0;const a=qy(i);try{i.cleanupFn(),i.cleanupFn=yD,i.fn(r)}finally{Ky(i,a)}},cleanup:()=>i.cleanupFn()},i.ref}(t,l=>{this.all.has(l)&&this.queue.set(l,o)},r);let s;this.all.add(a),a.notify();const c=()=>{a.cleanup(),s?.(),this.all.delete(a),this.queue.delete(a)};return s=i?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,i]of this.queue)this.queue.delete(t),i?i.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:()=>new e})}return e})();function Fm(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let a=0;a0){eT(e,1);const r=t.components;null!==r&&nT(e,r,1)}}function nT(e,n,t){for(let i=0;i-1&&(fm(n,i),im(t,i))}this._attachedToViewContainer=!1}Mb(this._lView[Ge],this._lView)}onDestroy(n){!function AD(e,n){if(256==(256&e[At]))throw new q(911,!1);null===e[xs]&&(e[xs]=[]),e[xs].push(n)}(this._lView,n)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-129}reattach(){this._lView[At]|=128}detectChanges(){Lm(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function sj(e,n){nh(e,n,n[Et],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=n}}class yH extends hh{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Lm(n[Ge],n,n[ni],!1)}checkNoChanges(){}get context(){return null}}class iT extends id{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Jt(n);return new fh(t,this.ngModule)}}function rT(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class xH{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=jp(i);const r=this.injector.get(n,c0,i);return r!==c0||t===c0?r:this.parentInjector.get(n,t,i)}}class fh extends uk{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=rT(n.inputs);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return rT(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function s8(e){return e.map(a8).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){let o=(r=r||this.ngModule)instanceof Va?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new xH(n,o):n,s=a.get(ch,null);if(null===s)throw new q(407,!1);const u={rendererFactory:s,sanitizer:a.get(vz,null),effectManager:a.get(Zk,null),afterRenderEventManager:a.get(m0,null)},h=s.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=i?function Uz(e,n,t,i){const o=i.get(Tk,!1)||t===Jr.ShadowDom,a=e.selectRootElement(n,o);return function Gz(e){Vk(e)}(a),a}(h,i,this.componentDef.encapsulation,a):hm(h,f,function bH(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),k=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let E=null;null!==p&&(E=o0(p,a,!0));const C=b0(0,null,null,1,0,null,null,null,null,null,null),x=Pm(null,C,null,k,null,null,u,h,a,null,E);let D,P;ob(x);try{const V=this.componentDef;let F,Q=null;V.findHostDirectiveDefs?(F=[],Q=new Map,V.findHostDirectiveDefs(V,F,Q),F.push(V)):F=[V];const be=function EH(e,n){const t=e[Ge],i=Wt;return e[i]=n,cd(t,i,2,"#host",null)}(x,p),He=function CH(e,n,t,i,r,o,a){const s=r[Ge];!function SH(e,n,t,i){for(const r of e)n.mergedAttrs=Nu(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Fm(n,n.mergedAttrs,!0),null!==t&&z2(i,t,n))}(i,e,n,a);let c=null;null!==n&&(c=o0(n,r[bs]));const l=o.rendererFactory.createRenderer(n,t);let d=16;t.signals?d=4096:t.onPush&&(d=64);const u=Pm(r,Bk(t),null,d,r[e.index],e,o,l,null,null,c);return s.firstCreatePass&&w0(s,e,i.length-1),Nm(r,u),r[e.index]=u}(be,p,V,F,x,u,h);P=SD(C,Wt),p&&function kH(e,n,t,i){if(i)$y(e,t,["ng-version",_z.full]);else{const{attrs:r,classes:o}=function c8(e){const n=[],t=[];let i=1,r=2;for(;i0&&j2(e,t,o.join(" "))}}(h,V,p,i),void 0!==t&&function TH(e,n,t){const i=e.projection=[];for(let r=0;r=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Nu(r.hostAttrs,t=Nu(t,r.hostAttrs))}}(i)}function Bm(e){return e===na?{}:e===cn?[]:e}function IH(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function OH(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function RH(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function Vm(e){return!!function k0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Ui(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function hn(e,n,t,i){const r=pe();return Ui(r,Ll(),n)&&(en(),ca(qn(),r,e,n,t,i)),hn}function dd(e,n,t,i){return Ui(e,Ll(),t)?n+Je(t)+i:Dt}function ud(e,n,t,i,r,o){const s=function Ec(e,n,t,i){const r=Ui(e,n,t);return Ui(e,n+1,i)||r}(e,function Fa(){return gt.lFrame.bindingIndex}(),t,r);return La(2),s?n+Je(t)+i+Je(r)+o:Dt}function et(e,n,t,i,r,o,a,s){const c=pe(),l=en(),d=e+Wt,u=l.firstCreatePass?function o9(e,n,t,i,r,o,a,s,c){const l=n.consts,d=cd(n,e,4,a||null,Es(l,s));x0(n,t,d,Es(l,c)),Xp(n,d);const u=d.tView=b0(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,l,c,n,t,i,r,o,a):l.data[d];aa(u,!1);const h=xT(l,c,u,e);Kp()&&mm(l,c,h,u),Hi(h,c),Nm(c,c[d]=Gk(h,c,h,u)),Gp(u)&&_0(l,c,u),null!=a&&y0(c,u,s)}let xT=function wT(e,n,t,i){return Cs(!0),n[Et].createComment("")};function er(e){return Nl(function Y8(){return gt.lFrame.contextLView}(),Wt+e)}function Ae(e,n,t){const i=pe();return Ui(i,Ll(),n)&&Ir(en(),qn(),i,e,n,i[Et],t,!1),Ae}function R0(e,n,t,i,r){const a=r?"class":"style";S0(e,t,n.inputs[a],a,i)}function j(e,n,t,i){const r=pe(),o=en(),a=Wt+e,s=r[Et],c=o.firstCreatePass?function l9(e,n,t,i,r,o){const a=n.consts,c=cd(n,e,2,i,Es(a,r));return x0(n,t,c,Es(a,o)),null!==c.attrs&&Fm(c,c.attrs,!1),null!==c.mergedAttrs&&Fm(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(a,o,r,n,t,i):o.data[a],l=ET(o,r,c,s,n,e);r[a]=l;const d=Gp(c);return aa(c,!0),z2(s,l,c),32!=(32&c.flags)&&Kp()&&mm(o,r,l,c),0===function V8(){return gt.lFrame.elementDepthCount}()&&Hi(l,r),function j8(){gt.lFrame.elementDepthCount++}(),d&&(_0(o,r,c),v0(o,c,r)),null!==i&&y0(r,c),j}function W(){let e=Pi();eb()?tb():(e=e.parent,aa(e,!1));const n=e;(function H8(e){return gt.skipHydrationRootTNode===e})(n)&&function W8(){gt.skipHydrationRootTNode=null}(),function z8(){gt.lFrame.elementDepthCount--}();const t=en();return t.firstCreatePass&&(Xp(t,e),Gy(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function oV(e){return 0!=(8&e.flags)}(n)&&R0(t,n,pe(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function aV(e){return 0!=(16&e.flags)}(n)&&R0(t,n,pe(),n.stylesWithoutHost,!1),W}function at(e,n,t,i){return j(e,n,t,i),W(),at}let ET=(e,n,t,i,r,o)=>(Cs(!0),hm(i,r,function HD(){return gt.lFrame.currentNamespace}()));function tr(){return pe()}function Um(e){return!!e&&"function"==typeof e.then}function DT(e){return!!e&&"function"==typeof e.subscribe}function Le(e,n,t,i){const r=pe(),o=en(),a=Pi();return kT(o,r,r[Et],a,e,n,i),Le}function F0(e,n){const t=Pi(),i=pe(),r=en();return kT(r,i,Kk(ib(r.data),t,i),t,e,n),F0}function kT(e,n,t,i,r,o,a){const s=Gp(i),l=e.firstCreatePass&&qk(e),d=n[ni],u=Yk(n);let h=!0;if(3&i.type||a){const g=gr(i,n),v=a?a(g):g,k=u.length,E=a?x=>a(Mn(x[i.index])):i.index;let C=null;if(!a&&s&&(C=function m9(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,n,r,i.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=AT(i,n,d,o,!1);const x=t.listen(v,r,o);u.push(o,x),l&&l.push(r,E,k,k+1)}}else o=AT(i,n,d,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const g=p.length;if(g)for(let v=0;v-1?Ar(e.index,n):n);let c=TT(n,t,i,a),l=o.__ngNextListenerFn__;for(;l;)c=TT(n,t,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&a.preventDefault(),c}}function st(e=1){return function Q8(e){return(gt.lFrame.contextLView=function J8(e,n){for(;e>0;)n=n[Il],e--;return n}(e,gt.lFrame.contextLView))[ni]}(e)}function g9(e,n){let t=null;const i=function n8(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r>17&32767}function B0(e){return 2|e}function Sc(e){return(131068&e)>>2}function V0(e,n){return-131069&e|n<<2}function j0(e){return 1|e}function BT(e,n,t,i,r){const o=e[t+1],a=null===n;let s=i?ks(o):Sc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=e[s+1];w9(e[s],n)&&(c=!0,e[s+1]=i?j0(d):B0(d)),s=i?ks(d):Sc(d)}c&&(e[t+1]=i?B0(o):j0(o))}function w9(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Wl(e,n)>=0}function z0(e,n,t){return Ro(e,n,t,!1),z0}function Ct(e,n){return Ro(e,n,null,!0),Ct}function Ro(e,n,t,i){const r=pe(),o=en(),a=La(2);o.firstUpdatePass&&function WT(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[Qi()],a=function GT(e,n){return n>=e.expandoStartIndex}(e,t);(function XT(e,n){return 0!=(e.flags&(n?8:16))})(o,i)&&null===n&&!a&&(n=!1),n=function I9(e,n,t,i){const r=ib(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=_h(t=H0(null,e,n,t,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==r)if(t=H0(r,e,n,t,i),null===o){let c=function O9(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Sc(i))return e[ks(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=H0(null,e,n,c[1],i),c=_h(c,n.attrs,i),function R9(e,n,t,i){e[ks(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function P9(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(l=!0)):d=t,r)if(0!==c){const h=ks(e[s+1]);e[i+1]=Gm(h,s),0!==h&&(e[h+1]=V0(e[h+1],i)),e[s+1]=function _9(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=Gm(s,0),0!==s&&(e[s+1]=V0(e[s+1],i)),s=i;else e[i+1]=Gm(c,0),0===s?s=i:e[c+1]=V0(e[c+1],i),c=i;l&&(e[i+1]=B0(e[i+1])),BT(e,d,i,!0),BT(e,d,i,!1),function x9(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Wl(o,n)>=0&&(t[i+1]=j0(t[i+1]))}(n,d,e,i,o),a=Gm(s,c),o?n.classBindings=a:n.styleBindings=a}(r,o,n,t,a,i)}}(o,e,a,i),n!==Dt&&Ui(r,a,n)&&function qT(e,n,t,i,r,o,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function y9(e){return 1==(1&e)}(l)?KT(c,n,t,r,Sc(l),a):void 0;Wm(d)||(Wm(o)||function v9(e){return 2==(2&e)}(l)&&(o=KT(c,null,t,r,s,a)),function vj(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:Ss.DashCase;null==r?e.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Ss.Important),e.setStyle(t,i,r,o))}}(i,a,qp(Qi(),t),r,o))}(o,o.data[Qi()],r,r[Et],e,r[a+1]=function B9(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Qn(Ds(e)))),e}(n,t),i,a)}function H0(e,n,t,i,r){let o=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=t[r+1];h===Dt&&(h=u?cn:void 0);let f=u?vb(h,i):d===i?h:void 0;if(l&&!Wm(f)&&(f=vb(c,i)),Wm(f)&&(s=f,a))return s;const p=e[r+1];r=a?ks(p):Sc(p)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(s=vb(c,i))}return s}function Wm(e){return void 0!==e}function Fe(e,n=""){const t=pe(),i=en(),r=e+Wt,o=i.firstCreatePass?cd(i,r,1,n,null):i.data[r],a=ZT(i,t,o,n,e);t[r]=a,Kp()&&mm(i,t,a,o),aa(o,!1)}let ZT=(e,n,t,i,r)=>(Cs(!0),function um(e,n){return e.createText(n)}(n[Et],i));function io(e){return $a("",e,""),io}function $a(e,n,t){const i=pe(),r=dd(i,e,n,t);return r!==Dt&&Ha(i,Qi(),r),$a}function $0(e,n,t,i,r){const o=pe(),a=ud(o,e,n,t,i,r);return a!==Dt&&Ha(o,Qi(),a),$0}function yd(e,n,t){const i=pe();return Ui(i,Ll(),n)&&Ir(en(),qn(),i,e,n,i[Et],t,!0),yd}function U0(e,n,t){const i=pe();if(Ui(i,Ll(),n)){const o=en(),a=qn();Ir(o,a,i,e,n,Kk(ib(o.data),a,i),t,!0)}return U0}const Dc=void 0;var a7=["en",[["a","p"],["AM","PM"],Dc],[["AM","PM"],Dc,Dc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Dc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Dc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Dc,"{1} 'at' {0}",Dc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function o7(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let bd={};function nr(e){const n=function s7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=mA(n);if(t)return t;const i=n.split("-")[0];if(t=mA(i),t)return t;if("en"===i)return a7;throw new q(701,!1)}function mA(e){return e in bd||(bd[e]=An.ng&&An.ng.common&&An.ng.common.locales&&An.ng.common.locales[e]),bd[e]}var In=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(In||{});const xd="en-US";let gA=xd;function Y0(e,n,t,i,r){if(e=w(e),Array.isArray(e))for(let o=0;o>20;if(bc(e)||!e.multi){const f=new Wu(l,r,T),p=K0(c,n,r?d:d+h,u);-1===p?(pb(em(s,a),o,c),q0(o,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(f),a.push(f)):(t[p]=f,a[p]=f)}else{const f=K0(c,n,d+h,u),p=K0(c,n,d,d+h),v=p>=0&&t[p];if(r&&!v||!r&&!(f>=0&&t[f])){pb(em(s,a),o,c);const k=function o$(e,n,t,i,r){const o=new Wu(e,t,T);return o.multi=[],o.index=n,o.componentProviders=0,zA(o,r,i&&!t),o}(r?r$:i$,t.length,r,i,l);!r&&v&&(t[p].providerFactory=k),q0(o,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(k),a.push(k)}else q0(o,e,f>-1?f:p,zA(t[r?p:f],l,!r&&i));!r&&i&&v&&t[p].componentProviders++}}}function q0(e,n,t,i){const r=bc(n),o=function qj(e){return!!e.useClass}(n);if(r||o){const c=(o?w(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(t);-1===d?l.push(t,[i,c]):l[d+1].push(i,c)}else l.push(t,c)}}}function zA(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function K0(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function n$(e,n,t){const i=en();if(i.firstCreatePass){const r=Oo(e);Y0(t,i.data,i.blueprint,r,!0),Y0(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class kc{}class a${}class Z0 extends kc{constructor(n,t,i){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iT(this);const r=function kr(e,n){const t=e[HS]||null;if(!t&&!0===n)throw new Error(`Type ${Qn(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function za(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=vk(n,t,[{provide:kc,useValue:this},{provide:id,useValue:this.componentFactoryResolver},...i],Qn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Q0 extends a${constructor(n){super(),this.moduleType=n}create(n){return new Z0(this.moduleType,n,[])}}function KA(e,n,t,i,r,o){const a=n+t;return Ui(e,a,r)?function la(e,n,t){return e[n]=t}(e,a+1,o?i.call(o,r):i(r)):function Ch(e,n){const t=e[n];return t===Dt?void 0:t}(e,a+1)}function $t(e,n){const t=en();let i;const r=e+Wt;t.firstCreatePass?(i=function M$(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=gc(i.type)),s=fr(T);try{const c=Jp(!1),l=o();return Jp(c),function c9(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,pe(),r,l),l}finally{fr(s)}}function Ut(e,n,t){const i=e+Wt,r=pe(),o=Nl(r,i);return function Sh(e,n){return e[Ge].data[n].pure}(r,i)?KA(r,function Zi(){const e=gt.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}function N$(){return this._results[Symbol.iterator]()}class wd{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Xt)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=wd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=N$)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=function to(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function bV(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i0&&(t[r-1][Io]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=j$}return e})();const B$=ro,V$=class extends B${constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=function F$(e,n,t,i){const r=n.tView,s=Pm(e,r,t,4096&e[At]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);s[Vu]=e[n.index];const l=e[ia];return null!==l&&(s[ia]=l.createEmbeddedView(r)),D0(r,s,t),s}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:i});return new hh(r)}};function j$(){return Zm(Pi(),pe())}function Zm(e,n){return 4&e.type?new V$(n,e,rd(e,n)):null}let oo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=W$}return e})();function W$(){return aM(Pi(),pe())}const Y$=oo,rM=class extends Y${constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new Ji(this._hostTNode,this._hostLView)}get parentInjector(){const n=tm(this._hostTNode,this._hostLView);if(ub(n)){const t=qu(n,this._hostLView),i=Yu(n);return new Ji(t[Ge].data[i+8],t)}return new Ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=oM(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Oi}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(s,r,false),s}createComponent(n,t,i,r,o){const a=n&&!function Xu(e){return"function"==typeof e}(n);let s;if(a)s=t;else{const g=t||{};s=g.index,i=g.injector,r=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}const c=a?n:new fh(Jt(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const v=(a?l:this.parentInjector).get(Va,null);v&&(o=v)}Jt(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,s,false),f}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,i){const r=n._lView;if(function F8(e){return Xi(e[Hn])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const l=r[Hn],d=new rM(l,l[zi],l[Hn]);d.detach(d.indexOf(n))}}const a=this._adjustIndex(t),s=this._lContainer;return L$(s,r,a,!i),n.attachToViewContainerRef(),r2(ex(s),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=oM(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=fm(this._lContainer,t);i&&(im(ex(this._lContainer),t),Mb(i[Ge],i))}detach(n){const t=this._adjustIndex(n,-1),i=fm(this._lContainer,t);return i&&null!=im(ex(this._lContainer),t)?new hh(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function oM(e){return e[8]}function ex(e){return e[8]||(e[8]=[])}function aM(e,n){let t;const i=n[e.index];return Xi(i)?t=i:(t=Gk(i,n,null,e),n[e.index]=t,Nm(n,t)),sM(t,n,e,i),new rM(t,e,n)}let sM=function cM(e,n,t,i){if(e[ra])return;let r;r=8&t.type?Mn(i):function q$(e,n){const t=e[Et],i=t.createComment(""),r=gr(n,e);return yc(t,pm(t,r),i,function pj(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[ra]=r};class tx{constructor(n){this.queryList=n,this.matches=null}clone(){return new tx(this.queryList)}setDirty(){this.queryList.setDirty()}}class nx{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{const l=o[s+1],d=n[-c];for(let u=Oi;u{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=vt(EU,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(Um(o))t.push(o);else if(DT(o)){const a=new Promise((s,c)=>{o.subscribe({complete:s,error:c})});t.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ha=new Ce("LocaleId",{providedIn:"root",factory:()=>vt(ha,Zt.Optional|Zt.SkipSelf)||function SU(){return typeof $localize<"u"&&$localize.locale||xd}()});let TU=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const PM=new Ce(""),tg=new Ce("");let mx,fx=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mx||(function ZU(e){mx=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(N(rt),N(px),N(tg))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),px=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return mx?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ts=null;const NM=new Ce("AllowMultipleToken"),gx=new Ce("PlatformDestroyListeners"),FM=new Ce("appBootstrapListener");function VM(e,n,t=[]){const i=`Platform: ${n}`,r=new Ce(i);return(o=[])=>{let a=vx();if(!a||a.injector.get(NM,!1)){const s=[...t,...o,{provide:r,useValue:!0}];e?e(s):function eG(e){if(Ts&&!Ts.get(NM,!1))throw new q(400,!1);(function LM(){!function x8(e){mD=e}(()=>{throw new q(600,!1)})})(),Ts=e;const n=e.get(zM);(function BM(e){e.get(sk,null)?.forEach(t=>t())})(e)}(function jM(e=[],n){return ri.create({name:n,providers:[{provide:Wb,useValue:"platform"},{provide:gx,useValue:new Set([()=>Ts=null])},...e]})}(s,i))}return function nG(e){const n=vx();if(!n)throw new q(401,!1);return n}()}}function vx(){return Ts?.get(zM)??null}let zM=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function iG(e="zone.js",n){return"noop"===e?new Mz:"zone.js"===e?new rt(n):e}(i?.ngZone,function HM(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function c$(e,n,t){return new Z0(e,n,t)}(t.moduleType,this.injector,function YM(e){return[{provide:rt,useFactory:e},{provide:xm,multi:!0,useFactory:()=>{const n=vt(oG,{optional:!0});return()=>n.initialize()}},{provide:WM,useFactory:rG},{provide:wk,useFactory:Ek}]}(()=>r)),a=o.injector.get(ja,null);return r.runOutsideAngular(()=>{const s=r.onError.subscribe({next:c=>{a.handleError(c)}});o.onDestroy(()=>{ng(this._modules,o),s.unsubscribe()})}),function $M(e,n,t){try{const i=t();return Um(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(a,r,()=>{const s=o.injector.get(dx);return s.runInitializers(),s.donePromise.then(()=>(function vA(e){Qr(e,"Expected localeId to be defined"),"string"==typeof e&&(gA=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(ha,xd)||xd),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,i=[]){const r=UM({},i);return function QU(e,n,t){const i=new Q0(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Tc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new q(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(gx,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(N(ri))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function UM(e,n){return Array.isArray(n)?n.reduce(UM,e):{...e,...n}}let Tc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=vt(WM),this.zoneIsStable=vt(wk),this.componentTypes=[],this.components=[],this.isStable=vt(TU).hasPendingTasks.pipe(function kl(e,n){return G((t,i)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&i.complete();t.subscribe(ue(i,c=>{r?.unsubscribe();let l=0;const d=o++;ji(e(c,d)).subscribe(r=ue(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}(t=>t?vs(!1):this.zoneIsStable),Ao(),hc()),this._injector=vt(Va)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof uk;if(!this._injector.get(dx).done)throw!r&&function Fu(e){const n=Jt(e)||Ii(e)||Ki(e);return null!==n&&n.standalone}(t),new q(405,!1);let a;a=r?t:this._injector.get(id).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const s=function JU(e){return e.isBoundToModule}(a)?void 0:this._injector.get(kc),l=a.create(ri.NULL,[],i||a.selector,s),d=l.location.nativeElement,u=l.injector.get(PM,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ng(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ng(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(FM,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>ng(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new q(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ng(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const WM=new Ce("",{providedIn:"root",factory:()=>vt(ja).handleError.bind(void 0)});function rG(){const e=vt(rt),n=vt(ja);return t=>e.runOutsideAngular(()=>n.handleError(t))}let oG=(()=>{class e{constructor(){this.zone=vt(rt),this.applicationRef=vt(Tc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let No=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=sG}return e})();function sG(e){return function cG(e,n,t){if(mc(e)&&!t){const i=Ar(e.index,n);return new hh(i,i)}return 47&e.type?new hh(n[ii],n):null}(Pi(),pe(),16==(16&e))}class ZM{constructor(){}supports(n){return Vm(n)}create(n){return new pG(n)}}const fG=(e,n)=>n;class pG{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||fG}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const a=!i||t&&t.currentIndex{a=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,a)?(i&&(t=this._verifyReinsertion(t,s,a,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new mG(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new QM),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new QM),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mG{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gG{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class QM{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new gG,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function JM(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{class e{static#e=this.\u0275prov=Se({token:e,providedIn:"root",factory:tI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||tI()),deps:[[e,new bb,new yb]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new q(901,!1)}}return e})();const xG=VM(null,"core",[]);let wG=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(N(Tc))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),Cx=null;function As(){return Cx}class NG{}const qt=new Ce("DocumentToken");let uI=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return vt(FG)},providedIn:"platform"})}return e})(),FG=(()=>{class e extends uI{constructor(){super(),this._doc=vt(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return As().getBaseHref(this._doc)}onPopState(t){const i=As().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=As().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function hI(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function fI(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Mc(e){return e&&"?"!==e[0]?"?"+e:e}let Sx=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:function(){return vt(BG)},providedIn:"root"})}return e})();const LG=new Ce("appBaseHref");let BG=(()=>{class e extends Sx{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??vt(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return hI(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Mc(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+Mc(o));this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+Mc(o));this._platformLocation.replaceState(t,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(uI),N(LG,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dx=(()=>{class e{constructor(t){this._subject=new Xt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function zG(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(fI(pI(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Mc(i))}normalize(t){return e.stripTrailingSlash(function jG(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,pI(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Mc(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Mc(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=Mc;static#t=this.joinWithSlash=hI;static#n=this.stripTrailingSlash=fI;static#i=this.\u0275fac=function(i){return new(i||e)(N(Sx))};static#r=this.\u0275prov=Se({token:e,factory:function(){return function VG(){return new Dx(N(Sx))}()},providedIn:"root"})}return e})();function pI(e){return e.replace(/\/index.html$/,"")}var rr=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(rr||{}),Tn=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Tn||{}),Or=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Or||{}),ai=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(ai||{});function cg(e,n){return so(nr(e)[In.DateFormat],n)}function lg(e,n){return so(nr(e)[In.TimeFormat],n)}function dg(e,n){return so(nr(e)[In.DateTimeFormat],n)}function ao(e,n){const t=nr(e),i=t[In.NumberSymbols][n];if(typeof i>"u"){if(n===ai.CurrencyDecimal)return t[In.NumberSymbols][ai.Decimal];if(n===ai.CurrencyGroup)return t[In.NumberSymbols][ai.Group]}return i}function gI(e){if(!e[In.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[In.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function so(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Tx(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const tW=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ah={},nW=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ua=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Ua||{}),fn=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(fn||{}),pn=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(pn||{});function vI(e,n,t,i){let r=function uW(e){if(bI(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,o=1,a=1]=e.split("-").map(s=>+s);return ug(r,o-1,a)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let i;if(i=e.match(tW))return function hW(e){const n=new Date(0);let t=0,i=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const a=Number(e[4]||0)-t,s=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,a,s,c,l),n}(i)}const n=new Date(e);if(!bI(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=Ga(t,n)||n;let s,a=[];for(;n;){if(s=nW.exec(n),!s){a.push(n);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;n=d}}let c=r.getTimezoneOffset();i&&(c=yI(i,c),r=function dW(e,n,t){const i=t?-1:1,r=e.getTimezoneOffset();return function lW(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,i*(yI(n,r)-r))}(r,i,!0));let l="";return a.forEach(d=>{const u=function cW(e){if(Mx[e])return Mx[e];let n;switch(e){case"G":case"GG":case"GGG":n=On(pn.Eras,Tn.Abbreviated);break;case"GGGG":n=On(pn.Eras,Tn.Wide);break;case"GGGGG":n=On(pn.Eras,Tn.Narrow);break;case"y":n=ui(fn.FullYear,1,0,!1,!0);break;case"yy":n=ui(fn.FullYear,2,0,!0,!0);break;case"yyy":n=ui(fn.FullYear,3,0,!1,!0);break;case"yyyy":n=ui(fn.FullYear,4,0,!1,!0);break;case"Y":n=mg(1);break;case"YY":n=mg(2,!0);break;case"YYY":n=mg(3);break;case"YYYY":n=mg(4);break;case"M":case"L":n=ui(fn.Month,1,1);break;case"MM":case"LL":n=ui(fn.Month,2,1);break;case"MMM":n=On(pn.Months,Tn.Abbreviated);break;case"MMMM":n=On(pn.Months,Tn.Wide);break;case"MMMMM":n=On(pn.Months,Tn.Narrow);break;case"LLL":n=On(pn.Months,Tn.Abbreviated,rr.Standalone);break;case"LLLL":n=On(pn.Months,Tn.Wide,rr.Standalone);break;case"LLLLL":n=On(pn.Months,Tn.Narrow,rr.Standalone);break;case"w":n=Ax(1);break;case"ww":n=Ax(2);break;case"W":n=Ax(1,!0);break;case"d":n=ui(fn.Date,1);break;case"dd":n=ui(fn.Date,2);break;case"c":case"cc":n=ui(fn.Day,1);break;case"ccc":n=On(pn.Days,Tn.Abbreviated,rr.Standalone);break;case"cccc":n=On(pn.Days,Tn.Wide,rr.Standalone);break;case"ccccc":n=On(pn.Days,Tn.Narrow,rr.Standalone);break;case"cccccc":n=On(pn.Days,Tn.Short,rr.Standalone);break;case"E":case"EE":case"EEE":n=On(pn.Days,Tn.Abbreviated);break;case"EEEE":n=On(pn.Days,Tn.Wide);break;case"EEEEE":n=On(pn.Days,Tn.Narrow);break;case"EEEEEE":n=On(pn.Days,Tn.Short);break;case"a":case"aa":case"aaa":n=On(pn.DayPeriods,Tn.Abbreviated);break;case"aaaa":n=On(pn.DayPeriods,Tn.Wide);break;case"aaaaa":n=On(pn.DayPeriods,Tn.Narrow);break;case"b":case"bb":case"bbb":n=On(pn.DayPeriods,Tn.Abbreviated,rr.Standalone,!0);break;case"bbbb":n=On(pn.DayPeriods,Tn.Wide,rr.Standalone,!0);break;case"bbbbb":n=On(pn.DayPeriods,Tn.Narrow,rr.Standalone,!0);break;case"B":case"BB":case"BBB":n=On(pn.DayPeriods,Tn.Abbreviated,rr.Format,!0);break;case"BBBB":n=On(pn.DayPeriods,Tn.Wide,rr.Format,!0);break;case"BBBBB":n=On(pn.DayPeriods,Tn.Narrow,rr.Format,!0);break;case"h":n=ui(fn.Hours,1,-12);break;case"hh":n=ui(fn.Hours,2,-12);break;case"H":n=ui(fn.Hours,1);break;case"HH":n=ui(fn.Hours,2);break;case"m":n=ui(fn.Minutes,1);break;case"mm":n=ui(fn.Minutes,2);break;case"s":n=ui(fn.Seconds,1);break;case"ss":n=ui(fn.Seconds,2);break;case"S":n=ui(fn.FractionalSeconds,1);break;case"SS":n=ui(fn.FractionalSeconds,2);break;case"SSS":n=ui(fn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=fg(Ua.Short);break;case"ZZZZZ":n=fg(Ua.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=fg(Ua.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=fg(Ua.Long);break;default:return null}return Mx[e]=n,n}(d);l+=u?u(r,t,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ug(e,n,t){const i=new Date(0);return i.setFullYear(e,n,t),i.setHours(0,0,0),i}function Ga(e,n){const t=function $G(e){return nr(e)[In.LocaleId]}(e);if(Ah[t]=Ah[t]||{},Ah[t][n])return Ah[t][n];let i="";switch(n){case"shortDate":i=cg(e,Or.Short);break;case"mediumDate":i=cg(e,Or.Medium);break;case"longDate":i=cg(e,Or.Long);break;case"fullDate":i=cg(e,Or.Full);break;case"shortTime":i=lg(e,Or.Short);break;case"mediumTime":i=lg(e,Or.Medium);break;case"longTime":i=lg(e,Or.Long);break;case"fullTime":i=lg(e,Or.Full);break;case"short":const r=Ga(e,"shortTime"),o=Ga(e,"shortDate");i=hg(dg(e,Or.Short),[r,o]);break;case"medium":const a=Ga(e,"mediumTime"),s=Ga(e,"mediumDate");i=hg(dg(e,Or.Medium),[a,s]);break;case"long":const c=Ga(e,"longTime"),l=Ga(e,"longDate");i=hg(dg(e,Or.Long),[c,l]);break;case"full":const d=Ga(e,"fullTime"),u=Ga(e,"fullDate");i=hg(dg(e,Or.Full),[d,u])}return i&&(Ah[t][n]=i),i}function hg(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,i){return null!=n&&i in n?n[i]:t})),e}function Fo(e,n,t="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=t));let a=String(e);for(;a.length0||s>-t)&&(s+=t),e===fn.Hours)0===s&&-12===t&&(s=12);else if(e===fn.FractionalSeconds)return function iW(e,n){return Fo(e,3).substring(0,n)}(s,n);const c=ao(a,ai.MinusSign);return Fo(s,n,c,i,r)}}function On(e,n,t=rr.Format,i=!1){return function(r,o){return function oW(e,n,t,i,r,o){switch(t){case pn.Months:return function WG(e,n,t){const i=nr(e),o=so([i[In.MonthsFormat],i[In.MonthsStandalone]],n);return so(o,t)}(n,r,i)[e.getMonth()];case pn.Days:return function GG(e,n,t){const i=nr(e),o=so([i[In.DaysFormat],i[In.DaysStandalone]],n);return so(o,t)}(n,r,i)[e.getDay()];case pn.DayPeriods:const a=e.getHours(),s=e.getMinutes();if(o){const l=function XG(e){const n=nr(e);return gI(n),(n[In.ExtraData][2]||[]).map(i=>"string"==typeof i?Tx(i):[Tx(i[0]),Tx(i[1])])}(n),d=function ZG(e,n,t){const i=nr(e);gI(i);const o=so([i[In.ExtraData][0],i[In.ExtraData][1]],n)||[];return so(o,t)||[]}(n,r,i),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,g=a>=f.hours&&s>=f.minutes,v=a0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Ua.Short:return(r>=0?"+":"")+Fo(a,2,o)+Fo(Math.abs(r%60),2,o);case Ua.ShortGMT:return"GMT"+(r>=0?"+":"")+Fo(a,1,o);case Ua.Long:return"GMT"+(r>=0?"+":"")+Fo(a,2,o)+":"+Fo(Math.abs(r%60),2,o);case Ua.Extended:return 0===i?"Z":(r>=0?"+":"")+Fo(a,2,o)+":"+Fo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const aW=0,pg=4;function _I(e){return ug(e.getFullYear(),e.getMonth(),e.getDate()+(pg-e.getDay()))}function Ax(e,n=!1){return function(t,i){let r;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,a=t.getDate();r=1+Math.floor((a+o)/7)}else{const o=_I(t),a=function sW(e){const n=ug(e,aW,1).getDay();return ug(e,0,1+(n<=pg?pg:pg+7)-n)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Fo(r,e,ao(i,ai.MinusSign))}}function mg(e,n=!1){return function(t,i){return Fo(_I(t).getFullYear(),e,ao(i,ai.MinusSign),n)}}const Mx={};function yI(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function bI(e){return e instanceof Date&&!isNaN(e.valueOf())}class kW{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let kd=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new kW(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const s=i.get(o);i.move(s,a),DI(s,r)}});for(let r=0,o=i.length;r{DI(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro),T(og))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function DI(e,n){e.context.$implicit=n.item}let co=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new TW,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){kI("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){kI("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class TW{constructor(){this.$implicit=null,this.ngIf=null}}function kI(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Qn(n)}'.`)}class Lx{constructor(n,t){this._viewContainerRef=n,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let vg=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return e})(),TI=(()=>{class e{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new Lx(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo),T(ro),T(vg,9))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return e})(),Bx=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||e)(T(oo))};static#t=this.\u0275dir=Me({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Tr]})}return e})();class OW{createSubscription(n,t){return _D(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){_D(()=>n.unsubscribe())}}class RW{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const PW=new RW,NW=new OW;let fa=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Um(t))return PW;if(DT(t))return NW;throw function Lo(e,n){return new q(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(T(No,16))};static#t=this.\u0275pipe=pr({name:"async",type:e,pure:!1,standalone:!0})}return e})(),Wa=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const II="browser";function OI(e){return"server"===e}class kY extends NG{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $x extends kY{static makeCurrent(){!function PG(e){Cx||(Cx=e)}(new $x)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function TY(){return Oh=Oh||document.querySelector("base"),Oh?Oh.getAttribute("href"):null}();return null==t?null:function AY(e){bg=bg||document.createElement("a"),bg.setAttribute("href",e);const n=bg.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Oh=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function CW(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let bg,Oh=null,IY=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const Ux=new Ce("EventManagerPlugins");let LI=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new q(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ux),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class BI{constructor(n){this._doc=n}}const Gx="ng-app-id";let VI=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=OI(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Gx}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(Gx),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Gx,this.appId),a}}addStyleToHost(t,i){const r=this.getStyleElement(t,i);t.appendChild(r);const o=this.styleRef,a=o.get(i)?.elements;a?a.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Sm),N(Xb,8),N(xc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const Wx={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Yx=/%COMP%/g,NY=new Ce("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function zI(e,n){return n.map(t=>t.replace(Yx,e))}let qx=(()=>{class e{constructor(t,i,r,o,a,s,c,l=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=OI(s),this.defaultRenderer=new Kx(t,a,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Jr.ShadowDom&&(i={...i,encapsulation:Jr.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof $I?r.applyToHost(t):r instanceof Xx&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.doc,s=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case Jr.Emulated:o=new $I(c,l,i,this.appId,d,a,s,u);break;case Jr.ShadowDom:return new VY(c,l,t,i,a,s,this.nonce,u);default:o=new Xx(c,l,i,d,a,s,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(N(LI),N(VI),N(Sm),N(NY),N(qt),N(xc),N(rt),N(Xb))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class Kx{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Wx[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(HI(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(HI(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new q(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=Wx[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Wx[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Ss.DashCase|Ss.Important)?n.style.setProperty(t,i,r&Ss.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Ss.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=As().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function HI(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class VY extends Kx{constructor(n,t,i,r,o,a,s,c){super(n,o,a,c),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=zI(r.id,r.styles);for(const d of l){const u=document.createElement("style");s&&u.setAttribute("nonce",s),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Xx extends Kx{constructor(n,t,i,r,o,a,s,c){super(n,o,a,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?zI(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $I extends Xx{constructor(n,t,i,r,o,a,s,c){const l=r+"-"+i.id;super(n,t,i,o,a,s,c,l),this.contentAttr=function FY(e){return"_ngcontent-%COMP%".replace(Yx,e)}(l),this.hostAttr=function LY(e){return"_nghost-%COMP%".replace(Yx,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let jY=(()=>{class e extends BI{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const UI=["alt","control","meta","shift"],zY={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},HY={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $Y=(()=>{class e extends BI{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),a=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>As().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),UI.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(t,i){let r=zY[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UI.forEach(a=>{a!==r&&(0,HY[a])(t)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();const YY=VM(xG,"browser",[{provide:xc,useValue:II},{provide:sk,useValue:function UY(){$x.makeCurrent()},multi:!0},{provide:qt,useFactory:function WY(){return function wj(e){Lb=e}(document),document},deps:[]}]),qY=new Ce(""),YI=[{provide:tg,useClass:class MY{addToWindow(n){An.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new q(5103,!1);return o},An.getAllAngularTestabilities=()=>n.getAllTestabilities(),An.getAllAngularRootElements=()=>n.getAllRootElements(),An.frameworkStabilizers||(An.frameworkStabilizers=[]),An.frameworkStabilizers.push(i=>{const r=An.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&i(a)};r.forEach(c=>{c.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?As().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:PM,useClass:fx,deps:[rt,px,tg]},{provide:fx,useClass:fx,deps:[rt,px,tg]}],qI=[{provide:Wb,useValue:"root"},{provide:ja,useFactory:function GY(){return new ja},deps:[]},{provide:Ux,useClass:jY,multi:!0,deps:[qt,rt,xc]},{provide:Ux,useClass:$Y,multi:!0,deps:[qt]},qx,VI,LI,{provide:ch,useExisting:qx},{provide:class rY{},useClass:IY,deps:[]},[]];let KI=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Sm,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(N(qY,12))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[...qI,...YI],imports:[Wa,wG]})}return e})();typeof window<"u"&&window;const{isArray:tq}=Array,{getPrototypeOf:nq,prototype:iq,keys:rq}=Object;function JI(e){if(1===e.length){const n=e[0];if(tq(n))return{args:n,keys:null};if(function oq(e){return e&&"object"==typeof e&&nq(e)===iq}(n)){const t=rq(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:aq}=Array;function Qx(e){return ce(n=>function sq(e,n){return aq(n)?e(...n):e(n)}(e,n))}function eO(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let tO=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(wc),T(Ft))};static#t=this.\u0275dir=Me({type:e})}return e})(),Ic=(()=>{class e extends tO{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,features:[dt]})}return e})();const Rr=new Ce("NgValueAccessor"),lq={provide:Rr,useExisting:y(()=>Jx),multi:!0};let Jx=(()=>{class e extends Ic{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){1&i&&Le("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[Yt([lq]),dt]})}return e})();const dq={provide:Rr,useExisting:y(()=>Rh),multi:!0},hq=new Ce("CompositionEventMode");let Rh=(()=>{class e extends tO{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function uq(){const e=As()?As().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(wc),T(Ft),T(hq,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&Le("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Yt([dq]),dt]})}return e})();function Is(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function nO(e){return null!=e&&"number"==typeof e.length}const Ni=new Ce("NgValidators"),Os=new Ce("NgAsyncValidators"),fq=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class pq{static min(n){return function iO(e){return n=>{if(Is(n.value)||Is(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Is(n.value)||Is(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function oO(e){return Is(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function aO(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function sO(e){return Is(e.value)||fq.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function cO(e){return n=>Is(n.value)||!nO(n.value)?null:n.value.length{if(Is(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return gO(n)}static composeAsync(n){return vO(n)}}function lO(e){return n=>nO(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function xg(e){return null}function uO(e){return null!=e}function hO(e){return Um(e)?ki(e):e}function fO(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function pO(e,n){return n.map(t=>t(e))}function mO(e){return e.map(n=>function mq(e){return!e.validate}(n)?n:t=>n.validate(t))}function gO(e){if(!e)return null;const n=e.filter(uO);return 0==n.length?null:function(t){return fO(pO(t,n))}}function ew(e){return null!=e?gO(mO(e)):null}function vO(e){if(!e)return null;const n=e.filter(uO);return 0==n.length?null:function(t){return function cq(...e){const n=Pp(e),{args:t,keys:i}=JI(e),r=new pt(o=>{const{length:a}=t;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?eO(i,s):s),o.complete())}))}});return n?r.pipe(Qx(n)):r}(pO(t,n).map(hO)).pipe(ce(fO))}}function tw(e){return null!=e?vO(mO(e)):null}function _O(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function yO(e){return e._rawValidators}function bO(e){return e._rawAsyncValidators}function nw(e){return e?Array.isArray(e)?e:[e]:[]}function wg(e,n){return Array.isArray(e)?e.includes(n):e===n}function xO(e,n){const t=nw(n);return nw(e).forEach(r=>{wg(t,r)||t.push(r)}),t}function wO(e,n){return nw(n).filter(t=>!wg(e,t))}class EO{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=ew(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=tw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class or extends EO{get formDirective(){return null}get path(){return null}}class Ya extends EO{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let iw=(()=>{class e extends CO{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ya,2))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[dt]})}return e})(),Eg=(()=>{class e extends CO{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(or,10))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[dt]})}return e})();const Ph="VALID",Sg="INVALID",Td="PENDING",Nh="DISABLED";function aw(e){return(Dg(e)?e.validators:e)||null}function sw(e,n){return(Dg(n)?n.asyncValidators:e)||null}function Dg(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function DO(e,n,t){const i=e.controls;if(!(n?Object.keys(i):i).length)throw new q(1e3,"");if(!i[t])throw new q(1001,"")}function kO(e,n,t){e._forEachChild((i,r)=>{if(void 0===t[r])throw new q(1002,"")})}class kg{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ph}get invalid(){return this.status===Sg}get pending(){return this.status==Td}get disabled(){return this.status===Nh}get enabled(){return this.status!==Nh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(xO(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(xO(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(wO(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(wO(n,this._rawAsyncValidators))}hasValidator(n){return wg(this._rawValidators,n)}hasAsyncValidator(n){return wg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Td,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Nh,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ph,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ph||this.status===Td)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nh:Ph}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Td,this._hasOwnPendingAsyncValidator=!0;const t=hO(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Xt,this.statusChanges=new Xt}_calculateStatus(){return this._allControlsDisabled()?Nh:this.errors?Sg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Td)?Td:this._anyControlsHaveStatus(Sg)?Sg:Ph}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Dg(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function yq(e){return Array.isArray(e)?ew(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function bq(e){return Array.isArray(e)?tw(e):e||null}(this._rawAsyncValidators)}}class Fh extends kg{constructor(n,t,i){super(aw(t),sw(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){kO(this,0,n),Object.keys(n).forEach(i=>{DO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class TO extends Fh{}const Oc=new Ce("CallSetDisabledState",{providedIn:"root",factory:()=>Lh}),Lh="always";function Bh(e,n,t=Lh){cw(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function wq(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&AO(e,n)})}(e,n),function Cq(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function Eq(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&AO(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function xq(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Ag(e,n,t=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ig(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Mg(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function cw(e,n){const t=yO(e);null!==n.validator?e.setValidators(_O(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=bO(e);null!==n.asyncValidator?e.setAsyncValidators(_O(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Mg(n._rawValidators,r),Mg(n._rawAsyncValidators,r)}function Ig(e,n){let t=!1;if(null!==e){if(null!==n.validator){const r=yO(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.validator);o.length!==r.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const r=bO(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(t=!0,e.setAsyncValidators(o))}}}const i=()=>{};return Mg(n._rawValidators,i),Mg(n._rawAsyncValidators,i),t}function AO(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function MO(e,n){cw(e,n)}function IO(e,n){e._syncPendingControls(),n.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const Aq={provide:or,useExisting:y(()=>jh)},Vh=(()=>Promise.resolve())();let jh=(()=>{class e extends or{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Xt,this.form=new Fh({},ew(t),tw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Vh.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),Bh(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Vh.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Vh.then(()=>{const i=this._findContainer(t.path),r=new Fh({});MO(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Vh.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){Vh.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,IO(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ni,10),T(Os,10),T(Oc,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&Le("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([Aq]),dt]})}return e})();function OO(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function RO(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const zh=class extends kg{constructor(n=null,t,i){super(aw(t),sw(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dg(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=RO(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){OO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){OO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){RO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Og=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Rq={provide:Rr,useExisting:y(()=>hw),multi:!0};let hw=(()=>{class e extends Ic{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&Le("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Yt([Rq]),dt]})}return e})(),BO=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const fw=new Ce("NgModelWithFormControlWarning"),Bq={provide:or,useExisting:y(()=>Ad)};let Ad=(()=>{class e extends or{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Xt,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ig(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return Bh(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){Ag(t.control||null,t,!1),function Tq(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,IO(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(Ag(i||null,t),(e=>e instanceof zh)(r)&&(Bh(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);MO(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function Sq(e,n){return Ig(e,n)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){cw(this.form,this),this._oldForm&&Ig(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ni,10),T(Os,10),T(Oc,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&Le("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([Bq]),dt,Tr]})}return e})();const zq={provide:Ya,useExisting:y(()=>Rg)};let Rg=(()=>{class e extends Ya{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Xt,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function uw(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Rh?t=o:function kq(e){return Object.getPrototypeOf(e.constructor)===Ic}(o)?i=o:r=o}),r||i||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function dw(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Tg(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||e)(T(or,13),T(Ni,10),T(Os,10),T(Rr,10),T(fw,8))};static#n=this.\u0275dir=Me({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Yt([zq]),dt,Tr]})}return e})();let Rc=(()=>{class e{constructor(){this._validator=xg}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):xg,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,features:[Tr]})}return e})();const eK={provide:Ni,useExisting:y(()=>bw),multi:!0};let bw=(()=>{class e extends Rc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function GO(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>lO(t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&hn("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Yt([eK]),dt]})}return e})(),QO=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[BO]})}return e})();class JO extends kg{constructor(n,t,i){super(aw(t),sw(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){kO(this,0,n),n.forEach((i,r)=>{DO(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function eR(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let ww,nK=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,i=null){const r=this._reduceControls(t);let o={};return eR(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Fh(r,o)}record(t,i=null){const r=this._reduceControls(t);return new TO(r,i)}control(t,i,r){let o={};return this.useNonNullable?(eR(i)?o=i:(o.validators=i,o.asyncValidators=r),new zh(t,{...o,nonNullable:!0})):new zh(t,i,r)}array(t,i,r){const o=t.map(a=>this._createControl(a));return new JO(o,i,r)}_reduceControls(t){const i={};return Object.keys(t).forEach(r=>{i[r]=this._createControl(t[r])}),i}_createControl(t){return t instanceof zh||t instanceof kg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xw=(()=>{class e extends nK{group(t,i=null){return super.group(t,i)}control(t,i,r){return super.control(t,i,r)}array(t,i,r){return super.array(t,i,r)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),tR=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oc,useValue:t.callSetDisabledState??Lh}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[QO]})}return e})(),iK=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:fw,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Oc,useValue:t.callSetDisabledState??Lh}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[QO]})}return e})();try{ww=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ww=!1}let Md,Xn=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function nY(e){return e===II}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!ww)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||e)(N(xc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const nR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function iR(){if(Md)return Md;if("object"!=typeof document||!document)return Md=new Set(nR),Md;let e=document.createElement("input");return Md=new Set(nR.filter(n=>(e.setAttribute("type",n),e.type===n))),Md}let Hh,Pc,Ew;function $h(e){return function rK(){if(null==Hh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hh=!0}))}finally{Hh=Hh||!1}return Hh}()?e:!!e.capture}function oK(){if(null==Pc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pc=!1,Pc;if("scrollBehavior"in document.documentElement.style)Pc=!0;else{const e=Element.prototype.scrollTo;Pc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Pc}function Ng(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}function Rs(e){return e.composedPath?e.composedPath()[0]:e.target}function Cw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Uh(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class DK extends ee{constructor(n,t){super()}schedule(n,t=0){return this}}const Fg={setInterval(e,n,...t){const{delegate:i}=Fg;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Fg;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class Sw extends DK{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return Fg.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Fg.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Re(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const Dw={now:()=>(Dw.delegate||Date).now(),delegate:void 0};class Gh{constructor(n,t=Gh.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Gh.now=Dw.now;class kw extends Gh{constructor(n,t=Gh.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const Tw=new kw(Sw),kK=Tw;function Aw(e,n=Tw){return G((t,i)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,i.next(l)}};function c(){const l=a+e,d=n.now();if(d{o=l,a=n.now(),r||(r=n.schedule(c,e),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Pr(e,n){return G((t,i)=>{let r=0;t.subscribe(ue(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Ps(e){return e<=0?()=>Co:G((n,t)=>{let i=0;n.subscribe(ue(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function cR(e){return Pr((n,t)=>e<=t)}function Bo(e){return G((n,t)=>{ji(e).subscribe(ue(t,()=>t.complete(),Oe)),!t.closed&&n.subscribe(t)})}function rn(e){return null!=e&&"false"!=`${e}`}function pa(e,n=0){return function TK(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):n}function Lg(e){return Array.isArray(e)?e:[e]}function hi(e){return null==e?"":"string"==typeof e?e:`${e}px`}function qa(e){return e instanceof Ft?e.nativeElement:e}let lR=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),AK=(()=>{class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=qa(t);return new pt(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new Y,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}static#e=this.\u0275fac=function(i){return new(i||e)(N(lR))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dR=(()=>{class e{get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pa(t),this._subscribe()}constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new Xt,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Aw(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(T(AK),T(Ft),T(rt))};static#t=this.\u0275dir=Me({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return e})(),Mw=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[lR]})}return e})();function uR(...e){const n=ta(e),t=Pp(e),{args:i,keys:r}=JI(e);if(0===i.length)return ki([],n);const o=new pt(function MK(e,n,t=Ot){return i=>{hR(n,()=>{const{length:r}=e,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=ki(e[c],n);let d=!1;l.subscribe(ue(i,u=>{o[c]=u,d||(d=!0,s--),s||i.next(t(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>eO(r,a):Ot));return t?o.pipe(Qx(t)):o}function hR(e,n,t){e?Kr(t,e,n):n()}function Iw(...e){return function IK(){return ea(1)}()(ki(e,ta(e)))}function Wh(...e){const n=ta(e);return G((t,i)=>{(n?Iw(e,t,n):Iw(e,t)).subscribe(i)})}const fR=new Set;let Nc,OK=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):PK}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function RK(e,n){if(!fR.has(e))try{Nc||(Nc=document.createElement("style"),n&&(Nc.nonce=n),Nc.setAttribute("type","text/css"),document.head.appendChild(Nc)),Nc.sheet&&(Nc.sheet.insertRule(`@media ${e} {body{ }}`,0),fR.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(Xb,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PK(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let Ow=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return pR(Lg(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=uR(pR(Lg(t)).map(a=>this._registerQuery(a).observable));return o=Iw(o.pipe(Ps(1)),o.pipe(cR(1),Aw(0))),o.pipe(ce(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new pt(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Wh(i),ce(({matches:a})=>({query:t,matches:a})),Bo(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(i){return new(i||e)(N(OK),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pR(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}class BK{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=ee.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,n instanceof wd&&(this._itemChangesSubscription=n.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(function SK(e,n,t){const i=B(e)||n||t?{next:e,error:n,complete:t}:e;return i?G((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;r.subscribe(ue(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):Ot}(t=>this._pressedLetters.push(t)),Aw(n),Pr(()=>this._pressedLetters.length>0),ce(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const t=this._getItemsArray(),i="number"==typeof n?n:t.indexOf(n);this._activeItem=t[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+n*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,t){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=t])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof wd?this._items.toArray():this._items}}class vR extends BK{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Bg=(()=>{class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function jK(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function VK(e){try{return e.frameElement}catch{return null}}(function qK(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(i&&(-1===yR(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=yR(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function WK(e){let n=e.nodeName.toLowerCase(),t="input"===n&&e.type;return"text"===t||"password"===t||"select"===n||"textarea"===n}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function YK(e){return!function HK(e){return function UK(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function zK(e){let n=e.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(e)||function $K(e){return function GK(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||_R(e))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _R(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let n=e.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yR(e){if(!_R(e))return null;const n=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class KK{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,t,i,r,o=!1){this._element=n,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,t=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const t=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const i=this._getFirstTabbableElement(t);return i?.focus(n),!!i}return t.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const t=this._getRegionBoundary("start");return t&&t.focus(n),!!t}focusLastTabbableElement(n){const t=this._getRegionBoundary("end");return t&&t.focus(n),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const t=n.children;for(let i=0;i=0;i--){const r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,t){n?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Ps(1)).subscribe(n)}}let Rw=(()=>{class e{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new KK(t,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Bg),N(rt),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bR(e){return 0===e.buttons||0===e.detail}function xR(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const XK=new Ce("cdk-input-modality-detector-options"),ZK={ignoreKeys:[18,17,224,91,16]},Id=$h({passive:!0,capture:!0});let QK=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Qt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Rs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bR(a)?"keyboard":"mouse"),this._mostRecentTarget=Rs(a))},this._onTouchstart=a=>{xR(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rs(a))},this._options={...ZK,...o},this.modalityDetected=this._modality.pipe(cR(1)),this.modalityChanged=this.modalityDetected.pipe(Ao()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Id),r.addEventListener("mousedown",this._onMousedown,Id),r.addEventListener("touchstart",this._onTouchstart,Id)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Id),document.removeEventListener("mousedown",this._onMousedown,Id),document.removeEventListener("touchstart",this._onTouchstart,Id))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt),N(qt),N(XK,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const JK=new Ce("liveAnnouncerElement",{providedIn:"root",factory:function eX(){return null}}),tX=new Ce("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let nX=0,ER=(()=>{class e{constructor(t,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",i=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class e{constructor(t,i,r,o,a){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=s=>{for(let l=Rs(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,i=!1){const r=qa(t);if(!this._platform.isBrowser||1!==r.nodeType)return vs();const o=function sK(e){if(function aK(){if(null==Ew){const e=typeof document<"u"?document.head:null;Ew=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Ew}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new Y,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){const i=qa(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=qa(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Rs(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vg),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vg)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Bo(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vg),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vg),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let a=0;a{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=vt(Ow).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Pw,CR,SR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(Pw,CR):2===i&&t.add(Pw,SR)}}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rX=(()=>{class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||e)(N(DR))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Mw]})}return e})();const oX=new Ce("cdk-dir-doc",{providedIn:"root",factory:function aX(){return vt(qt)}}),sX=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Yh=(()=>{class e{constructor(t){this.value="ltr",this.change=new Xt,t&&(this.value=function cX(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?sX.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||e)(N(oX,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qh=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const dX=new Ce("mat-sanity-checks",{providedIn:"root",factory:function lX(){return!0}});let Cn=(()=>{class e{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Cw()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(i){return new(i||e)(N(DR),N(dX,8),N(qt))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[qh,qh]})}return e})();function AR(e){return class extends e{get disabled(){return this._disabled}set disabled(n){this._disabled=rn(n)}constructor(...n){super(...n),this._disabled=!1}}}function Nw(e,n){return class extends e{get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...t){super(...t),this.defaultColor=n,this.color=n}}}function Fw(e){return class extends e{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=rn(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function MR(e,n=0){return class extends e{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?pa(t):this.defaultTabIndex}constructor(...t){super(...t),this._tabIndex=n,this.defaultTabIndex=n}}}function uX(e){return class extends e{updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}let fX=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();class pX{constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const OR=$h({passive:!0,capture:!0});class mX{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=Rs(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,i,r){const o=this._events.get(t);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,OR)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,OR)))}}const RR={enterDuration:225,exitDuration:150},PR=$h({passive:!0,capture:!0}),NR=["mousedown","touchstart"],FR=["mouseup","mouseleave","touchend","touchcancel"];class Xh{static#e=this._eventManager=new mX;constructor(n,t,i,r){this._target=n,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qa(i))}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...RR,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const a=i.radius||function vX(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),s=n-r.left,c=t-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new pX(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",g.state=0,i.persistent||(this._mostRecentTransientRipple=g);let v=null;return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const k=()=>this._finishRippleTransition(g),E=()=>this._destroyRipple(g);d.addEventListener("transitionend",k),d.addEventListener("transitioncancel",E),v={onTransitionEnd:k,onTransitionCancel:E}}),this._activeRipples.set(g,v),(p||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,i={...RR,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=qa(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,NR.forEach(i=>{Xh._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{FR.forEach(t=>{this._triggerElement.addEventListener(t,this,PR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=bR(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(NR.forEach(t=>Xh._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&FR.forEach(t=>n.removeEventListener(t,this,PR)))}}const Zh=new Ce("mat-ripple-global-options");let jg=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Xh(this,i,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})(),zg=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})(),_X=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn]})}return e})();const LR={capture:!0},BR=["focus","click","mouseenter","touchstart"],Lw="mat-ripple-loader-uninitialized",Bw="mat-ripple-loader-class-name",VR="mat-ripple-loader-centered",Hg="mat-ripple-loader-disabled";let yX=(()=>{class e{constructor(){this._document=vt(qt,{optional:!0}),this._animationMode=vt($i,{optional:!0}),this._globalRippleOptions=vt(Zh,{optional:!0}),this._platform=vt(Xn),this._ngZone=vt(rt),this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;const r=t.target.closest(`[${Lw}]`);r&&this.createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const t of BR)this._document?.addEventListener(t,this._onInteraction,LR)})}ngOnDestroy(){for(const t of BR)this._document?.removeEventListener(t,this._onInteraction,LR)}configureRipple(t,i){t.setAttribute(Lw,""),(i.className||!t.hasAttribute(Bw))&&t.setAttribute(Bw,i.className||""),i.centered&&t.setAttribute(VR,""),i.disabled&&t.setAttribute(Hg,"")}getRipple(t){return t.matRipple?t.matRipple:this.createRipple(t)}setDisabled(t,i){const r=t.matRipple;r?r.disabled=i:i?t.setAttribute(Hg,""):t.removeAttribute(Hg)}createRipple(t){if(!this._document)return;t.querySelector(".mat-ripple")?.remove();const i=this._document.createElement("span");i.classList.add("mat-ripple",t.getAttribute(Bw)),t.append(i);const r=new jg(new Ft(i),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=t,r.centered=t.hasAttribute(VR),r.disabled=t.hasAttribute(Hg),this.attachRipple(t,r),r}attachRipple(t,i){t.removeAttribute(Lw),t.matRipple=i}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jR=new Ce("mat-checkbox-default-options",{providedIn:"root",factory:function zR(){return{color:"accent",clickAction:"check-indeterminate"}}});let $R=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),UR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,$R,Cn,$R]})}return e})();class GR{}class IX{}const Ka="*";function Qh(e,n){return{type:7,name:e,definitions:n,options:{}}}function Fc(e,n=null){return{type:4,styles:n,timings:e}}function YR(e,n=null){return{type:2,steps:e,options:n}}function ar(e){return{type:6,styles:e,offset:null}}function Xa(e,n,t){return{type:0,name:e,styles:n,options:t}}function Lc(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}class Jh{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class XR{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function ZR(e){return new q(3e3,!1)}function Ns(e){switch(e.length){case 0:return new Jh;case 1:return e[0];default:return new XR(e)}}function QR(e,n,t=new Map,i=new Map){const r=[],o=[];let a=-1,s=null;if(n.forEach(c=>{const l=c.get("offset"),d=l==a,u=d&&s||new Map;c.forEach((h,f)=>{let p=f,g=h;if("offset"!==f)switch(p=e.normalizePropertyName(p,r),g){case"!":g=t.get(f);break;case Ka:g=i.get(f);break;default:g=e.normalizeStyleValue(f,p,g,r)}u.set(p,g)}),d||o.push(u),s=u,a=l}),r.length)throw function eZ(e){return new q(3502,!1)}();return o}function jw(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&zw(t,"start",e)));break;case"done":e.onDone(()=>i(t&&zw(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&zw(t,"destroy",e)))}}function zw(e,n,t){const o=Hw(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),a=e._data;return null!=a&&(o._data=a),o}function Hw(e,n,t,i,r="",o=0,a){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Nr(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function JR(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const hZ=(()=>typeof document>"u"?null:document.documentElement)();function $w(e){const n=e.parentNode||e.host||null;return n===hZ?null:n}let Bc=null,eP=!1;function tP(e,n){for(;n;){if(n===e)return!0;n=$w(n)}return!1}function nP(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let iP=(()=>{class e{validateStyleProperty(t){return function pZ(e){Bc||(Bc=function mZ(){return typeof document<"u"?document.body:null}()||{},eP=!!Bc.style&&"WebkitAppearance"in Bc.style);let n=!0;return Bc.style&&!function fZ(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Bc.style,!n&&eP&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Bc.style)),n}(t)}matchesElement(t,i){return!1}containsElement(t,i){return tP(t,i)}getParentElement(t){return $w(t)}query(t,i,r){return nP(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,a,s=[],c){return new Jh(r,o)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),Uw=(()=>{class e{static#e=this.NOOP=new iP}return e})();const gZ=1e3,Gw="ng-enter",$g="ng-leave",Ug="ng-trigger",Gg=".ng-trigger",oP="ng-animating",Ww=".ng-animating";function Za(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Yw(parseFloat(n[1]),n[2])}function Yw(e,n){return"s"===n?e*gZ:e}function Wg(e,n,t){return e.hasOwnProperty("duration")?e:function _Z(e,n,t){let r,o=0,a="";if("string"==typeof e){const s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(ZR()),{duration:0,delay:0,easing:""};r=Yw(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=Yw(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=e;if(!t){let s=!1,c=n.length;r<0&&(n.push(function OX(){return new q(3100,!1)}()),s=!0),o<0&&(n.push(function RX(){return new q(3101,!1)}()),s=!0),s&&n.splice(c,0,ZR())}return{duration:r,delay:o,easing:a}}(e,n,t)}function ef(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function aP(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function Fs(e,n=new Map,t){if(t)for(let[i,r]of t)n.set(i,r);for(let[i,r]of e)n.set(i,r);return n}function ma(e,n,t){n.forEach((i,r)=>{const o=Kw(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function Vc(e,n){n.forEach((t,i)=>{const r=Kw(i);e.style[r]=""})}function tf(e){return Array.isArray(e)?1==e.length?e[0]:YR(e):e}const qw=new RegExp("{{\\s*(.+?)\\s*}}","g");function cP(e){let n=[];if("string"==typeof e){let t;for(;t=qw.exec(e);)n.push(t[1]);qw.lastIndex=0}return n}function nf(e,n,t){const i=e.toString(),r=i.replace(qw,(o,a)=>{let s=n[a];return null==s&&(t.push(function NX(e){return new q(3003,!1)}()),s=""),s.toString()});return r==i?e:r}function Yg(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const xZ=/-+([a-z0-9])/g;function Kw(e){return e.replace(xZ,(...n)=>n[1].toUpperCase())}function Fr(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function FX(e){return new q(3004,!1)}()}}const qg="*";function CZ(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function SZ(e,n,t){if(":"==e[0]){const c=function DZ(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function KX(e){return new q(3015,!1)}()),n;const r=i[1],o=i[2],a=i[3];n.push(dP(r,a));"<"==o[0]&&!(r==qg&&a==qg)&&n.push(dP(a,r))}(i,t,n)):t.push(e),t}const Kg=new Set(["true","1"]),Xg=new Set(["false","0"]);function dP(e,n){const t=Kg.has(e)||Xg.has(e),i=Kg.has(n)||Xg.has(n);return(r,o)=>{let a=e==qg||e==r,s=n==qg||n==o;return!a&&t&&"boolean"==typeof r&&(a=r?Kg.has(e):Xg.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?Kg.has(n):Xg.has(n)),a&&s}}const kZ=new RegExp("s*:selfs*,?","g");function Xw(e,n,t,i){return new TZ(e).build(n,t,i)}class TZ{constructor(n){this._driver=n}build(n,t,i){const r=new IZ(t);return this._resetContextStyleTimingState(r),Fr(this,tf(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],a=[];return"@"==n.name.charAt(0)&&t.errors.push(function BX(){return new q(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(t),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,t))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,t);i+=c.queryCount,r+=c.depCount,a.push(c)}else t.errors.push(function VX(){return new q(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{cP(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(Yg(o.values()),t.errors.push(function jX(e,n){return new q(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Fr(this,tf(n.animation),t);return{type:1,matchers:CZ(n.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:jc(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(i=>Fr(this,i,t)),options:jc(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(a=>{t.currentTime=i;const s=Fr(this,a,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:o,options:jc(n.options)}}visitAnimate(n,t){const i=function RZ(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Zw(Wg(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Zw(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Wg(t,n);return Zw(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:ar({});if(5==o.type)r=this.visitKeyframes(o,t);else{let a=n.styles,s=!1;if(!a){s=!0;const l={};i.easing&&(l.easing=i.easing),a=ar(l)}t.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,t);c.isEmptyStep=s,r=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)"string"==typeof s?s===Ka?i.push(s):t.errors.push(new q(3002,!1)):i.push(aP(s));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function HX(e,n,t,i,r){return new q(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),t.options&&function bZ(e,n,t){const i=n.params||{},r=cP(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function PX(e){return new q(3001,!1)}())})}(s,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function $X(){return new q(3011,!1)}()),i;let o=0;const a=[];let s=!1,c=!1,l=0;const d=n.steps.map(k=>{const E=this._makeStyleAst(k,t);let C=null!=E.offset?E.offset:function OZ(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(E.styles),x=0;return null!=C&&(o++,x=E.offset=C),c=c||x<0||x>1,s=s||x0&&o{const C=h>0?E==f?1:h*E:a[E],x=C*v;t.currentTime=p+g.delay+x,g.duration=x,this._validateStyleAst(k,t),k.offset=C,i.styles.push(k)}),i}visitReference(n,t){return{type:8,animation:Fr(this,tf(n.animation),t),options:jc(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:jc(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:jc(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,a]=function AZ(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(kZ,"")),e=e.replace(/@\*/g,Gg).replace(/@\w+/g,t=>Gg+"-"+t.slice(1)).replace(/:animating/g,Ww),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,Nr(t.collectedStyles,t.currentQuerySelector,new Map);const s=Fr(this,tf(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:jc(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function YX(){return new q(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Wg(n.timings,t.errors,!0);return{type:12,animation:Fr(this,tf(n.animation),t),timings:i,options:null}}}class IZ{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function jc(e){return e?(e=ef(e)).params&&(e.params=function MZ(e){return e?ef(e):null}(e.params)):e={},e}function Zw(e,n,t){return{duration:e,delay:n,easing:t}}function Qw(e,n,t,i,r,o,a=null,s=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class Zg{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const FZ=new RegExp(":enter","g"),BZ=new RegExp(":leave","g");function Jw(e,n,t,i,r,o=new Map,a=new Map,s,c,l=[]){return(new VZ).buildKeyframes(e,n,t,i,r,o,a,s,c,l)}class VZ{buildKeyframes(n,t,i,r,o,a,s,c,l,d=[]){l=l||new Zg;const u=new e1(n,t,l,r,o,d,[]);u.options=c;const h=c.delay?Za(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),Fr(this,i,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&s.size){let p;for(let g=f.length-1;g>=0;g--){const v=f[g];if(v.element===t){p=v;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([s],null,u.errors,c)}return f.length?f.map(p=>p.buildKeyframes()):[Qw(t,[],[],[],0,h,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&t.transformIntoNewTimeline(a)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const a="number"==typeof o?o:Za(nf(o,r?.params??{},t.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const a=null!=i.duration?Za(i.duration):null,s=null!=i.delay?Za(i.delay):null;return 0!==a&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Fr(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qg);const a=Za(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Fr(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Za(n.options.delay):0;n.steps.forEach(a=>{const s=t.createSubContext(n.options);o&&s.delayNextStep(o),Fr(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return Wg(t.params?nf(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,s=t.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Za(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Qg);let a=i;const s=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,l);o&&u.delayNextStep(o),l===t.element&&(c=u.currentTimeline),Fr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(t.currentQueryTotal-1);let c=a*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const d=t.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;Fr(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const Qg={};class e1{constructor(n,t,i,r,o,a,s,c){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Jg(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Za(i.duration)),null!=i.delay&&(r.delay=Za(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!t||!a.hasOwnProperty(s))&&(a[s]=nf(o[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new e1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qg,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new jZ(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=(n=n.replace(FZ,"."+this._enterClassName)).replace(BZ,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),s.push(...l)}return!o&&0==s.length&&a.push(function qX(e){return new q(3014,!1)}()),s}}class Jg{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Jg(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Ka),this._currentKeyframe.set(t,Ka);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},a=function zZ(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)t.set(o,Ka)}else Fs(r,t)}),t}(n,this._globalTimelineStyles);for(let[s,c]of a){const l=nf(c,o,i);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ka),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=Fs(s,new Map,this._backFill);l.forEach((d,u)=>{"!"===d?n.add(u):d===Ka&&t.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});const o=n.size?Yg(n.values()):[],a=t.size?Yg(t.values()):[];if(i){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return Qw(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class jZ extends Jg{constructor(n,t,i,r,o,a,s=!1){super(n,t,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],a=i+t,s=t/a,c=Fs(n[0]);c.set("offset",0),o.push(c);const l=Fs(n[0]);l.set("offset",fP(s)),o.push(l);const d=n.length-1;for(let u=1;u<=d;u++){let h=Fs(n[u]);const f=h.get("offset");h.set("offset",fP((t+f*i)/a)),o.push(h)}i=a,t=0,r="",n=o}return Qw(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function fP(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class t1{}const HZ=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $Z extends t1{normalizePropertyName(n,t){return Kw(n)}normalizeStyleValue(n,t,i,r){let o="";const a=i.toString().trim();if(HZ.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function LX(e,n){return new q(3005,!1)}())}return a+o}}function pP(e,n,t,i,r,o,a,s,c,l,d,u,h){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const n1={};class mP{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function UZ(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||n1,p=this.buildStyles(i,s&&s.params||n1,u),g=c&&c.params||n1,v=this.buildStyles(r,g,u),k=new Set,E=new Map,C=new Map,x="void"===r,D={params:GZ(g,h),delay:this.ast.options?.delay},P=d?[]:Jw(n,t,this.ast.animation,o,a,p,v,D,l,u);let V=0;if(P.forEach(Q=>{V=Math.max(Q.duration+Q.delay,V)}),u.length)return pP(t,this._triggerName,i,r,x,p,v,[],[],E,C,V,u);P.forEach(Q=>{const be=Q.element,He=Nr(E,be,new Set);Q.preStyleProps.forEach(we=>He.add(we));const de=Nr(C,be,new Set);Q.postStyleProps.forEach(we=>de.add(we)),be!==t&&k.add(be)});const F=Yg(k.values());return pP(t,this._triggerName,i,r,x,p,v,P,F,E,C,V)}}function GZ(e,n){const t=ef(n);for(const i in e)e.hasOwnProperty(i)&&null!=e[i]&&(t[i]=e[i]);return t}class WZ{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=ef(this.defaultParams);return Object.keys(n).forEach(o=>{const a=n[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=nf(a,r,t));const c=this.normalizer.normalizePropertyName(s,t);a=this.normalizer.normalizeStyleValue(s,c,a,t),i.set(s,a)})}),i}}class qZ{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new WZ(r.style,r.options&&r.options.params||{},i))}),gP(this.states,"true","1"),gP(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new mP(n,r,this.states))}),this.fallbackTransition=function KZ(e,n,t){return new mP(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(a=>a.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function gP(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const XZ=new Zg;class ZZ{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=Xw(this._driver,t,i,[]);if(i.length)throw function tZ(e){return new q(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=QR(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let a;const s=new Map;if(o?(a=Jw(this._driver,t,o,Gw,$g,new Map,new Map,i,XZ,r),a.forEach(d=>{const u=Nr(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function nZ(){return new q(3300,!1)}()),a=[]),r.length)throw function iZ(e){return new q(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Ka))})});const l=Ns(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function rZ(e){return new q(3301,!1)}();return t}listen(n,t,i,r){const o=Hw(t,"","","");return jw(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const vP="ng-animate-queued",r1="ng-animate-disabled",nQ=[],_P={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vo="__ng_removed";class o1{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function sQ(e){return e??null}(i?n.value:n),i){const o=ef(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const rf="void",a1=new o1(rf);class rQ{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,lo(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function oZ(e,n){return new q(3302,!1)}();if(null==i||0==i.length)throw function aZ(e){return new q(3303,!1)}();if(!function cQ(e){return"start"==e||"done"==e}(i))throw function sZ(e,n){return new q(3400,!1)}();const o=Nr(this._elementListeners,n,[]),a={name:t,phase:i,callback:r};o.push(a);const s=Nr(this._engine.statesByElement,n,new Map);return s.has(t)||(lo(n,Ug),lo(n,Ug+"-"+t),s.set(t,a1)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(t)||s.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function cZ(e){return new q(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),a=new s1(this.id,t,n);let s=this._engine.statesByElement.get(n);s||(lo(n,Ug),lo(n,Ug+"-"+t),this._engine.statesByElement.set(n,s=new Map));let c=s.get(t);const l=new o1(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(t,l),c||(c=a1),l.value!==rf&&c.value===l.value){if(!function uQ(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{Vc(n,v),ma(n,k)})}return}const h=Nr(this._engine.playersByElement,n,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,n,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:p}),p||(lo(n,vP),a.onStart(()=>{Rd(n,vP)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const v=this._engine.playersByElement.get(n);if(v){let k=v.indexOf(a);k>=0&&v.splice(k,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,Gg,!0);i.forEach(r=>{if(r[Vo])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(n,l,rf,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,a),i&&Ns(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=i.get(a)||a1,d=new o1(rf),u=new s1(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[Vo];(!o||o===_P)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){lo(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=Hw(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,jw(i.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class oQ{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new rQ(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(t);for(;s;){const c=r.get(s);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(ev(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!ev(t))return;const o=t[Vo];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),lo(n,r1)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Rd(n,r1))}removeNode(n,t,i){if(ev(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[Vo]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return ev(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Gg,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Ww,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ns(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[Vo];if(t&&t.setForRemoval){if(n[Vo]=_P,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(r1)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ns(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function lZ(e){return new q(3402,!1)}()}_flushAnimations(n,t){const i=new Zg,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(fe=>{d.add(fe);const ve=this.driver.query(fe,".ng-animate-queued",!0);for(let _=0;_{const _=Gw+g++;p.set(ve,_),fe.forEach(m=>lo(m,_))});const v=[],k=new Set,E=new Set;for(let fe=0;fek.add(m)):E.add(ve))}const C=new Map,x=xP(h,Array.from(k));x.forEach((fe,ve)=>{const _=$g+g++;C.set(ve,_),fe.forEach(m=>lo(m,_))}),n.push(()=>{f.forEach((fe,ve)=>{const _=p.get(ve);fe.forEach(m=>Rd(m,_))}),x.forEach((fe,ve)=>{const _=C.get(ve);fe.forEach(m=>Rd(m,_))}),v.forEach(fe=>{this.processLeaveNode(fe)})});const D=[],P=[];for(let fe=this._namespaceList.length-1;fe>=0;fe--)this._namespaceList[fe].drainQueuedTransitions(t).forEach(_=>{const m=_.player,S=_.element;if(D.push(m),this.collectedEnterElements.length){const bt=S[Vo];if(bt&&bt.setForMove){if(bt.previousTriggersValues&&bt.previousTriggersValues.has(_.triggerName)){const xn=bt.previousTriggersValues.get(_.triggerName),gn=this.statesByElement.get(_.element);if(gn&&gn.has(_.triggerName)){const Sn=gn.get(_.triggerName);Sn.value=xn,gn.set(_.triggerName,Sn)}}return void m.destroy()}}const A=!u||!this.driver.containsElement(u,S),z=C.get(S),L=p.get(S),$=this._buildInstruction(_,i,L,z,A);if($.errors&&$.errors.length)return void P.push($);if(A)return m.onStart(()=>Vc(S,$.fromStyles)),m.onDestroy(()=>ma(S,$.toStyles)),void r.push(m);if(_.isFallbackTransition)return m.onStart(()=>Vc(S,$.fromStyles)),m.onDestroy(()=>ma(S,$.toStyles)),void r.push(m);const Pe=[];$.timelines.forEach(bt=>{bt.stretchStartingKeyframe=!0,this.disabledNodes.has(bt.element)||Pe.push(bt)}),$.timelines=Pe,i.append(S,$.timelines),a.push({instruction:$,player:m,element:S}),$.queriedElements.forEach(bt=>Nr(s,bt,[]).push(m)),$.preStyleProps.forEach((bt,xn)=>{if(bt.size){let gn=c.get(xn);gn||c.set(xn,gn=new Set),bt.forEach((Sn,ur)=>gn.add(ur))}}),$.postStyleProps.forEach((bt,xn)=>{let gn=l.get(xn);gn||l.set(xn,gn=new Set),bt.forEach((Sn,ur)=>gn.add(ur))})});if(P.length){const fe=[];P.forEach(ve=>{fe.push(function dZ(e,n){return new q(3505,!1)}())}),D.forEach(ve=>ve.destroy()),this.reportError(fe)}const V=new Map,F=new Map;a.forEach(fe=>{const ve=fe.element;i.has(ve)&&(F.set(ve,ve),this._beforeAnimationBuild(fe.player.namespaceId,fe.instruction,V))}),r.forEach(fe=>{const ve=fe.element;this._getPreviousPlayers(ve,!1,fe.namespaceId,fe.triggerName,null).forEach(m=>{Nr(V,ve,[]).push(m),m.destroy()})});const Q=v.filter(fe=>EP(fe,c,l)),be=new Map;bP(be,this.driver,E,l,Ka).forEach(fe=>{EP(fe,c,l)&&Q.push(fe)});const de=new Map;f.forEach((fe,ve)=>{bP(de,this.driver,new Set(fe),c,"!")}),Q.forEach(fe=>{const ve=be.get(fe),_=de.get(fe);be.set(fe,new Map([...ve?.entries()??[],..._?.entries()??[]]))});const we=[],je=[],Ht={};a.forEach(fe=>{const{element:ve,player:_,instruction:m}=fe;if(i.has(ve)){if(d.has(ve))return _.onDestroy(()=>ma(ve,m.toStyles)),_.disabled=!0,_.overrideTotalTime(m.totalTime),void r.push(_);let S=Ht;if(F.size>1){let z=ve;const L=[];for(;z=z.parentNode;){const $=F.get(z);if($){S=$;break}L.push(z)}L.forEach($=>F.set($,S))}const A=this._buildAnimation(_.namespaceId,m,V,o,de,be);if(_.setRealPlayer(A),S===Ht)we.push(_);else{const z=this.playersByElement.get(S);z&&z.length&&(_.parentPlayer=Ns(z)),r.push(_)}}else Vc(ve,m.fromStyles),_.onDestroy(()=>ma(ve,m.toStyles)),je.push(_),d.has(ve)&&r.push(_)}),je.forEach(fe=>{const ve=o.get(fe.element);if(ve&&ve.length){const _=Ns(ve);fe.setRealPlayer(_)}}),r.forEach(fe=>{fe.parentPlayer?fe.syncPlayerEvents(fe.parentPlayer):fe.destroy()});for(let fe=0;fe!A.destroyed);S.length?lQ(this,ve,S):this.processLeaveNode(ve)}return v.length=0,we.forEach(fe=>{this.players.push(fe),fe.onDone(()=>{fe.destroy();const ve=this.players.indexOf(fe);this.players.splice(ve,1)}),fe.play()}),we}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let a=[];if(t){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!o||o==rf;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(n,t,i){const o=t.element,a=t.isRemovalTransition?void 0:n,s=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,d=l!==o,u=Nr(i,l,[]);this._getPreviousPlayers(l,d,a,s,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}Vc(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,a){const s=t.triggerName,c=t.element,l=[],d=new Set,u=new Set,h=t.timelines.map(p=>{const g=p.element;d.add(g);const v=g[Vo];if(v&&v.removedBeforeQueried)return new Jh(p.duration,p.delay);const k=g!==c,E=function dQ(e){const n=[];return wP(e,n),n}((i.get(g)||nQ).map(V=>V.getRealPlayer())).filter(V=>!!V.element&&V.element===g),C=o.get(g),x=a.get(g),D=QR(this._normalizer,p.keyframes,C,x),P=this._buildPlayer(p,D,E);if(p.subTimeline&&r&&u.add(g),k){const V=new s1(n,s,g);V.setRealPlayer(P),l.push(V)}return P});l.forEach(p=>{Nr(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function aQ(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>lo(p,oP));const f=Ns(h);return f.onDestroy(()=>{d.forEach(p=>Rd(p,oP)),ma(c,t.toStyles)}),u.forEach(p=>{Nr(r,p,[]).push(f)}),f}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Jh(n.duration,n.delay)}}class s1{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new Jh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>jw(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){Nr(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function ev(e){return e&&1===e.nodeType}function yP(e,n){const t=e.style.display;return e.style.display=n??"none",t}function bP(e,n,t,i,r){const o=[];t.forEach(c=>o.push(yP(c)));const a=[];i.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=n.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Vo]=iQ,a.push(l))}),e.set(l,d)});let s=0;return t.forEach(c=>yP(c,o[s++])),a}function xP(e,n){const t=new Map;if(e.forEach(s=>t.set(s,[])),0==n.length)return t;const r=new Set(n),o=new Map;function a(s){if(!s)return 1;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=t.has(l)?l:r.has(l)?1:a(l),o.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&t.get(c).push(s)}),t}function lo(e,n){e.classList?.add(n)}function Rd(e,n){e.classList?.remove(n)}function lQ(e,n,t){Ns(t).onDone(()=>e.processLeaveNode(n))}function wP(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class tv{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new oQ(n,t,i),this._timelineEngine=new ZZ(n,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const a=n+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],d=Xw(this._driver,o,c,[]);if(c.length)throw function JX(e,n){return new q(3404,!1)}();s=function YZ(e,n,t){return new qZ(e,n,t)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(t,r,s)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,a]=JR(i);this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[a,s]=JR(i);return this._timelineEngine.listen(a,t,s,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let gQ=(()=>{class e extends GR{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Jr.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?YR(t):t;return SP(this._renderer,null,i,"register",[r]),new vQ(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||e)(N(ch),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class vQ extends IX{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new _Q(this._id,n,t||{},this._renderer)}}class _Q{constructor(n,t,i,r){this.id=n,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return SP(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function SP(e,n,t,i,r){return e.setProperty(n,`@@${t}:${i}`,r)}const DP="@.disabled";let yQ=(()=>{class e{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(o);return d||(d=new kP("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,t,d.name,d)};return i.data.animation.forEach(c),new bQ(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&ti(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(i){return new(i||e)(N(ch),N(tv),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();class kP{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==DP?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class bQ extends kP{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==DP?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function xQ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function wQ(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,t,i)}}const AP=[{provide:Uw,useClass:iP},{provide:$i,useValue:"NoopAnimations"},...[{provide:GR,useClass:gQ},{provide:t1,useFactory:function CQ(){return new $Z}},{provide:tv,useClass:(()=>{class e extends tv{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Uw),N(t1),N(Tc))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})()},{provide:ch,useFactory:function SQ(e,n,t){return new yQ(e,n,t)},deps:[qx,tv,rt]}]];let kQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:AP,imports:[KI]})}return e})();const TQ=["addListener","removeListener"],AQ=["addEventListener","removeEventListener"],MQ=["on","off"];function iv(e,n,t,i){if(B(t)&&(i=t,t=void 0),i)return iv(e,n,t).pipe(Qx(i));const[r,o]=function RQ(e){return B(e.addEventListener)&&B(e.removeEventListener)}(e)?AQ.map(a=>s=>e[a](n,s,t)):function IQ(e){return B(e.addListener)&&B(e.removeListener)}(e)?TQ.map(MP(e,n)):function OQ(e){return B(e.on)&&B(e.off)}(e)?MQ.map(MP(e,n)):[];if(!r&&Jo(e))return dc(a=>iv(a,n,t))(ji(e));if(!r)throw new TypeError("Invalid event target");return new pt(a=>{const s=(...c)=>a.next(1o(s)})}function MP(e,n){return t=>i=>e[t](n,i)}const af={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=af;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new ee(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=af;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=af;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class NQ extends kw{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class PQ extends Sw{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=af.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(af.cancelAnimationFrame(t),n._scheduled=void 0)}});let l1,LQ=1;const rv={};function IP(e){return e in rv&&(delete rv[e],!0)}const BQ={setImmediate(e){const n=LQ++;return rv[n]=!0,l1||(l1=Promise.resolve()),l1.then(()=>IP(n)&&e()),n},clearImmediate(e){IP(e)}},{setImmediate:VQ,clearImmediate:jQ}=BQ,ov={setImmediate(...e){const{delegate:n}=ov;return(n?.setImmediate||VQ)(...e)},clearImmediate(e){const{delegate:n}=ov;return(n?.clearImmediate||jQ)(e)},delegate:void 0};new class HQ extends kw{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class zQ extends Sw{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=ov.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(ov.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function d1(e,n=Tw){return function UQ(e){return G((n,t)=>{let i=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const l=r;r=null,t.next(l)}a&&t.complete()},c=()=>{o=null,a&&t.complete()};n.subscribe(ue(t,l=>{i=!0,r=l,o||ji(e(l)).subscribe(o=ue(t,s,c))},()=>{a=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>function WQ(e=0,n,t=kK){let i=-1;return null!=n&&(Sl(n)?t=n:i=n),new pt(r=>{let o=function GQ(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let a=0;return t.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(e,n))}let qQ=(()=>{class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new pt(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(d1(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):vs()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Pr(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=qa(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>iv(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||e)(N(rt),N(Xn),N(qt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OP=(()=>{class e{constructor(t,i,r){this._platform=t,this._change=new Y,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(d1(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt),N(qt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})(),PP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[qh,RP,qh,RP]})}return e})();class u1{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class sf extends u1{constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class av extends u1{constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class XQ extends u1{constructor(n){super(),this.element=n instanceof Ft?n.nativeElement:n}}class sv{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof sf?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof av?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof XQ?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ZQ extends sv{constructor(n,t,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ri.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Pd=(()=>{class e extends sv{constructor(t,i,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Xt,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);const i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=i.createComponent(o,i.length,t.injector||i.injector,t.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static#e=this.\u0275fac=function(i){return new(i||e)(T(id),T(oo),T(qt))};static#t=this.\u0275dir=Me({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[dt]})}return e})(),Nd=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const NP=oK();class QQ{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=hi(-this._previousScrollPosition.left),n.style.top=hi(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),NP&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),NP&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class JQ{constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Pr(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class FP{enable(){}disable(){}attach(){}}function h1(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function LP(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class eJ{constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();h1(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let tJ=(()=>{class e{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new FP,this.close=a=>new JQ(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new QQ(this._viewportRuler,this._document),this.reposition=a=>new eJ(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static#e=this.\u0275fac=function(i){return new(i||e)(N(qQ),N(OP),N(rt),N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class f1{constructor(n){if(this.scrollStrategy=new FP,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class nJ{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let BP=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),iJ=(()=>{class e extends BP{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(rt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rJ=(()=>{class e extends BP{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Rs(o)},this._clickListener=o=>{const a=Rs(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(a)||d.overlayElement.contains(s))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||e)(N(qt),N(Xn),N(rt,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cv=(()=>{class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Cw()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ps(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=hi(this._config.width),n.height=hi(this._config.height),n.minWidth=hi(this._config.minWidth),n.minHeight=hi(this._config.minHeight),n.maxWidth=hi(this._config.maxWidth),n.maxHeight=hi(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,i){const r=Lg(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Bo(To(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const VP="cdk-overlay-connected-position-bounding-box",oJ=/([A-Za-z%]+)$/;class aJ{get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Y,this._resizeSubscription=ee.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(VP),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,r,s),l=this._getOverlayPoint(c,t,s),d=this._getOverlayFit(l,t,i,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,i)?o.push({position:s,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&zc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(VP),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r="start"==i.originX?a:s}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=zP(t);let{x:a,y:s}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-i.height,p=this._subtractOverflows(o.width,0-a,a+o.width-i.width),g=this._subtractOverflows(o.height,h,f),v=p*g;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,a=jP(this._overlayRef.getConfig().minHeight),s=jP(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=r)&&(n.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=zP(t),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-n.x+this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=hi(i.height),r.top=hi(i.top),r.bottom=hi(i.bottom),r.width=hi(i.width),r.left=hi(i.left),r.right=hi(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=hi(o)),a&&(r.maxWidth=hi(a))}this._lastBoundingBoxSize=i,zc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){zc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){zc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();zc(i,this._getExactOverlayY(t,n,d)),zc(i,this._getExactOverlayX(t,n,d))}else i.position="static";let s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=hi(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=hi(a.maxWidth):o&&(i.maxWidth="")),zc(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=hi(o.y),r}_getExactOverlayX(n,t,i){let a,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=hi(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:LP(n,i),isOriginOutsideView:h1(n,i),isOverlayClipped:LP(t,i),isOverlayOutsideView:h1(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Lg(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ft)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function zc(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function jP(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(oJ);return t&&"px"!==t?null:parseFloat(n)}return e||null}function zP(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const HP="cdk-global-overlay-wrapper";class sJ{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(HP),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",g="";c?g="flex-start":"center"===d?(g="center",h?p=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",p=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=c?"0":f,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":p,t.justifyContent=g,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(HP),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let cJ=(()=>{class e{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new sJ}flexibleConnectedTo(t){return new aJ(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||e)(N(OP),N(qt),N(Xn),N(cv))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lJ=0,Ls=(()=>{class e{constructor(t,i,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new f1(t);return a.direction=a.direction||this._directionality.value,new cf(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+lJ++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Tc)),new ZQ(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||e)(N(tJ),N(cv),N(id),N(cJ),N(iJ),N(ri),N(rt),N(qt),N(Yh),N(Dx),N(rJ),N($i,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const hJ={provide:new Ce("cdk-connected-overlay-scroll-strategy"),deps:[Ls],useFactory:function uJ(e){return()=>e.scrollStrategies.reposition()}};let p1=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[Ls,hJ],imports:[qh,Nd,PP,PP]})}return e})();function $P(e){return new pt(n=>{ji(e()).subscribe(n)})}function fJ(e,n){}class lv{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let UP=(()=>{class e extends sv{constructor(t,i,r,o,a,s,c,l){super(),this._elementRef=t,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(i)}_focusByCssSelector(t,i){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,i)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let i=null;if("string"==typeof t?i=this._document.querySelector(t):"boolean"==typeof t?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Ng(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,i=Ng();return t===i||t.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ng())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(lv),T(Bg),T(rt),T(cf),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&wi(Pd,7),2&i){let o;Vt(o=jt())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&hn("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[dt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&et(0,fJ,0,0,"ng-template",0)},dependencies:[Pd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return e})();class m1{constructor(n,t){this.overlayRef=n,this.config=t,this.closed=new Y,this.disableClose=t.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Uh(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==t.closeOnOverlayDetachments&&this.close()})}close(n,t){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",t=""){return this.overlayRef.updateSize({width:n,height:t}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const GP=new Ce("DialogScrollStrategy"),pJ=new Ce("DialogData"),mJ=new Ce("DefaultDialogConfig"),vJ={provide:GP,deps:[Ls],useFactory:function gJ(e){return()=>e.scrollStrategies.block()}};let _J=0,WP=(()=>{class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,i,r,o,a,s){this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=$P(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wh(void 0))),this._scrollStrategy=s}open(t,i){(i={...this._defaultOptions||new lv,...i}).id=i.id||"cdk-dialog-"+_J++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),a=this._overlay.create(o),s=new m1(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(t,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){g1(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){g1(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),g1(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const i=new f1({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:lv,useValue:r},{provide:m1,useValue:i},{provide:cf,useValue:t}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=UP;const c=new sf(s,r.viewContainerRef,ri.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return t.attach(c).instance}_attachDialogContent(t,i,r,o){if(t instanceof ro){const a=this._createInjector(o,i,r,void 0);let s={$implicit:o.data,dialogRef:i};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new av(t,null,s,a))}else{const a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new sf(t,o.viewContainerRef,a,o.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(t,i,r,o){const a=t.injector||t.viewContainerRef?.injector,s=[{provide:pJ,useValue:t.data},{provide:m1,useValue:i}];return t.providers&&("function"==typeof t.providers?s.push(...t.providers(i,t,r)):s.push(...t.providers)),t.direction&&(!a||!a.get(Yh,null,{optional:!0}))&&s.push({provide:Yh,useValue:{value:t.direction,change:vs()}}),ri.create({parent:a||o,providers:s})}_removeOpenDialog(t,i){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const i=t.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ri),N(mJ,8),N(e,12),N(cv),N(GP))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})();function g1(e,n){let t=e.length;for(;t--;)n(e[t])}let yJ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[WP,vJ],imports:[p1,Nd,rX,Nd]})}return e})();function bJ(e,n){}class uo{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const v1="mdc-dialog--open",YP="mdc-dialog--opening",qP="mdc-dialog--closing";let EJ=(()=>{class e extends UP{constructor(t,i,r,o,a,s,c,l){super(t,i,r,o,a,s,c,l),this._animationStateChanged=new Xt}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(uo),T(Bg),T(rt),T(cf),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["ng-component"]],features:[dt],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})();const KP="--mat-dialog-transition-duration";function XP(e){return null==e?null:"number"==typeof e?e:e.endsWith("ms")?pa(e.substring(0,e.length-2)):e.endsWith("s")?1e3*pa(e.substring(0,e.length-1)):"0"===e?0:null}let CJ=(()=>{class e extends EJ{constructor(t,i,r,o,a,s,c,l,d){super(t,i,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?XP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?XP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(YP,v1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(v1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(v1),this._animationsEnabled?(this._hostElement.style.setProperty(KP,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(qP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(YP,qP)}_waitForAnimationToComplete(t,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(t):t()})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Rw),T(qt,8),T(uo),T(Bg),T(rt),T(cf),T($i,8),T(Od))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,r){2&i&&(yd("id",r._config.id),hn("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Ct("_mat-animation-noopable",!r._animationsEnabled))},features:[dt],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1),et(2,bJ,0,0,"ng-template",2),W()())},dependencies:[Pd],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return e})();class Fd{constructor(n,t,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Y,this._beforeClosed=new Y,this._state=0,this.disableClose=t.disableClose,this.id=n.id,i._animationStateChanged.pipe(Pr(r=>"opened"===r.state),Ps(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Pr(r=>"closed"===r.state),Ps(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),To(this.backdropClick(),this.keydownEvents().pipe(Pr(r=>27===r.keyCode&&!this.disableClose&&!Uh(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function SJ(e,n,t){e._closeInteractionType=n,e.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Pr(t=>"closing"===t.state),Ps(1)).subscribe(t=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let t=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?t.left(n.left):t.right(n.right):t.centerHorizontally(),n&&(n.top||n.bottom)?n.top?t.top(n.top):t.bottom(n.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",t=""){return this._ref.updateSize(n,t),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const dv=new Ce("MatMdcDialogData"),DJ=new Ce("mat-mdc-dialog-default-options"),ZP=new Ce("mat-mdc-dialog-scroll-strategy"),TJ={provide:ZP,deps:[Ls],useFactory:function kJ(e){return()=>e.scrollStrategies.block()}};let AJ=0,MJ=(()=>{class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,i,r,o,a,s,c,l,d,u){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._idPrefix="mat-dialog-",this.dialogConfigClass=uo,this.afterAllClosed=$P(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wh(void 0))),this._scrollStrategy=s,this._dialog=i.get(WP)}open(t,i){let r;(i={...this._defaultOptions||new uo,...i}).id=i.id||`${this._idPrefix}${AJ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:lv,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}static#e=this.\u0275fac=function(i){Rm()};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),QP=(()=>{class e extends MJ{constructor(t,i,r,o,a,s,c,l){super(t,i,o,s,c,a,Fd,CJ,dv,l),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ri),N(Dx,8),N(DJ,8),N(ZP),N(e,12),N(cv),N($i,8))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),Ld=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return e})(),lf=(()=>{class e{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-mdc-dialog-actions-align-center","center"===r.align)("mat-mdc-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"}})}return e})(),JP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[QP,TJ],imports:[yJ,p1,Nd,Cn,Cn]})}return e})();class uv{constructor(n,t,i,r=!1,o){this.title=n,this.infoText=t,this.isInfo=i,this.isLink=r,this.linkText=o}}function IJ(e,n){if(1&e&&(j(0,"span",5),Fe(1),W()),2&e){const t=st();ye(1),$a("",t.infoText," ")}}function OJ(e,n){if(1&e&&(j(0,"a",6),Fe(1),W()),2&e){const t=st();Cc("href",t.linkText,bm),ye(1),io(t.linkText)}}function RJ(e,n){if(1&e){const t=tr();j(0,"mat-dialog-actions")(1,"button",7),Le("click",function(){return yn(t),bn(st().close())}),Fe(2,"Close"),W()()}}let hv=(()=>{class e{constructor(t,i){this.dialogRef=t,this.title=i.title,this.infoText=i.infoText,this.showConfirmButton=!i.isInfo,this.hasLink=i.isLink,this.linkText=i.linkText||""}ngAfterViewInit(){const t=document.getElementsByClassName("readOnlyText")[0];t.style.height=t.scrollHeight+"px"}close(){this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-info-dialog"]],decls:6,vars:4,consts:[[1,"content"],["id","info-dialog-title"],["class","readOnlyText",4,"ngIf"],[3,"href",4,"ngIf"],[4,"ngIf"],[1,"readOnlyText"],[3,"href"],[1,"mat-raised-button",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content",0)(1,"h2",1),Fe(2),W(),et(3,IJ,2,1,"span",2),et(4,OJ,2,2,"a",3),W(),et(5,RJ,3,0,"mat-dialog-actions",4)),2&i&&(ye(2),io(r.title),ye(1),Ae("ngIf",""!=r.infoText),ye(1),Ae("ngIf",r.hasLink),ye(1),Ae("ngIf",r.showConfirmButton))},dependencies:[co,Ld,lf],styles:[".readOnlyText[_ngcontent-%COMP%]{display:block;border:none;resize:none;width:100%;overflow:hidden;white-space:pre-wrap}.content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:30vw;overflow:hidden}"]})}return e})();const fv_version="74fe1990fe1b2d0daa2a8a4f2ef185e9f6980f14";let _1=(()=>{class e{constructor(){this.showSettings=new Qt(!1),this.showSettings$=this.showSettings.asObservable()}close(){this.showSettings.next(!1)}open(){this.showSettings.next(!0)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),df=(()=>{class e{constructor(t){this.matDialog=t}openDialog(t,i){this.matDialog.open(t,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(QP))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pv="< title >",mv="< description >",Bd="[icons: default]",tN="domainConfigurationTag",Lr=2e3,y1="snackbar_success",nN="snackbar_error",Bs="snackbar_info";let b1=(()=>{class e{constructor(){}setCommandStack(t){this.commandStack=t}execute(t,i){this.commandStack.execute(t,i)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Br=(()=>{class e{constructor(t){this.commandStackService=t,this.titleSubject=new Qt(pv),this.descriptionSubject=new Qt(mv),this.domainNameSubject=new Qt(Bd),this.showDescriptionSubject=new Qt(!0),this.title$=this.titleSubject.asObservable(),this.description$=this.descriptionSubject.asObservable(),this.showDescription$=this.showDescriptionSubject.asObservable(),this.domainName$=this.domainNameSubject.asObservable()}updateTitleAndDescription(t,i,r){r?this.fireTitleAndDescriptionUpdate(t,i):(this.updateTitle(t),this.updateDescription(i))}reset(){this.updateTitleAndDescription(pv,mv,!1)}updateTitle(t){this.titleSubject.next(t??this.titleSubject.value),document.title=t??this.titleSubject.value+" - egon.io"}updateDescription(t){this.descriptionSubject.next(t??this.descriptionSubject.value)}setShowDescription(t){this.showDescriptionSubject.next(t)}setDomainName(t){this.domainNameSubject.next(t)}getTitle(){return this.titleSubject.value}getDescription(){return this.descriptionSubject.value}getDomainName(){return this.domainNameSubject.value}getVersion(){return fv_version}fireTitleAndDescriptionUpdate(t,i){this.commandStackService.execute("story.updateHeadlineAndDescription",{newTitle:t,newDescription:i})}static#e=this.\u0275fac=function(i){return new(i||e)(N(b1))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uf(e){const n={"/":"","\\":"",":":"","*":"","?":"",'"':"","<":"",">":"","|":""};return e?e.replace(/[/\\:*?"<>|]/gi,i=>n[i]):""}function Vd(e){const n={"/":"","\\":"",":":"","*":"","?":"",'"':"","<":"",">":"","|":"","(":"",")":""," ":"-",".":"_"};return e?e.replace(/[/\\:*?"<>|() .]/gi,i=>n[i]):""}function iN(e,n){let t;const a=".dst",s=".svg";let c=e.replace(n?/_\d+-\d+-\d+( ?_?-?\(\d+\))?(-?\d)?(.dst|.egn).svg/:/_\d+-\d+-\d+( ?_?-?\(\d+\))?(-?\d)?(.dst|.egn)/,"");return c.includes(n?s:a)&&(c=c.replace(s,"").replace(a,"").replace(".egn","")),t=c,t}class BJ{constructor(n,t){this.domain=n,this.dst=t}}JSON.parse('{"name":"","actors":{"Person":"","Group":"","System":""},"workObjects":{"Document":"","Folder":"","Call":"","Email":"","Conversation":"","Info":""}}');class tn{constructor(){this.entries=[]}get length(){return this.entries.length}all(){return this.entries}size(){return this.entries.length}isEmpty(){return this.entries.length<=0}has(n){return this.entries.some(t=>t.key===n)}set(n,t){this.has(n)||this.entries.push(new rN(t,n))}add(n,t){this.set(t,n)}putEntry(n){this.has(n.key)||this.entries.push(new rN(n.value,n.key))}keysArray(){return this.entries.map(n=>n.key)}addEach(n){Object.keys(n).forEach(t=>{this.set(t,n[t])})}appendDict(n){n.entries.forEach(t=>this.putEntry(t))}clear(){this.entries=[]}delete(n){this.entries=this.entries.filter(t=>t.key!==n)}get(n){const t=this.entries.filter(i=>i.key===n);return t[0]?t[0].value:null}sort(n){this.entries.sort(n)}sortByName(){this.entries.sort((n,t)=>n.key.includes("_custom")==t.key.includes("_custom")?n.key',Group:'',Pet:'',Conversation:'',World:'',Store:'',Theater:'',Business:'',Water:'',Hotel:'',Dining:'',"Gas-station":'',"Meeting-room":'',Courthouse:'',Flag:'',Place:'',Car:'',Bus:'',Train:'',Truck:'',Taxi:'',Bike:'',Boat:'',Motorcycle:'',Plane:'',"Flight-takeoff":'',"Flight-landing":'',Shuttle:'',Walking:'',Traffic:'',Commute:'',System:'',Printer:'',Document:'',Folder:'',Call:'',Email:'',Copyright:'',DNS:'',Settings:'',Cellphone:'',Update:'',Briefcase:'',Microphone:'',Signal:'',Key:'',Pencil:'',Sum:'',Headset:'',Keyboard:'',Mouse:'',Router:'',Scanner:'',Security:'',Desktop:'',"Speaker-phone":'',Tablet:'',Label:'',Receipt:'',Calendar:'',Cloud:'',Assessment:'',Dashboard:'',"Pie-chart":'',Problem:'',"Picture-as-PDF":'',Grid:'',Watch:'',Euro:'',Dollar:'',Info:'',Alarm:'',Wrench:'',"Circle-Arrows":'',"Credit-Card":'',Favorite:'',Gavel:'',Blind:'',Hourglass:'',Time:'',Search:'',Shopping:'',"Thumb-up":'',"Thumb-down":'',"Thumb-up-down":'',Couch:'',Attach:'',Ruler:'',Education:'',"How-To-Reg":'',"View-List":''};function oN(e){Hc=e}class jJ{constructor(n,t){this.actors=n,this.workObjects=t}}class zJ{constructor(n){this.domainName=Bd,this.allIconDictionary=n}getDefaultConf(){return hf}updateAllIconRegistry(n){this.allIconDictionary=n}appendSRCFile(n,t,i,r){const o={};n.forEach(s=>{this.allIconDictionary.has(s)||(o[s]=t.get(s))}),i.forEach(s=>{this.allIconDictionary.has(s)||(o[s]=r.get(s))});const a=new tn;Object.keys(o).forEach(s=>{a.set(s,o[s])}),oN(a)}createCustomConf(n){this.domainName=n.name;let t=n.actors,i=n.workObjects;return this.appendSRCFile(t.keysArray(),t,i.keysArray(),i),new jJ(t.keysArray(),i.keysArray())}}const hf={actors:["Person","Group","System"],workObjects:["Document","Folder","Call","Email","Conversation","Info"]};function Vs(e){return e.includes(Z.ACTOR)?e.replace(Z.ACTOR,""):e.includes(Z.WORKOBJECT)?e.replace(Z.WORKOBJECT,""):""}const vv="icon-domain-story-";let Qa=(()=>{class e{constructor(){this.actorIconDictionary=new tn,this.workObjectDictionary=new tn,this.allIconDictionary=new tn,this.iconDictionaryForBPMN=new tn,this.allIconDictionary.addEach(gv),this.iconConfig=new zJ(this.allIconDictionary)}initTypeDictionaries(t,i){(!t||0==t.length)&&(t=hf.actors),(!i||0==i.length)&&(i=hf.workObjects);const r=new tn;r.addEach(gv),r.appendDict(this.getAppendedIconDictionary()),this.initDictionary(t,r,this.actorIconDictionary,Z.ACTOR),this.initDictionary(i,r,this.workObjectDictionary,Z.WORKOBJECT)}initDictionary(t,i,r,o){r.clear();for(const a of t){const s=o+a;r.add(i.get(a),s)}r.keysArray().forEach(a=>{const s=Vs(a);this.registerIconForBPMN(a,vv+Vd(s.toLowerCase()))})}getCurrentIconConfigurationForBPMN(){return this.customConfiguration?this.iconConfig.createCustomConf(this.customConfiguration):this.iconConfig.getDefaultConf()}allInTypeDictionary(t,i){let r;t===Z.ACTOR?r=this.actorIconDictionary:t===Z.WORKOBJECT&&(r=this.workObjectDictionary);let o=!0;return!!i&&(i.forEach(a=>{r.has(a.type)||(o=!1)}),o)}addIconsFromDomainConfiguration(t,i){let r;t===Z.ACTOR?r=this.actorIconDictionary:t===Z.WORKOBJECT&&(r=this.workObjectDictionary);const o=new tn;o.addEach(gv),o.appendDict(Hc),i.forEach(a=>{if(!r.has(a)){const s=Vs(a),c=o.get(s);c&&(this.registerIconForType(t,a,c),this.registerIconForBPMN(a,Vd(vv+s.toLowerCase())))}})}registerIconForBPMN(t,i){this.iconDictionaryForBPMN.set(t,i)}addIconsToTypeDictionary(t,i){this.allInTypeDictionary(Z.ACTOR,t)||this.addIconsFromDomainConfiguration(Z.ACTOR,t.map(r=>r.type)),this.allInTypeDictionary(Z.WORKOBJECT,i)||this.addIconsFromDomainConfiguration(Z.WORKOBJECT,i.map(r=>r.type))}registerIconForType(t,i,r){i.includes(t)||(i=t+i);let o=new tn;t===Z.ACTOR?o=this.actorIconDictionary:t===Z.WORKOBJECT&&(o=this.workObjectDictionary),o.set(i,r)}updateIconRegistries(t,i,r){const o=[];t.forEach(l=>o.push(l)),i.forEach(l=>o.push(l));const a=new tn,s=new tn,c=new tn;r.actors.keysArray().forEach(l=>{s.add(r.actors.get(l),l)}),r.workObjects.keysArray().forEach(l=>{c.add(r.workObjects.get(l),l)}),this.extractCustomIconsFromDictionary(s,a),this.extractCustomIconsFromDictionary(c,a),o.forEach(l=>{const d=Vd(l.type.replace(Z.ACTOR,"").replace(Z.WORKOBJECT,""));(l.type.includes(Z.ACTOR)||l.type.includes(Z.WORKOBJECT))&&!this.getFullDictionary().has(d)&&this.registerIconForBPMN(vv+d.toLowerCase(),l.type)}),this.addNewIconsToDictionary(a),this.addIconsToTypeDictionary(t,i)}extractCustomIconsFromDictionary(t,i){t.keysArray().forEach(r=>{const o=Vd(r);this.getFullDictionary().has(o)||i.add(t.get(r),o)})}addNewIconsToDictionary(t){t.keysArray().forEach(i=>{const r=t.get(i);this.addIMGToIconDictionary(r.src,i)}),this.addIconsToCss(t)}addIMGToIconDictionary(t,i){Hc.set(i,t)}addIconsToCss(t){const i=document.getElementById("iconsCss");t.keysArray().forEach(r=>{const o=t.get(r),a="."+vv+Vd(r.toLowerCase())+'::before{ content: url("data:image/svg+xml;utf8,'+this.wrapSRCInSVG(o)+'"); margin: 3px;}';i?.sheet?.insertRule(a,i.sheet.cssRules.length)})}wrapSRCInSVG(t){return""}getFullDictionary(){const t=new tn;return t.appendDict(this.allIconDictionary),t.appendDict(this.getAppendedIconDictionary()),t}getAppendedIconDictionary(){const t=new tn;return Hc.keysArray().forEach(i=>{this.allIconDictionary.has(i)||t.set(i,Hc.get(i))}),t}getTypeDictionary(t){return t===Z.ACTOR?this.actorIconDictionary:t===Z.WORKOBJECT?this.workObjectDictionary:new tn}getTypeDictionaryKeys(t){return this.getTypeDictionary(t).keysArray()}getTypeIconSRC(t,i){return t===Z.ACTOR?(i.startsWith(Z.ACTOR)||(i=Z.ACTOR+i),this.actorIconDictionary.get(i)):t===Z.WORKOBJECT?(i.startsWith(Z.WORKOBJECT)||(i=Z.WORKOBJECT+i),this.workObjectDictionary.get(i)):null}getIconForBPMN(t){return this.iconDictionaryForBPMN.get(t)}getIconSource(t){return this.allIconDictionary.has(t)?this.allIconDictionary.get(t):Hc.has(t)?Hc.get(t):null}getElementsOfType(t,i){const r=[];return t.forEach(o=>{o.type.includes(i)&&r.push(o)}),r}getAllIconDictionary(){return this.allIconDictionary}getActorsDictionary(){return this.actorIconDictionary}getWorkObjectsDictionary(){return this.workObjectDictionary}getIconConfiguration(){return this.iconConfig}setCusomtConfiguration(t){this.customConfiguration=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jo=(()=>{class e{constructor(){this.fullyInitialized=!1}correctInitialize(){this.fullyInitialized||this.registry.__implicitroot&&(this.registry=this.registry.__implicitroot.element.children,this.fullyInitialized=!0)}setElementRegistry(t){this.registry=t._elements}clear(){this.registry=null,this.fullyInitialized=!1}createObjectListForDSTDownload(){if(this.registry){const t=this.getAllCanvasObjects(),i=this.getAllGroups(),r=[];return this.fillListOfCanvasObjects(t,r,i),r}return[]}fillListOfCanvasObjects(t,i,r){t.forEach(o=>{o.type===Z.ACTIVITY?i.push(o):(o.type===Z.TEXTANNOTATION&&(o.businessObject.width=o.width,o.businessObject.height=o.height),i.includes(o)||i.unshift(o))}),r.forEach(o=>{i.push(o)})}getAllActivities(){const t=[];return this.getAllCanvasObjects().forEach(i=>{i.type.includes(Z.ACTIVITY)&&t.push(i)}),t}getAllConnections(){const t=[];return this.getAllCanvasObjects().forEach(i=>{i.type===Z.CONNECTION&&t.push(i)}),t}getAllCanvasObjects(){const t=[],i=[];this.checkChildForGroup(i,t);let r=i.length-1;for(;i.length>=1;)i.pop().children.forEach(a=>{a.type.includes(Z.GROUP)&&i.push(a)}),r=i.length-1;return t}getAllGroups(){const t=[];this.checkChildForGroup(t,[]);for(const r of t)r.children?.forEach(o=>{o.type.includes(Z.GROUP)&&t.push(o)});return t}checkChildForGroup(t,i){const r=Object.keys(this.registry);for(let o of r){const a=this.registry[o].element;if(a.businessObject){const s=a.type;s&&s.includes(Z.GROUP)?t.push(a):s&&i.push(a)}}}getActivitiesFromActors(){const t=[];return this.getAllActivities().forEach(r=>{r.source?.type.includes(Z.ACTOR)&&t.push(r)}),t}getUsedIcons(){const t=this.getAllActors(),i=this.getAllWorkobjects();return{actors:t.map(r=>r.type.replace(Z.ACTOR,"")),workobjects:i.map(r=>r.type.replace(Z.WORKOBJECT,""))}}getAllActors(){return this.getAllCanvasObjects().filter(t=>t.type.includes(Z.ACTOR))}getAllWorkobjects(){return this.getAllCanvasObjects().filter(t=>t.type.includes(Z.WORKOBJECT))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$c=(()=>{class e{constructor(t,i,r){this.iconDictionaryService=t,this.elementRegistryService=i,this.titleService=r}setDomainName(t){this.titleService.setDomainName(t||Bd)}exportConfiguration(){const t=this.getCurrentConfigurationForExport();if(!t)return;const i=JSON.stringify(t,null,2),r=this.titleService.getDomainName(),o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(i)),o.setAttribute("download",r+".domain"),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}loadConfiguration(t,i=!0){let r=new tn,o=new tn;t.actors.keysArray()?(r=t.actors,o=t.workObjects):(r.addEach(t.actors),o.addEach(t.workObjects));const a=r.keysArray(),s=o.keysArray();this.iconDictionaryService.updateIconRegistries([],[],t),this.iconDictionaryService.getIconConfiguration().appendSRCFile(a,r,s,o),this.iconDictionaryService.addIconsFromDomainConfiguration(Z.ACTOR,a.map(c=>Z.ACTOR+c)),this.iconDictionaryService.addIconsFromDomainConfiguration(Z.WORKOBJECT,s.map(c=>Z.WORKOBJECT+c)),i&&this.setDomainName(t.name)}getCurrentConfiguration(){const t=this.iconDictionaryService.getActorsDictionary(),i=this.iconDictionaryService.getWorkObjectsDictionary();let r;return t.size()>0&&i.size()>0&&(r=this.createConfigFromDictionaries(t,i)),r}getCurrentConfigurationForExport(){const t=this.getCurrentConfiguration();if(t){const i={},r={};return t.actors.all().forEach(o=>{i[o.key]=o.value}),t.workObjects.all().forEach(o=>{r[o.key]=o.value}),{name:t.name,actors:i,workObjects:r}}}getCurrentConfigurationNamesWithoutPrefix(){return{name:this.titleService.getDomainName()||Bd,actors:this.iconDictionaryService.getActorsDictionary().keysArray().map(t=>t.replace(Z.ACTOR,"")),workObjects:this.iconDictionaryService.getWorkObjectsDictionary().keysArray().map(t=>t.replace(Z.WORKOBJECT,""))}}createMinimalConfigurationWithDefaultIcons(){const t=this.createConfigFromCanvas();return hf.actors.forEach(i=>{t.actors.add(this.iconDictionaryService.getIconSource(i),i)}),hf.workObjects.forEach(i=>{t.workObjects.add(this.iconDictionaryService.getIconSource(i),i)}),t}createConfigFromDictionaries(t,i){const r=t.keysArray(),o=i.keysArray(),a=new tn,s=new tn;return r.forEach(c=>{a.add(t.get(c),c.replace(Z.ACTOR,""))}),o.forEach(c=>{s.add(i.get(c),c.replace(Z.WORKOBJECT,""))}),{name:this.titleService.getDomainName(),actors:a,workObjects:s}}createConfigFromCanvas(){const t={name:Bd,actors:new tn,workObjects:new tn};return this.elementRegistryService.getAllCanvasObjects().map(r=>r.businessObject).forEach(r=>{const o=r.type.replace(Z.ACTOR,"").replace(Z.WORKOBJECT,"");if(r.type.includes(Z.ACTOR)){let a=this.iconDictionaryService.getIconSource(o)||"";t.actors.add(a,o)}else if(r.type.includes(Z.WORKOBJECT)){let a=this.iconDictionaryService.getIconSource(o)||"";t.workObjects.add(a,o)}}),t}static#e=this.\u0275fac=function(i){return new(i||e)(N(Qa),N(jo),N(Br))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_v=(()=>{class e{constructor(){this.isDirtySubject=new Qt(!1),this.dirty$=this.isDirtySubject.asObservable()}makeDirty(){this.isDirtySubject.next(!0)}makeClean(){this.isDirtySubject.next(!1)}get dirty(){return this.isDirtySubject.value}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const aN="http://www.w3.org/2000/svg",sN="8";let jd=0;function cN(e,n,t,i,r){let o=function UJ(e,n){let i=document.createElement("canvas").getContext("2d");return i.font="30px Arial",lN(e,n,i,10,30,30)}(e=e.replace("<","").replace(">",""),r),a=function GJ(e,n){let t="",i=e.split("
"),o=document.createElement("canvas").getContext("2d");o.font="12px Arial";for(let a=0;a'+o+a+"",extraHeight:jd}}function lN(e,n,t,i,r,o){let a="",s=e.split(" "),c='',l=document.createElementNS(aN,"tspan"),d=document.createTextNode(s[0]);l.setAttribute("x",sN),l.setAttribute("y",i+jd),l.setAttribute("font-size",o),l.appendChild(d);for(let u=1;un-16&&(jd+=r,l.firstChild.data=l.firstChild.data.slice(0,h),a+=c+l.outerHTML+"",l=document.createElementNS(aN,"tspan"),d=document.createTextNode(s[u]),l.setAttribute("x",sN),l.setAttribute("y",i+jd),l.appendChild(d))}return jd+=r,a+=c+l.outerHTML+"",a}let WJ=(()=>{class e{constructor(){this.width=0,this.height=0}browserSpecs(){const t=navigator.userAgent;let i,r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?(i=/\brv[ :]+(\d+)/g.exec(t)||[],{name:"IE",version:i[1]||""}):"Chrome"===r[1]&&(i=t.match(/\b(OPR|Edge)\/(\d+)/),null!=i)?{name:i[1].replace("OPR","Opera"),version:i[2]}:(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(i=t.match(/version\/(\d+)/i))&&r.splice(1,1,i[1]),{name:r[0],version:r[1]})}URIHashtagFix(t){let i=!1;const r=this.browserSpecs(),o=r.name,a=parseInt(r.version);if(o.includes("Chrome")?a>=72&&(i=!0):o.includes("Firefox")&&(i=!0),i)for(;t.includes("#");)t=t.replace("#","%23");return t}findMostOuterElements(t){let i=0,r=0,o=0,a=0;const s=t.getElementsByClassName("djs-group");for(let c=0;cr&&(r=h),fa&&(a=p)}return o-=75,{xLeft:i,xRight:r,yUp:o,yDown:a}}prepareSVG(t,i,r,o,a){const s=this.findMostOuterElements(i);let c=t.indexOf('width="');this.calculateWidthAndHeight(s);const{insertText:l,extraHeight:d}=cN(o,r,s.xLeft,s.yUp+20,this.width);a&&(this.height+=d);const u=this.createBounds(s,d),h=t.substring(0,c);c=t.indexOf('style="');const f=t.substring(c);f.substring(c);const p=(t=h+u+f).indexOf('')+20;return a&&(t=[t.slice(0,p),l,t.slice(p)].join("")),this.URIHashtagFix(t)}createBounds(t,i){return'width="'+this.width+'" height="'+this.height+'" viewBox=" '+t.xLeft+" "+(t.yUp-i)+" "+this.width+" "+this.height+'" '}calculateWidthAndHeight(t){return this.width=t.xLeft<0?t.xRight<0?Math.abs(t.xLeft-t.xRight):Math.abs(t.xLeft)+t.xRight:t.xRight-t.xLeft,this.height=t.yUp<0?t.yDown<0?Math.abs(t.yUp-t.yDown):Math.abs(t.yUp)+t.yDown:t.yDown-t.yUp,this.height<300&&(this.height+=300,t.yUp-=150,t.yDown+=150),this.width<300&&(this.width+=300,t.xLeft-=150,t.xRight+=150),[this.height,this.width]}extractSVG(t,i){const r=t.getElementsByClassName("layer-resizers"),o=t.getElementsByClassName("layer-overlays"),a=t.getAttribute("transform"),s=t.getAttribute("translate");r[0]&&r[0].parentNode.removeChild(r[0]),o[0]&&o[0].parentNode.removeChild(o[0]),a&&t.removeAttribute("transform"),s&&t.removeAttribute("translate");const c=(new XMLSerializer).serializeToString(i);return a&&t.setAttribute("transform",a),s&&t.setAttribute("translate",s),c}getWidth(){return this.width}getHeight(){return this.height}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dN(e,n,t,i,r,o,a){try{var s=e[o](a),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function uN(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(c){dN(o,i,r,a,s,"next",c)}function s(c){dN(o,i,r,a,s,"throw",c)}a(void 0)})}}function yv(e){return Array.prototype.concat.apply([],e)}var ff=Object.prototype.toString,YJ=Object.prototype.hasOwnProperty;function js(e){return void 0===e}function zo(e){return void 0!==e}function bv(e){return null==e}function Lt(e){return"[object Array]"===ff.call(e)}function si(e){return"[object Object]"===ff.call(e)}function yt(e){return"[object Number]"===ff.call(e)}function Gi(e){var n=ff.call(e);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n}function Vr(e){return"[object String]"===ff.call(e)}function Ja(e,n){return YJ.call(e,n)}function on(e,n){var t;return n=E1(n),R(e,function(i,r){if(n(i,r))return t=i,!1}),t}function hN(e,n){n=E1(n);var t=Lt(e)?-1:void 0;return R(e,function(i,r){if(n(i,r))return t=r,!1}),t}function St(e,n){var t=[];return R(e,function(i,r){n(i,r)&&t.push(i)}),t}function R(e,n){var t;if(!js(e)){var r=Lt(e)?QJ:ZJ;for(var o in e)if(Ja(e,o)&&!1===n(t=e[o],r(o)))return t}}function br(e,n,t){return R(e,function(i,r){t=n(t,i,r)}),t}function Uc(e,n){return!!br(e,function(t,i,r){return t&&n(i,r)},!0)}function Gc(e,n){return!!on(e,n)}function Ti(e,n){var t=[];return R(e,function(i,r){t.push(n(i,r))}),t}function xv(e){return e&&Object.keys(e)||[]}function pf(e){return xv(e).length}function x1(e){return Ti(e,function(n){return n})}function zd(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=w1(n),R(e,function(i){var r=n(i)||"_",o=t[r];o||(o=t[r]=[]),o.push(i)}),t}function fN(e){e=w1(e);for(var n={},t=arguments.length,i=new Array(t>1?t-1:0),r=1;r0)return s(f);e.apply(r,i),c()}function s(u){t=setTimeout(a,u)}function c(){t&&clearTimeout(t),t=o=i=r=void 0}function d(){o=Date.now();for(var u=arguments.length,h=new Array(u),f=0;f1?n-1:0),i=1;i=Math.pow(2,t)?n(t,i):s};n.rack=function(t,i,r){var o=function(s){var c=0;do{if(c++>10){if(!r)throw new Error("too many ID collisions, use more bits");t+=r}var l=n(t,i)}while(Object.hasOwnProperty.call(a,l));return a[l]=s,l},a=o.hats={};return o.get=function(s){return o.hats[s]},o.set=function(s,c){return o.hats[s]=c,o},o.bits=t||128,o.base=i||16,o}});function es(e){if(!(this instanceof es))return new es(e);this._seed=(e=e||[128,36,1]).length?nee.rack(e[0],e[1],e[2]):e}es.prototype.next=function(e){return this._seed(e||!0)},es.prototype.nextPrefixed=function(e,n){var t;do{t=e+this.next(!0)}while(this.assigned(t));return this.claim(t,n),t},es.prototype.claim=function(e,n){this._seed.set(e,n||!0)},es.prototype.assigned=function(e){return this._seed.get(e)||!1},es.prototype.unclaim=function(e){delete this._seed.hats[e]},es.prototype.clear=function(){var n,e=this._seed.hats;for(n in e)this.unclaim(n)};const S1=es;function zr(e,n,t){return 2==arguments.length?e.getAttribute(n):null===t?e.removeAttribute(n):(e.setAttribute(n,t),e)}var dee=[].indexOf,D1=function(e,n){if(dee)return e.indexOf(n);for(var t=0;t
a',bN=!Sv.getElementsByTagName("link").length,Sv=void 0);var pi={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:bN?[1,"X
","
"]:[0,"",""]};function Bn(e,n){return(n=n||document).querySelector(e)}function k1(e,n){return(n=n||document).querySelectorAll(e)}function ga(e){e.parentNode&&e.parentNode.removeChild(e)}function xN(e,n){return n.appendChild(function T1(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}(e,n))}function Ze(e,n){return xN(n,e),e}pi.td=pi.th=[3,"","
"],pi.option=pi.optgroup=[1,'"],pi.thead=pi.tbody=pi.colgroup=pi.caption=pi.tfoot=[1,"","
"],pi.polyline=pi.ellipse=pi.polygon=pi.circle=pi.text=pi.line=pi.path=pi.rect=pi.g=[1,'',""];var A1=2,wN={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":A1,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":A1,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function EN(e,n,t){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=wN[i];r?(r===A1&&"number"==typeof t&&(t=String(t)+"px"),e.style[i]=t):e.setAttributeNS(null,n,t)}function ge(e,n,t){if("string"==typeof n){if(void 0===t)return function bee(e,n){return wN[n]?e.style[n]:e.getAttributeNS(null,n)}(e,n);EN(e,n,t)}else!function xee(e,n){var i,r,t=Object.keys(n);for(i=0;r=t[i];i++)EN(e,r,n[r])}(e,n);return e}function M1(e,n){if(e.indexOf)return e.indexOf(n);for(var t=0;t"+e+"",n=!0);var t=function Cee(e){var n;return(n=new DOMParser).async=!1,n.parseFromString(e,"text/xml")}(e);if(!n)return t;for(var i=document.createDocumentFragment(),r=t.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function qe(e,n){var t;return"<"===e.charAt(0)?(t=DN(e).firstChild,t=document.importNode(t,!0)):t=document.createElementNS(R1.svg,e),n&&ge(t,n),t}var P1=null;function Dv(){return null===P1&&(P1=qe("svg")),P1}function N1(e,n){var t,i,r=Object.keys(n);for(t=0;i=r[t];t++)e[i]=n[i];return e}function mf(e){return e?Dv().createSVGTransformFromMatrix(e):Dv().createSVGTransform()}var kN=/([&<>]{1})/g,Dee=/([\n\r"]{1})/g,kee={"&":"&","<":"<",">":">",'"':"'"};function F1(e,n){return e.replace(n,function t(i,r){return kee[r]||r})}function TN(e,n){var t,i,r,o,a;switch(e.nodeType){case 3:n.push(F1(e.textContent,kN));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(t=0,i=(r=e.attributes).length;t"),t=0,i=(a=e.childNodes).length;t")}else n.push("/>");break;case 8:n.push("\x3c!--",F1(e.nodeValue,kN),"--\x3e");break;case 4:n.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function AN(e,n){if(void 0!==n){try{!function Tee(e,n){var t=DN(n);if(O1(e),n){(function Mee(e){return"#document-fragment"===e.nodeName})(t)||(t=t.documentElement);for(var i=function Iee(e){return Array.prototype.slice.call(e)}(t.childNodes),r=0;r ");return t.length=0,new Error(g?p+" (Resolving: "+g+")":p)},s=function(p,g){if(!i[p]&&-1!==p.indexOf(".")){for(var v=p.split("."),k=s(v.shift());v.length;)k=k[v.shift()];return k}if(B1(r,p))return r[p];if(B1(i,p)){if(-1!==t.indexOf(p))throw t.push(p),a("Cannot resolve circular dependency!");return t.push(p),r[p]=i[p][0](i[p][1]),t.pop(),r[p]}return n.get(p,g)},c=function(p,g){if(typeof g>"u"&&(g={}),"function"!=typeof p){if(!L1(p))throw new Error('Cannot invoke "'+p+'". Expected a function!');p=kv(p.slice())}return{fn:p,dependencies:(p.$inject||jee(p)).map(function(E){return B1(g,E)?g[E]:s(E)})}},l=function(p){var g=c(p);return new(Function.prototype.bind.apply(g.fn,[null].concat(g.dependencies)))},d=function(p,g,v){var k=c(p,v);return k.fn.apply(g,k.dependencies)},u=function(p){return kv(function(g){return p.get(g)})},f={factory:d,type:l,value:function(p){return p}};e.forEach(function(p){function g(C,x){return"value"!==C&&L1(x)&&(x=kv(x.slice())),x}if(p instanceof zee)p.forEach(function(C){var D=C[1];i[C[0]]=[f[D],g(D,C[2]),D]});else if("object"==typeof p)if(p.__exports__){var v=Object.keys(p).reduce(function(C,x){return"__"!==x.substring(0,2)&&(C[x]=p[x]),C},Object.create(null)),k=new V1((p.__modules__||[]).concat([v]),o),E=kv(function(C){return k.get(C)});p.__exports__.forEach(function(C){i[C]=[E,C,"private",k]})}else Object.keys(p).forEach(function(C){if("private"!==p[C][2]){var x=p[C][0];i[C]=[f[x],g(x,p[C][1]),x]}else i[C]=p[C]})}),this.get=s,this.invoke=d,this.instantiate=l,this.createChild=function(p,g){if(g&&g.length){var D,P,V,F,v=Object.create(null),k=Object.create(null),E=[],C=[],x=[];for(var Q in i)D=i[Q],-1!==g.indexOf(Q)&&("private"===D[2]?-1===(P=E.indexOf(D[3]))?(V=D[3].createChild([],g),F=u(V),E.push(D[3]),C.push(V),x.push(F),v[Q]=[F,Q,"private",V]):v[Q]=[x[P],Q,"private",C[P]]:v[Q]=[D[2],D[1]],k[Q]=!0),("factory"===D[2]||"type"===D[2])&&D[1].$scope&&g.forEach(function(be){-1!==D[1].$scope.indexOf(be)&&(v[Q]=[D[2],D[1]],k[be]=!0)});g.forEach(function(be){if(!k[be])throw new Error('No provider for "'+be+'". Cannot use provider from the parent!')}),p.unshift(v)}return new V1(p,o)}}var Hee=1e3;function Uo(e,n){var t=this;e.on(["render.shape","render.connection"],n=n||Hee,function(i,r){var o=i.type,a=r.element,s=r.gfx,c=r.attrs;if(t.canRender(a))return"render.shape"===o?t.drawShape(s,a,c):t.drawConnection(s,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(i,r){if(t.canRender(r))return"render.getShapePath"===i.type?t.getShapePath(r):t.getConnectionPath(r)})}function va(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")}function MN(e){for(var i,n="",t=0;i=e[t];t++)n+=i.x+","+i.y+" ";return n}function vf(e,n){var t=qe("polyline");return ge(t,{points:MN(e)}),n&&ge(t,n),t}function IN(e){return St(e,function(n){return!on(e,function(t){return t!==n&&ON(n,t)})})}function ON(e,n){if(n){if(e===n)return n;if(e.parent)return ON(e.parent,n)}}function RN(e,n,t){var i=!t||-1===e.indexOf(n);return i&&e.push(n),i}function Yc(e,n,t){t=t||0,Lt(e)||(e=[e]),R(e,function(i,r){var o=n(i,r,t);Lt(o)&&o.length&&Yc(o,n,t+1)})}function Tv(e,n){return function PN(e,n,t){var i=[],r=[];return Yc(e,function(o,a,s){RN(i,o,n);var c=o.children;if((-1===t||sr||void 0===r)&&(r=c+u),(l+d>o||void 0===o)&&(o=l+d)}),{x:t,y:i,height:o-i,width:r-t}}function NN(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function FN(e){return!(!e||!e.isFrame)}function _f(e,n){return I({},e||{},n||{})}function Us(e,n){Uo.call(this,e,1),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Uo.prototype.canRender=function(){},Uo.prototype.drawShape=function(){},Uo.prototype.drawConnection=function(){},Uo.prototype.getShapePath=function(){},Uo.prototype.getConnectionPath=function(){},Xe()(Us,Uo),Us.prototype.canRender=function(){return!0},Us.prototype.drawShape=function(n,t,i){var r=qe("rect");return ge(r,{x:0,y:0,width:t.width||0,height:t.height||0}),FN(t)?ge(r,I({},this.FRAME_STYLE,i||{})):ge(r,I({},this.SHAPE_STYLE,i||{})),Ze(n,r),r},Us.prototype.drawConnection=function(n,t,i){var r=vf(t.waypoints,I({},this.CONNECTION_STYLE,i||{}));return Ze(n,r),r},Us.prototype.getShapePath=function(n){var r=n.width;return va([["M",n.x,n.y],["l",r,0],["l",0,n.height],["l",-r,0],["z"]])},Us.prototype.getConnectionPath=function(n){var i,r,t=n.waypoints,o=[];for(i=0;r=t[i];i++)o.push([0===i?"M":"L",(r=r.original||r).x,r.y]);return va(o)},Us.$inject=["eventBus","styles"];const qee={__init__:["defaultRenderer"],defaultRenderer:["type",Us],styles:["type",function Yee(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(t,i,r){return I(this.style(i,r),{class:t})},this.style=function(t,i){!Lt(t)&&!i&&(i=t,t=[]);var r=br(t,function(o,a){return I(o,e[a]||{})},{});return i?I(r,i):r},this.computeStyle=function(t,i,r){return Lt(i)||(r=i,i=[]),n.style(i||[],I({},r,t||{}))}}]};function $n(e,n){if(!e||!n)return-1;var t=e.indexOf(n);return-1!==t&&e.splice(t,1),t}function Un(e,n,t){if(e&&n){"number"!=typeof t&&(t=-1);var i=e.indexOf(n);if(-1!==i){if(i===t)return;if(-1===t)return;e.splice(i,1)}-1!==t?e.splice(t,0,n):e.push(n)}}function j1(e,n){return e&&n?e.indexOf(n):-1}function yf(e,n){return e&&n?Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)):-1}function z1(e,n,t,i){if(typeof i>"u"&&(i=5),!e||!n||!t)return!1;var r=(n.x-e.x)*(t.y-e.y)-(n.y-e.y)*(t.x-e.x),o=yf(e,n);return Math.abs(r/o)<=i}var LN=2;function ts(e,n){var t;return function Kee(e,n){var t,i=(t=Lt(e)?e:[e,n]).slice().shift();return Uc(t,function(r){return Math.abs(i.y-r.y)<=LN})}(t=Lt(e)?e:[e,n])?"h":!!function Xee(e,n){var t,i=(t=Lt(e)?e:[e,n]).slice().shift();return Uc(t,function(r){return Math.abs(i.x-r.x)<=LN})}(t)&&"v"}function BN(e,n,t){return e.x>n.x-(t=t||0)&&e.y>n.y-t&&e.x=r.bottom?"bottom":null,d=i.right+t.x<=r.left?"left":i.left-t.x>=r.right?"right":null;return d&&l?l+"-"+d:d||l||"intersect"}function U1(e,n,t){var i=function Qee(e,n){return VN()(e,n)}(e,n);return 1===i.length||2===i.length&&yf(i[0],i[1])<1?Gs(i[0]):i.length>1?Gs((i=Ho(i,function(r){var o=Math.floor(100*r.t2)||1;return r.segment2+"#"+((o=100-o)<10?"0":"")+o}))[t?0:i.length-1]):null}function Av(e,n){return Math.round(e*n)/n}function zN(e){return yt(e)?e+"px":e}function HN(e,n,t){var i=qe("g");return Pt(i).add(n),e.insertBefore(i,e.childNodes[void 0!==t?t:e.childNodes.length-1]||null),i}var Mv="base",G1="djs-element-hidden",ite={shape:["x","y","width","height"],connection:["waypoints"]};function It(e,n,t,i){this._eventBus=n,this._elementRegistry=i,this._graphicsFactory=t,this._init(e||{})}function UN(e,n){e.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")")}It.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],It.prototype._init=function(e){var n=this._eventBus,t=this._container=function tte(e){var n=(e=I({},{width:"100%",height:"100%"},e)).container||document.body,t=document.createElement("div");return t.setAttribute("class","djs-container"),I(t.style,{position:"relative",overflow:"hidden",width:zN(e.width),height:zN(e.height)}),n.appendChild(t),t}(e),i=this._svg=qe("svg");ge(i,{width:"100%",height:"100%"}),Ze(t,i);var r=this._viewport=HN(i,"viewport");this._layers={},this._planes={},!1!==e.deferUpdate&&(this._viewboxChanged=pN(Wi(this._viewboxChanged,this),300)),n.on("diagram.init",function(){n.fire("canvas.init",{svg:i,viewport:r})},this),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","plane.set"],function(){delete this._cachedViewbox},this),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},It.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var n=this._container.parentNode;n&&n.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._activePlane,delete this._viewport},It.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach(function(t){var i=NN(t);"root"===i?e.setRootElementForPlane(null,e.findPlane(t),!0):e._removeElement(t,i)}),this._activePlane=null,this._planes={},delete this._cachedViewbox},It.prototype.getDefaultLayer=function(){return this.getLayer(Mv,0)},It.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");var t=this._layers[e];if(t||(t=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&t.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return t.group},It.prototype._createLayer=function(e,n){typeof n>"u"&&(n=1);var t=br(this._layers,function(i,r){return n>=r.index&&i++,i},0);return{group:HN(this._viewport,"layer-"+e,t),index:n}},It.prototype.getPlane=function(e){if(!e)throw new Error("must specify a name");return this._planes[e]},It.prototype.createPlane=function(e,n){if(!e)throw new Error("must specify a name");if(this._planes[e])throw new Error("plane "+e+" already exists");n||(n={id:"__implicitroot"+e,children:[],isImplicit:!0});var t=this.getLayer(e,0);Pt(t).add(G1);var i=this._planes[e]={layer:t,name:e,rootElement:null};return this.setRootElementForPlane(n,i),i},It.prototype.setActivePlane=function(e){if(!e)throw new Error("must specify a plane");return"string"==typeof e&&(e=this.getPlane(e)),this._activePlane&&Pt(this._activePlane.layer).add(G1),this._activePlane=e,Pt(e.layer).remove(G1),e.rootElement&&this._elementRegistry.updateGraphics(e.rootElement,this._svg,!0),this._eventBus.fire("plane.set",{plane:e}),e},It.prototype.getActiveLayer=function(){return this.getActivePlane().layer},It.prototype.getActivePlane=function(){var e=this._activePlane;return e||(e=this.createPlane(Mv),this.setActivePlane(Mv)),e},It.prototype.findPlane=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));var n=function ete(e){for(;e.parent;)e=e.parent;return e}(e);return on(this._planes,function(t){return t.rootElement===n})},It.prototype.getContainer=function(){return this._container},It.prototype._updateMarker=function(e,n,t){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(R([i.gfx,i.secondaryGfx],function(r){r&&(t?Pt(r).add(n):Pt(r).remove(n))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:n,add:!!t}))},It.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},It.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},It.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),Pt(this.getGraphics(e)).has(n)},It.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},It.prototype.getRootElement=function(){return this.getActivePlane().rootElement},It.prototype.setRootElement=function(e,n){var t=this._activePlane;if(t)return this.setRootElementForPlane(e,t,n);var i=this.createPlane(Mv,e);return this.setActivePlane(i),i.rootElement},It.prototype.setRootElementForPlane=function(e,n,t){"string"==typeof n&&(n=this.getPlane(n)),e&&this._ensureValid("root",e);var i=n.rootElement,r=this._elementRegistry,o=this._eventBus;if(i){if(!t)throw new Error("rootElement already set, need to specify override");o.fire("root.remove",{element:i}),o.fire("root.removed",{element:i}),r.remove(i)}if(e){var a=n.layer;o.fire("root.add",{element:e}),r.add(e,a),o.fire("root.added",{element:e,gfx:a}),n===this._activePlane&&this._elementRegistry.updateGraphics(e,this._svg,!0)}return n.rootElement=e,e},It.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element with id "+n.id+" already exists");var t=ite[e];if(!Uc(t,function(r){return typeof n[r]<"u"}))throw new Error("must supply { "+t.join(", ")+" } with "+e)},It.prototype._setParent=function(e,n,t){Un(n.children,e,t),e.parent=n},It.prototype._addElement=function(e,n,t,i){t=t||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,n),r.fire(e+".add",{element:n,parent:t}),this._setParent(n,t,i);var a=o.create(e,n,i);return this._elementRegistry.add(n,a),o.update(e,n,a),r.fire(e+".added",{element:n,gfx:a}),n},It.prototype.addShape=function(e,n,t){return this._addElement("shape",e,n,t)},It.prototype.addConnection=function(e,n,t){return this._addElement("connection",e,n,t)},It.prototype._removeElement=function(e,n){var t=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=t.get(e.id||e))return r.fire(n+".remove",{element:e}),i.remove(e),$n(e.parent&&e.parent.children,e),e.parent=null,r.fire(n+".removed",{element:e}),t.remove(e),e},It.prototype.removeShape=function(e){return this._removeElement(e,"shape")},It.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},It.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},It.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},It.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},It.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,r,o,a,s,c,n=this._viewport,i=this.getSize();return e?(this._changeViewbox(function(){a=Math.min(i.width/e.width,i.height/e.height);var l=this._svg.createSVGMatrix().scale(a).translate(-e.x,-e.y);gf(n,l)}),e):(t=this._activePlane&&this._activePlane.layer.getBBox()||{},r=(o=gf(n))?o.matrix:function See(e,n,t,i,r,o){var a=Dv().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return N1(a,e);case 6:return N1(a,{a:e,b:n,c:t,d:i,e:r,f:o})}}(),a=Av(r.a,1e3),s=Av(-r.e||0,1e3),c=Av(-r.f||0,1e3),e=this._cachedViewbox={x:s?s/a:0,y:c?c/a:0,width:i.width/a,height:i.height/a,scale:a,inner:{width:t.width||0,height:t.height||0,x:t.x||0,y:t.y||0},outer:i})},It.prototype.scroll=function(e){var n=this._viewport,t=n.getCTM();return e&&this._changeViewbox(function(){e=I({dx:0,dy:0},e||{}),t=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(t),UN(n,t)}),{x:t.e,y:t.f}},It.prototype.scrollToElement=function(e,n){var t=100;"string"==typeof e&&(e=this._elementRegistry.get(e));var i=this.findPlane(e);i!==this._activePlane&&this.setActivePlane(i),n||(n={}),"number"==typeof n&&(t=n),n={top:n.top||t,right:n.right||t,bottom:n.bottom||t,left:n.left||t};var c,l,r=Fi(e),o=ot(r),a=this.viewbox(),s=this.zoom();a.y+=n.top/s,a.x+=n.left/s,a.width-=(n.right+n.left)/s,a.height-=(n.bottom+n.top)/s;var d=ot(a);if(r.width=0&&i.y>=0&&i.x+i.width<=t.width&&i.y+i.height<=t.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,t.width),height:Math.max(i.height+i.y,t.height)}:(r=Math.min(1,t.width/i.width,t.height/i.height),o={x:i.x+(e?i.width/2-t.width/r/2:0),y:i.y+(e?i.height/2-t.height/r/2:0),width:t.width/r,height:t.height/r}),this.viewbox(o),this.viewbox(!1).scale},It.prototype._setZoom=function(e,n){var s,c,l,d,t=this._svg,i=this._viewport,r=t.createSVGMatrix(),o=t.createSVGPoint(),u=(c=i.getCTM()).a;return n?(s=I(o,n).matrixTransform(c.inverse()),l=r.translate(s.x,s.y).scale(1/u*e).translate(-s.x,-s.y),d=c.multiply(l)):d=r.scale(e),UN(this._viewport,d),d},It.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},It.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();return{x:(t=e.waypoints?this.getGraphics(e).getBBox():e).x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},It.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var $d="data-element-id";function $r(e){this._elements={},this._eventBus=e}$r.$inject=["eventBus"],$r.prototype.add=function(e,n,t){var i=e.id;this._validateId(i),ge(n,$d,i),t&&ge(t,$d,i),this._elements[i]={element:e,gfx:n,secondaryGfx:t}},$r.prototype.remove=function(e){var n=this._elements,t=e.id||e,i=t&&n[t];i&&(ge(i.gfx,$d,""),i.secondaryGfx&&ge(i.secondaryGfx,$d,""),delete n[t])},$r.prototype.updateId=function(e,n){this._validateId(n),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var t=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,t,i)},$r.prototype.updateGraphics=function(e,n,t){var i=e.id||e,r=this._elements[i];return t?r.secondaryGfx=n:r.gfx=n,ge(n,$d,i),n},$r.prototype.get=function(e){var n;n="string"==typeof e?e:e&&ge(e,$d);var t=this._elements[n];return t&&t.element},$r.prototype.filter=function(e){var n=[];return this.forEach(function(t,i){e(t,i)&&n.push(t)}),n},$r.prototype.find=function(e){for(var n=this._elements,t=Object.keys(n),i=0;i");return I(new t,n)}(e,n)};var Ov="__fn",ste=Array.prototype.slice;function xr(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function xf(){}function Rv(e){return e.childNodes[0]}function W1(e,n,t,i,r){var o=mf();o.setTranslate(n,t);var a=mf();a.setRotate(i||0,0,0);var s=mf();s.setScale(r||1,r||1),gf(e,[o,a,s])}function sr(e,n,t){var i=mf();i.setTranslate(n,t),gf(e,i)}function JN(e,n){var t=mf();t.setRotate(n,0,0),gf(e,t)}function Ur(e,n){this._eventBus=e,this._elementRegistry=n}function eF(e,n,t){var i=t||n.firstChild;e!==i&&n.insertBefore(e,i)}xr.prototype.on=function(e,n,t,i){if(e=Lt(e)?e:[e],Gi(n)&&(i=t,t=n,n=1e3),!yt(n))throw new Error("priority must be a number");var r=t;i&&((r=Wi(t,i))[Ov]=t[Ov]||t);var o=this;e.forEach(function(a){o._addListener(a,{priority:n,callback:r,next:null})})},xr.prototype.once=function(e,n,t,i){var r=this;if(Gi(n)&&(i=t,t=n,n=1e3),!yt(n))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=t.apply(i,arguments);return r.off(e,o),a}o[Ov]=t,this.on(e,n,o)},xr.prototype.off=function(e,n){e=Lt(e)?e:[e];var t=this;e.forEach(function(i){t._removeListener(i,n)})},xr.prototype.createEvent=function(e){var n=new xf;return n.init(e),n},xr.prototype.fire=function(e,n){var t,i,r,o;if(o=ste.call(arguments),"object"==typeof e&&(e=(n=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){t=n instanceof xf?n:this.createEvent(n),o[0]=t;var a=t.type;e!==a&&(t.type=e);try{r=this._invokeListeners(t,o,i)}finally{e!==a&&(t.type=a)}return void 0===r&&t.defaultPrevented&&(r=!1),r}},xr.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},xr.prototype._destroy=function(){this._listeners={}},xr.prototype._invokeListeners=function(e,n,t){for(var i;t&&!e.cancelBubble;)i=this._invokeListener(e,n,t),t=t.next;return i},xr.prototype._invokeListener=function(e,n,t){var i;if(t.callback.__isTomb)return i;try{i=function cte(e,n){return e.apply(null,n)}(t.callback,n),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i},xr.prototype._addListener=function(e,n){var i,t=this._getListeners(e);if(t){for(;t;){if(t.priority=0}e.forEach(function o(s){i(s)||((s.__depends__||[]).forEach(o),!i(s)&&(function r(s){n.push(s)}(s),(s.__init__||[]).forEach(function(c){t.push(c)})))});var a=new V1(n);return t.forEach(function(s){try{a["string"==typeof s?"get":"invoke"](s)}catch(c){throw console.error("Failed to instantiate component"),console.error(c.stack),c}}),a}([{config:["value",e=e||{}]},dte].concat(e.modules||[]))}(e),this.get=n.get,this.invoke=n.invoke,this.get("eventBus").fire("diagram.init")}function Y1(){}function tF(e,n){this.model=e,this.properties=n}Wd.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},Wd.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},Y1.prototype.get=function(e){return this.$model.properties.get(this,e)},Y1.prototype.set=function(e,n){this.$model.properties.set(this,e,n)},tF.prototype.createType=function(e){var n=this.model,t=this.properties,i=Object.create(Y1.prototype);R(e.properties,function(a){!a.isMany&&void 0!==a.default&&(i[a.name]=a.default)}),t.defineModel(i,n),t.defineDescriptor(i,e);var r=e.ns.name;function o(a){t.define(this,"$type",{value:r,enumerable:!0}),t.define(this,"$attrs",{value:{}}),t.define(this,"$parent",{writable:!0}),R(a,Wi(function(s,c){this.set(c,s)},this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,t.defineModel(o,n),t.defineDescriptor(o,e),o};var fte={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},nF={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function q1(e,n){var t=nF[e];return t?t(n):n}function K1(e){return!!fte[e]}function iF(e){return!!nF[e]}function cr(e,n){var i,r,t=e.split(/:/);if(1===t.length)i=e,r=n;else{if(2!==t.length)throw new Error("expected or , got "+e);i=t[1],r=t[0]}return{name:e=(r?r+":":"")+i,prefix:r,localName:i}}function ho(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function Ws(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,R(e,Wi(this.registerPackage,this))}function rF(e,n,t){var i=n[t];if(i in e)throw new Error("package with "+t+" <"+i+"> already defined")}function Yd(e){this.model=e}function oF(e,n,t){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:t,configurable:!0})}function fo(e){this.properties=new Yd(this),this.factory=new tF(this,this.properties),this.registry=new Ws(e,this.properties),this.typeCache={}}ho.prototype.build=function(){return jr(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},ho.prototype.addProperty=function(e,n,t){"boolean"==typeof n&&(t=n,n=void 0),this.addNamedProperty(e,!1!==t);var i=this.properties;void 0!==n?i.splice(n,0,e):i.push(e)},ho.prototype.replaceProperty=function(e,n,t){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(n,t?void 0:s,a),o[i.name]=o[i.localName]=n},ho.prototype.redefineProperty=function(e,n,t){var i=e.ns.prefix,r=n.split("#"),o=cr(r[0],i),a=cr(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,t),delete e.redefines},ho.prototype.addNamedProperty=function(e,n){var t=e.ns,i=this.propertiesByName;n&&(this.assertNotDefined(e,t.name),this.assertNotDefined(e,t.localName)),i[t.name]=i[t.localName]=e},ho.prototype.removeNamedProperty=function(e){var n=e.ns,t=this.propertiesByName;delete t[n.name],delete t[n.localName]},ho.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},ho.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},ho.prototype.assertNotDefined=function(e,n){var t=e.name,i=this.propertiesByName[t];if(i)throw new Error("property <"+t+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},ho.prototype.hasProperty=function(e){return this.propertiesByName[e]},ho.prototype.addTrait=function(e,n){var t=this.allTypesByName,i=this.allTypes,r=e.name;r in t||(R(e.properties,Wi(function(o){o=I({},o,{name:o.ns.localName,inherited:n}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,s=o.redefines;a||s?this.redefineProperty(o,a||s,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),i.push(e),t[r]=e)},Ws.prototype.getPackage=function(e){return this.packageMap[e]},Ws.prototype.getPackages=function(){return this.packages},Ws.prototype.registerPackage=function(e){e=I({},e);var n=this.packageMap;rF(n,e,"prefix"),rF(n,e,"uri"),R(e.types,Wi(function(t){this.registerType(t,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},Ws.prototype.registerType=function(e,n){var t=cr((e=I({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:I(e.meta||{})})).name,n.prefix),i=t.name,r={};R(e.properties,Wi(function(o){var a=cr(o.name,t.prefix),s=a.name;K1(o.type)||(o.type=cr(o.type,a.prefix).name),I(o,{ns:a,name:s}),r[s]=o},this)),I(e,{ns:t,name:i,propertiesByName:r}),R(e.extends,Wi(function(o){var a=this.typeMap[o];a.traits=a.traits||[],a.traits.push(i)},this)),this.definePackage(e,n),this.typeMap[i]=e},Ws.prototype.mapTypes=function(e,n,t){var i=K1(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(s){return a(s,!0)}function a(s,c){var l=cr(s,K1(s)?"":e.prefix);r.mapTypes(l,n,c)}if(!i)throw new Error("unknown type <"+e.name+">");R(i.superClass,t?o:a),n(i,!t),R(i.traits,o)},Ws.prototype.getEffectiveDescriptor=function(e){var n=cr(e),t=new ho(n);this.mapTypes(n,function(r,o){t.addTrait(r,o)});var i=t.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},Ws.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})},Yd.prototype.set=function(e,n,t){if(!Vr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var i=this.model.getPropertyDescriptor(e,n),r=i&&i.name;!function pte(e){return typeof e>"u"}(t)?i?r in e?e[r]=t:oF(e,i,t):e.$attrs[n]=t:i?delete e[r]:delete e.$attrs[n]},Yd.prototype.get=function(e,n){var t=this.model.getPropertyDescriptor(e,n);if(!t)return e.$attrs[n];var i=t.name;return!e[i]&&t.isMany&&oF(e,t,[]),e[i]},Yd.prototype.define=function(e,n,t){if(!t.writable){var i=t.value;delete(t=I({},t,{get:function(){return i}})).value}Object.defineProperty(e,n,t)},Yd.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},Yd.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},fo.prototype.create=function(e,n){var t=this.getType(e);if(!t)throw new Error("unknown type <"+e+">");return new t(n)},fo.prototype.getType=function(e){var n=this.typeCache,t=Vr(e)?e:e.ns.name,i=n[t];return i||(e=this.registry.getEffectiveDescriptor(t),i=n[t]=this.factory.createType(e)),i},fo.prototype.createAny=function(e,n,t){var i=cr(e),r={$type:e,$instanceOf:function(a){return a===this.$type}};return this.properties.defineDescriptor(r,{name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:n}}),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(t,function(a,s){si(a)&&void 0!==a.value?r[a.name]=a.value:r[s]=a}),r},fo.prototype.getPackage=function(e){return this.registry.getPackage(e)},fo.prototype.getPackages=function(){return this.registry.getPackages()},fo.prototype.getElementDescriptor=function(e){return e.$descriptor},fo.prototype.hasType=function(e,n){return void 0===n&&(n=e,e=this),n in e.$model.getElementDescriptor(e).allTypesByName},fo.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},fo.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var aF=String.fromCharCode,mte=Object.prototype.hasOwnProperty,gte=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,wf={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function vte(e,n,t,i){return i?mte.call(wf,i)?wf[i]:"&"+i+";":aF(n||parseInt(t,16))}function qc(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(gte,vte):e}Object.keys(wf).forEach(function(e){wf[e.toUpperCase()]=wf[e]});var sF="xsi:type",cF="non-whitespace outside of root node";function qd(e){return new Error(e)}function lF(e){return"missing namespace for prefix <"+e+">"}function Pv(e){return{get:e,enumerable:!0}}function bte(e){var t,n={};for(t in e)n[t]=e[t];return n}function X1(e){return e+"$uri"}function dF(){return{line:0,column:0}}function wte(e){throw e}function uF(e){if(!this)return new uF(e);var t,i,r,o,s,c,l,d,v,n=e&&e.proxy,a=wte,u=dF,h=!1,f=!1,p=null,g=!1;function k(x){x instanceof Error||(x=qd(x)),p=x,a(x,u)}function E(x){s&&(x instanceof Error||(x=qd(x)),s(x,u))}this.on=function(x,D){if("function"!=typeof D)throw qd("required args ");switch(x){case"openTag":i=D;break;case"text":t=D;break;case"closeTag":r=D;break;case"error":a=D;break;case"warn":s=D;break;case"cdata":o=D;break;case"attention":d=D;break;case"question":l=D;break;case"comment":c=D;break;default:throw qd("unsupported event: "+x)}return this},this.ns=function(x){if(typeof x>"u"&&(x={}),"object"!=typeof x)throw qd("required args ");var P,D={};for(P in x)D[P]=x[P];return D["http://www.w3.org/2001/XMLSchema-instance"]="xsi",f=!0,v=D,this},this.parse=function(x){if("string"!=typeof x)throw qd("required args ");return p=null,function C(x){var V,je,Ht,fe,ve,_,m,S,A,z,Pe,D=f?[]:null,P=f?function xte(e){var t,i,n={};for(t in e)n[i=e[t]]=i,n[X1(i)]=t;return n}(v):null,F=[],Q=0,be=!1,He=!1,de=0,we=0,L="",$=0;function ut(){if(null!==Pe)return Pe;var xn,gn,Sn,ky,sc,di,Ta,wn,Zo,lt,vn,ur=f&&P.xmlns,Eo=f&&h?[]:null,Rn=$,Ei=L,ms=Ei.length,Cu={},F6={};e:for(;Rn8)){for((lt<65||lt>122||lt>90&<<97)&&95!==lt&&58!==lt&&(E("illegal first char attribute name"),Zo=!0),vn=Rn+1;vn96&<<123||lt>64&<<91||lt>47&<<59||46===lt||45===lt||95===lt)){if(32===lt||lt<14&<>8){E("missing attribute value"),Rn=vn;continue e}if(61===lt)break;E("illegal attribute name char"),Zo=!0}if("xmlns:xmlns"===(wn=Ei.substring(Rn,vn))&&(E("illegal declaration of xmlns"),Zo=!0),34===(lt=Ei.charCodeAt(vn+1)))-1===(vn=Ei.indexOf('"',Rn=vn+2))&&-1!==(vn=Ei.indexOf("'",Rn))&&(E("attribute value quote missmatch"),Zo=!0);else if(39===lt)-1===(vn=Ei.indexOf("'",Rn=vn+2))&&-1!==(vn=Ei.indexOf('"',Rn))&&(E("attribute value quote missmatch"),Zo=!0);else for(E("missing attribute value quotes"),Zo=!0,vn+=1;vn8);vn++);for(-1===vn&&(E("missing closing quotes"),vn=ms,Zo=!0),Zo||(di=Ei.substring(Rn,vn)),Rn=vn;vn+18);vn++)Rn===vn&&(E("illegal character after attribute end"),Zo=!0);if(Rn=vn+1,Zo)continue e;if(wn in F6){E("attribute <"+wn+"> already defined");continue}if(F6[wn]=!0,!f){Cu[wn]=di;continue}if(h){if(null!==(sc="xmlns"===wn?"xmlns":120===wn.charCodeAt(0)&&"xmlns:"===wn.substr(0,6)?wn.substr(6):null)){if(xn=qc(di),gn=X1(sc),!(Ta=v[xn])){if("xmlns"===sc||gn in P&&P[gn]!==xn)do{Ta="ns"+Q++}while(typeof P[Ta]<"u");else Ta=sc;v[xn]=Ta}P[sc]!==Ta&&(ky||(P=bte(P),ky=!0),P[sc]=Ta,"xmlns"===sc&&(P[X1(Ta)]=xn,ur=Ta),P[gn]=xn),Cu[wn]=di;continue}Eo.push(wn,di);continue}if(-1===(lt=wn.indexOf(":"))){Cu[wn]=di;continue}if(!(Sn=P[wn.substring(0,lt)])){E(lF(wn.substring(0,lt)));continue}(wn=ur===Sn?wn.substr(lt+1):Sn+wn.substr(lt))===sF&&(-1!==(lt=di.indexOf(":"))?(Sn=di.substring(0,lt),di=(Sn=P[Sn]||Sn)+di.substring(lt)):di=ur+":"+di),Cu[wn]=di}if(h)for(Rn=0,ms=Eo.length;Rn=ur&&(Rn=xn.exec(x))&&!((Eo=Rn[0].length+Rn.index)>de);)gn+=1,ur=Eo;return-1==de?(Sn=Eo,Ei=x.substring(we)):0===we?Ei=x.substring(we,de):(Sn=de-ur,Ei=-1==we?x.substring(de):x.substring(de,we+1)),{data:Ei,line:gn,column:Sn}},n&&(z=Object.create({},{name:Pv(function(){return S}),originalName:Pv(function(){return A}),attrs:Pv(ut),ns:Pv(function(){return P})}));-1!==we;){if(-1===(de=60===x.charCodeAt(we)?we:x.indexOf("<",we)))return F.length?k("unexpected end of file"):0===we?k("missing start tag"):void(we",de)))return k("unclosed cdata");if(o&&(o(x.substring(de+9,we),u),g))return;we+=3;continue}if(45===fe&&45===x.charCodeAt(de+3)){if(-1===(we=x.indexOf("--\x3e",de)))return k("unclosed comment");if(c&&(c(x.substring(de+4,we),qc,u),g))return;we+=3;continue}}if(63!==ve){for(je=de+1;;je++){if(_=x.charCodeAt(je),isNaN(_))return we=-1,k("unclosed tag");if(34===_)je=-1!==(fe=x.indexOf('"',je+1))?fe:je;else if(39===_)je=-1!==(fe=x.indexOf("'",je+1))?fe:je;else if(62===_){we=je;break}}if(33!==ve){if(Pe={},47===ve){if(be=!1,He=!0,!F.length)return k("missing open tag");if(je=S=F.pop(),x.substring(de+2,fe=de+2+je.length)!==je)return k("closing tag mismatch");for(;fe8&&ve<14))return k("close tag")}else{if(47===x.charCodeAt(we-1)?(je=S=x.substring(de+1,we-1),be=!0,He=!0):(je=S=x.substring(de+1,we),be=!0,He=!1),!(ve>96&&ve<123||ve>64&&ve<91||95===ve||58===ve))return k("illegal first char nodeName");for(fe=1,Ht=je.length;fe96&&ve<123||ve>64&&ve<91||ve>47&&ve<59||45===ve||95===ve||46==ve)){if(32===ve||ve<14&&ve>8){S=je.substring(0,fe),Pe=null;break}return k("invalid nodeName")}He||F.push(S)}if(f){if(V=P,be&&(He||D.push(V),null===Pe&&(h=-1!==je.indexOf("xmlns",fe))&&($=fe,L=je,ut(),h=!1)),A=S,-1!==(ve=S.indexOf(":"))){if(!(m=P[S.substring(0,ve)]))return k("missing namespace on <"+A+">");S=S.substr(ve+1)}else m=P.xmlns;m&&(S=m+":"+S)}if(be&&($=fe,L=je,i&&(n?i(z,qc,He,u):i(S,ut,qc,He,u),g)))return;if(He){if(r&&(r(n?z:S,qc,be,u),g))return;f&&(P=be?V:D.pop())}we+=1}else{if(d&&(d(x.substring(de,we+1),qc,u),g))return;we+=1}}else{if(-1===(we=x.indexOf("?>",de)))return k("unclosed question");if(l&&(l(x.substring(de,we+2),u),g))return;we+=2}}}(x),u=dF,g=!1,p},this.stop=function(){g=!0}}function hF(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ete={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Nv="xsi:type";function fF(e){return e.xml&&e.xml.serialize}function pF(e){return fF(e)===Nv}function mF(e,n){return hF(n)?e.prefix+":"+function Ste(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e.localName):e.name}function Ys(e){return new Error(e)}function is(e){return e.$descriptor}function Tte(e){I(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw Ys("expected element");var o,t=this.elementsById,r=is(n).idProperty;if(r&&(o=n.get(r.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(t[o])throw Ys("duplicate ID <"+o+">");t[o]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Ef(){}function Z1(){}function Kd(){}function Cf(e,n){this.property=e,this.context=n}function Q1(e,n){this.element=n,this.propertyDesc=e}function Fv(){}function Yi(e,n,t){this.model=e,this.type=e.getType(n),this.context=t}function J1(e,n,t){Yi.call(this,e,n,t)}function Xd(e,n,t){this.model=e,this.context=t}function eE(e){e instanceof fo&&(e={model:e}),I(this,{lax:!1},e)}Ef.prototype.handleEnd=function(){},Ef.prototype.handleText=function(){},Ef.prototype.handleNode=function(){},(Z1.prototype=Object.create(Ef.prototype)).handleNode=function(){return this},(Kd.prototype=Object.create(Ef.prototype)).handleText=function(e){this.body=(this.body||"")+e},(Cf.prototype=Object.create(Kd.prototype)).handleNode=function(e){if(this.element)throw Ys("expected no sub nodes");return this.element=this.createReference(e),this},Cf.prototype.handleEnd=function(){this.element.id=this.body},Cf.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},(Q1.prototype=Object.create(Kd.prototype)).handleEnd=function(){var e=this.body||"",n=this.element,t=this.propertyDesc;e=q1(t.type,e),t.isMany?n.get(t.name).push(e):n.set(t.name,e)},(Fv.prototype=Object.create(Kd.prototype)).handleNode=function(e){var n=this,t=this.element;return t?n=this.handleChild(e):(t=this.element=this.createElement(e),this.context.addElement(t)),n},(Yi.prototype=Object.create(Fv.prototype)).addReference=function(e){this.context.addReference(e)},Yi.prototype.handleText=function(e){if(!is(this.element).bodyProperty)throw Ys("unexpected body text <"+e+">");Kd.prototype.handleText.call(this,e)},Yi.prototype.handleEnd=function(){var e=this.body,n=this.element,i=is(n).bodyProperty;i&&void 0!==e&&(e=q1(i.type,e),n.set(i.name,e))},Yi.prototype.createElement=function(e){var s,n=e.attributes,t=this.type,i=is(t),r=this.context,o=new t({}),a=this.model;return R(n,function(c,l){var d=i.propertiesByName[l];d&&d.isReference?d.isMany?R(c.split(" "),function(h){r.addReference({element:o,property:d.ns.name,id:h})}):r.addReference({element:o,property:d.ns.name,id:c}):(d?c=q1(d.type,c):"xmlns"!==l&&(s=cr(l,i.ns.prefix),a.getPackage(s.prefix)&&r.addWarning({message:"unknown attribute <"+l+">",element:o,property:l,value:c})),o.set(l,c))}),o},Yi.prototype.getPropertyForNode=function(e){var c,l,t=cr(e.name),r=this.model,o=is(this.type),s=o.propertiesByName[t.name];if(s&&!s.isAttr)return pF(s)&&(c=e.attributes[Nv])?(c=function kte(e,n){var t=cr(e);return function Dte(e,n){var t=e.name,i=e.localName,r=n.xml&&n.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):t}(t,n.getPackage(t.prefix))}(c,r),I({},s,{effectiveType:is(l=r.getType(c)).name})):s;var d=r.getPackage(t.prefix);if(d){if(c=mF(t,d),l=r.getType(c),s=on(o.properties,function(u){return!u.isVirtual&&!u.isReference&&!u.isAttribute&&l.hasType(u.type)}))return I({},s,{effectiveType:is(l).name})}else if(s=on(o.properties,function(u){return!u.isReference&&!u.isAttribute&&"Element"===u.type}))return s;throw Ys("unrecognized element <"+t.name+">")},Yi.prototype.toString=function(){return"ElementDescriptor["+is(this.type).name+"]"},Yi.prototype.valueHandler=function(e,n){return new Q1(e,n)},Yi.prototype.referenceHandler=function(e){return new Cf(e,this.context)},Yi.prototype.handler=function(e){return"Element"===e?new Xd(this.model,e,this.context):new Yi(this.model,e,this.context)},Yi.prototype.handleChild=function(e){var n,t,i,r;if(n=this.getPropertyForNode(e),i=this.element,iF(t=n.effectiveType||n.type))return this.valueHandler(n,i);var o=(r=n.isReference?this.referenceHandler(n).handleNode(e):this.handler(t).handleNode(e)).element;return void 0!==o&&(n.isMany?i.get(n.name).push(o):i.set(n.name,o),n.isReference?(I(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},(J1.prototype=Object.create(Yi.prototype)).createElement=function(e){var n=e.name,t=cr(n),r=this.type,o=this.model.getPackage(t.prefix),a=o&&mF(t,o)||n;if(!r.hasType(a))throw Ys("unexpected element <"+e.originalName+">");return Yi.prototype.createElement.call(this,e)},(Xd.prototype=Object.create(Fv.prototype)).createElement=function(e){var n=e.name,t=cr(n);return this.model.createAny(n,e.ns[t.prefix+"$uri"],e.attributes)},Xd.prototype.handleChild=function(e){var n=new Xd(this.model,"Element",this.context).handleNode(e),t=this.element,i=n.element;return void 0!==i&&((t.$children=t.$children||[]).push(i),i.$parent=t),n},Xd.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},eE.prototype.fromXML=function(e,n,t){var i=n.rootHandler;n instanceof Yi?(i=n,n={}):"string"==typeof n?(i=this.handler(n),n={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Tte(I({},n,{rootHandler:i})),s=new uF({proxy:!0}),c=function Ate(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function l(D,P,V){var F=P(),Q=F.line,be=F.column,He=F.data;"<"===He.charAt(0)&&-1!==He.indexOf(" ")&&(He=He.slice(0,He.indexOf(" "))+">");var de="unparsable content "+(He?He+" ":"")+"detected\n\tline: "+Q+"\n\tcolumn: "+be+"\n\tnested error: "+D.message;if(V)return a.addWarning({message:de,error:D}),!0;throw Ys(de)}function d(D,P){return l(D,P,!0)}i.context=a,c.push(i);var f=/^<\?xml /i,p=/ encoding="([^"]+)"/i,g=/^utf-8$/i;function E(D,P){try{c.peek().handleText(D)}catch(V){d(V,P)}}var x=r.getPackages().reduce(function(D,P){return D[P.uri]=P.prefix,D},{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(x).on("openTag",function(D,P,V,F){var Q=D.attrs||{},be=Object.keys(Q).reduce(function(de,we){var je=P(Q[we]);return de[we]=je,de},{});!function k(D,P){var V=c.peek();try{c.push(V.handleNode(D))}catch(F){l(F,P,o)&&c.push(new Z1)}}({name:D.name,originalName:D.originalName,attributes:be,ns:D.ns},F)}).on("question",function v(D){if(f.test(D)){var P=p.exec(D),V=P&&P[1];!V||g.test(V)||a.addWarning({message:"unsupported document encoding <"+V+">, falling back to UTF-8"})}}).on("closeTag",function h(){c.pop().handleEnd()}).on("cdata",E).on("text",function(D,P,V){!function C(D,P){D.trim()&&E(D,P)}(P(D),V)}).on("error",l).on("warn",d),new Promise(function(D,P){var V;try{s.parse(e),function u(){var V,F,D=a.elementsById,P=a.references;for(V=0;F=P[V];V++){var Q=F.element,be=D[F.id],He=is(Q).propertiesByName[F.property];if(be||a.addWarning({message:"unresolved reference <"+F.id+">",element:F.element,property:F.property,value:F.id}),He.isMany){var de=Q.get(He.name),we=de.indexOf(F);-1===we&&(we=de.length),be?de[we]=be:de.splice(we,1)}else Q.set(He.name,be)}}()}catch(de){V=de}var F=i.element;!V&&!F&&(V=Ys("failed to parse document as <"+i.type.$descriptor.name+">"));var Q=a.warnings,be=a.references,He=a.elementsById;return V?(V.warnings=Q,P(V)):D({rootElement:F,elementsById:He,references:be,warnings:Q})})},eE.prototype.handler=function(e){return new J1(this.model,e)};var Ite=/<|>|'|"|&|\n\r|\n/g,gF=/<|>|&/g;function Ote(e){var n={},t={},i={},r=[],o=[];this.byUri=function(a){return t[a]||e&&e.byUri(a)},this.add=function(a,s){t[a.uri]=a,s?r.push(a):o.push(a),this.mapPrefix(a.prefix,a.uri)},this.uriByPrefix=function(a){return n[a||"xmlns"]},this.mapPrefix=function(a,s){n[a||"xmlns"]=s},this.getNSKey=function(a){return void 0!==a.prefix?a.uri+"|"+a.prefix:a.uri},this.logUsed=function(a){var s=a.uri,c=this.getNSKey(a);i[c]=this.byUri(s),e&&e.logUsed(a)},this.getUsed=function(a){var c=this;return[].concat(r,o).filter(function s(d){var u=c.getNSKey(d);return i[u]})}}function Pte(e,n){return hF(n)?function Rte(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e):e}function vF(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function _F(e){return Vr(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var Vte={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},jte={"<":"lt",">":"gt","&":"amp"};function yF(e,n,t){return(e=Vr(e)?e:""+e).replace(n,function(i){return"&"+t[i]+";"})}function tE(e){this.tagName=e}function Kc(){}function nE(e){this.tagName=e}function Vn(e,n){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=n}function Lv(e,n){Vn.call(this,e,n)}function Gte(){this.value="",this.write=function(e){this.value+=e}}function Wte(e,n){var t=[""];this.append=function(i){return e.write(i),this},this.appendNewLine=function(){return n&&e.write("\n"),this},this.appendIndent=function(){return n&&e.write(t.join(" ")),this},this.indent=function(){return t.push(""),this},this.unindent=function(){return t.pop(),this}}function Yte(e){return e=I({format:!1,preamble:!0},e||{}),{toXML:function n(t,i){var r=i||new Gte,o=new Wte(r,e.format);if(e.preamble&&o.append('\n'),(new Vn).build(t).serializeTo(o),!i)return r.value}}}function Bv(e,n){fo.call(this,e,n)}tE.prototype.build=function(e){return this.element=e,this},tE.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()},Kc.prototype.serializeValue=Kc.prototype.serializeTo=function(e){e.append(this.escape?function Hte(e){return yF(e,gF,jte)}(this.value):this.value)},Kc.prototype.build=function(e,n){return this.value=n,"String"===e.type&&-1!==n.search(gF)&&(this.escape=!0),this},vF(nE,Kc),nE.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("").appendNewLine()},Vn.prototype.build=function(e){this.element=e;var i,r,n=e.$descriptor,t=this.propertyDescriptor,o=n.isGeneric;return i=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=t?this.nsPropertyTagName(t):this.nsTagName(n),this.tagName=this.addTagName(this.ns),o||(r=function Bte(e){return St(e.$descriptor.properties,function(t){var i=t.name;if(t.isVirtual||!Ja(e,i))return!1;var r=e[i];return r!==t.default&&null!==r&&(!t.isMany||r.length)})}(e),this.parseAttributes(function $te(e){return St(e,function(n){return n.isAttr})}(r)),this.parseContainments(function Ute(e){return St(e,function(n){return!n.isAttr})}(r))),this.parseGenericAttributes(e,i),this},Vn.prototype.nsTagName=function(e){return function Fte(e,n){return I(n.isGeneric?{localName:n.ns.localName}:{localName:Pte(n.ns.localName,n.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},Vn.prototype.nsPropertyTagName=function(e){return function Lte(e,n){return I({localName:n.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},Vn.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},Vn.prototype.nsAttributeName=function(e){var n;if(n=Vr(e)?cr(e):e.ns,e.inherited)return{localName:n.localName};var t=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(t),this.isLocalNs(t)?{localName:n.localName}:I({localName:n.localName},t)},Vn.prototype.parseGeneric=function(e){var n=this,t=this.body,i=[];return R(e,function(r,o){"$body"===o?t.push((new Kc).build({type:"String"},r)):"$children"===o?R(r,function(s){t.push(new Vn(n).build(s))}):0!==o.indexOf("$")&&n.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})}),i},Vn.prototype.parseNsAttribute=function(e,n,t){var o,i=e.$model,r=cr(n);if("xmlns"===r.prefix&&(o={prefix:r.localName,uri:t}),!r.prefix&&"xmlns"===r.localName&&(o={uri:t}),!o)return{name:n,value:t};if(i&&i.getPackage(t))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}},Vn.prototype.parseNsAttributes=function(e,n){var t=this,r=[];return R(e.$attrs,function(o,a){var s=t.parseNsAttribute(e,a,o);s&&r.push(s)}),r},Vn.prototype.parseGenericAttributes=function(e,n){var t=this;R(n,function(i){if(i.name!==Nv)try{t.addAttribute(t.nsAttributeName(i.name),i.value)}catch(r){console.warn("missing namespace information for ",i.name,"=",i.value,"on",e,r)}})},Vn.prototype.parseContainments=function(e){var n=this,t=this.body,i=this.element;R(e,function(r){var o=i.get(r.name),a=r.isReference;if(r.isMany||(o=[o]),r.isBody)t.push((new Kc).build(r,o[0]));else if(iF(r.type))R(o,function(d){t.push(new nE(n.addTagName(n.nsPropertyTagName(r))).build(r,d))});else if(a)R(o,function(d){t.push(new tE(n.addTagName(n.nsPropertyTagName(r))).build(d))});else{var c=pF(r),l=function Cte(e){return"property"===fF(e)}(r);R(o,function(d){var u;u=c?new Lv(n,r):l?new Vn(n,r):new Vn(n),t.push(u.build(d))})}})},Vn.prototype.getNamespaces=function(e){var i,n=this.namespaces,t=this.parent;return n||(i=t&&t.getNamespaces(),e||!i?this.namespaces=n=new Ote(i):n=i),n},Vn.prototype.logNamespace=function(e,n,t){var i=this.getNamespaces(t),r=e.uri,o=e.prefix;return(!i.byUri(r)||t)&&i.add(e,n),i.mapPrefix(o,r),e},Vn.prototype.logNamespaceUsed=function(e,n){var s,c,l,i=this.element.$model,r=this.getNamespaces(n),o=e.prefix,a=e.uri;if(!o&&!a)return{localName:e.localName};if(l=Ete[o]||i&&(i.getPackage(o)||{}).uri,!(a=a||l||r.uriByPrefix(o)))throw new Error("no namespace uri given for prefix <"+o+">");if(!(e=r.byUri(a))){for(s=o,c=1;r.uriByPrefix(s);)s=o+"_"+c++;e=this.logNamespace({prefix:s,uri:a},l===a)}return o&&r.mapPrefix(o,a),e},Vn.prototype.parseAttributes=function(e){var n=this,t=this.element;R(e,function(i){var r=t.get(i.name);if(i.isReference)if(i.isMany){var o=[];R(r,function(a){o.push(a.id)}),r=o.join(" ")}else r=r.id;n.addAttribute(n.nsAttributeName(i),r)})},Vn.prototype.addTagName=function(e){var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),_F(e)},Vn.prototype.addAttribute=function(e,n){var t=this.attrs;Vr(n)&&(n=function zte(e){return yF(e,Ite,Vte)}(n));var i=hN(t,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),r={name:e,value:n};-1!==i?t.splice(i,1,r):t.push(r)},Vn.prototype.serializeAttributes=function(e){var n=this.attrs,t=this.namespaces;t&&(n=function Nte(e){return e.getUsed().filter(function(n){return"xml"!==n.prefix}).map(function(n){return{name:"xmlns"+(n.prefix?":"+n.prefix:""),value:n.uri}})}(t).concat(n)),R(n,function(i){e.append(" ").append(_F(i.name)).append('="').append(i.value).append('"')})},Vn.prototype.serializeTo=function(e){var n=this.body[0],t=n&&n.constructor!==Kc;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(n?">":" />"),n&&(t&&e.appendNewLine().indent(),R(this.body,function(i){i.serializeTo(e)}),t&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()},vF(Lv,Vn),Lv.prototype.parseNsAttributes=function(e){var n=Vn.prototype.parseNsAttributes.call(this,e),t=e.$descriptor;if(t.name===this.propertyDescriptor.type)return n;var i=this.typeNs=this.nsTagName(t);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Nv),(i.prefix?i.prefix+":":"")+o+t.ns.localName),n},Lv.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},(Bv.prototype=Object.create(fo.prototype)).fromXML=function(e,n,t){Vr(n)||(t=n,n="bpmn:Definitions");var i=new eE(I({model:this,lax:!0},t)),r=i.handler(n);return i.fromXML(e,r)},Bv.prototype.toXML=function(e,n){var t=new Yte(n);return new Promise(function(i,r){try{return i({xml:t.toXML(e)})}catch(a){return r(a)}})};var Fne={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function Lne(e,n){return new Bv(I({},Fne,e),n)}function Bi(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}var Bne=new(Ud())({name:"bpmnElement",enumerable:!0},{name:"di",configurable:!0});function wr(e,n){return e.$instanceOf(n)}function jne(e,n){var t={},i=[];function r(L,$){return function(Pe){L(Pe,$)}}function o(L){t[L.id]=L}function l(L,$){try{var Pe=L.di&&function s(L,$){if(L.gfx)throw new Error(n("already rendered {element}",{element:Bi(L)}));return e.element(L,$)}(L,$);return o(L),Pe}catch(ut){d(ut.message,{element:L,error:ut}),console.error(n("failed to import {element}",{element:Bi(L)})),console.error(ut)}}function d(L,$){e.error(L,$)}function u(L){var $=L.bpmnElement;$?$.di?d(n("multiple DI elements defined for {element}",{element:Bi($)}),{element:$}):(Bne.bind($,"di"),$.di=L):d(n("no bpmnElement referenced in {element}",{element:Bi(L)}),{element:L})}function p(L){u(L)}function v(){for(;i.length;)i.shift()()}function k(L,$){_(L,$),be(L.ioSpecification,$),Q(L.artifacts,$),o(L)}function C(L,$){l(L,$)}function D(L,$){l(L,$)}function P(L,$){l(L,$)}function V(L,$){l(L,$)}function F(L,$){l(L,$)}function Q(L,$){R(L,function(Pe){wr(Pe,"bpmn:Association")?i.push(function(){F(Pe,$)}):F(Pe,$)})}function be(L,$){L&&(R(L.dataInputs,r(P,$)),R(L.dataOutputs,r(V,$)))}function He(L,$){_(L,$),Q(L.artifacts,$)}function de(L,$){var Pe=l(L,$);wr(L,"bpmn:SubProcess")&&He(L,Pe||$),wr(L,"bpmn:Activity")&&be(L.ioSpecification,$),i.push(function(){R(L.dataInputAssociations,r(D,$)),R(L.dataOutputAssociations,r(D,$))})}function Ht(L,$){i.push(function(){var Pe=l(L,$);L.childLaneSet&&fe(L.childLaneSet,Pe||$),function z(L){R(L.flowNodeRef,function($){var Pe=$.get("lanes");Pe&&Pe.push(L)})}(L)})}function fe(L,$){R(L.lanes,r(Ht,$))}function _(L,$){(function m(L,$){R(L,function(Pe){wr(Pe,"bpmn:SequenceFlow")?i.push(function(){!function we(L,$){l(L,$)}(Pe,$)}):wr(Pe,"bpmn:BoundaryEvent")?i.unshift(function(){de(Pe,$)}):wr(Pe,"bpmn:FlowNode")?de(Pe,$):wr(Pe,"bpmn:DataObject")||(wr(Pe,"bpmn:DataStoreReference")||wr(Pe,"bpmn:DataObjectReference")?function je(L,$){l(L,$)}(Pe,$):d(n("unrecognized flowElement {element} in context {context}",{element:Bi(Pe),context:$?Bi($.businessObject):"null"}),{element:Pe,context:$}))})})(L.flowElements,$),L.laneSets&&function ve(L,$){R(L,r(fe,$))}(L.laneSets,$)}function S(L,$){var Pe=l(L,$),ut=L.processRef;ut&&k(ut,Pe||$)}return{handleDeferred:v,handleDefinitions:function g(L,$){var Pe=L.diagrams;if($&&-1===Pe.indexOf($))throw new Error(n("diagram not part of bpmn:Definitions"));if(!$&&Pe&&Pe.length&&($=Pe[0]),!$)throw new Error(n("no diagram to display"));!function h(L){!function f(L){u(L),R(L.planeElement,p)}(L.plane)}($);var ut=$.plane;if(!ut)throw new Error(n("no plane for {element}",{element:Bi($)}));var bt=ut.bpmnElement;if(!bt){if(bt=function Vne(e){return on(e.rootElements,function(n){return wr(n,"bpmn:Process")||wr(n,"bpmn:Collaboration")})}(L),!bt)throw new Error(n("no process or collaboration to display"));d(n("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Bi(ut),rootElement:Bi(bt)})),ut.bpmnElement=bt,u(ut)}var xn=function c(L,$){return e.root(L,$)}(bt,ut);if(wr(bt,"bpmn:Process"))k(bt,xn);else{if(!wr(bt,"bpmn:Collaboration"))throw new Error(n("unsupported bpmnElement for {plane}: {rootElement}",{plane:Bi(ut),rootElement:Bi(bt)}));(function A(L){R(L.participants,r(S)),Q(L.artifacts),i.push(function(){!function x(L,$){R(L,r(C,$))}(L.messageFlows)})})(bt),function E(L,$){var Pe=St(L,function(ut){return!function a(L){return t[L.id]}(ut)&&wr(ut,"bpmn:Process")&&ut.laneSets});Pe.forEach(r(k,$))}(L.rootElements,xn)}v()},handleSubProcess:He,registerDi:u}}function Zd(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var n=arguments.length;if(!(n>=1&&Gi(arguments[n-1])))return e.apply(this,arguments);var t=arguments[n-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then(function(r){var o=Object.keys(r)[0];return t(null,r[o])},function(r){return t(r,r.warnings)})}}var bF='';function Vv(e){return e.join(";")}var Sf,xF=Vv(["color: #404040"]),Wne='
'+bF+'Web-based tooling for BPMN, DMN and CMMN diagrams powered by bpmn.io.
';function jn(e){e=I({},Kne,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function Zne(e){var i=Dn(''+bF+"");e.appendChild(i),ct.bind(i,"click",function(r){(function Yne(){Sf||(Sf=Dn(Wne),Hr.bind(Sf,".backdrop","click",function(e){document.body.removeChild(Sf)})),document.body.appendChild(Sf)})(),r.preventDefault()})}(this._container),this._init(this._container,this._moddle,e)}function jv(e,n){return e.warnings=n,e}Xe()(jn,Wd),jn.prototype.importXML=Zd(function(n,t){var i=this;return new Promise(function(o,a){n=i._emit("import.parse.start",{xml:n})||n,i._moddle.fromXML(n,"bpmn:Definitions").then(function(s){var c=s.rootElement,d=s.warnings;c=i._emit("import.parse.complete",function r(o){var a=i.get("eventBus").createEvent(o);return Object.defineProperty(a,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete is deprecated and will be removed in future library versions")),{warnings:o.warnings,references:o.references,elementsById:o.elementsById}}}),a}({error:null,definitions:c,elementsById:s.elementsById,references:s.references,warnings:d}))||c,i.importDefinitions(c,t).then(function(h){var f=[].concat(d,h.warnings||[]);return i._emit("import.done",{error:null,warnings:f}),o({warnings:f})}).catch(function(h){var f=[].concat(d,h.warnings||[]);return i._emit("import.done",{error:h,warnings:f}),a(jv(h,f))})}).catch(function(s){return i._emit("import.parse.complete",{error:s}),s=function qne(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),e}(s),i._emit("import.done",{error:s,warnings:s.warnings}),a(s)})})}),jn.prototype.importDefinitions=Zd(function(n,t){var i=this;return new Promise(function(r,o){i._setDefinitions(n),i.open(t).then(function(a){return r({warnings:a.warnings})}).catch(function(a){return o(a)})})}),jn.prototype.open=Zd(function(n){var t=this._definitions,i=n,r=this;return new Promise(function(o,a){if(!t){var s=new Error("no XML imported");return a(jv(s,[]))}if("string"==typeof n&&(i=function Xne(e,n){return n&&on(e.diagrams,function(t){return t.id===n})||null}(t,n),!i)){var c=new Error("BPMNDiagram <"+n+"> not found");return a(jv(c,[]))}try{r.clear()}catch(l){return a(jv(l,[]))}(function zne(e,n,t){var i,r,o,s=[];return new Promise(function(l,d){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),r.fire("import.render.start",{definitions:n}),function c(l,d){new jne({root:function(f){return i.add(f)},element:function(f,p){return i.add(f,p)},error:function(f,p){s.push({message:f,context:p})}},o).handleDefinitions(l,d)}(n,t),r.fire("import.render.complete",{error:void 0,warnings:s}),l({warnings:s})}catch(u){return u.warnings=s,d(u)}})})(r,t,i).then(function(l){return o({warnings:l.warnings})}).catch(function(l){return a(l)})})}),jn.prototype.saveXML=Zd(function(n){n=n||{};var t=this,i=this._definitions;return new Promise(function(r){if(!i)return r({error:new Error("no definitions loaded")});i=t._emit("saveXML.start",{definitions:i})||i,t._moddle.toXML(i,n).then(function(o){var a=o.xml;return a=t._emit("saveXML.serialized",{xml:a})||a,r({xml:a})})}).catch(function(r){return{error:r}}).then(function(r){t._emit("saveXML.done",r);var o=r.error;return o?Promise.reject(o):r})}),jn.prototype.saveSVG=Zd(function(n){n=n||{};var t=this;return new Promise(function(i,r){var o,a;t._emit("saveSVG.start");try{var s=t.get("canvas"),c=s.getDefaultLayer(),l=Bn("defs",s._svg),d=AN(c),u=l?""+AN(l)+"":"",h=c.getBBox();o='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+u+d+""}catch(f){a=f}return t._emit("saveSVG.done",{error:a,svg:o}),a?r(a):i({svg:o})})}),jn.prototype._setDefinitions=function(e){this._definitions=e},jn.prototype.getModules=function(){return this._modules},jn.prototype.clear=function(){this.getDefinitions()&&(this.get("elementRegistry").forEach(function(e){var n=e.businessObject;n&&n.di&&delete n.di}),Wd.prototype.clear.call(this))},jn.prototype.destroy=function(){Wd.prototype.destroy.call(this),ga(this._container)},jn.prototype.on=function(e,n,t,i){return this.get("eventBus").on(e,n,t,i)},jn.prototype.off=function(e,n){this.get("eventBus").off(e,n)},jn.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Bn(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},jn.prototype.getDefinitions=function(){return this._definitions},jn.prototype.detach=function(){var e=this._container,n=e.parentNode;n&&(this._emit("detach",{}),n.removeChild(e))},jn.prototype._init=function(e,n,t){var i=t.modules||this.getModules(),a=[].concat([{bpmnjs:["value",this],moddle:["value",n]}],i,t.additionalModules||[]),s=I(zs(t,["additionalModules"]),{canvas:I({},t.canvas,{container:e}),modules:a});Wd.call(this,s),t&&t.container&&this.attachTo(t.container)},jn.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},jn.prototype._createContainer=function(e){var n=Dn('
');return I(n.style,{width:wF(e.width),height:wF(e.height),position:e.position}),n},jn.prototype._createModdle=function(e){return new Lne(I({},this._moddleExtensions,e.moddleExtensions))},jn.prototype._modules=[];var Kne={width:"100%",height:"100%",position:"relative"};function wF(e){return e+(yt(e)?"px":"")}function Df(e){jn.call(this,e),this.on("import.parse.complete",function(n){n.error||this._collectIds(n.definitions,n.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}function b(e,n){var t=$e(e);return t&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)}function Kt(e,n){return Gc(n,function(t){return b(e,t)})}function $e(e){return e&&e.businessObject||e}function ln(e){return!b(e,"bpmn:CallActivity")&&(b(e,"bpmn:SubProcess")?$e(e).di&&!!$e(e).di.isExpanded:!b(e,"bpmn:Participant")||!!$e(e).processRef)}function Gr(e){return e&&!!$e(e).triggeredByEvent}function zv(e,n){var t=$e(e),i=!1;return t.eventDefinitions&&R(t.eventDefinitions,function(r){b(r,n)&&(i=!0)}),i}function EF(e){return b(e,"bpmn:FlowElement")||b(e,"bpmn:Participant")||b(e,"bpmn:Lane")||b(e,"bpmn:SequenceFlow")||b(e,"bpmn:MessageFlow")||b(e,"bpmn:DataInput")||b(e,"bpmn:DataOutput")?"name":b(e,"bpmn:TextAnnotation")?"text":b(e,"bpmn:Group")?"categoryValueRef":void 0}function Go(e){var n=e.businessObject,t=EF(n);if(t)return"categoryValueRef"===t?function nie(e){var n=e.categoryValueRef;return n&&n.value||""}(n):n[t]||""}function _a(e,n,t){return Gc(e.eventDefinitions,function(r){return r.$type===n&&function i(r,o){return Uc(o,function(a,s){return r[s]==a})}(e,t)})}function Qd(e){return e.businessObject.di}function qi(e){return e.businessObject}function zt(e,n){var t=Qd(e);return t.get("color:background-color")||t.get("bioc:fill")||n||"white"}function Be(e,n){var t=Qd(e);return t.get("color:border-color")||t.get("bioc:stroke")||n||"black"}function kf(e,n,t){var r=Qd(e).get("label");return r&&r.get("color:color")||n||Be(e,t)}Xe()(Df,jn),Df.prototype._createModdle=function(e){var n=jn.prototype._createModdle.call(this,e);return n.ids=new S1([32,36,1]),n},Df.prototype._collectIds=function(e,n){var r,i=e.$model.ids;for(r in i.clear(),n)i.claim(r,n[r])};var die=new S1,Jd=.95;function Xc(e,n,t,i,r,o,a){Uo.call(this,n,a);var s=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,l=e&&e.defaultLabelColor,d=die.next(),u={},h=t.computeStyle;function f(_,m){var S=I({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},m.attrs),A=m.ref||{x:0,y:0},z=m.scale||1;"none"===S.strokeDasharray&&(S.strokeDasharray=[1e4,1]);var L=qe("marker");ge(m.element,S),Ze(L,m.element),ge(L,{id:_,viewBox:"0 0 20 20",refX:A.x,refY:A.y,markerWidth:20*z,markerHeight:20*z,orient:"auto"});var $=Bn("defs",r._svg);$||($=qe("defs"),Ze(r._svg,$)),Ze($,L),u[_]=L}function p(_){return _.replace(/[^0-9a-zA-z]+/g,"_")}function g(_,m,S){var A=_+"-"+p(m)+"-"+p(S)+"-"+d;return u[A]||function v(_,m,S,A){if("sequenceflow-end"===m){var z=qe("path");ge(z,{d:"M 1 5 L 11 10 L 1 15 Z"}),f(_,{element:z,ref:{x:11,y:10},scale:.5,attrs:{fill:A,stroke:A}})}if("messageflow-start"===m){var L=qe("circle");ge(L,{cx:6,cy:6,r:3.5}),f(_,{element:L,attrs:{fill:S,stroke:A},ref:{x:6,y:6}})}if("messageflow-end"===m){var $=qe("path");ge($,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),f(_,{element:$,attrs:{fill:S,stroke:A,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===m){var Pe=qe("path");ge(Pe,{d:"M 11 5 L 1 10 L 11 15"}),f(_,{element:Pe,attrs:{fill:"none",stroke:A,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===m){var ut=qe("path");ge(ut,{d:"M 1 5 L 11 10 L 1 15"}),f(_,{element:ut,attrs:{fill:"none",stroke:A,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===m){var bt=qe("path");ge(bt,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),f(_,{element:bt,attrs:{fill:S,stroke:A},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===m){var xn=qe("path");ge(xn,{d:"M 6 4 L 10 16"}),f(_,{element:xn,attrs:{stroke:A},ref:{x:0,y:10},scale:.5})}}(A,_,m,S),"url(#"+A+")"}function k(_,m,S,A,z){si(A)&&(z=A,A=0),A=A||0,"none"===(z=h(z,{stroke:"black",strokeWidth:2,fill:"white"})).fill&&delete z.fillOpacity;var L=m/2,$=S/2,Pe=qe("circle");return ge(Pe,{cx:L,cy:$,r:Math.round((m+S)/4-A)}),ge(Pe,z),Ze(_,Pe),Pe}function E(_,m,S,A,z,L){si(z)&&(L=z,z=0),z=z||0,L=h(L,{stroke:"black",strokeWidth:2,fill:"white"});var $=qe("rect");return ge($,{x:z,y:z,width:m-2*z,height:S-2*z,rx:A,ry:A}),ge($,L),Ze(_,$),$}function x(_,m,S){var A=vf(m,S=h(S,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"}));return Ze(_,A),A}function D(_,m,S){S=h(S,["no-fill"],{strokeWidth:2,stroke:"black"});var A=qe("path");return ge(A,{d:m}),ge(A,S),Ze(_,A),A}function P(_,m,S,A){return D(m,S,I({"data-marker":_},A))}function V(_){return function(m,S){return Ht[_](m,S)}}function F(_){return Ht[_]}function Q(_,m){var S=qi(_),A=function rie(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(S);return S.eventDefinitions&&S.eventDefinitions.length>1?S.parallelMultiple?F("bpmn:ParallelMultipleEventDefinition")(m,_,A):F("bpmn:MultipleEventDefinition")(m,_,A):_a(S,"bpmn:MessageEventDefinition")?F("bpmn:MessageEventDefinition")(m,_,A):_a(S,"bpmn:TimerEventDefinition")?F("bpmn:TimerEventDefinition")(m,_,A):_a(S,"bpmn:ConditionalEventDefinition")?F("bpmn:ConditionalEventDefinition")(m,_):_a(S,"bpmn:SignalEventDefinition")?F("bpmn:SignalEventDefinition")(m,_,A):_a(S,"bpmn:EscalationEventDefinition")?F("bpmn:EscalationEventDefinition")(m,_,A):_a(S,"bpmn:LinkEventDefinition")?F("bpmn:LinkEventDefinition")(m,_,A):_a(S,"bpmn:ErrorEventDefinition")?F("bpmn:ErrorEventDefinition")(m,_,A):_a(S,"bpmn:CancelEventDefinition")?F("bpmn:CancelEventDefinition")(m,_,A):_a(S,"bpmn:CompensateEventDefinition")?F("bpmn:CompensateEventDefinition")(m,_,A):_a(S,"bpmn:TerminateEventDefinition")?F("bpmn:TerminateEventDefinition")(m,_,A):null}function be(_,m,S){S=I({size:{width:100}},S);var A=o.createText(m||"",S);return Pt(A).add("djs-label"),Ze(_,A),A}function He(_,m,S){return be(_,qi(m).name,{box:m,align:S,padding:5,style:{fill:kf(m,l,c)}})}function we(_,m,S){W1(be(_,m,{box:{height:30,width:S.height},align:"center-middle",style:{fill:kf(S,l,c)}}),0,1*S.height,270)}function je(_){for(var m=_.waypoints,S="m "+m[0].x+","+m[0].y,A=1;A1)for(;i=t.shift();){if(!(i.length+oE?C.width:E},0),g=o.top;"middle"===r.vertical&&(g+=(t.height-f)/2),g-=(s||l[0].height)/4;var v=qe("text");return ge(v,i),R(l,function(E){var C;switch(g+=s||E.height,r.horizontal){case"left":C=o.left;break;case"right":C=(a?p:d)-o.right-E.width;break;default:C=Math.max(((a?p:d)-E.width)/2+o.left,0)}var x=qe("tspan");ge(x,{x:C,y:g}),x.textContent=E.text,Ze(v,x)}),ti(u),{dimensions:{width:p,height:f},element:v}},SF.$inject=["config.textRenderer"];var kie=/\{([^{}]+)\}/g,Tie=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;const Iie={__init__:["bpmnRenderer"],bpmnRenderer:["type",Xc],textRenderer:["type",SF],pathMap:["type",rE]},Uv={translate:["value",function Oie(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(t,i){return n[i]||"{"+i+"}"})}]};var eu={width:90,height:20},DF=15;function ya(e){return b(e,"bpmn:Event")||b(e,"bpmn:Gateway")||b(e,"bpmn:DataStoreReference")||b(e,"bpmn:DataObjectReference")||b(e,"bpmn:DataInput")||b(e,"bpmn:DataOutput")||b(e,"bpmn:SequenceFlow")||b(e,"bpmn:MessageFlow")||b(e,"bpmn:Group")}function tu(e){return mi(e.label)}function nu(e){return e.waypoints?function Rie(e){var n=e.length/2-1,t=e[Math.floor(n)],i=e[Math.ceil(n+.01)],r=function Pie(e){var n=e.length/2-1,t=e[Math.floor(n)],i=e[Math.ceil(n+.01)];return{x:t.x+(i.x-t.x)/2,y:t.y+(i.y-t.y)/2}}(e),o=Math.atan((i.y-t.y)/(i.x-t.x)),a=r.x,s=r.y;return Math.abs(o)=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}(n,Mt(l))||(n=this._canvas.getRootElement())),this._canvas.addShape(i,n,a)}else{if(!b(t,"bpmndi:BPMNEdge"))throw new Error(r("unknown di {di} for element {semantic}",{di:Bi(t),semantic:Bi(e)}));var d=this._getSource(e),u=this._getTarget(e);i=this._elementFactory.createConnection(Gv(e,{hidden:n&&(n.hidden||n.collapsed),source:d,target:u,waypoints:Fie(e,d,u)})),b(e,"bpmn:DataAssociation")&&(n=null),b(e,"bpmn:SequenceFlow")&&(a=0),this._canvas.addConnection(i,n,a)}return ya(e)&&Go(i)&&this.addLabel(e,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},rs.prototype._attachBoundary=function(e,n){var t=this._translate,i=e.attachedToRef;if(!i)throw new Error(t("missing {semantic}#attachedToRef",{semantic:Bi(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw kF(t,e,i,"attachedToRef");n.host=r,o||(r.attachers=o=[]),-1===o.indexOf(n)&&o.push(n)},rs.prototype.addLabel=function(e,n){var t,i,r;return t=function Nie(e,n){var t,i,r,a=e.di.label;return a&&a.bounds?(r=a.bounds,i={width:Math.max(eu.width,r.width),height:r.height},t={x:r.x+r.width/2,y:r.y+r.height/2}):(t=nu(n),i=eu),I({x:t.x-i.width/2,y:t.y-i.height/2},i)}(e,n),(i=Go(n))&&(t=this._textRenderer.getExternalLabelBounds(t,i)),r=this._elementFactory.createLabel(Gv(e,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Go(n),x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height)})),this._canvas.addShape(r,n.parent)},rs.prototype._getEnd=function(e,n){var t,i,r=e.$type,o=this._translate;if(i=e[n+"Ref"],"source"===n&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===n&&"bpmn:DataOutputAssociation"===r||"target"===n&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),t=i&&this._getElement(i))return t;throw i?kF(o,e,i,n+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Bi(e),side:n}))},rs.prototype._getSource=function(e){return this._getEnd(e,"source")},rs.prototype._getTarget=function(e){return this._getEnd(e,"target")},rs.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};const Vie={__depends__:[Iie,{__depends__:[Uv],bpmnImporter:["type",rs]}]};function TF(e){!e||"function"!=typeof e.stopPropagation||e.stopPropagation()}function iu(e){return e.originalEvent||e.srcEvent}function oE(e,n){TF(e),TF(iu(e))}function qs(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function aE(e,n){return(iu(e)||e).button===n}function Ks(e){return aE(e,0)}function ru(e){var n=iu(e)||e;return!!Ks(e)&&(function jie(){return/mac/i.test(navigator.platform)}()?n.metaKey:n.ctrlKey)}function AF(e){var n=iu(e)||e;return Ks(e)&&n.shiftKey}function Hie(e){return!0}function Wv(e){return Ks(e)||function zie(e){return aE(e,1)}(e)}function IF(e,n,t){var i=this;function r(V,F,Q){var be,He;(function s(V,F){return!(l[V]||Ks)(F)})(V,F)||(Q?He=n.getGraphics(Q):(be=F.delegateTarget||F.target)&&(Q=n.get(He=be)),He&&Q&&!1===e.fire(V,{element:Q,gfx:He,originalEvent:F})&&(F.stopPropagation(),F.preventDefault()))}var o={};function a(V){return o[V]}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":Hie,"element.mousedown":Wv,"element.mouseup":Wv,"element.click":Wv,"element.dblclick":Wv};function h(V,F,Q,be){var He=o[Q]=function(de){r(Q,de)};be&&(l[Q]=be),He.$delegate=Hr.bind(V,"svg, .djs-element",F,He)}function f(V,F,Q){var be=a(Q);be&&Hr.unbind(V,F,be.$delegate)}e.on("canvas.destroy",function(V){!function g(V){R(c,function(F,Q){f(V,Q,F)})}(V.svg)}),e.on("canvas.init",function(V){!function p(V){R(c,function(F,Q){h(V,Q,F)})}(V.svg)}),e.on(["shape.added","connection.added"],function(V){e.fire("interactionEvents.createHit",{element:V.element,gfx:V.gfx})}),e.on(["shape.changed","connection.changed"],500,function(V){e.fire("interactionEvents.updateHit",{element:V.element,gfx:V.gfx})}),e.on("interactionEvents.createHit",500,function(V){i.createDefaultHit(V.element,V.gfx)}),e.on("interactionEvents.updateHit",function(V){i.updateDefaultHit(V.element,V.gfx)});var v=x("djs-hit djs-hit-stroke"),k=x("djs-hit djs-hit-click-stroke"),C={all:x("djs-hit djs-hit-all"),"click-stroke":k,stroke:v};function x(V,F){return F=I({stroke:"white",strokeWidth:15},F||{}),t.cls(V,["no-fill","no-border"],F)}function D(V,F){var Q=C[F];if(!Q)throw new Error("invalid hit type <"+F+">");return ge(V,Q),V}function P(V,F){Ze(V,F)}this.removeHits=function(V){R(k1(".djs-hit",V),ti)},this.createDefaultHit=function(V,F){var Q=V.waypoints,be=V.isFrame;return Q?this.createWaypointsHit(F,Q):this.createBoxHit(F,be?"stroke":"all",{width:V.width,height:V.height})},this.createWaypointsHit=function(V,F){var Q=vf(F);return D(Q,"stroke"),P(V,Q),Q},this.createBoxHit=function(V,F,Q){Q=I({x:0,y:0},Q);var be=qe("rect");return D(be,F),ge(be,Q),P(V,be),be},this.updateDefaultHit=function(V,F){var Q=Bn(".djs-hit",F);if(Q)return V.waypoints?function $ee(e,n){ge(e,{points:MN(n)})}(Q,V.waypoints):ge(Q,{width:V.width,height:V.height}),Q},this.fire=r,this.triggerMouseEvent=function d(V,F,Q){var be=c[V];if(!be)throw new Error("unmapped DOM event name <"+V+">");return r(be,F,Q)},this.mouseHandler=a,this.registerEvent=h,this.unregisterEvent=f}IF.$inject=["eventBus","elementRegistry","styles"];const Tf={__init__:["interactionEvents"],interactionEvents:["type",IF]};function Yv(e,n,t){this.offset=6;var i=n.cls("djs-outline",["no-fill"]),r=this;function o(a,s){var c=qe("rect");return ge(c,I({x:10,y:10,width:100,height:100},i)),Ze(a,c),c}e.on(["shape.added","shape.changed"],500,function(a){var s=a.element,c=a.gfx,l=Bn(".djs-outline",c);l||(l=o(c)),r.updateShapeOutline(l,s)}),e.on(["connection.added","connection.changed"],function(a){var s=a.element,c=a.gfx,l=Bn(".djs-outline",c);l||(l=o(c)),r.updateConnectionOutline(l,s)})}Yv.prototype.updateShapeOutline=function(e,n){ge(e,{x:-this.offset,y:-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},Yv.prototype.updateConnectionOutline=function(e,n){var t=Fi(n);ge(e,{x:t.x-this.offset,y:t.y-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},Yv.$inject=["eventBus","styles","elementRegistry"];const OF={__init__:["outline"],outline:["type",Yv]};function ou(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var t=this;e.on(["shape.remove","connection.remove"],function(i){t.deselect(i.element)}),e.on(["diagram.clear","plane.set"],function(i){t.select(null)})}ou.$inject=["eventBus","canvas"],ou.prototype.deselect=function(e){var n=this._selectedElements,t=n.indexOf(e);if(-1!==t){var i=n.slice();n.splice(t,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}},ou.prototype.get=function(){return this._selectedElements},ou.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},ou.prototype.select=function(e,n){var t=this._selectedElements,i=t.slice();Lt(e)||(e=e?[e]:[]);var r=this._canvas;e=e.filter(function(o){return r.findPlane(o)===r.getActivePlane()}),n?R(e,function(o){-1===t.indexOf(o)&&t.push(o)}):this._selectedElements=t=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})};var PF="selected";function NF(e,n,t,i){function r(a,s){n.addMarker(a,s)}function o(a,s){n.removeMarker(a,s)}this._multiSelectionBox=null,e.on("element.hover",function(a){r(a.element,"hover")}),e.on("element.out",function(a){o(a.element,"hover")}),e.on("selection.changed",function(a){var l=a.oldSelection,d=a.newSelection;R(l,function(u){-1===d.indexOf(u)&&function s(u){o(u,PF)}(u)}),R(d,function(u){-1===l.indexOf(u)&&function c(u){r(u,PF)}(u)})})}function FF(e,n,t,i){e.on("create.end",500,function(r){var o=r.context,s=o.elements,l=(o.hints||{}).autoSelect;if(o.canExecute){if(!1===l)return;Lt(l)?n.select(l):n.select(s.filter(Uie))}}),e.on("connect.end",500,function(r){var o=r.context,s=o.hover;o.canExecute&&s&&n.select(s)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=i.get(r.context.shape.id);on(o,function(c){return a.id===c.id})||n.select(a)}),e.on("element.click",function(r){if(Ks(r)){var o=r.element;o===t.getRootElement()&&(o=null);var a=n.isSelected(o),s=n.get().length>1,c=ru(r)||AF(r);if(a&&s)return c?n.deselect(o):n.select(o);a?n.deselect(o):n.select(o,c)}})}function Uie(e){return!e.hidden}NF.$inject=["eventBus","canvas","selection","styles"],FF.$inject=["eventBus","selection","canvas","elementRegistry"];const ba={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Tf,OF],selection:["type",ou],selectionVisuals:["type",NF],selectionBehavior:["type",FF]};function sE(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}sE.prototype.next=function(){return this._prefix+ ++this._counter};var Gie=new sE("ov");function Ai(e,n,t,i){this._eventBus=n,this._canvas=t,this._elementRegistry=i,this._ids=Gie,this._overlayDefaults=I({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=function Yie(e){var n=Dn('
');return e.insertBefore(n,e.firstChild),n}(t.getContainer()),this._init()}function LF(e,n,t){I(e.style,{left:n+"px",top:t+"px"})}function Af(e,n){e.style.display=!1===n?"none":""}function BF(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(t){e.style[t+"transform"]=n})}Ai.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ai.prototype.get=function(e){if(Vr(e)&&(e={id:e}),Vr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?St(n.overlays,$o({type:e.type})):n.overlays.slice():[]}return e.type?St(this._overlays,$o({type:e.type})):e.id?this._overlays[e.id]:null},Ai.prototype.add=function(e,n,t){if(si(n)&&(t=n,n=null),e.id||(e=this._elementRegistry.get(e)),!t.position)throw new Error("must specifiy overlay position");if(!t.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return t=I({},this._overlayDefaults,t,{id:i,type:n,element:e,html:t.html}),this._addOverlay(t),i},Ai.prototype.remove=function(e){var n=this.get(e)||[];Lt(n)||(n=[n]);var t=this;R(n,function(i){var r=t._getOverlayContainer(i.element,!0);if(i&&(ga(i.html),ga(i.htmlContainer),delete i.htmlContainer,delete i.element,delete t._overlays[i.id]),r){var o=r.overlays.indexOf(i);-1!==o&&r.overlays.splice(o,1)}})},Ai.prototype.show=function(){Af(this._overlayRoot)},Ai.prototype.hide=function(){Af(this._overlayRoot,!1)},Ai.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Ev(this._overlayRoot)},Ai.prototype._updateOverlayContainer=function(e){var n=e.element,t=e.html,i=n.x,r=n.y;if(n.waypoints){var o=Fi(n);i=o.x,r=o.y}LF(t,i,r),zr(e.html,"data-container-id",n.id)},Ai.prototype._updateOverlay=function(e){var a,s,n=e.position,t=e.htmlContainer,i=e.element,r=n.left,o=n.top;void 0!==n.right&&(a=i.waypoints?Fi(i).width:i.width,r=-1*n.right+a),void 0!==n.bottom&&(s=i.waypoints?Fi(i).height:i.height,o=-1*n.bottom+s),LF(t,r||0,o||0)},Ai.prototype._createOverlayContainer=function(e){var n=Dn('
');this._overlayRoot.appendChild(n);var t={html:n,element:e,overlays:[]};return this._updateOverlayContainer(t),this._overlayContainers.push(t),t},Ai.prototype._updateRoot=function(e){var n=e.scale||1,t="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";BF(this._overlayRoot,t)},Ai.prototype._getOverlayContainer=function(e,n){var t=on(this._overlayContainers,function(i){return i.element===e});return t||n?t:this._createOverlayContainer(e)},Ai.prototype._addOverlay=function(e){var r,o,n=e.id,t=e.element,i=e.html;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Vr(i)&&(i=Dn(i)),o=this._getOverlayContainer(t),(r=Dn('
')).appendChild(i),e.type&&fi(r).add("djs-overlay-"+e.type);var a=this._canvas.findPlane(t),s=this._canvas.getActivePlane();e.plane=a,a!==s&&Af(r,!1),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ai.prototype._updateOverlayVisibilty=function(e,n){var t=e.show,r=t&&t.minZoom,o=t&&t.maxZoom,a=e.htmlContainer,c=!0;(e.plane!==this._canvas.getActivePlane()||t&&(zo(r)&&r>n.scale||zo(o)&&or&&(a=(1/n.scale||1)*r)),zo(a)&&(s="scale("+a+","+a+")"),BF(o,s)},Ai.prototype._updateOverlaysVisibilty=function(e){var n=this;R(this._overlays,function(t){n._updateOverlayVisibilty(t,e)})},Ai.prototype._init=function(){var e=this._eventBus,n=this;e.on("canvas.viewbox.changing",function(i){n.hide()}),e.on("canvas.viewbox.changed",function(i){!function t(i){n._updateRoot(i),n._updateOverlaysVisibilty(i),n.show()}(i.viewbox)}),e.on(["shape.remove","connection.remove"],function(i){var r=i.element;R(n.get({element:r}),function(c){n.remove(c.id)});var a=n._getOverlayContainer(r);if(a){ga(a.html);var s=n._overlayContainers.indexOf(a);-1!==s&&n._overlayContainers.splice(s,1)}}),e.on("element.changed",500,function(i){var o=n._getOverlayContainer(i.element,!0);o&&(R(o.overlays,function(a){n._updateOverlay(a)}),n._updateOverlayContainer(o))}),e.on("element.marker.update",function(i){var r=n._getOverlayContainer(i.element,!0);r&&fi(r.html)[i.add?"add":"remove"](i.marker)}),e.on("plane.set",function(i){R(n._overlays,function(r){Af(r.htmlContainer,r.plane===i.plane)})}),e.on("diagram.clear",this.clear,this)};const cE={__init__:["overlays"],overlays:["type",Ai]};function Xs(e){jn.call(this,e)}Xe()(Xs,jn),Xs.prototype._modules=[Vie,Uv,ba,cE],Xs.prototype._moddleExtensions={};var Qie=["c","C",67],Jie=["v","V",86],ere=["y","Y",89],VF=["z","Z",90];function Wr(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function Wo(e,n){return-1!==(e=Lt(e)?e:[e]).indexOf(n.key)||-1!==e.indexOf(n.keyCode)}function lE(e){return e.shiftKey}var qv="keyboard.keydown",jF="input-handle-modified-keys";function Mi(e,n){var t=this;this._config=e||{},this._eventBus=n,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),n.on("diagram.destroy",function(){t._fire("destroy"),t.unbind()}),n.on("diagram.init",function(){t._fire("init")}),n.on("attach",function(){e&&e.bindTo&&t.bind(e.bindTo)}),n.on("detach",function(){t.unbind()})}Mi.$inject=["config.keyboard","eventBus"],Mi.prototype._keydownHandler=function(e){this._keyHandler(e,qv)},Mi.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},Mi.prototype._keyHandler=function(e,n){this._isEventIgnored(e)||this._eventBus.fire(n||qv,{keyEvent:e})&&e.preventDefault()},Mi.prototype._isEventIgnored=function(e){return function cre(e){return e&&(Cv(e,"input, textarea")||"true"===e.contentEditable)}(e.target)&&this._isModifiedKeyIgnored(e)},Mi.prototype._isModifiedKeyIgnored=function(e){return!Wr(e)||!this._getAllowedModifiers(e.target).includes(e.key)},Mi.prototype._getAllowedModifiers=function(e){var n=Wc(e,"["+jF+"]",!0);return!n||this._node&&!this._node.contains(n)?[]:n.getAttribute(jF).split(",")},Mi.prototype.bind=function(e){this.unbind(),this._node=e,ct.bind(e,"keydown",this._keydownHandler,!0),ct.bind(e,"keyup",this._keyupHandler,!0),this._fire("bind")},Mi.prototype.getBinding=function(){return this._node},Mi.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),ct.unbind(e,"keydown",this._keydownHandler,!0),ct.unbind(e,"keyup",this._keyupHandler,!0)),this._node=null},Mi.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},Mi.prototype.addListener=function(e,n,t){Gi(e)&&(t=n,n=e,e=1e3),this._eventBus.on(t||qv,e,n)},Mi.prototype.removeListener=function(e,n){this._eventBus.off(n||qv,e)},Mi.prototype.hasModifier=function tre(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},Mi.prototype.isCmd=Wr,Mi.prototype.isShift=lE,Mi.prototype.isKey=Wo;var lre=500;function au(e,n){var t=this;e.on("editorActions.init",lre,function(i){t.registerBindings(n,i.editorActions)})}au.$inject=["eventBus","keyboard"],au.prototype.registerBindings=function(e,n){function t(i,r){n.isRegistered(i)&&e.addListener(r)}t("undo",function(i){if(function rre(e){return Wr(e)&&!lE(e)&&Wo(VF,e)}(i.keyEvent))return n.trigger("undo"),!0}),t("redo",function(i){if(function ore(e){return Wr(e)&&(Wo(ere,e)||Wo(VF,e)&&lE(e))}(i.keyEvent))return n.trigger("redo"),!0}),t("copy",function(i){if(function nre(e){return Wr(e)&&Wo(Qie,e)}(i.keyEvent))return n.trigger("copy"),!0}),t("paste",function(i){if(function ire(e){return Wr(e)&&Wo(Jie,e)}(i.keyEvent))return n.trigger("paste"),!0}),t("stepZoom",function(i){var r=i.keyEvent;if(Wo(["+","Add","="],r)&&Wr(r))return n.trigger("stepZoom",{value:1}),!0}),t("stepZoom",function(i){var r=i.keyEvent;if(Wo(["-","Subtract"],r)&&Wr(r))return n.trigger("stepZoom",{value:-1}),!0}),t("zoom",function(i){var r=i.keyEvent;if(Wo("0",r)&&Wr(r))return n.trigger("zoom",{value:1}),!0}),t("removeSelection",function(i){if(Wo(["Backspace","Delete","Del"],i.keyEvent))return n.trigger("removeSelection"),!0})};const dE={__init__:["keyboard","keyboardBindings"],keyboard:["type",Mi],keyboardBindings:["type",au]};var pre={moveSpeed:50,moveSpeedAccelerated:200};function zF(e,n,t){var i=this;this._config=I({},pre,e||{}),n.addListener(function r(o){var a=o.keyEvent,s=i._config;if(n.isCmd(a)&&n.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],a)){var l,c=n.isShift(a)?s.moveSpeedAccelerated:s.moveSpeed;switch(a.key){case"ArrowLeft":case"Left":l="left";break;case"ArrowUp":case"Up":l="up";break;case"ArrowRight":case"Right":l="right";break;case"ArrowDown":case"Down":l="down"}return i.moveCanvas({speed:c,direction:l}),!0}}),this.moveCanvas=function(o){var a=0,s=0,l=o.speed/Math.min(Math.sqrt(t.viewbox().scale),1);switch(o.direction){case"left":a=l;break;case"up":s=l;break;case"right":a=-l;break;case"down":s=-l}t.scroll({dx:a,dy:s})}}zF.$inject=["config.keyboardMove","keyboard","canvas"];const HF={__depends__:[dE],__init__:["keyboardMove"],keyboardMove:["type",zF]};var mre=/^djs-cursor-.*$/;function Kv(e){var n=fi(document.body);n.removeMatching(mre),e&&n.add("djs-cursor-"+e)}function $F(){Kv(null)}var gre=5e3;function UF(e,n){function t(){return!1}return e.once(n=n||"element.click",gre,t),function(){e.off(n,t)}}function Mf(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function xa(e,n){return{x:e.x-n.x,y:e.y-n.y}}function GF(e,n){var t;function i(a){var s=t.start,c=t.button,l=qs(a),d=xa(l,s);!t.dragging&&function _re(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}(d)>15&&(t.dragging=!0,0===c&&UF(e),Kv("grab")),t.dragging&&(d=xa(l,t.last||t.start),n.scroll({dx:d.x,dy:d.y}),t.last=l),a.preventDefault()}function r(a){ct.unbind(document,"mousemove",i),ct.unbind(document,"mouseup",r),t=null,$F()}e.on("element.mousedown",500,function(a){return function o(a){if(!Wc(a.target,".djs-draggable")){var s=a.button;if(!(s>=2||a.ctrlKey||a.shiftKey||a.altKey))return t={button:s,start:qs(a)},ct.bind(document,"mousemove",i),ct.bind(document,"mouseup",r),!0}}(a.originalEvent)}),this.isActive=function(){return!!t}}GF.$inject=["eventBus","canvas"];const WF={__init__:["moveCanvas"],moveCanvas:["type",GF]};function uE(e){return Math.log(e)/Math.log(10)}function YF(e,n){var t=uE(e.min),i=uE(e.max);return(Math.abs(t)+Math.abs(i))/n}var bre=Math.sign||function(e){return e>=0?1:-1},hE={min:.2,max:4};function wa(e,n,t){e=e||{},this._enabled=!1,this._canvas=t,this._container=t._container,this._handleWheel=Wi(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||.75;var i=this;n.on("canvas.init",function(r){i._init(!1!==e.enabled)})}wa.$inject=["config.zoomScroll","eventBus","canvas"],wa.prototype.scroll=function(n){this._canvas.scroll(n)},wa.prototype.reset=function(){this._canvas.zoom("fit-viewport")},wa.prototype.zoom=function(n,t){var i=YF(hE,20);this._totalDelta+=n,Math.abs(this._totalDelta)>.1&&(this._zoom(n,t,i),this._totalDelta=0)},wa.prototype._handleWheel=function(n){if(!Wc(n.target,".djs-scrollable",!0)){var t=this._container;n.preventDefault();var a,i=n.ctrlKey,r=n.shiftKey,o=-1*this._scale;if(o*=i?0===n.deltaMode?.02:.32:0===n.deltaMode?1:16,i){var s=t.getBoundingClientRect(),c={x:n.clientX-s.left,y:n.clientY-s.top};a=Math.sqrt(Math.pow(n.deltaY,2)+Math.pow(n.deltaX,2))*bre(n.deltaY)*o,this.zoom(a,c)}else this.scroll(a=r?{dx:o*n.deltaY,dy:0}:{dx:o*n.deltaX,dy:o*n.deltaY})}},wa.prototype.stepZoom=function(n,t){var i=YF(hE,10);this._zoom(n,t,i)},wa.prototype._zoom=function(e,n,t){var i=this._canvas,r=e>0?1:-1,o=uE(i.zoom()),a=Math.round(o/t)*t,s=Math.pow(10,a+=t*r);i.zoom(function yre(e,n){return Math.max(e.min,Math.min(e.max,n))}(hE,s),n)},wa.prototype.toggle=function(n){var r=this._enabled;return typeof n>"u"&&(n=!r),r!==n&&ct[n?"bind":"unbind"](this._container,"wheel",this._handleWheel,!1),this._enabled=n,n},wa.prototype._init=function(e){this.toggle(e)};const KF={__init__:["zoomScroll"],zoomScroll:["type",wa]};function If(e){Xs.call(this,e)}Xe()(If,Xs),If.prototype._modules=[].concat(Xs.prototype._modules,If.prototype._navigationModules=[HF,WF,KF]);var Ere=J(490),Zc=J.n(Ere),XF=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Xv(e,n){return n.get(e,!1)}function fE(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function pE(e){function t(l){setTimeout(function(){R(XF,function(d){ct.unbind(e,d,fE,!0)})},500)}ct.bind(e,"touchstart",function n(l){R(XF,function(d){ct.bind(e,d,fE,!0)})},!0),ct.bind(e,"touchend",t,!0),ct.bind(e,"touchcancel",t,!0);var i=new(Zc().Manager)(e,{inputClass:Zc().TouchInput,recognizers:[],domEvents:!0}),r=new(Zc().Tap),o=new(Zc().Pan)({threshold:10}),a=new(Zc().Press),s=new(Zc().Pinch),c=new(Zc().Tap)({event:"doubletap",taps:2});return s.requireFailure(o),s.requireFailure(a),i.add([o,a,s,c,r]),i.reset=function(l){var d=this.recognizers,u=this.session;u.stopped||(i.stop(l),setTimeout(function(){var h,f;for(h=0;f=d[h];h++)f.reset(),f.state=8;u.curRecognizer=null},0))},i.on("hammer.input",function(l){l.srcEvent.defaultPrevented&&i.reset(!0)}),i}function ZF(e,n,t,i,r){var l,o=Xv("dragging",e),a=Xv("move",e),s=Xv("contextPad",e),c=Xv("palette",e);function d(f,p){return function(g){var v=u(g.target),k=v&&i.get(v);return p&&(g.srcEvent.button=p),r.fire(f,g,k)}}function u(f){return Wc(f,"svg, .djs-element",!0)}o&&t.on("drag.move",function(f){var p=f.originalEvent;if(p&&!(p instanceof MouseEvent)){var g=qs(p),k=u(document.elementFromPoint(g.x,g.y)),E=k&&i.get(k);E!==f.hover&&(f.hover&&o.out(f),E&&(o.hover({element:E,gfx:k}),f.hover=E,f.hoverGfx=k))}}),s&&t.on("contextPad.create",function(f){var g=pE(f.pad.html);g.on("panstart",function(v){s.trigger("dragstart",v,!0)}),g.on("press",function(v){s.trigger("dragstart",v,!0)}),g.on("tap",function(v){s.trigger("click",v)})}),c&&t.on("palette.create",function(f){var g=pE(f.container);g.on("panstart",function(v){c.trigger("dragstart",v,!0)}),g.on("press",function(v){c.trigger("dragstart",v,!0)}),g.on("tap",function(v){c.trigger("click",v)})}),t.on("canvas.init",function(f){!function h(f){function g(k){var E=u(k.target),C=E&&i.get(E);if(a&&n.getRootElement()!==C)return a.start(k,C,!0);!function p(k){var E=0,C=0;function x(P){n.scroll({dx:P.deltaX-E,dy:P.deltaY-C}),E=P.deltaX,C=P.deltaY}function D(P){l.off("panmove",x),l.off("panend",D),l.off("pancancel",D)}l.on("panmove",x),l.on("panend",D),l.on("pancancel",D)}()}(l=pE(f)).on("tap",d("element.click")),l.on("doubletap",d("element.dblclick",1)),l.on("panstart",g),l.on("press",g),l.on("pinchstart",function v(k){var E=n.zoom(),C=k.center;function x(P){var F=Math.max(.2,Math.min(4,(1-(1-P.scale)/1.5)*E));n.zoom(F,C),fE(P)}function D(P){l.off("pinchmove",x),l.off("pinchend",D),l.off("pinchcancel",D),l.reset(!0)}l.on("pinchmove",x),l.on("pinchend",D),l.on("pinchcancel",D)})}(f.svg)})}function mE(e,n){var t=this;n.on("canvas.init",function(i){t.addBBoxMarker(i.svg)})}ZF.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],mE.$inject=["canvas","eventBus"],mE.prototype.addBBoxMarker=function(e){var n={fill:"none",class:"outer-bound-marker"},t=qe("rect");ge(t,{x:-1e4,y:1e4,width:10,height:10}),ge(t,n),Ze(e,t);var i=qe("rect");ge(i,{x:1e4,y:1e4,width:10,height:10}),ge(i,n),Ze(e,i)};const Dre={__depends__:[{__depends__:[Tf],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",ZF],touchFix:["type",mE]}]};function gE(e){return e&&e[e.length-1]}function QF(e){return e.y}function JF(e){return e.x}var kre={left:JF,center:JF,right:function(e){return e.x+e.width},top:QF,middle:QF,bottom:function(e){return e.y+e.height}};function su(e){this._modeling=e}su.$inject=["modeling"],su.prototype._getOrientationDetails=function(e){var t="x",i="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",i="height"),{axis:t,dimension:i}},su.prototype._isType=function(e,n){return-1!==n.indexOf(e)},su.prototype._alignmentPosition=function(e,n){var c,l,d,t=this._getOrientationDetails(e),i=t.axis,r=t.dimension,o={},a={},s=!1;if(this._isType(e,["left","top"]))o[e]=n[0][i];else if(this._isType(e,["right","bottom"]))d=gE(n),o[e]=d[i]+d[r];else if(this._isType(e,["center","middle"])){if(R(n,function(h){var f=h[i]+Math.round(h[r]/2);a[f]?a[f].elements.push(h):a[f]={elements:[h],center:f}}),c=Ho(a,function(h){return h.elements.length>1&&(s=!0),h.elements.length}),s)return o[e]=gE(c).center,o;l=n[0],d=gE(n=Ho(n,function(h){return h[i]+h[r]})),o[e]=function u(h,f){return Math.round((h[i]+f[i]+f[r])/2)}(l,d)}return o},su.prototype.trigger=function(e,n){var t=this._modeling,i=St(e,function(s){return!(s.waypoints||s.host||s.labelTarget)});if(!(i.length<2)){var o=Ho(i,kre[n]),a=this._alignmentPosition(n,o);t.alignElements(o,a)}};const Tre={__init__:["alignElements"],alignElements:["type",su]};var Are=10,e4=50,Mre=250;function vE(e,n,t,i){for(var r;r=Ire(e,t,n);)t=i(n,t,r);return t}function _E(e){return function(n,t,i){var r={x:t.x,y:t.y};return["x","y"].forEach(function(o){var a=e[o];if(a){var s="x"===o?"width":"height",c=a.margin,l=a.minDistance;r[o]=c<0?Math.min(i[o]+c-n[s]/2,t[o]-l+c):Math.max(i[o]+i[s]+c+n[s]/2,t[o]+l+c)}}),r}}function Ire(e,n,t){var i={x:n.x-t.width/2,y:n.y-t.height/2,width:t.width,height:t.height},r=function Rre(e){var n=yE(e);return e.host&&(n=n.concat(yE(e.host))),e.attachers&&(n=n.concat(e.attachers.reduce(function(t,i){return t.concat(yE(i))},[]))),n}(e);return on(r,function(o){return o!==t&&"intersect"===Li(o,i,Are)})}function yE(e){return function Nre(e){return e.outgoing.map(function(n){return n.target})}(e).concat(function Pre(e){return e.incoming.map(function(n){return n.source})}(e))}function Fre(){return!0}function t4(e,n,t){e.on("autoPlace",100,function(i){return function Bre(e,n,t){t||(t={});var i=t.defaultDistance||e4,r=Mt(e);return{x:ot(e).right+i+n.width/2,y:r.y}}(i.source,i.shape)}),e.on("autoPlace.end",function(i){t.scrollToElement(i.shape)}),this.append=function(i,r,o){e.fire("autoPlace.start",{source:i,shape:r});var a=e.fire("autoPlace",{source:i,shape:r}),s=n.appendShape(i,r,a,i.parent,o);return e.fire("autoPlace.end",{source:i,shape:s}),s}}function n4(e,n){e.on("autoPlace.end",500,function(t){n.select(t.shape)})}t4.$inject=["eventBus","modeling","canvas"],n4.$inject=["eventBus","selection"];const Vre={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",t4],autoPlaceSelectionBehavior:["type",n4]};function i4(e,n){return b(n,"bpmn:TextAnnotation")?function Hre(e,n){var t=ot(e);return vE(e,n,{x:t.right+n.width/2,y:t.top-50-n.height/2},_E({y:{margin:-30,minDistance:20}}))}(e,n):Kt(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function $re(e,n){var t=ot(e);return vE(e,n,{x:t.right-10+n.width/2,y:t.bottom+40+n.width/2},_E({x:{margin:30,minDistance:30}}))}(e,n):b(n,"bpmn:FlowNode")?function jre(e,n){var t=ot(e),i=Mt(e),r=function Ore(e,n){n||(n={});var i=n.defaultDistance||e4,r=n.direction||"e",o=n.filter,a=n.getWeight||function t(p){return p.source===e?1:-1},s=n.maxDistance||Mre,c=n.reference||"start";function l(p,g){return"n"===r?"start"===c?ot(p).top-ot(g).bottom:"center"===c?ot(p).top-Mt(g).y:ot(p).top-ot(g).top:"w"===r?"start"===c?ot(p).left-ot(g).right:"center"===c?ot(p).left-Mt(g).x:ot(p).left-ot(g).left:"s"===r?"start"===c?ot(g).top-ot(p).bottom:"center"===c?Mt(g).y-ot(p).bottom:ot(g).bottom-ot(p).bottom:"start"===c?ot(g).left-ot(p).right:"center"===c?Mt(g).x-ot(p).right:ot(g).right-ot(p).right}o||(o=Fre);var d=e.incoming.filter(o).map(function(p){var g=a(p),v=g<0?l(p.source,e):l(e,p.source);return{id:p.source.id,distance:v,weight:g}}),u=e.outgoing.filter(o).map(function(p){var g=a(p),v=g>0?l(e,p.target):l(p.target,e);return{id:p.target.id,distance:v,weight:g}});return br(d.concat(u).reduce(function(p,g){return p[g.id+"__weight_"+g.weight]=g,p},{}),function(p,g){var v=g.distance,k=g.weight;return v<0||v>s||(p[String(v)]||(p[String(v)]=0),p[String(v)]+=1*k,(!p.distance||p[p.distance]n.top&&(t=t.concat("n")),e.rightn.left&&(t=t.concat("e")),t}(jr(n,["x","y","width","height"]),i);this.resize(n,i,{autoResize:r});var o=n.parent;o&&this._expand([n],o)}}},os.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},os.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},os.prototype.resize=function(e,n,t){this._modeling.resizeShape(e,n,null,t)},Zv.$inject=["injector"],Xe()(Zv,os),Zv.prototype.resize=function(e,n,t){b(e,"bpmn:Participant")?this._modeling.resizeLane(e,n,null,t):this._modeling.resizeShape(e,n,null,t)},Ea.$inject=["eventBus"],Xe()(Ea,Ve),Ea.prototype.addRule=function(e,n,t){var i=this;"string"==typeof e&&(e=[e]),e.forEach(function(r){i.canExecute(r,n,function(o,a,s){return t(o)},!0)})},Ea.prototype.init=function(){},Of.$inject=["eventBus"],Xe()(Of,Ea),Of.prototype.canResize=function(e,n){return!1},Xe()(Qv,Of),Qv.$inject=["eventBus","modeling"],Qv.prototype.canResize=function(e,n){if(!b(n,"bpmn:Participant")&&!b(n,"bpmn:Lane")&&!b(n,"bpmn:SubProcess"))return!1;var t=!0;return R(e,function(i){(b(i,"bpmn:Lane")||i.labelTarget)&&(t=!1)}),t};const Xre={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Zv],bpmnAutoResizeProvider:["type",Qv]};function a4(e,n,t){var a,s,i=this,r=t.get("dragging",!1);r&&n.on("drag.start",function(a){n.once("drag.move",1500,function(s){!function o(a){if(!a.hover){var s=a.originalEvent,c=i._findTargetGfx(s),l=c&&e.get(c);c&&l&&(a.stopPropagation(),r.hover({element:l,gfx:c}),r.move(s))}}(s)})}),n.on("element.hover",function(c){a=c.gfx,s=c.element}),n.on("element.hover",1500,function(c){s&&n.fire("element.out",{element:s,gfx:a})}),n.on("element.out",function(){a=null,s=null}),this._findTargetGfx=function(a){var s;if(a instanceof MouseEvent)return s=qs(a),function Zre(e){return Wc(e,"svg, .djs-element",!0)}(document.elementFromPoint(s.x,s.y))}}a4.$inject=["elementRegistry","eventBus","injector"];const Qre={__init__:["hoverFix"],hoverFix:["type",a4]};var cu=Math.round,s4="djs-drag-active";function Qc(e){e.preventDefault()}function c4(e,n,t,i){var o,r={threshold:5,trapClick:!0};function a(C){var x=n.viewbox(),D=n._container.getBoundingClientRect();return{x:x.x+(C.x-D.left)/x.scale,y:x.y+(C.y-D.top)/x.scale}}function s(C,x){var D=e.createEvent(I({},(x=x||o).payload,x.data,{isTouch:x.isTouch}));return!1!==e.fire("drag."+C,D)&&e.fire(x.prefix+"."+C,D)}function l(C,x){var D=o.payload,P=o.displacement,V=o.globalStart,F=qs(C),Q=xa(F,V),be=o.localStart,He=a(F),de=xa(He,be);if(!o.active&&(x||function eoe(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}(Q)>o.threshold)){if(I(D,{x:cu(be.x+P.x),y:cu(be.y+P.y),dx:0,dy:0},{originalEvent:C}),!1===s("start"))return v();o.active=!0,o.keepSelection||(D.previousSelection=t.get(),t.select(null)),o.cursor&&Kv(o.cursor),n.addMarker(n.getRootElement(),s4)}oE(C),o.active&&(I(D,{x:cu(He.x+P.x),y:cu(He.y+P.y),dx:cu(de.x),dy:cu(de.y)},{originalEvent:C}),s("move"))}function d(C){var D=!0;o.active&&(C&&(o.payload.originalEvent=C,oE(C)),D=s("end")),!1===D&&s("rejected"),s("ended",k(!0!==D))}function u(C){27===C.which&&(Qc(C),v())}function h(C){var x;o.active&&(x=UF(e),setTimeout(x,400),Qc(C)),d(C)}function f(C){l(C)}function p(C){var x=o.payload;x.hoverGfx=C.gfx,x.hover=C.element,s("hover")}function g(C){s("out");var x=o.payload;x.hoverGfx=null,x.hover=null}function v(C){var x;if(o){var D=o.active;D&&s("cancel"),x=k(C),D&&s("canceled",x)}}function k(C){var x,D;s("cleanup"),$F(),D=o.trapClick?h:d,ct.unbind(document,"mousemove",l),ct.unbind(document,"dragstart",Qc),ct.unbind(document,"selectstart",Qc),ct.unbind(document,"mousedown",D,!0),ct.unbind(document,"mouseup",D,!0),ct.unbind(document,"keyup",u),ct.unbind(document,"touchstart",f,!0),ct.unbind(document,"touchcancel",v,!0),ct.unbind(document,"touchmove",l,!0),ct.unbind(document,"touchend",d,!0),e.off("element.hover",p),e.off("element.out",g),n.removeMarker(n.getRootElement(),s4);var P=o.payload.previousSelection;return!1!==C&&P&&!t.get().length&&function c(C){var x=C.filter(function(D){return i.get(D.id)});x.length&&t.select(x)}(P),x=o,o=null,x}e.on("diagram.destroy",v),this.init=function E(C,x,D,P){o&&v(!1),"string"==typeof x&&(P=D,D=x,x=null);var F,Q,be,He,de,V=(P=I({},r,P||{})).data||{};He=P.trapClick?h:d,C?(F=iu(C)||C,Q=qs(C),oE(C),"dragstart"===F.type&&Qc(F)):(F=null,Q={x:0,y:0}),be=a(Q),x||(x=be),de=function Jre(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}(F),o=I({prefix:D,data:V,payload:{},globalStart:Q,displacement:xa(x,be),localStart:be,isTouch:de},P),P.manual||(de?(ct.bind(document,"touchstart",f,!0),ct.bind(document,"touchcancel",v,!0),ct.bind(document,"touchmove",l,!0),ct.bind(document,"touchend",d,!0)):(ct.bind(document,"mousemove",l),ct.bind(document,"dragstart",Qc),ct.bind(document,"selectstart",Qc),ct.bind(document,"mousedown",He,!0),ct.bind(document,"mouseup",He,!0)),ct.bind(document,"keyup",u),e.on("element.hover",p),e.on("element.out",g)),s("init"),P.autoActivate&&l(C,!0)},this.move=l,this.hover=p,this.out=g,this.end=d,this.cancel=v,this.context=function(){return o},this.setOptions=function(C){I(r,C)}}c4.$inject=["eventBus","canvas","selection","elementRegistry"];const as={__depends__:[Qre,ba],dragging:["type",c4]};function lu(e,n,t){this._canvas=t,this._opts=I({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;n.on("drag.move",function(r){var o=i._toBorderPoint(r);i.startScroll(o)}),n.on(["drag.cleanup"],function(){i.stopScroll()})}function toe(e,n,t){return nP-3&&(Q=Li(f.target,D),g===P-2?"intersect"===Q&&(C.pop(),C[C.length-1]=D):"intersect"!==Q&&C.push(k)),h.newWaypoints=f.waypoints=s(f,C),function l(u,h,f){var p=u.newWaypoints,x=function moe(e,n,t,i){var r=Math.max(n[i],t[i]),o=Math.min(n[i],t[i]);return kE(n,i,Math.min(Math.max(o+20,e[i]),r-20))}(f,p[u.segmentStartIndex+h],p[u.segmentEndIndex+h],C4(u.axis));sr(u.draggerGfx,x.x,x.y)}(h,V,u),h.newSegmentStartIndex=p+V,c(u)}),n.on("connectionSegment.move.hover",function(u){u.context.hover=u.hover,t.addMarker(u.hover,x4)}),n.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(u){var h=u.context.hover;h&&t.removeMarker(h,x4)}),n.on("connectionSegment.move.cleanup",function(u){var h=u.context,f=h.connection;h.draggerGfx&&ti(h.draggerGfx),t.removeMarker(f,w4)}),n.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(u){var h=u.context;h.connection.waypoints=h.originalWaypoints,c(u)}),n.on("connectionSegment.move.end",function(u){var h=u.context,f=h.connection,p=h.newWaypoints,g=h.newSegmentStartIndex,v=function d(u,h){var f=0;return{waypoints:u.filter(function(g,v){return!z1(u[v-1],u[v+1],g)||(f=v<=h?f-1:f,!1)}),segmentOffset:f}}(p=p.map(function(D){return{original:D.original,x:Math.round(D.x),y:Math.round(D.y)}}),g),E=s(f,v.waypoints);o.updateWaypoints(f,E,{segmentMove:{segmentStartIndex:h.segmentStartIndex,newSegmentStartIndex:g+v.segmentOffset}})})}D4.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var goe=Math.abs,k4=Math.round;function T4(e){return{x:e.x,y:e.y}}function A4(e){return{x:e.x+e.width,y:e.y+e.height}}function po(e,n){return!e||isNaN(e.x)||isNaN(e.y)?n:{x:k4(e.x+e.width/2),y:k4(e.y+e.height/2)}}function du(e,n){var t=e.snapped;return!!t&&("string"==typeof n?t[n]:t.x&&t.y)}function gi(e,n,t){if("string"!=typeof n)throw new Error("axis must be in [x, y]");if("number"!=typeof t&&!1!==t)throw new Error("value must be Number or false");var i,r=e[n],o=e.snapped=e.snapped||{};return!1===t?o[n]=!1:(o[n]=!0,e[n]+=i=t-r,e["d"+n]+=i),r}function M4(e){return e.children||[]}var _oe=Math.abs,I4=Math.round;function O4(e){function n(o,a){if(Lt(o)){for(var s=o.length;s--;)if(_oe(o[s]-a)<=10)return o[s]}else{var c=a%(o=+o);if(c<10)return a-c;if(c>o-10)return a-c+o}return a}function t(o){if(o.width)return{x:I4(o.width/2+o.x),y:I4(o.height/2+o.y)}}e.on("connectionSegment.move.move",1500,function(o){var d,u,s=function i(o){var a=o.snapPoints,s=o.connection,c=s.waypoints,d=o.segmentStartIndex,h=o.segmentEndIndex,f=o.axis;if(a)return a;var p=[c[d-1],o.segmentStart,o.segmentEnd,c[h+1]];return d<2&&p.unshift(t(s.source)),h>c.length-3&&p.unshift(t(s.target)),o.snapPoints=a={horizontal:[],vertical:[]},R(p,function(g){g&&(g=g.original||g,"y"===f&&a.horizontal.push(g.y),"x"===f&&a.vertical.push(g.x))}),a}(o.context),c=o.x,l=o.y;if(s){var h=c-(d=n(s.vertical,c)),f=l-(u=n(s.horizontal,l));I(o,{dx:o.dx-h,dy:o.dy-f,x:d,y:u}),(h||-1!==s.vertical.indexOf(c))&&gi(o,"x",d),(f||-1!==s.horizontal.indexOf(l))&&gi(o,"y",u)}}),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(o){var h,f,a=o.context,s=function r(o){var a=o.snapPoints,s=o.connection.waypoints,c=o.bendpointIndex;if(a)return a;var l=[s[c-1],s[c+1]];return o.snapPoints=a={horizontal:[],vertical:[]},R(l,function(d){d&&(a.horizontal.push((d=d.original||d).y),a.vertical.push(d.x))}),a}(a),c=a.hover,l=c&&t(c),d=o.x,u=o.y;if(s){var p=d-(h=n(l?s.vertical.concat([l.x]):s.vertical,d)),g=u-(f=n(l?s.horizontal.concat([l.y]):s.horizontal,u));I(o,{dx:o.dx-p,dy:o.dy-g,x:o.x-p,y:o.y-g}),(p||-1!==s.vertical.indexOf(d))&&gi(o,"x",h),(g||-1!==s.horizontal.indexOf(u))&&gi(o,"y",f)}})}O4.$inject=["eventBus"];const yoe={__depends__:[as,Ca],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",f4],bendpointMove:["type",DE],bendpointMovePreview:["type",b4],connectionSegmentMove:["type",D4],bendpointSnapping:["type",O4]};function R4(e,n,t,i){function r(a,s){return i.allowed("connection.create",{source:a,target:s})}e.on("connect.hover",function(a){var d,s=a.context,c=s.start,l=a.hover;if(s.hover=l,!bv(d=s.canExecute=r(c,l))){if(!1!==d)return s.source=c,void(s.target=l);d=s.canExecute=function o(a,s){return r(s,a)}(c,l),!bv(d)&&!1!==d&&(s.source=l,s.target=c)}}),e.on(["connect.out","connect.cleanup"],function(a){var s=a.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),e.on("connect.end",function(a){var s=a.context,c=s.canExecute,l=s.connectionStart,d={x:a.x,y:a.y},u=s.source,h=s.target;if(!c)return!1;var f=null,p={connectionStart:AE(s)?d:l,connectionEnd:AE(s)?l:d};si(c)&&(f=c),t.connect(u,h,f,p)}),this.start=function(a,s,c,l){si(c)||(l=c,c=Mt(s)),n.init(a,"connect",{autoActivate:l,data:{shape:s,context:{start:s,connectionStart:c}}})}}function AE(e){var n=e.hover,t=e.source;return n&&t&&n===t&&t!==e.target}R4.$inject=["eventBus","dragging","modeling","rules"];var P4="connect-ok",N4="connect-not-ok";function F4(e,n,t){var i=e.get("connectionPreview",!1);i&&n.on("connect.move",function(r){var o=r.context,a=o.canExecute,s=o.hover,c=o.source,l=o.start,u=o.target,h=o.connectionStart||o.startPosition,f=o.connectionEnd||{x:r.x,y:r.y},p=h,g=f;AE(o)&&(p=f,g=h),i.drawPreview(o,a,{source:c||l,target:u||s,connectionStart:p,connectionEnd:g})}),n.on("connect.hover",900,function(r){var s=r.context.canExecute;null!==s&&t.addMarker(r.hover,s?P4:N4)}),n.on(["connect.out","connect.cleanup"],1100,function(r){var o=r.hover;o&&(t.removeMarker(o,P4),t.removeMarker(o,N4))}),i&&n.on("connect.cleanup",function(r){i.cleanUp(r.context)})}F4.$inject=["injector","eventBus","canvas"];const ME={__depends__:[ba,Ca,as],__init__:["connectPreview"],connect:["type",R4],connectPreview:["type",F4]};function ss(e,n,t,i){this._canvas=n,this._graphicsFactory=t,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}ss.$inject=["injector","canvas","graphicsFactory","elementFactory"],ss.prototype.drawPreview=function(e,n,t){var f,i=e.connectionPreviewGfx,r=e.getConnection,o=(t=t||{}).source,a=t.target,s=t.waypoints,c=t.connectionStart,l=t.connectionEnd,d=t.noLayout,u=t.noCropping,h=t.noNoop,p=this;i||(i=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),O1(i),r||(r=e.getConnection=function Eoe(e){var n={};return function(t){var i=JSON.stringify(t),r=n[i];return r||(r=n[i]=e.apply(null,arguments)),r}}(function(g,v,k){return p.getConnection(g,v,k)})),n&&(f=r(n,o,a)),f?(f.waypoints=s||[],this._layouter&&!d&&(f.waypoints=this._layouter.layoutConnection(f,{source:o,target:a,connectionStart:c,connectionEnd:l,waypoints:t.waypoints||f.waypoints})),(!f.waypoints||!f.waypoints.length)&&(f.waypoints=[o?Mt(o):c,a?Mt(a):l]),this._connectionDocking&&(o||a)&&!u&&(f.waypoints=this._connectionDocking.getCroppedWaypoints(f,o,a)),this._graphicsFactory.drawConnection(i,f)):!h&&this.drawNoopPreview(i,t)},ss.prototype.drawNoopPreview=function(e,n){var t=n.source,i=n.target,r=n.connectionStart||Mt(t),o=n.connectionEnd||Mt(i),a=this.cropWaypoints(r,o,t,i);Ze(e,this.createNoopConnection(a[0],a[1]))},ss.prototype.cropWaypoints=function(e,n,t,i){var r=this._graphicsFactory,o=t&&r.getShapePath(t),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,n]});return[e=t&&U1(o,s,!0)||e,n=i&&U1(a,s,!1)||n]},ss.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&ti(e.connectionPreviewGfx)},ss.prototype.getConnection=function(e){var n=function Coe(e){return si(e)?e:{}}(e);return this._elementFactory.createConnection(n)},ss.prototype.createConnectionPreviewGfx=function(){var e=qe("g");return ge(e,{pointerEvents:"none"}),Pt(e).add("djs-connection-preview"),Ze(this._canvas.getActiveLayer(),e),e},ss.prototype.createNoopConnection=function(e,n){var t=qe("polyline");return ge(t,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),ge(t,{points:[e.x,e.y,n.x,n.y]}),t};const Soe={__init__:["connectionPreview"],connectionPreview:["type",ss]};var L4=Math.min,B4=Math.max;function IE(e){e.preventDefault()}function Nf(e){e.stopPropagation()}function Yo(e){this.container=e.container,this.parent=Dn('
'),this.content=Bn("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=Wi(this.autoResize,this),this.handlePaste=Wi(this.handlePaste,this)}function mo(e,n){this._eventBus=e,this._providers=[],this._textbox=new Yo({container:n.getContainer(),keyHandler:Wi(this._handleKey,this),resizeHandler:Wi(this._handleResize,this)})}Yo.prototype.create=function(e,n,t,i){var o=this.parent,a=this.content,s=this.container;i=this.options=i||{};var c=jr(n=this.style=n||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);I(o.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var l=jr(n,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return I(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),i.centerVertically&&I(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),a.innerText=t,ct.bind(a,"keydown",this.keyHandler),ct.bind(a,"mousedown",Nf),ct.bind(a,"paste",this.handlePaste),i.autoResize&&ct.bind(a,"input",this.autoResize),i.resizable&&this.resizable(n),s.appendChild(o),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),o},Yo.prototype.handlePaste=function(e){var i,n=this.options,t=this.style;if(e.preventDefault(),i=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(i),n.autoResize){var r=this.autoResize(t);r&&this.resizeHandler(r)}},Yo.prototype.insertText=function(e){e=function Toe(e){return e.replace(/\r\n|\r|\n/g,"\n")}(e),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Yo.prototype._insertTextIE=function(e){var c,l,n=this.getSelection(),t=n.startContainer,i=n.endContainer,r=n.startOffset,o=n.endOffset,a=n.commonAncestorContainer,s=function koe(e){return[].slice.call(e)}(a.childNodes);if(function Doe(e){return e.nodeType===Node.TEXT_NODE}(a)){var d=t.textContent;t.textContent=d.substring(0,r)+e+d.substring(o),c=t,l=r+e.length}else if(t===this.content&&i===this.content){var u=document.createTextNode(e);this.content.insertBefore(u,s[r]),c=u,l=u.textContent.length}else{var h=s.indexOf(t),f=s.indexOf(i);s.forEach(function(p,g){g===h?p.textContent=t.textContent.substring(0,r)+e+i.textContent.substring(o):g>h&&g<=f&&ga(p)}),c=t,l=r+e.length}c&&void 0!==l&&setTimeout(function(){self.setSelection(c,l)})},Yo.prototype.autoResize=function(){var e=this.parent,n=this.content,t=parseInt(this.style.fontSize)||12;if(n.scrollHeight>e.offsetHeight||n.scrollHeight
');var s,c,l,d,h=function(p){IE(p),Nf(p);var g=L4(B4(l+p.clientX-s,i),o),v=L4(B4(d+p.clientY-c,r),a);n.style.width=g+"px",n.style.height=v+"px",e.resizeHandler({width:l,height:d,dx:p.clientX-s,dy:p.clientY-c})},f=function(p){IE(p),Nf(p),ct.unbind(document,"mousemove",h,!1),ct.unbind(document,"mouseup",f,!1)};ct.bind(t,"mousedown",function(p){IE(p),Nf(p),s=p.clientX,c=p.clientY;var g=n.getBoundingClientRect();l=g.width,d=g.height,ct.bind(document,"mousemove",h),ct.bind(document,"mouseup",f)})}I(t.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),n.appendChild(t)},Yo.prototype.destroy=function(){var e=this.parent,n=this.content,t=this.resizeHandle;n.innerText="",e.removeAttribute("style"),n.removeAttribute("style"),ct.unbind(n,"keydown",this.keyHandler),ct.unbind(n,"mousedown",Nf),ct.unbind(n,"input",this.autoResize),ct.unbind(n,"paste",this.handlePaste),t&&(t.removeAttribute("style"),ga(t)),ga(e)},Yo.prototype.getValue=function(){return this.content.innerText.trim()},Yo.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Yo.prototype.setSelection=function(e,n){var t=document.createRange();null===e?t.selectNodeContents(this.content):(t.setStart(e,n),t.setEnd(e,n));var i=window.getSelection();i.removeAllRanges(),i.addRange(t)},mo.$inject=["eventBus","canvas"],mo.prototype.registerProvider=function(e){this._providers.push(e)},mo.prototype.isActive=function(e){return!(!this._active||e&&this._active.element!==e)},mo.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},mo.prototype._fire=function(e,n){this._eventBus.fire("directEditing."+e,n||{active:this._active})},mo.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},mo.prototype.complete=function(){var e=this._active;if(e){var n,t=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();(r!==e.context.text||i.height!==t.height||i.width!==t.width)&&(n=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-n.left,y:i.top-n.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},mo.prototype.getValue=function(){return this._textbox.getValue()},mo.prototype._handleKey=function(e){e.stopPropagation();var n=e.keyCode||e.charCode;return 27===n?(e.preventDefault(),this.cancel()):13!==n||e.shiftKey?void 0:(e.preventDefault(),this.complete())},mo.prototype._handleResize=function(e){this._fire("resize",e)},mo.prototype.activate=function(e){this.isActive()&&this.cancel();var n,t=on(this._providers,function(i){return(n=i.activate(e))?i:null});return n&&(this.$textbox=this._textbox.create(n.bounds,n.style,n.text,n.options),this._active={element:e,context:n,provider:t},n.options&&n.options.resizable&&(this.resizable=!0),this._fire("activate")),!!n};const OE={__depends__:[Tf],__init__:["directEditing"],directEditing:["type",mo]};function go(e,n,t){this._eventBus=n,this._overlays=t;var i=zo(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}go.$inject=["config.contextPad","eventBus","overlays"],go.prototype._init=function(){var e=this._eventBus,n=this;e.on("selection.changed",function(t){var i=t.newSelection;1===i.length?n.open(i[0]):n.close()}),e.on("elements.delete",function(t){R(t.elements,function(r){n.isOpen(r)&&n.close()})}),e.on("element.changed",function(t){var i=t.element,r=n._current;r&&r.element===i&&n.open(i,!0)})},go.prototype.registerProvider=function(e,n){n||(n=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,function(t){t.providers.push(n)})},go.prototype.getEntries=function(e){var n=this._getProviders(),t={};return R(n,function(i){var r=i.getContextPadEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}),t},go.prototype.trigger=function(e,n,t){var o,a,s,i=this._current.element,r=this._current.entries,c=n.delegateTarget||n.target;if(!c)return n.preventDefault();if(o=r[zr(c,"data-action")],s=n.originalEvent||n,Gi(a=o.action)){if("click"===e)return a(s,i,t)}else if(a[e])return a[e](s,i,t);n.preventDefault()},go.prototype.open=function(e,n){!n&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},go.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},go.prototype._updateAndOpen=function(e){var n=this.getEntries(e),t=this.getPad(e),i=t.html;R(n,function(r,o){var c,a=r.group||"default",s=Dn(r.html||'
');zr(s,"data-action",o),(c=Bn("[data-group="+a+"]",i))||(c=Dn('
'),i.appendChild(c)),c.appendChild(s),r.className&&function Moe(e,n){var t=fi(e);(Lt(n)?n:n.split(/\s+/g)).forEach(function(r){t.add(r)})}(s,r.className),r.title&&zr(s,"title",r.title),r.imageUrl&&s.appendChild(Dn(''))}),fi(i).add("open"),this._current={element:e,pad:t,entries:n},this._eventBus.fire("contextPad.open",{current:this._current})},go.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var n=this,t=this._overlays,i=Dn('
'),r=I({html:i},this._overlaysConfig);Hr.bind(i,".entry","click",function(a){n.trigger("click",a)}),Hr.bind(i,".entry","dragstart",function(a){n.trigger("dragstart",a)}),ct.bind(i,"mousedown",function(a){a.stopPropagation()}),this._overlayId=t.add(e,"context-pad",r);var o=t.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:o}),o},go.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},go.prototype.isOpen=function(e){return!(!this._current||e&&this._current.element!==e)};const RE={__depends__:[Tf,cE],contextPad:["type",go]};var Ioe=["marker-start","marker-mid","marker-end"],Ooe=["circle","ellipse","line","path","polygon","polyline","rect"];function tl(e,n,t,i){this._elementRegistry=e,this._canvas=t,this._styles=i,this._clonedMarkers={};var r=this;n.on("drag.cleanup",function(){R(r._clonedMarkers,function(o){ti(o)}),r._clonedMarkers={}})}tl.$inject=["elementRegistry","eventBus","canvas","styles"],tl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},tl.prototype.addDragger=function(e,n,t){var i=CN(t=t||this.getGfx(e)),r=t.getBoundingClientRect();return this._cloneMarkers(Rv(i)),ge(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),Ze(n,i),i},tl.prototype.addFrame=function(e,n){var t=qe("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Ze(n,t),t},tl.prototype._cloneMarkers=function(e){var n=this;if(e.childNodes)for(var t=0;t0,a=r&&pf(r)>0;return!o&&!a},ci.prototype.open=function(e,n,t){var i=this._getProviders(n);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+n);if(!t)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:n,element:e,position:t},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=I({},o,a),r.container=this._createContainer(),pf(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),pf(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var c=this._canvas.getContainer();this._attachContainer(r.container,c,t.cursor),this._bindAutoClose()},ci.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),ga(this._current.container),this._current.container=null)},ci.prototype.isOpen=function(){return!!this._current.container},ci.prototype.trigger=function(e){e.preventDefault();var t=zr(e.delegateTarget||e.target,q4),i=this._getEntry(t);if(i.action)return i.action.call(null,e,i)},ci.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(n),n.providers},ci.prototype._getEntries=function(e,n){var t={};return R(n,function(i){if(i.getPopupMenuEntries){var r=i.getPopupMenuEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}else R(i.getEntries(e),function(o){var a=o.id;if(!a)throw new Error("every entry must have the id property set");t[a]=zs(o,["id"])})}),t},ci.prototype._getHeaderEntries=function(e,n){var t={};return R(n,function(i){if(i.getPopupMenuHeaderEntries){var r=i.getPopupMenuHeaderEntries(e);Gi(r)?t=r(t):R(r,function(o,a){t[a]=o})}else{if(!i.getHeaderEntries)return;R(i.getHeaderEntries(e),function(o){var a=o.id;if(!a)throw new Error("every entry must have the id property set");t[a]=zs(o,["id"])})}}),t},ci.prototype._getEntry=function(e){var n=this._current.entries[e];if(!n)throw new Error("entry not found");return n},ci.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},ci.prototype._createContainer=function(){var e=Dn('
'),n=this._current.position,t=this._current.className;return I(e.style,{position:"absolute",left:n.x+"px",top:n.y+"px",visibility:"hidden"}),fi(e).add(t),e},ci.prototype._attachContainer=function(e,n,t){var i=this;Hr.bind(e,".entry","click",function(r){i.trigger(r)}),this._updateScale(e),n.appendChild(e),t&&this._assureIsInbounds(e,t)},ci.prototype._updateScale=function(e){var i,r,n=this._canvas.zoom(),t=this._config.scale,o=n;!0!==t&&(!1===t?(i=1,r=1):(i=t.min,r=t.max),zo(i)&&nr&&(o=r)),function Hoe(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(t){e.style[t+"transform"]=n})}(e,"scale("+o+")")},ci.prototype._assureIsInbounds=function(e,n){var l,d,i=this._canvas._container.getBoundingClientRect(),o=e.offsetTop,a=e.scrollWidth,s=e.scrollHeight,c={},u_x=n.x-i.left,u_y=n.y-i.top;e.offsetLeft+a>i.width&&(c.x=!0),o+s>i.height&&(c.y=!0),c.x&&c.y?(l=u_x-a+"px",d=u_y-s+"px"):c.x?(l=u_x-a+"px",d=u_y+"px"):c.y&&u_y"),i=this;return fi(t).add(n),R(e,function(r,o){var a=i._createEntry(r,o);t.appendChild(a)}),t},ci.prototype._createEntry=function(e,n){var t=Dn("
"),i=fi(t);if(i.add("entry"),e.className&&e.className.split(" ").forEach(function(o){i.add(o)}),zr(t,q4,n),e.label){var r=Dn("");r.textContent=e.label,t.appendChild(r)}return e.imageUrl&&t.appendChild(Dn('')),!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(t.title=e.title),t},ci.prototype._bindAutoClose=function(){this._eventBus.once(K4,this.close,this)},ci.prototype._unbindAutoClose=function(){this._eventBus.off(K4,this.close,this)};const $oe={__init__:["popupMenu"],popupMenu:["type",ci]};function Bf(){}Bf.prototype.get=function(){return this._data},Bf.prototype.set=function(e){this._data=e},Bf.prototype.clear=function(){var e=this._data;return delete this._data,e},Bf.prototype.isEmpty=function(){return!this._data};const Uoe={clipboard:["type",Bf]};function PE(e){var n=this;function t(i){n._lastMoveEvent=i}this._lastMoveEvent=null,e.on("canvas.init",function(i){(n._svg=i.svg).addEventListener("mousemove",t)}),e.on("canvas.destroy",function(){n._lastMouseEvent=null,n._svg.removeEventListener("mousemove",t)})}PE.$inject=["eventBus"],PE.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function Goe(e,n){var t=document.createEvent("MouseEvent");return t.initMouseEvent&&t.initMouseEvent("mousemove",!0,!0,window,0,e,n,e,n,!1,!1,!1,!1,0,null),t}(0,0)};const Vf={__init__:["mouse"],mouse:["type",PE]};function qo(e,n,t,i,r,o,a,s){this._canvas=e,this._create=n,this._clipboard=t,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",function(c){var l=c.descriptor,d=c.element,u=c.elements;l.priority=1,l.id=d.id,on(u,function(f){return f===d.parent})&&(l.parent=d.parent.id),function Woe(e){return!!e.host}(d)&&(l.priority=2,l.host=d.host.id),n_(d)&&(l.priority=3,l.source=d.source.id,l.target=d.target.id,l.waypoints=function Yoe(e){return Ti(e.waypoints,function(n){return(n=X4(n)).original&&(n.original=X4(n.original)),n})}(d)),i_(d)&&(l.priority=4,l.labelTarget=d.labelTarget.id),R(["x","y","width","height"],function(f){yt(d[f])&&(l[f]=d[f])}),l.hidden=d.hidden,l.collapsed=d.collapsed}),r.on("copyPaste.pasteElements",function(c){I(c.hints,{createElementsBehavior:!1})})}function n_(e){return!!e.waypoints}function i_(e){return!!e.labelTarget}function X4(e){return I({},e)}function Z4(e,n){var t=n.indexOf(e);return-1===t?n:n.splice(t,1)}qo.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],qo.prototype.copy=function(e){var n,t;return Lt(e)||(e=e?[e]:[]),t=!1===(n=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(Lt(n)?n:e),this._clipboard.set(t),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:t}),t},qo.prototype.paste=function(e){var n=this._clipboard.get();if(!this._clipboard.isEmpty()){var t=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:t});var i=this._createElements(n);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,t);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:t||{}})}},qo.prototype._paste=function(e,n,t,i){R(e,function(o){yt(o.x)||(o.x=0),yt(o.y)||(o.y=0)});var r=Fi(e);return R(e,function(o){n_(o)&&(o.waypoints=Ti(o.waypoints,function(a){return{x:a.x-r.x-r.width/2,y:a.y-r.y-r.height/2}})),I(o,{x:o.x-r.x-r.width/2,y:o.y-r.y-r.height/2})}),this._modeling.createElements(e,t,n,I({},i))},qo.prototype._createElements=function(e){var n=this,t=this._eventBus,i={},r=[];return R(e,function(o,a){a=parseInt(a,10),R(o=Ho(o,"priority"),function(s){var l,c=I({},zs(s,["priority"]));return i[s.parent]?c.parent=i[s.parent]:delete c.parent,t.fire("copyPaste.pasteElement",{cache:i,descriptor:c}),n_(c)?(c.source=i[s.source],c.target=i[s.target],l=i[s.id]=n.createConnection(c),void r.push(l)):i_(c)?(c.labelTarget=i[c.labelTarget],l=i[s.id]=n.createLabel(c),void r.push(l)):(c.host&&(c.host=i[c.host]),l=i[s.id]=n.createShape(c),void r.push(l))})}),r},qo.prototype.createConnection=function(e){return this._elementFactory.createConnection(zs(e,["id"]))},qo.prototype.createLabel=function(e){return this._elementFactory.createLabel(zs(e,["id"]))},qo.prototype.createShape=function(e){return this._elementFactory.createShape(zs(e,["id"]))},qo.prototype.hasRelations=function(e,n){var t,i,r;return!(n_(e)&&(i=on(n,$o({id:e.source.id})),r=on(n,$o({id:e.target.id})),!i||!r)||i_(e)&&(t=on(n,$o({id:e.labelTarget.id})),!t))},qo.prototype.createTree=function(e){var n=this._rules,t=this,i={},r=[];function s(l,d){var u=on(r,function(h){return l===h.element});u?u.depth=120&&I(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:d("Divide into two Lanes"),action:{click:k(2)}}}),e.height>=180&&I(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:d("Divide into three Lanes"),action:{click:k(3)}}})),I(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:d("Add Lane below"),action:{click:function(x,D){t.addLane(D,"bottom")}}}})}b(h,"bpmn:FlowNode")&&(b(h,"bpmn:EventBasedGateway")?I(u,{"append.receive-task":v("bpmn:ReceiveTask","bpmn-icon-receive-task",d("Append ReceiveTask")),"append.message-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",d("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",d("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",d("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",d("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):lL(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?I(u,{"append.compensation-activity":v("bpmn:Task","bpmn-icon-task",d("Append compensation activity"),{isForCompensation:!0})}):!b(h,"bpmn:EndEvent")&&!h.isForCompensation&&!lL(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!Gr(h)&&I(u,{"append.end-event":v("bpmn:EndEvent","bpmn-icon-end-event-none",d("Append EndEvent")),"append.gateway":v("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",d("Append Gateway")),"append.append-task":v("bpmn:Task","bpmn-icon-task",d("Append Task")),"append.intermediate-event":v("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",d("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||I(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:d("Change type"),action:{click:function(x,D){var P=I(function g(x){var P=s.getContainer(),V=n.getPad(x).html,F=P.getBoundingClientRect(),Q=V.getBoundingClientRect();return{x:Q.left-F.left,y:Q.top-F.top+Q.height+5}}(D),{cursor:{x:x.x,y:x.y}});a.open(D,"bpmn-replace",P)}}}}),Kt(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:f,dragstart:f}}}),b(h,"bpmn:TextAnnotation")&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using Association"),action:{click:f,dragstart:f}}}),Kt(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:d("Connect using DataInputAssociation"),action:{click:f,dragstart:f}}}),b(h,"bpmn:Group")&&I(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var C=c.allowed("elements.delete",{elements:[e]});return Lt(C)&&(C=C[0]===e),C&&I(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:d("Remove"),action:{click:function p(x){t.removeElements([e])}}}}),u};const Tae={__depends__:[OE,RE,ba,ME,uu,LE],__init__:["contextPadProvider"],contextPadProvider:["type",Hf]};var Aae={horizontal:["x","width"],vertical:["y","height"]};function cs(e){this._modeling=e,this._filters=[],this.registerFilter(function(n,t,i){var a,r=0,o=0;return R(n,function(s){s.waypoints||s.labelTarget||(r+=s[i],o+=1)}),a=Math.round(r/o),St(n,function(s){return s[i]=Math.min(n.min,n.max)&&Math.min(e.min,e.max)<=Math.max(n.min,n.max)},cs.prototype._findRange=function(e){var n=e[this._axis];return{min:n+5,max:n+e[this._dimension]-5}};const Mae={__init__:["distributeElements"],distributeElements:["type",cs]};function uL(e){e.registerFilter(function(n){return St(n,function(t){var i=Kt(t,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(t.labelTarget||i)})})}uL.$inject=["distributeElements"];const Iae={__depends__:[Mae],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",uL]};var hL="is not a registered action";function _o(e,n){this._actions={};var t=this;e.on("diagram.init",function(){t._registerDefaultActions(n),e.fire("editorActions.init",{editorActions:t})})}function BE(e,n){return new Error(e+" "+n)}_o.$inject=["eventBus","injector"],_o.prototype._registerDefaultActions=function(e){var n=e.get("commandStack",!1),t=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),c=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);n&&(this.register("undo",function(){n.undo()}),this.register("redo",function(){n.redo()})),o&&i&&this.register("copy",function(){var d=i.get();o.copy(d)}),o&&this.register("paste",function(){o.paste()}),r&&this.register("stepZoom",function(d){r.stepZoom(d.value)}),a&&this.register("zoom",function(d){a.zoom(d.value)}),t&&i&&s&&this.register("removeSelection",function(){var d=i.get();if(d.length){var h,u=s.allowed("elements.delete",{elements:d});!1!==u&&(h=Lt(u)?u:d).length&&t.removeElements(h.slice())}}),c&&this.register("moveCanvas",function(d){c.moveCanvas(d)}),l&&this.register("moveSelection",function(d){l.moveSelection(d.direction,d.accelerated)})},_o.prototype.trigger=function(e,n){if(!this._actions[e])throw BE(e,hL);return this._actions[e](n)},_o.prototype.register=function(e,n){var t=this;if("string"==typeof e)return this._registerAction(e,n);R(e,function(i,r){t._registerAction(r,i)})},_o.prototype._registerAction=function(e,n){if(this.isRegistered(e))throw BE(e,"is already registered");this._actions[e]=n},_o.prototype.unregister=function(e){if(!this.isRegistered(e))throw BE(e,hL);this._actions[e]=void 0},_o.prototype.getActions=function(){return Object.keys(this._actions)},_o.prototype.isRegistered=function(e){return!!this._actions[e]};const Rae={__init__:["editorActions"],editorActions:["type",_o]};function h_(e){e.invoke(_o,this)}Xe()(h_,_o),h_.$inject=["injector"],h_.prototype._registerDefaultActions=function(e){_o.prototype._registerDefaultActions.call(this,e);var n=e.get("canvas",!1),t=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),c=e.get("distributeElements",!1),l=e.get("alignElements",!1),d=e.get("directEditing",!1),u=e.get("searchPad",!1),h=e.get("modeling",!1);n&&t&&i&&this._registerAction("selectElements",function(){var f=n.getRootElement(),p=t.filter(function(g){return g!==f});return i.select(p),p}),r&&this._registerAction("spaceTool",function(){r.toggle()}),o&&this._registerAction("lassoTool",function(){o.toggle()}),a&&this._registerAction("handTool",function(){a.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),i&&c&&this._registerAction("distributeElements",function(f){var p=i.get();p.length&&c.trigger(p,f.type)}),i&&l&&this._registerAction("alignElements",function(f){var p=i.get(),g=[],v=f.type;p.length&&(g=St(p,function(k){return!b(k,"bpmn:Lane")}),l.trigger(g,v))}),i&&h&&this._registerAction("setColor",function(f){var p=i.get();p.length&&h.setColor(p,f)}),i&&d&&this._registerAction("directEditing",function(){var f=i.get();f.length&&d.activate(f[0])}),u&&this._registerAction("find",function(){u.toggle()}),n&&h&&this._registerAction("moveToOrigin",function(){var p,g,f=n.getRootElement();p=Fi(g=b(f,"bpmn:Collaboration")?t.filter(function(v){return b(v.parent,"bpmn:Collaboration")}):t.filter(function(v){return v!==f&&!b(v.parent,"bpmn:SubProcess")})),h.moveElements(g,{x:-p.x,y:-p.y},f)})};const Pae={__depends__:[Rae],editorActions:["type",h_]};function fL(e){e.on(["create.init","shape.move.init"],function(n){var t=n.context;Kt(n.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")})}function VE(e,n,t){return t||(t="round"),Math[t](e/n)*n}function Zs(e,n,t){var i=!t||!1!==t.active;this._eventBus=n;var r=this;n.on("diagram.init",800,function(){r.setActive(i)}),n.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,function(o){var a=o.originalEvent;if(!(!r.active||a&&Wr(a))){var s=o.context,c=s.gridSnappingContext;c||(c=s.gridSnappingContext={}),["x","y"].forEach(function(l){var d={},u=function Bae(e,n,t){var r=e.shape,o=e.context.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;return s&&yt(s[n])||(s||(s=o.snapOffset={}),yt(s[n])||(s[n]=0),!r)||(t.get(r.id)||(p_(n)?s[n]+=r[n]+r.width/2:s[n]+=r[n]+r.height/2),!a)||("x"===n?/left/.test(a)?s[n]-=r.width/2:/right/.test(a)&&(s[n]+=r.width/2):/top/.test(a)?s[n]-=r.height/2:/bottom/.test(a)&&(s[n]+=r.height/2)),s[n]}(o,l,e);u&&(d.offset=u);var h=function Lae(e,n){var t=e.context,i=t.createConstraints,r=t.resizeConstraints||{},o=t.gridSnappingContext,a=o.snapConstraints;if(a&&a[n])return a[n];a||(a=o.snapConstraints={}),a[n]||(a[n]={});var s=t.direction;i&&(p_(n)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var c=r.min,l=r.max;return c&&(p_(n)?mL(s)?a.x.max=c.left:a.x.min=c.right:pL(s)?a.y.max=c.top:a.y.min=c.bottom),l&&(p_(n)?mL(s)?a.x.min=l.left:a.x.max=l.right:pL(s)?a.y.min=l.top:a.y.max=l.bottom),a[n]}(o,l);h&&I(d,h),du(o,l)||r.snapEvent(o,l,d)})}})}function p_(e){return"x"===e}function pL(e){return-1!==e.indexOf("n")}function mL(e){return-1!==e.indexOf("w")}function il(e,n){Ve.call(this,e),this._gridSnapping=n;var t=this;this.preExecute("shape.resize",function(i){var r=i.context,a=(r.hints||{}).autoResize;if(a){var s=r.shape,c=r.newBounds;r.newBounds=Vr(a)?t.snapComplex(c,a):t.snapSimple(s,c)}})}function gL(e,n){e.on(["spaceTool.move","spaceTool.end"],2e3,function(t){var o,i=t.context;i.initialized&&("x"===i.axis?(o=n.snapValue(t.dx),t.x=t.x+o-t.dx,t.dx=o):(o=n.snapValue(t.dy),t.y=t.y+o-t.dy,t.dy=o))})}fL.$inject=["eventBus"],Zs.prototype.snapEvent=function(e,n,t){gi(e,n,this.snapValue(e[n],t))},Zs.prototype.getGridSpacing=function(){return 10},Zs.prototype.snapValue=function(e,n){var i,r,t=0;return n&&n.offset&&(t=n.offset),e=VE(e+=t,10),n&&n.min&&yt(i=n.min)&&(i=VE(i+t,10,"ceil"),e=Math.max(e,i)),n&&n.max&&yt(r=n.max)&&(r=VE(r+t,10,"floor"),e=Math.min(e,r)),e-t},Zs.prototype.isActive=function(){return this.active},Zs.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},Zs.prototype.toggleActive=function(){this.setActive(!this.active)},Zs.$inject=["elementRegistry","eventBus","config.gridSnapping"],il.$inject=["eventBus","gridSnapping","modeling"],Xe()(il,Ve),il.prototype.snapSimple=function(e,n){var t=this._gridSnapping;return n.width=t.snapValue(n.width,{min:n.width}),n.height=t.snapValue(n.height,{min:n.height}),n.x=e.x+e.width/2-n.width/2,n.y=e.y+e.height/2-n.height/2,n},il.prototype.snapComplex=function(e,n){return/w|e/.test(n)&&(e=this.snapHorizontally(e,n)),/n|s/.test(n)&&(e=this.snapVertically(e,n)),e},il.prototype.snapHorizontally=function(e,n){var t=this._gridSnapping,i=/w/.test(n),r=/e/.test(n),o={};return o.width=t.snapValue(e.width,{min:e.width}),r&&(i?(o.x=t.snapValue(e.x,{max:e.x}),o.width+=t.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),I(e,o),e},il.prototype.snapVertically=function(e,n){var t=this._gridSnapping,i=/n/.test(n),r=/s/.test(n),o={};return o.height=t.snapValue(e.height,{min:e.height}),i&&(r?(o.y=t.snapValue(e.y,{max:e.y}),o.height+=t.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),I(e,o),e},gL.$inject=["eventBus","gridSnapping"];const jae={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",il],gridSnappingSpaceToolBehavior:["type",gL]}],__init__:["gridSnapping"],gridSnapping:["type",Zs]};function vL(e,n){e.on("autoPlace",2e3,function(t){var i=t.source,r=Mt(i),o=t.shape,a=i4(i,o);return["x","y"].forEach(function(s){var c={};a[s]!==r[s]&&(a[s]>r[s]?c.min=a[s]:c.max=a[s],b(o,"bpmn:TextAnnotation")&&(c.offset=function Hae(e){return"x"===e}(s)?-o.width/2:-o.height/2),a[s]=n.snapValue(a[s],c))}),a})}function _L(e,n,t){n.on(["create.start","shape.move.start"],1750,function(i){var r=i.context,o=r.shape,a=e.getRootElement();b(o,"bpmn:Participant")&&b(a,"bpmn:Process")&&a.children.length&&r.createConstraints&&(o.width=t.snapValue(o.width,{min:o.width}),o.height=t.snapValue(o.height,{min:o.height}))})}function m_(e,n,t){Ve.call(this,e),this._gridSnapping=n;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,function(r){var o=r.context,a=o.connection,s=o.hints||{},c=a.waypoints;s.connectionStart||s.connectionEnd||!1===s.createElementsBehavior||function Gae(e){return e.length>3}(c)&&t.updateWaypoints(a,i.snapMiddleSegments(c))})}function qae(e,n,t){var i=ts(n,t),r={};return function Wae(e){return"h"===e}(i)&&(r.y=e.snapValue(n.y)),function Yae(e){return"v"===e}(i)&&(r.x=e.snapValue(n.x)),("x"in r||"y"in r)&&(n=I({},n,r),t=I({},t,r)),[n,t]}vL.$inject=["eventBus","gridSnapping"],_L.$inject=["canvas","eventBus","gridSnapping"],m_.$inject=["eventBus","gridSnapping","modeling"],Xe()(m_,Ve),m_.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i5&&ge(c,{x:s.x,width:s.width}),s.height>5&&ge(c,{y:s.y,height:s.height}),o.canExecute?Pt(c).remove(TL):Pt(c).add(TL)}(o.context)}),e.on("resize.cleanup",function(o){!function r(o){var a=o.shape;o.frame&&ti(o.frame),n.removeMarker(a,kL)}(o.context)})}AL.$inject=["eventBus","canvas","previewSupport"];var Gf="djs-resizer",cse=["n","w","s","e","nw","ne","se","sw"];function Qs(e,n,t,i){this._resize=i,this._canvas=n;var r=this;e.on("selection.changed",function(o){var a=o.newSelection;r.removeResizers(),1===a.length&&R(a,Wi(r.addResizer,r))}),e.on("shape.changed",function(o){var a=o.element;t.isSelected(a)&&(r.removeResizers(),r.addResizer(a))})}Qs.prototype.makeDraggable=function(e,n,t){var i=this._resize;function r(o){Ks(o)&&i.activate(o,e,t)}ct.bind(n,"mousedown",r),ct.bind(n,"touchstart",r)},Qs.prototype._createResizer=function(e,n,t,i){var r=this._getResizersParent(),o=function lse(e){var n={x:0,y:0};return-1!==e.indexOf("e")?n.x=6:-1!==e.indexOf("w")&&(n.x=-6),-1!==e.indexOf("s")?n.y=6:-1!==e.indexOf("n")&&(n.y=-6),n}(i),a=qe("g");Pt(a).add(Gf),Pt(a).add(Gf+"-"+e.id),Pt(a).add(Gf+"-"+i),Ze(r,a);var s=qe("rect");ge(s,{x:-2+o.x,y:-2+o.y,width:4,height:4}),Pt(s).add(Gf+"-visual"),Ze(a,s);var c=qe("rect");return ge(c,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Pt(c).add(Gf+"-hit"),Ze(a,c),W1(a,n,t),a},Qs.prototype.createResizer=function(e,n){var t=DL(e,n),i=this._createResizer(e,t.x,t.y,n);this.makeDraggable(e,i,n)},Qs.prototype.addResizer=function(e){var n=this;this._resize.canResize({shape:e})&&R(cse,function(i){n.createResizer(e,i)})},Qs.prototype.removeResizers=function(){O1(this._getResizersParent())},Qs.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},Qs.$inject=["eventBus","canvas","selection","resize"];const b_={__depends__:[Ca,as,Ff],__init__:["resize","resizePreview","resizeHandles"],resize:["type",Uf],resizePreview:["type",AL],resizeHandles:["type",Qs]};function zE(e,n){var t=n.create("bpmn:CategoryValue"),i=n.create("bpmn:Category",{categoryValue:[t]});return Un(e.get("rootElements"),i),$e(i).$parent=e,$e(t).$parent=i,t}function Wf(e,n,t,i,r,o,a){function s(c,l){(l||Kt(c,["bpmn:Task","bpmn:TextAnnotation"])||HE(c))&&i.activate(c)}this._bpmnFactory=n,this._canvas=t,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",function(c){s(c.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open"],function(c){i.isActive()&&i.complete()}),e.on(["commandStack.changed"],function(c){i.isActive()&&i.cancel()}),e.on("directEditing.activate",function(c){o.removeResizers()}),e.on("create.end",500,function(c){var l=c.context;c.isTouch||c.context.canExecute&&(l.hints&&!1===l.hints.createElementsBehavior||s(l.shape))}),e.on("autoPlace.end",500,function(c){s(c.shape)})}function HE(e){return b(e,"bpmn:SubProcess")&&!ln(e)}Wf.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],Wf.prototype.activate=function(e){var n=Go(e);if(void 0!==n){var t={text:n};I(t,this.getEditingBBox(e));var r={};return(Kt(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||HE(e))&&I(r,{centerVertically:!0}),ya(e)&&I(r,{autoResize:!0}),b(e,"bpmn:TextAnnotation")&&I(r,{resizable:!0,autoResize:!0}),I(t,{options:r}),t}},Wf.prototype.getEditingBBox=function(e){var n=this._canvas,t=e.label||e,i=n.getAbsoluteBBox(t),r_x=i.x+i.width/2,r_y=i.y+i.height/2,o={x:i.x,y:i.y},a=n.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,d=c.lineHeight,u=s.fontSize*a,h=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(b(e,"bpmn:Lane")||function hse(e){return b(e,"bpmn:Participant")&&ln(e)}(e))&&(I(o,{width:i.height,height:30*a,x:i.x-i.height/2+15*a,y:r_y-30*a/2}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:"rotate(-90deg)"})),(Kt(e,["bpmn:Task","bpmn:CallActivity"])||function use(e){return b(e,"bpmn:Participant")&&!ln(e)}(e)||HE(e))&&(I(o,{width:i.width,height:i.height}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),function dse(e){return b(e,"bpmn:SubProcess")&&ln(e)}(e)&&(I(o,{width:i.width,x:i.x}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var p=90*a,g=7*a,v=4*a;if(t.labelTarget&&(I(o,{width:p,height:i.height+g+v,x:r_x-p/2,y:i.y-g}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})),ya(t)&&!tu(t)&&!mi(t)){var k=nu(e),E=n.getAbsoluteBBox({x:k.x,y:k.y,width:0,height:0}),C=l+g+v;I(o,{width:p,height:C,x:E.x-p/2,y:E.y-C/2}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})}return b(e,"bpmn:TextAnnotation")&&(I(o,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:u+"px",lineHeight:h})),{bounds:o,style:f}},Wf.prototype.update=function(e,n,t,i){var r,o;if(b(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),b(e,"bpmn:Group")&&!$e(e).categoryValueRef){var l=zE($e(this._canvas.getRootElement()).$parent,this._bpmnFactory);$e(e).categoryValueRef=l}(function fse(e){return!e||!e.trim()})(n)&&(n=null),this._modeling.updateLabel(e,n,r)};var ML="djs-element-hidden",IL="djs-label-hidden";function OL(e,n,t,i){var a,s,c,r=this,o=n.getDefaultLayer();e.on("directEditing.activate",function(l){var d=l.active;if(b(a=d.element.label||d.element,"bpmn:TextAnnotation")){s=n.getAbsoluteBBox(a),c=qe("g");var u=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:a.height,position:{mx:0,my:0}}),h=r.path=qe("path");ge(h,{d:u,strokeWidth:2,stroke:pse(a)}),Ze(c,h),Ze(o,c),sr(c,a.x,a.y)}b(a,"bpmn:TextAnnotation")||a.labelTarget?n.addMarker(a,ML):(b(a,"bpmn:Task")||b(a,"bpmn:CallActivity")||b(a,"bpmn:SubProcess")||b(a,"bpmn:Participant"))&&n.addMarker(a,IL)}),e.on("directEditing.resize",function(l){if(b(a,"bpmn:TextAnnotation")){var h=Math.max(a.height/s.height*(l.height+l.dy),0),f=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:h,position:{mx:0,my:0}});ge(r.path,{d:f})}}),e.on(["directEditing.complete","directEditing.cancel"],function(l){var d=l.active;d&&(n.removeMarker(d.element.label||d.element,ML),n.removeMarker(a,IL)),a=void 0,s=void 0,c&&(ti(c),c=void 0)})}function pse(e,n){return $e(e).di.get("stroke")||n||"black"}OL.$inject=["eventBus","canvas","elementRegistry","pathMap"];const mse={__depends__:[jE,b_,OE],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Wf],labelEditingPreview:["type",OL]};var $E=["top","bottom","left","right"];function UE(e,n){function t(r){if(tu(r)){var o=function _se(e){var n=Mt(e.label),i=RL(Mt(e),n);if(function yse(e){return-1!==$E.indexOf(e)}(i)){var r=function vse(e){var n=Mt(e),t=[].concat(e.incoming.map(function(i){return i.waypoints[i.waypoints.length-2]}),e.outgoing.map(function(i){return i.waypoints[1]})).map(function(i){return RL(n,i)});return t}(e);if(e.host){var o=function gse(e){var r,n=e.host,i=Li(Mt(e),n);r=i.indexOf("-")>=0?i.split("-"):[i];var o=$E.filter(function(a){return-1===r.indexOf(a)});return o}(e);r=r.concat(o)}var a=$E.filter(function(s){return-1===r.indexOf(s)});if(-1===a.indexOf(i))return a[0]}}(r);o&&function i(r,o){var a=Mt(r),s=r.label,c=Mt(s);if(s.parent){var d,l=ot(r);switch(o){case"top":d={x:a.x,y:l.top-10-s.height/2};break;case"left":d={x:l.left-10-s.width/2,y:a.y};break;case"bottom":d={x:a.x,y:l.bottom+10+s.height/2};break;case"right":d={x:l.right+10+s.width/2,y:a.y}}var u=xa(d,c);n.moveShape(s,u)}}(r,o)}}Ve.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(r){var o=r.context,a=o.connection,c=a.target;!1!==(o.hints||{}).createElementsBehavior&&(t(a.source),t(c))}),this.postExecuted(["label.create"],function(r){var o=r.context;!1!==(o.hints||{}).createElementsBehavior&&t(o.shape.labelTarget)}),this.postExecuted(["elements.create"],function(r){var o=r.context;!1!==(o.hints||{}).createElementsBehavior&&o.elements.forEach(function(c){t(c)})})}function RL(e,n){return Li(n,e,5)}function GE(e,n,t){Ve.call(this,e),this.preExecute("shape.append",function(i){var r=i.source,o=i.shape;i.position||(i.position=b(o,"bpmn:TextAnnotation")?{x:r.x+r.width/2+75,y:r.y-50-o.height/2}:{x:r.x+r.width+80+o.width/2,y:r.y+r.height/2})},!0)}function WE(e,n){e.invoke(Ve,this),this.postExecute("shape.move",function(t){var i=t.newParent,r=t.shape;R(St(r.incoming.concat(r.outgoing),function(a){return b(a,"bpmn:Association")}),function(a){n.moveConnection(a,{x:0,y:0},i)})},!0)}function w_(e,n){n.invoke(Ve,this),this._bpmnReplace=e;var t=this;this.postExecuted("elements.create",500,function(i){var r=i.elements;1===(r=r.filter(function(o){return NL(o,o.host)})).length&&r.map(function(o){return r.indexOf(o)}).forEach(function(o){i.elements[o]=t.replaceShape(r[o],r[o])})},!0),this.preExecute("elements.move",500,function(i){var r=i.shapes,o=i.newHost;if(1===r.length){var a=r[0];NL(a,o)&&(i.shapes=[t.replaceShape(a,o)])}},!0)}function NL(e,n){return!mi(e)&&Kt(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!n}function YE(e,n,t){function i(r){return St(r.attachers,function(o){return b(o,"bpmn:BoundaryEvent")})}Ve.call(this,e),this.postExecute("connection.create",function(r){var o=r.context.source,a=r.context.target,s=i(a);b(o,"bpmn:EventBasedGateway")&&b(a,"bpmn:ReceiveTask")&&s.length>0&&t.removeElements(s)}),this.postExecute("connection.reconnect",function(r){var a=r.context.newSource;b(r.context.oldSource,"bpmn:Gateway")&&b(a,"bpmn:EventBasedGateway")&&R(a.outgoing,function(s){var c=s.target,l=i(c);b(c,"bpmn:ReceiveTask")&&l.length>0&&t.removeElements(l)})}),e.on("moddleCopy.canCopyProperty",2e3,function(r){var o=r.parent,a=r.property,s=r.propertyName,c=n.getPropertyDescriptor(o,s);c&&c.isReference&&b(a,"bpmn:RootElement")&&o.set(s,a)})}function qE(e,n,t,i,r){function o(d){return Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"])||function Ese(e,n){return Lt(n)||(n=[n]),Gc(n,function(t){return zv(e,t)})}(d,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(d){return!!on(e.getDefinitions().get("rootElements"),$o({id:d.id}))}function s(d){return b(d,"bpmn:ErrorEventDefinition")?"errorRef":b(d,"bpmn:EscalationEventDefinition")?"escalationRef":b(d,"bpmn:MessageEventDefinition")?"messageRef":b(d,"bpmn:SignalEventDefinition")?"signalRef":void 0}function c(d){if(Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.get("messageRef");var h=d.get("eventDefinitions")[0];return h.get(s(h))}t.invoke(Ve,this),this.executed("shape.create",function(d){var u=d.shape;if(o(u)){var f=c($e(u));f&&!a(f)&&(Un(e.getDefinitions().get("rootElements"),f),d.addedRootElement=f)}},!0),this.reverted("shape.create",function(d){var u=d.addedRootElement;u&&$n(e.getDefinitions().get("rootElements"),u)},!0),n.on("copyPaste.copyElement",function(d){var u=d.descriptor,h=d.element;if(o(h)){var p=c($e(h));p&&(u.referencedRootElement=p)}}),n.on("copyPaste.pasteElement",500,function(d){var u=d.descriptor,h=u.businessObject;if(o(h)){var f=u.referencedRootElement;f&&(a(f)||(f=i.copyElement(f,r.create(f.$type))),function l(d,u){if(Kt(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.set("messageRef",u);var f=d.get("eventDefinitions")[0];f.set(s(f),u)}(h,f))}})}function KE(e){e.invoke(Ve,this),this.preExecute("shape.create",1500,function(n){var t=n.context,i=t.parent,r=t.shape;b(i,"bpmn:Lane")&&!b(r,"bpmn:Lane")&&(t.parent=a_(i,"bpmn:Participant"))})}function FL(e,n,t){n.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],1500,function(i){var o=i.context.shape||i.shape,a=i.hover;b(a,"bpmn:Lane")&&!Kt(o,["bpmn:Lane","bpmn:Participant"])&&(i.hover=Ko(a),i.hoverGfx=e.getGraphics(i.hover));var s=t.getRootElement();a!==s&&(o.labelTarget||b(o,"bpmn:Group"))&&(i.hover=s,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],1500,function(i){var r=i.hover;b(r,"bpmn:Lane")&&(i.hover=Ko(r)||r,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["bendpoint.move.hover"],1500,function(i){var o=i.hover,a=i.context.type;b(o,"bpmn:Lane")&&/reconnect/.test(a)&&(i.hover=Ko(o)||o,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.start"],1500,function(i){var r=i.context,o=r.start;b(o,"bpmn:Lane")&&(r.start=Ko(o)||o)}),n.on("shape.move.start",2e3,function(i){var r=i.shape;b(r,"bpmn:Lane")&&(i.shape=Ko(r)||r)})}function XE(e,n,t){Ve.call(this,e),this.preExecute("shape.create",function(i){var o=i.context.shape;if(b(o,"bpmn:DataObjectReference")&&"label"!==o.type){var a=n.create("bpmn:DataObject");o.businessObject.dataObjectRef=a}})}Xe()(UE,Ve),UE.$inject=["eventBus","modeling"],Xe()(GE,Ve),GE.$inject=["eventBus","elementFactory","bpmnRules"],Xe()(WE,Ve),WE.$inject=["injector","modeling"],w_.$inject=["bpmnReplace","injector"],Xe()(w_,Ve),w_.prototype.replaceShape=function(e,n){var t=function bse(e){var t=$e(e).eventDefinitions;return t&&t[0]}(e),i={type:"bpmn:BoundaryEvent",host:n};return t&&(i.eventDefinitionType=t.$type),this._bpmnReplace.replaceElement(e,i,{layoutConnection:!1})},YE.$inject=["eventBus","moddle","modeling"],Xe()(YE,Ve),qE.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],Xe()(qE,Ve),KE.$inject=["injector"],Xe()(KE,Ve),FL.$inject=["elementRegistry","eventBus","canvas"],XE.$inject=["eventBus","bpmnFactory","moddle"],Xe()(XE,Ve);function JE(e,n,t){function i(){var r=e.getRootElement();return b(r,"bpmn:Collaboration")?r:t.makeCollaboration()}Ve.call(this,n),n.on(["create.start","shape.move.start"],2e3,function(r){var o=r.context,a=o.shape,s=e.getRootElement();if(b(a,"bpmn:Participant")&&b(s,"bpmn:Process")&&s.children.length){var c=s.children.filter(function(u){return!b(u,"bpmn:Group")&&!mi(u)&&!function kse(e){return!!e.waypoints}(u)});if(c.length){var l=Fi(c),d=function Sse(e,n){n={width:n.width+40+30,height:n.height+40};var t=Math.max(e.width,n.width),i=Math.max(e.height,n.height);return{x:-t/2,y:-i/2,width:t,height:i}}(a,l);I(a,d),o.createConstraints=function Dse(e,n){return{bottom:(n=ot(n)).top+e.height/2-20,left:n.right-e.width/2+20,top:n.bottom-e.height/2+20,right:n.left+e.width/2-20-30}}(a,l)}}}),n.on("create.start",2e3,function(r){var a=r.context.shape,s=e.getRootElement(),c=e.getGraphics(s);function l(d){d.element=s,d.gfx=c}b(a,"bpmn:Participant")&&b(s,"bpmn:Process")&&(n.on("element.hover",2e3,l),n.once("create.cleanup",function(){n.off("element.hover",l)}))}),this.preExecute("elements.create",2e3,function(r){var c,a=r.parent,s=function Tse(e){return on(e,function(n){return b(n,"bpmn:Participant")})}(r.elements);s&&b(a,"bpmn:Process")&&(r.parent=i(),(c=r.hints=r.hints||{}).participant=s,c.process=a,c.processRef=$e(s).get("processRef"))},!0),this.preExecute("shape.create",function(r){var o=r.parent,a=r.shape;b(a,"bpmn:Participant")&&b(o,"bpmn:Process")&&(r.parent=i(),r.process=o,r.processRef=$e(a).get("processRef"))},!0),this.execute("shape.create",function(r){var o=r.hints||{},a=r.process||o.process,s=r.shape,c=o.participant;a&&(!c||s===c)&&$e(s).set("processRef",$e(a))},!0),this.revert("shape.create",function(r){var o=r.hints||{},s=r.processRef||o.processRef,c=r.shape,l=o.participant;(r.process||o.process)&&(!l||c===l)&&$e(c).set("processRef",s)},!0),this.postExecute("shape.create",function(r){var a=r.process||r.hints.process,s=r.shape,c=(r.hints||{}).participant;if(a){var l=a.children.slice();c?s===c&&t.moveElements(l,{x:0,y:0},c):t.moveElements(l,{x:0,y:0},s)}},!0)}JE.$inject=["canvas","eventBus","modeling"],Xe()(JE,Ve);var BL="__targetRef_placeholder";function eC(e,n){function i(a,s){var c=a.get("properties"),l=on(c,function(d){return d.name===BL});return!l&&s&&Un(c,l=n.create("bpmn:Property",{name:BL})),l}function r(a,s){var c=i(a);c&&(function t(a,s,c){return on(a.get("dataInputAssociations"),function(d){return d!==c&&d.targetRef===s})}(a,c,s)||$n(a.get("properties"),c))}function o(a){var k,s=a.context,c=s.connection,l=c.businessObject,d=c.target,u=d&&d.businessObject,h=s.newTarget,f=h&&h.businessObject,p=s.oldTarget||s.target,g=p&&p.businessObject,v=c.businessObject;g&&g!==u&&r(g,l),f&&f!==u&&r(f,l),u?(k=i(u,!0),v.targetRef=k):v.targetRef=null}Ve.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],VL(o)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],VL(o))}function VL(e){return function(n){if(b(n.context.connection,"bpmn:DataInputAssociation"))return e(n)}}function S_(e){this._bpmnUpdater=e}function tC(e,n,t,i){function o(s){return s.children.filter(function(c){return b(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function a(s,c){var l=s.businessObject||s;if(c=c||function r(){return t.filter(function(s){return b(s,"bpmn:Participant")&&$e(s).processRef})[0]}(),c){var d=c.businessObject||c;n.execute("dataStore.updateContainment",{dataStoreBo:l,newSemanticParent:d.processRef||d,newDiParent:d.di})}}Ve.call(this,i),n.registerHandler("dataStore.updateContainment",S_),this.preExecute("shape.create",function(s){var c=s.context,l=c.shape;b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&(c.hints||(c.hints={}),c.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var c=s.context,l=c.shapes;l.filter(function(u){return b(u,"bpmn:DataStoreReference")}).length&&(c.hints||(c.hints={}),c.hints.autoResize=l.filter(function(u){return!b(u,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var l=s.context.shape,d=l.parent;b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&b(d,"bpmn:Collaboration")&&a(l)}),this.postExecute("shape.move",function(s){var c=s.context,l=c.shape,d=c.oldParent,u=l.parent;if(!b(d,"bpmn:Collaboration")&&b(l,"bpmn:DataStoreReference")&&"label"!==l.type&&b(u,"bpmn:Collaboration")){var h=b(d,"bpmn:Participant")?d:function Mse(e,n){for(;e.parent;){if(b(e.parent,n))return e.parent;e=e.parent}}(d,"bpmn:Participant");a(l,h)}}),this.postExecute("shape.delete",function(s){var l=s.context.shape,d=e.getRootElement();Kt(l,["bpmn:Participant","bpmn:SubProcess"])&&b(d,"bpmn:Collaboration")&&o(d).filter(function(u){return function Ase(e,n){for(var t=e.businessObject||e,i=n.businessObject||n;t.$parent;){if(t.$parent===i.processRef||i)return!0;t=t.$parent}return!1}(u,l)}).forEach(function(u){a(u)})}),this.postExecute("canvas.updateRoot",function(s){var c=s.context,d=c.newRoot;o(c.oldRoot).forEach(function(h){b(d,"bpmn:Process")&&a(h,d)})})}function nC(e,n,t){Ve.call(this,e),this.postExecuted("shape.delete",500,function(r){var o=r.context,a=o.hints,s=o.shape,c=o.oldParent;b(s,"bpmn:Lane")&&(a&&a.nested||function i(r,o){var l,d,u,a=nl(o),s=[],c=[];Yc(a,function(h){return h.y>r.y?c.push(h):s.push(h),h.children}),a.length&&(l=c.length&&s.length?r.height/2:r.height,s.length&&(d=t.calculateAdjustments(s,"y",l,r.y-10),t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:l},"s")),c.length&&(u=t.calculateAdjustments(c,"y",-l,r.y+r.height+10),t.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:-l},"n")))}(s,c))})}function D_(e,n){n.invoke(Ve,this),this._bpmnReplace=e;var t=this;this.postExecuted("elements.create",500,function(i){var r=i.elements;r.filter(function(o){return zL(o,o.host)}).map(function(o){return r.indexOf(o)}).forEach(function(o){i.elements[o]=t.replaceShape(r[o])})},!0),this.preExecute("elements.move",500,function(i){var r=i.shapes,o=i.newHost;r.forEach(function(a,s){var c=a.host;zL(a,function Rse(e,n){return-1!==e.indexOf(n)}(r,c)?c:o)&&(r[s]=t.replaceShape(a))})},!0)}function zL(e,n){return!mi(e)&&b(e,"bpmn:BoundaryEvent")&&!n}function iC(e,n,t){function i(r,o,a){var c,l,d,h,f,p,k,s=o.waypoints,g=r.outgoing.slice(),v=r.incoming.slice(),E=xE(s,k=yt(a.width)?Mt(a):a);if(E){if(c=s.slice(0,E.index),l=s.slice(E.index+(E.bendpoint?1:0)),!c.length||!l.length)return;d=E.bendpoint?s[E.index]:k,(1===c.length||!HL(r,c[c.length-1]))&&c.push($L(d)),(1===l.length||!HL(r,l[0]))&&l.unshift($L(d))}h=o.target,n.canConnect(o.source,r,o)&&(t.reconnectEnd(o,r,c||k),f=o),n.canConnect(r,h,o)&&(f?p=t.connect(r,h,{type:o.type,waypoints:l}):(t.reconnectStart(o,r,l||k),p=o));var C=[].concat(f&&St(v,function(x){return x.source===f.source})||[],p&&St(g,function(x){return x.target===p.target})||[]);C.length&&t.removeElements(C)}Ve.call(this,e),this.preExecute("elements.move",function(r){var o=r.newParent,a=r.shapes,s=r.delta,c=a[0];if(c&&o){o&&o.waypoints&&(r.newParent=o=o.parent);var l=Mt(c),d={x:l.x+s.x,y:l.y+s.y},u=on(o.children,function(h){return n.canInsert(a,h)&&xE(h.waypoints,d)});u&&(r.targetFlow=u,r.position=d)}},!0),this.postExecuted("elements.move",function(r){var a=r.targetFlow;a&&i(r.shapes[0],a,r.position)},!0),this.preExecute("shape.create",function(r){var o=r.parent;n.canInsert(r.shape,o)&&(r.targetFlow=o,r.parent=o.parent)},!0),this.postExecuted("shape.create",function(r){var a=r.targetFlow;a&&i(r.shape,a,r.position)},!0)}function HL(e,n){var t=n.x,i=n.y;return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function $L(e){return I({},e)}function rC(e,n){Ve.call(this,e),this.preExecuted("connection.create",function(t){var i=t.context,r=i.source,o=i.target,a=o.incoming.slice();i.hints&&!1===i.hints.createElementsBehavior||b(r,"bpmn:EventBasedGateway")&&o.incoming.length&&a.filter(oC).forEach(function(s){n.removeConnection(s)})}),this.preExecuted("shape.replace",function(t){var i=t.context.newShape;b(i,"bpmn:EventBasedGateway")&&i.outgoing.filter(oC).map(function(a){return a.target}).reduce(function(a,s){var c=s.incoming.filter(oC);return a.concat(c)},[]).forEach(function(a){a.source!==i&&n.removeConnection(a)})})}function oC(e){return b(e,"bpmn:SequenceFlow")}function aC(e,n,t,i,r,o){function a(){return $e(n.getRootElement()).$parent}function s(u){var f=$e(u).categoryValueRef;if(f){var p=f.$parent;f&&($n(p.categoryValue,f),p&&!p.categoryValue.length&&function c(u){$n(a().get("rootElements"),u)}(p))}}r.invoke(Ve,this),this.executed("shape.delete",function(u){var f=u.context.shape;if(b(f,"bpmn:Group")){var g=$e(f).categoryValueRef,v=function l(){return t.filter(function(u){return b(u,"bpmn:Group")})}();(function d(u,h){return u.some(function(f){var p=$e(f);return p.categoryValueRef&&p.categoryValueRef===h})})(v,g)||s(f)}}),this.reverted("shape.delete",function(u){var f=u.context.shape;if(b(f,"bpmn:Group")){var g=$e(f).categoryValueRef,v=a(),k=g?g.$parent:null;Un(k.get("categoryValue"),g),Un(v.get("rootElements"),k)}}),this.execute("shape.create",function(u){var p=$e(u.context.shape);if(b(p,"bpmn:Group")&&!p.categoryValueRef){var v=zE(a(),e);p.categoryValueRef=v}}),this.revert("shape.create",function(u){var f=u.context.shape;b(f,"bpmn:Group")&&(s(f),delete $e(f).categoryValueRef)}),i.on("moddleCopy.canCopyProperty",2e3,function(u){var f,h=u.property;if(b(h,"bpmn:CategoryValue"))return f=zE(a(),e),o.copyElement(h,f)})}function sC(e,n,t,i){var r,s;return 0==(r=(i.y-t.y)*(n.x-e.x)-(i.x-t.x)*(n.y-e.y))?null:(s=((i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x))/r,{x:Math.round(e.x+s*(n.x-e.x)),y:Math.round(e.y+s*(n.y-e.y))})}function UL(e){function n(i,r,o){var d,s={x:o.x-50,y:o.y},c=sC(i,r,o,{x:o.x,y:o.y-50}),l=sC(i,r,o,s);d=c&&l?GL(c,o)>GL(l,o)?l:c:c||l,i.original=d}e.on("bpmnElement.added",function(i){var r=i.element;r.waypoints&&function t(i){var r=i.waypoints;n(r[0],r[1],Mt(i.source)),n(r[r.length-1],r[r.length-2],Mt(i.target))}(r)})}function GL(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function cC(e){Ve.call(this,e);var n=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(t){var i=$e(t.context.shape);Kt(i,n)&&!i.di.get("isHorizontal")&&i.di.set("isHorizontal",!0)})}function WL(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function YL(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function qL(e,n){var t=n[0],i=n[1],r={x:i.x-t.x,y:i.y-t.y},o=function Fse(e,n,t){var i=[{n:e[0]-t[0],lambda:n[0]},{n:e[1]-t[1],lambda:n[1]}];return-(i[0].n*n[0]+i[1].n*n[1])/(i[0].lambda*n[0]+i[1].lambda*n[1])}([t.x,t.y],[r.x,r.y],[e.x,e.y]);return{x:t.x+o*r.x,y:t.y+o*r.y}}function Lse(e,n){var t=qL(e,n);return WL({x:t.x-e.x,y:t.y-e.y})}function k_(e,n){return WL({x:e.x-n.x,y:e.y-n.y})}eC.$inject=["eventBus","bpmnFactory"],Xe()(eC,Ve),S_.$inject=["bpmnUpdater"],S_.prototype.execute=function(e){var n=e.dataStoreBo,t=e.newSemanticParent,i=e.newDiParent;e.oldSemanticParent=n.$parent,e.oldDiParent=n.di.$parent,this._bpmnUpdater.updateSemanticParent(n,t),this._bpmnUpdater.updateDiParent(n.di,i)},S_.prototype.revert=function(e){var n=e.dataStoreBo,i=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(n,e.oldSemanticParent),this._bpmnUpdater.updateDiParent(n.di,i)},tC.$inject=["canvas","commandStack","elementRegistry","eventBus"],Xe()(tC,Ve),nC.$inject=["eventBus","modeling","spaceTool"],Xe()(nC,Ve),D_.$inject=["bpmnReplace","injector"],Xe()(D_,Ve),D_.prototype.replaceShape=function(e){var n=function Ose(e){var t=$e(e).eventDefinitions;return t&&t[0]}(e);return this._bpmnReplace.replaceElement(e,n?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:n.$type}:{type:"bpmn:IntermediateThrowEvent"},{layoutConnection:!1})},Xe()(iC,Ve),iC.$inject=["eventBus","bpmnRules","modeling"],rC.$inject=["eventBus","modeling"],Xe()(rC,Ve),aC.$inject=["bpmnFactory","canvas","elementRegistry","eventBus","injector","moddleCopy"],Xe()(aC,Ve),UL.$inject=["eventBus"],cC.$inject=["eventBus"],Xe()(cC,Ve);var KL=Math.sqrt,XL=Math.min,Bse=Math.max,ZL=Math.abs;function QL(e){return Math.pow(e,2)}function Yf(e,n){return KL(QL(e.x-n.x)+QL(e.y-n.y))}function jse(e,n,t,i){var r=n.x-e.x,o=n.y-e.y,a=t.x-e.x,s=t.y-e.y,c=r*r+o*o,u=(r*a+o*s)/c,f=u*u-(a*a+s*s-i*i)/c;if(f<0&&f>-1e-6&&(f=0),f<0)return[];var p=KL(f),g=-u+p,v=-u-p,k={x:e.x-r*g,y:e.y-o*g};return 0===f?[k]:[k,{x:e.x-r*v,y:e.y-o*v}].filter(function(C){return function zse(e,n,t){return JL(e.x,n.x,t.x)&&JL(e.y,n.y,t.y)}(C,e,n)})}function JL(e,n,t){return e>=XL(n,t)-T_&&e<=Bse(n,t)+T_}function Hse(e,n){return{x:(e.x+n.x)/2,y:(e.y+n.y)/2}}var T_=.1;function e3(e,n){return ZL(e.x-n.x)<=T_&&ZL(e.y-n.y)<=T_}function t3(e,n){var t=k_(e[n-1],e[n]);return t/(t+k_(e[n],e[n+1]))}function n3(e,n){return[e[n],e[n+1]]}function qf(e,n,t){var i=Mf(n),r=Mf(t),o=xa(e,i);return Gs({x:r.x+o.x*(t.width/n.width),y:r.y+o.y*(t.height/n.height)})}function r3(e,n,t){var i=Mf(e),r=Mf(n),o=Mf(t),a=xa(e,i),s=xa(i,r),c=function qse(e,n,t){var i=ot(n),r=ot(t);if(function Kse(e,n){return function Xse(e,n){return e.right!==n.right&&e.left!==n.left}(e,n)||function Zse(e,n){return e.top!==n.top&&e.bottom!==n.bottom}(e,n)}(i,r))return null;var a,o=Li(n,e);if("top"===o)a={x:0,y:r.bottom-i.bottom};else if("bottom"===o)a={x:0,y:r.top-i.top};else if("right"===o)a={x:r.left-i.left,y:0};else{if("left"!==o)return null;a={x:r.right-i.right,y:0}}return Li(t,{x:e.x+a.x,y:e.y+a.y})!==o?null:a}(i,n,t);return c||Gs({x:o.x+s.x*(t.width/n.width)+a.x-e.x,y:o.y+s.y*(t.height/n.height)+a.y-e.y})}var Qse={width:90,height:20};function lC(e,n,t,i){Ve.call(this,e),this.postExecute("element.updateProperties",function(o){var a=o.context,s=a.element,c=a.properties;if("name"in c&&n.updateLabel(s,c.name),"text"in c&&b(s,"bpmn:TextAnnotation")){var l=i.getTextAnnotationBounds({x:s.x,y:s.y,width:s.width,height:s.height},c.text||"");n.updateLabel(s,c.text,l)}}),this.postExecute(["shape.create","connection.create"],function(o){var a=o.context;if(!1!==(a.hints||{}).createElementsBehavior){var c=a.shape||a.connection,l=c.businessObject;if(!mi(c)&&ya(c)&&Go(c)){var d=nu(c),u=i.getExternalLabelBounds(Qse,Go(c));n.createLabel(c,d,{id:l.id+"_label",businessObject:l,width:u.width,height:u.height})}}}),this.postExecute("shape.delete",function(o){var a=o.context,s=a.labelTarget;s&&!1!==(a.hints||{}).unsetLabel&&n.updateLabel(s,null,null,{removeShape:!1})}),this.postExecute(["label.create"],function(o){var l,s=o.context.shape;s.labelTarget&&b(s.labelTarget||s,"bpmn:BaseElement")&&((l=s.businessObject.di).label||(l.label=t.create("bpmndi:BPMNLabel",{bounds:t.create("dc:Bounds")})),I(l.label.bounds,{x:s.x,y:s.y,width:s.width,height:s.height}))}),this.postExecute(["connection.layout","connection.updateWaypoints"],function(o){var a=o.context;if(!1!==(a.hints||{}).labelBehavior){var d,l=a.connection.label;!l||!l.parent||(d=function r(o){var a=o.context,s=a.connection,c=s.label,l=I({},a.hints),d=a.newWaypoints||s.waypoints,u=a.oldWaypoints;return typeof l.startChanged>"u"&&(l.startChanged=!!l.connectionStart),typeof l.endChanged>"u"&&(l.endChanged=!!l.connectionEnd),function Use(e,n,t,i){var r=0,o=0,a=function Gse(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),s=function Vse(e,n){var i,r,o,a,s,l,d,u,h,f,t=0;for(t=0;t line intersections");1===l.length&&(d={type:"bendpoint",position:l[0],segmentIndex:t,bendpointIndex:e3(i,l[0])?t:t+1}),2===l.length&&(d={type:"segment",position:s=Hse(l[0],l[1]),segmentIndex:t,relativeLocation:Yf(i,s)/Yf(i,r)}),u=Yf(d.position,e),(!f||h>u)&&(f=d,h=u)}return f}(a,t),c=s.segmentIndex,l=function $se(e,n,t,i){var r=t.segmentIndex,o=n.length-e.length;if(i.segmentMove){var s=i.segmentMove.newSegmentStartIndex;return r===i.segmentMove.segmentStartIndex?s:r>=s?r+o=l&&(d=c?r+1:r-1),rn.length-2)return{x:r,y:o};var d=n3(t,c),u=n3(n,l),h=s.position,f=function Yse(e,n){var t=k_(e[0],e[1]),i=k_(e[0],n);return 0===t?0:i/t}(d,h),p=function Wse(e,n){var t=YL(e);return YL(n)-t}(d,u);if("bendpoint"===s.type){var g=n.length-t.length,v=s.bendpointIndex;if(-1!==n.indexOf(t[v]))return{x:r,y:o};if(0===g){var E=n[v];return{x:E.x-s.position.x,y:E.y-s.position.y}}g<0&&0!==v&&v"+o+"
"})}(r,t("flow elements must be children of pools/participants"))})}function fC(e,n,t,i){Ve.call(this,e);var r=i.get("dragging",!1);function o(c){var h,f,l=c.source,d=c.target;c.parent&&(b(c,"bpmn:SequenceFlow")&&(t.canConnectSequenceFlow(l,d)||(f=!0),t.canConnectMessageFlow(l,d)&&(h="bpmn:MessageFlow")),b(c,"bpmn:MessageFlow")&&(t.canConnectMessageFlow(l,d)||(f=!0),t.canConnectSequenceFlow(l,d)&&(h="bpmn:SequenceFlow")),b(c,"bpmn:Association")&&!t.canConnectAssociation(l,d)&&(f=!0),f&&n.removeConnection(c),h&&n.connect(l,d,{type:h,waypoints:c.waypoints.slice()}))}this.postExecuted("elements.move",function(c){R(c.closure.allConnections,o)},!0),this.preExecute("connection.reconnect",function a(c){var f,p,l=c.context,d=l.connection,u=l.newSource||d.source,h=l.newTarget||d.target;(f=t.canConnect(u,h))&&f.type!==d.type&&(p=n.connect(u,h,{type:f.type,waypoints:d.waypoints.slice()}),n.removeConnection(d),l.connection=p,r&&function s(c,l){var h,d=r.context(),u=d&&d.payload.previousSelection;!u||!u.length||-1!==(h=u.indexOf(c))&&u.splice(h,1,l)}(d,p))}),this.postExecuted("element.updateProperties",function(c){var f,l=c.context,d=l.properties,u=l.element,h=u.businessObject;d.default&&(f=on(u.outgoing,$o({id:u.businessObject.default.id})))&&n.updateProperties(f,{conditionExpression:void 0}),d.conditionExpression&&h.sourceRef.default===h&&n.updateProperties(u.source,{default:void 0})})}function pC(e,n){Ve.call(this,e),this.preExecute("shape.delete",function(t){var i=t.shape,r=i.parent;b(i,"bpmn:Participant")&&(t.collaborationRoot=r)},!0),this.postExecute("shape.delete",function(t){var i=t.collaborationRoot;i&&!i.businessObject.participants.length&&n.makeProcess()},!0)}function O_(e,n,t,i,r,o){i.invoke(Ve,this),this._bpmnReplace=e,this._elementRegistry=t,this._selection=o,this.postExecuted(["elements.create"],500,function(a){var s=a.context,l=s.elements,d=n.canReplace(l,s.parent);d&&this.replaceElements(l,d.replacements)},this),this.postExecuted(["elements.move"],500,function(a){var s=a.context,c=s.newParent,l=s.newHost,d=[];R(s.closure.topLevel,function(h){d=Gr(h)?d.concat(h.children):d.concat(h)}),1===d.length&&l&&(c=l);var u=n.canReplace(d,c);u&&this.replaceElements(d,u.replacements,l)},this),this.postExecute(["shape.replace"],1500,function(a){var u,s=a.context,d=s.oldShape.attachers;d&&d.length&&(u=n.canReplace(d,s.newShape),this.replaceElements(d,u.replacements))},this),this.postExecuted(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape;r.unclaimId(c.businessObject.id,c.businessObject),r.updateProperties(l,{id:c.id})})}Xe()(lC,Ve),lC.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],hC.$inject=["eventBus","modeling"],Xe()(hC,Ve),l3.$inject=["eventBus","tooltips","translate"],Xe()(fC,Ve),fC.$inject=["eventBus","modeling","bpmnRules","injector"],pC.$inject=["eventBus","modeling"],Xe()(pC,Ve),Xe()(O_,Ve),O_.prototype.replaceElements=function(e,n){var t=this._elementRegistry,i=this._bpmnReplace,r=this._selection;R(n,function(o){var a={type:o.newElementType},s=t.get(o.oldElementId),c=e.indexOf(s);e[c]=i.replaceElement(s,a,{select:!1})}),n&&r.select(e)},O_.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var rl={width:300,height:60},Kf={width:300,height:150},d3={width:140,height:120},u3={width:50,height:30};function h3(e){e.on("resize.start",1500,function(n){var t=n.context,i=t.shape,r=t.direction,o=t.balanced;(b(i,"bpmn:Lane")||b(i,"bpmn:Participant"))&&(t.resizeConstraints=function mce(e,n,t){var i=Ko(e),r=!0,o=!0,a=u_(i,[i]),s=ot(e),c={},l={};return/e/.test(n)?l.right=s.left+rl.width:/w/.test(n)&&(l.left=s.right-rl.width),a.forEach(function(u){var h=ot(u);/n/.test(n)&&(h.tops.bottom+10&&(o=!1),t&&R_(s.bottom-h.top)<10&&P_(c,"bottom",h.bottom-rl.height),R_(s.bottom-h.bottom)<5&&N_(l,"bottom",h.top+rl.height))}),i.children.filter(function(u){return!u.hidden&&!u.waypoints&&(b(u,"bpmn:FlowElement")||b(u,"bpmn:Artifact"))}).forEach(function(u){var h=ot(u);r&&/n/.test(n)&&P_(l,"top",h.top-fce),/e/.test(n)&&N_(l,"right",h.right+uce),o&&/s/.test(n)&&N_(l,"bottom",h.bottom+pce),/w/.test(n)&&P_(l,"left",h.left-hce)}),{min:l,max:c}}(i,r,o)),b(i,"bpmn:Participant")&&(t.minDimensions=Kf),b(i,"bpmn:SubProcess")&&ln(i)&&(t.minDimensions=d3),b(i,"bpmn:TextAnnotation")&&(t.minDimensions=u3)})}h3.$inject=["eventBus"];var R_=Math.abs,lce=Math.min,dce=Math.max;function f3(e,n,t,i){var r=e[n];e[n]=void 0===r?t:i(t,r)}function P_(e,n,t){return f3(e,n,t,lce)}function N_(e,n,t){return f3(e,n,t,dce)}var uce=20,hce=50,fce=20,pce=20;function m3(e,n){e.on("resize.start",1501,function(t){var i=t.context,r=i.shape;(b(r,"bpmn:Lane")||b(r,"bpmn:Participant"))&&(i.balanced=!ru(t))}),e.on("resize.end",1001,function(t){var i=t.context,r=i.shape,o=i.canExecute,a=i.newBounds;if(b(r,"bpmn:Lane")||b(r,"bpmn:Participant"))return o&&(a=jN(a),n.resizeLane(r,a,i.balanced)),!1})}function mC(e,n,t){Ve.call(this,e),this.preExecute("shape.delete",function(i){var r=i.context.shape;if(1===r.incoming.length&&1===r.outgoing.length){var o=r.incoming[0],a=r.outgoing[0];if(b(o,"bpmn:SequenceFlow")&&b(a,"bpmn:SequenceFlow")&&n.canConnect(o.source,a.target,o)){var s=function gce(e,n){var t=sC(fu(e[e.length-2]),fu(e[e.length-1]),fu(n[1]),fu(n[0]));return t?[].concat(e.slice(0,e.length-1),[t],n.slice(1)):[fu(e[0]),fu(n[n.length-1])]}(o.waypoints,a.waypoints);t.reconnectEnd(o,a.target,s)}}})}function fu(e){return e.original||e}m3.$inject=["eventBus","modeling"],Xe()(mC,Ve),mC.$inject=["eventBus","bpmnRules","modeling"];var vce=Math.max;function g3(e){e.on("spaceTool.getMinDimensions",function(n){var i=n.axis,r=n.start,o={};return R(n.shapes,function(a){var s=a.id;b(a,"bpmn:Participant")&&(o[s]=function _ce(e){return"x"===e}(i)?Kf:{width:Kf.width,height:yce(a,r)}),b(a,"bpmn:SubProcess")&&ln(a)&&(o[s]=d3),b(a,"bpmn:TextAnnotation")&&(o[s]=u3)}),o})}function yce(e,n){var t;return function bce(e){return!!nl(e).length}(e)?(t=function xce(e,n){var i;return i=v3(nl(e),n),e.height-i.height+rl.height}(e,n),vce(Kf.height,t)):Kf.height}function v3(e,n){var t,i,r;for(t=0;t=(i=e[t]).y&&n<=i.y+i.height)return(r=nl(i)).length?v3(r,n):i}function gC(e,n){e.invoke(Ve,this),this.postExecuted("shape.replace",function(t){var i=t.context.oldShape,r=t.context.newShape;if(b(r,"bpmn:SubProcess")&&b(i,"bpmn:Task")&&ln(r)){var o=function wce(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}(r);n.createShape({type:"bpmn:StartEvent"},o,r)}})}function _C(e,n,t,i){Ve.call(this,e),this.executed(["shape.toggleCollapse"],500,function(s){var l=s.context.shape;b(l,"bpmn:SubProcess")&&(l.collapsed?$e(l).di.isExpanded=!1:(function r(s){s.length&&s.forEach(function(c){"label"===c.type&&!c.businessObject.name&&(c.hidden=!0)})}(l.children),$e(l).di.isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],500,function(s){var l=s.context.shape;$e(l).di.isExpanded=!l.collapsed}),this.postExecuted(["shape.toggleCollapse"],500,function(s){var d,c=s.context.shape,l=n._getDefaultSize(c);d=c.collapsed?function a(s,c){return{x:s.x+(s.width-c.width)/2,y:s.y+(s.height-c.height)/2,width:c.width,height:c.height}}(c,l):function o(s,c){var u,h,d=c;return u=function Ece(e){return e.filter(function(n){return!n.hidden})}(s.children).concat([s]),(h=cL(u))?(d.width=Math.max(h.width,d.width),d.height=Math.max(h.height,d.height),d.x=h.x+(h.width-d.width)/2,d.y=h.y+(h.height-d.height)/2):(d.x=s.x+(s.width-d.width)/2,d.y=s.y+(s.height-d.height)/2),d}(c,l),t.resizeShape(c,d,null,{autoResize:!c.collapsed&&"nwse"})})}function yC(e,n,t,i){n.invoke(Ve,this),this.preExecute("shape.delete",function(r){var a=r.context.shape,s=a.businessObject;mi(a)||(b(a,"bpmn:Participant")&&ln(a)&&t.ids.unclaim(s.processRef.id),i.unclaimId(s.id,s))}),this.preExecute("connection.delete",function(r){var s=r.context.connection.businessObject;i.unclaimId(s.id,s)}),this.preExecute("canvas.updateRoot",function(){var r=e.getRootElement(),o=r.businessObject;b(r,"bpmn:Collaboration")&&t.ids.unclaim(o.id)})}function bC(e,n,t){var i;Ve.call(this,e);var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,5e3,function(c){!function r(){(i=i||new Dce).enter()}()}),this.postExecuted(s,500,function(c){!function a(){if(!i)throw new Error(t("out of bounds release"));var c=i.leave();c&&(n.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(c){var d=c.context.shape,u=function o(){if(!i)throw new Error(t("out of bounds release"));return i}();d.labelTarget||(b(d,"bpmn:Lane")&&u.addLane(d),b(d,"bpmn:FlowNode")&&u.addFlowNode(d))})}function Dce(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function xC(e,n){Ve.call(this,e),this.preExecute("connection.delete",function(t){var r=t.context.connection,o=r.source;(function kce(e,n){if(!b(e,"bpmn:SequenceFlow"))return!1;var t=$e(n),i=$e(e);return t.get("default")===i})(r,o)&&n.updateProperties(o,{default:null})})}g3.$inject=["eventBus"],gC.$inject=["injector","modeling"],Xe()(gC,Ve),Xe()(_C,Ve),_C.$inject=["eventBus","elementFactory","modeling"],Xe()(yC,Ve),yC.$inject=["canvas","injector","moddle","modeling"],bC.$inject=["eventBus","modeling","translate"],Xe()(bC,Ve),Xe()(xC,Ve),xC.$inject=["eventBus","modeling"];const Tce={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","rootElementReferenceBehavior","createBehavior","fixHoverBehavior","createDataObjectBehavior","createParticipantBehavior","dataStoreBehavior","dataInputAssociationBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","toggleElementCollapseBehaviour","spaceToolBehavior","subProcessStartEventBehavior","unclaimIdBehavior","unsetDefaultFlowBehavior","updateFlowNodeRefsBehavior"],adaptiveLabelPositioningBehavior:["type",UE],appendBehavior:["type",GE],associationBehavior:["type",WE],attachEventBehavior:["type",w_],boundaryEventBehavior:["type",YE],rootElementReferenceBehavior:["type",qE],createBehavior:["type",KE],fixHoverBehavior:["type",FL],createDataObjectBehavior:["type",XE],createParticipantBehavior:["type",JE],dataInputAssociationBehavior:["type",eC],dataStoreBehavior:["type",tC],deleteLaneBehavior:["type",nC],detachEventBehavior:["type",D_],dropOnFlowBehavior:["type",iC],eventBasedGatewayBehavior:["type",rC],groupBehavior:["type",aC],importDockingFix:["type",UL],isHorizontalFix:["type",cC],labelBehavior:["type",lC],messageFlowBehavior:["type",hC],modelingFeedback:["type",l3],replaceConnectionBehavior:["type",fC],removeParticipantBehavior:["type",pC],replaceElementBehaviour:["type",O_],resizeBehavior:["type",h3],resizeLaneBehavior:["type",m3],removeElementBehavior:["type",mC],toggleElementCollapseBehaviour:["type",_C],spaceToolBehavior:["type",g3],subProcessStartEventBehavior:["type",gC],unclaimIdBehavior:["type",yC],updateFlowNodeRefsBehavior:["type",bC],unsetDefaultFlowBehavior:["type",xC]};function _3(e,n){var t=Li(e,n,-15);return"intersect"!==t?t:null}function Vi(e){Ea.call(this,e)}function wC(e){return!e||mi(e)}function y3(e){do{if(b(e,"bpmn:Process"))return $e(e);if(b(e,"bpmn:Participant"))return $e(e).processRef||$e(e)}while(e=e.parent)}function EC(e){return b(e,"bpmn:TextAnnotation")}function CC(e){return b(e,"bpmn:Group")&&!e.labelTarget}function SC(e){return b(e,"bpmn:BoundaryEvent")&&Sa(e,"bpmn:CompensateEventDefinition")}function pu(e){return $e(e).isForCompensation}function b3(e){for(var n=e;n=n.parent;){if(b(n,"bpmn:FlowElementsContainer"))return $e(n);if(b(n,"bpmn:Participant"))return $e(n).processRef}return null}function Sa(e,n){return!!on($e(e).eventDefinitions||[],function(i){return b(i,n)})}function x3(e,n){return($e(e).eventDefinitions||[]).every(function(i){return b(i,n)})}function w3(e){return b(e,"bpmn:ReceiveTask")||b(e,"bpmn:IntermediateCatchEvent")&&(Sa(e,"bpmn:MessageEventDefinition")||Sa(e,"bpmn:TimerEventDefinition")||Sa(e,"bpmn:ConditionalEventDefinition")||Sa(e,"bpmn:SignalEventDefinition"))}function F_(e){return e.waypoints}function DC(e,n){var t=function Lce(e){for(var n=[];e;)(e=e.parent)&&n.push(e);return n}(n);return-1!==t.indexOf(e)}function L_(e,n,t){if(wC(e)||wC(n))return null;if(!b(t,"bpmn:DataAssociation")){if(M3(e,n))return{type:"bpmn:MessageFlow"};if(I3(e,n))return{type:"bpmn:SequenceFlow"}}return TC(e,n)||(SC(e)&&pu(n)?{type:"bpmn:Association",associationDirection:"One"}:!!A3(e,n)&&{type:"bpmn:Association"})}function mu(e,n,t){return!(!mi(e)&&!CC(e))||!(b(n,"bpmn:Participant")&&!ln(n))&&(b(e,"bpmn:Participant")?b(n,"bpmn:Process")||b(n,"bpmn:Collaboration"):Kt(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?n===e.parent:b(e,"bpmn:Lane")?b(n,"bpmn:Participant")||b(n,"bpmn:Lane"):!(b(e,"bpmn:BoundaryEvent")&&!function Bce(e){return $e(e).cancelActivity&&(E3(e)||C3(e))}(e))&&(b(e,"bpmn:FlowElement")&&!b(e,"bpmn:DataStoreReference")?b(n,"bpmn:FlowElementsContainer")?ln(n):Kt(n,["bpmn:Participant","bpmn:Lane"]):b(e,"bpmn:DataStoreReference")&&b(n,"bpmn:Collaboration")?Gc($e(n).get("participants"),function(i){return!!i.get("processRef")}):Kt(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Kt(n,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!b(e,"bpmn:MessageFlow")&&(b(n,"bpmn:Collaboration")||e.source.parent==n||e.target.parent==n)))}function jce(e){return b(e,"bpmn:Lane")}function E3(e){var n=$e(e);return n&&!(n.eventDefinitions&&n.eventDefinitions.length)}function C3(e){return S3(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function S3(e,n){return n.some(function(t){return Sa(e,t)})}function Xf(e,n,t,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!(mi(r)||!function zce(e){return!!(function Vce(e){return!mi(e)&&b(e,"bpmn:BoundaryEvent")}(e)||b(e,"bpmn:IntermediateThrowEvent")&&E3(e))||b(e,"bpmn:IntermediateCatchEvent")&&C3(e)}(r)||Gr(n)||!b(n,"bpmn:Activity")||pu(n)||i&&!_3(i,n)||function Hce(e){return b(e,"bpmn:ReceiveTask")&&on(e.incoming,function(n){return b(n.source,"bpmn:EventBasedGateway")})}(n))&&"attach"}function D3(e,n,t){if(!n)return!1;var i={replacements:[]};return R(e,function(r){Gr(n)||b(r,"bpmn:StartEvent")&&"label"!==r.type&&mu(r,n)&&(function Qne(e){return e&&!1!==$e(e).isInterrupting}(r)||i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),(function Jne(e){return zv(e,"bpmn:ErrorEventDefinition")}(r)||function eie(e){return zv(e,"bpmn:EscalationEventDefinition")}(r)||function tie(e){return zv(e,"bpmn:CompensateEventDefinition")}(r))&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),S3(r,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&b(n,"bpmn:SubProcess")&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"})),b(n,"bpmn:Transaction")||Sa(r,"bpmn:CancelEventDefinition")&&"label"!==r.type&&(b(r,"bpmn:EndEvent")&&mu(r,n)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:EndEvent"}),b(r,"bpmn:BoundaryEvent")&&Xf(r,n,0,t)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:BoundaryEvent"}))}),!!i.replacements.length&&i}function k3(e,n){return!Gc(e,jce)&&(!n||e.every(function(t){return mu(t,n)}))}function kC(e,n,t,i){return!!n&&(!(!mi(e)&&!CC(e))||!(function Mce(e,n){return e===n}(t,n)||t&&DC(t,n))&&(mu(e,n)||B_(e,n)))}function T3(e,n){return b(e,"bpmn:SubProcess")?ln(e)&&(!n||n.width>=100&&n.height>=80):b(e,"bpmn:Lane")?!n||n.width>=130&&n.height>=60:b(e,"bpmn:Participant")?!n||n.width>=250&&n.height>=50:!(!EC(e)&&!CC(e))}function A3(e,n){return!(F_(e)||F_(n)||(!SC(e)||!pu(n))&&(DC(n,e)||DC(e,n)||!function $ce(e,n){var t=EC(e),i=EC(n);return(t||i)&&t!==i}(e,n)&&!TC(e,n)))}function M3(e,n){return!(R3(e)&&!R3(n))&&function Oce(e){return b(e,"bpmn:InteractionNode")&&!b(e,"bpmn:BoundaryEvent")&&(!b(e,"bpmn:Event")||b(e,"bpmn:ThrowEvent")&&x3(e,"bpmn:MessageEventDefinition"))}(e)&&function Rce(e){return b(e,"bpmn:InteractionNode")&&!pu(e)&&(!b(e,"bpmn:Event")||b(e,"bpmn:CatchEvent")&&x3(e,"bpmn:MessageEventDefinition"))&&!(b(e,"bpmn:BoundaryEvent")&&!Sa(e,"bpmn:MessageEventDefinition"))}(n)&&!function Ice(e,n){return y3(e)===y3(n)}(e,n)}function I3(e,n){return!(w3(n)&&n.incoming.length>0&&function Wce(e){return(e=e||[]).some(Gce)}(n.incoming)&&!b(e,"bpmn:EventBasedGateway"))&&function Nce(e){return b(e,"bpmn:FlowNode")&&!b(e,"bpmn:EndEvent")&&!Gr(e)&&!(b(e,"bpmn:IntermediateThrowEvent")&&Sa(e,"bpmn:LinkEventDefinition"))&&!SC(e)&&!pu(e)}(e)&&function Fce(e){return b(e,"bpmn:FlowNode")&&!b(e,"bpmn:StartEvent")&&!b(e,"bpmn:BoundaryEvent")&&!Gr(e)&&!(b(e,"bpmn:IntermediateCatchEvent")&&Sa(e,"bpmn:LinkEventDefinition"))&&!pu(e)}(n)&&function Pce(e,n){return b3(e)===b3(n)}(e,n)&&!(b(e,"bpmn:EventBasedGateway")&&!w3(n))}function TC(e,n){return Kt(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Kt(n,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!Kt(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!Kt(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function B_(e,n,t){if(!n)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return n.source!==e&&n.target!==e&&Kt(n,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!mi(n)&&b(e,"bpmn:FlowNode")&&!b(e,"bpmn:BoundaryEvent")&&mu(e,n.parent)}function O3(e,n){return!!mi(n)||!(b(n,"bpmn:Lane")&&!function Uce(e,n){return e&&n&&-1!==e.indexOf(n)}(e,n.parent))}function Gce(e){if(e&&e.source)return b(e.source,"bpmn:EventBasedGateway")}function R3(e){return a_(e,"bpmn:Process")||a_(e,"bpmn:Collaboration")}Xe()(Vi,Ea),Vi.$inject=["eventBus"],Vi.prototype.init=function(){this.addRule("connection.start",function(e){return function Ace(e){return wC(e)?null:Kt(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)}),this.addRule("connection.create",function(e){var n=e.source,t=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(t.parent=r);try{return L_(n,t)}finally{r&&(t.parent=null)}}),this.addRule("connection.reconnect",function(e){return L_(e.source,e.target,e.connection)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){return T3(e.shape,e.newBounds)}),this.addRule("elements.create",function(e){var n=e.elements,t=e.position,i=e.target;return!(F_(i)&&!B_(n,i))&&Uc(n,function(r){return F_(r)?L_(r.source,r.target,r):r.host?Xf(r,r.host,0,t):kC(r,i,null)})}),this.addRule("elements.move",function(e){var n=e.target,t=e.shapes,i=e.position;return Xf(t,n,0,i)||D3(t,n,i)||k3(t,n)||B_(t,n)}),this.addRule("shape.create",function(e){return kC(e.shape,e.target,e.source)}),this.addRule("shape.attach",function(e){return Xf(e.shape,e.target,0,e.position)}),this.addRule("element.copy",function(e){return O3(e.elements,e.element)})},Vi.prototype.canConnectMessageFlow=M3,Vi.prototype.canConnectSequenceFlow=I3,Vi.prototype.canConnectDataAssociation=TC,Vi.prototype.canConnectAssociation=A3,Vi.prototype.canMove=k3,Vi.prototype.canAttach=Xf,Vi.prototype.canReplace=D3,Vi.prototype.canDrop=mu,Vi.prototype.canInsert=B_,Vi.prototype.canCreate=kC,Vi.prototype.canConnect=L_,Vi.prototype.canResize=T3,Vi.prototype.canCopy=O3;const Yce={__depends__:[Ca],__init__:["bpmnRules"],bpmnRules:["type",Vi]};function P3(e,n){e.on("saveXML.start",2e3,function t(){var a,i=n.getRootElement(),r=$e(i).di;a=Ti(St(Tv([i],!1),function(s){return s!==i&&!s.labelTarget}),Qd),r.set("planeElement",a)})}P3.$inject=["eventBus","canvas"];const Kce={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",P3]};function V_(e){Ve.call(this,e);var n=this;this.preExecute(["shape.create","connection.create"],function(t){var i=t.context,a=n.getOrdering(i.shape||i.connection,i.parent);a&&(void 0!==a.parent&&(i.parent=a.parent),i.parentIndex=a.index)}),this.preExecute(["shape.move","connection.move"],function(t){var i=t.context,r=i.shape||i.connection,a=n.getOrdering(r,i.newParent||r.parent);a&&(void 0!==a.parent&&(i.newParent=a.parent),i.newParentIndex=a.index)})}function AC(e,n,t){V_.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function o(s){var c=s.order;if(c||(s.order=c=function r(s){if(s.labelTarget)return{level:10};var c=on(i,function(l){return Kt(s,[l.type])});return c&&c.order||{level:1}}(s)),!c)throw new Error("no order for <"+s.id+">");return c}this.getOrdering=function(s,c){if(s.labelTarget)return{parent:n.getRootElement(),index:-1};var l=o(s);l.containers&&(c=function a(s,c,l){for(var d=c;d&&!Kt(d,l);)d=d.parent;if(!d)throw new Error("no parent for <"+s.id+"> in <"+(c&&c.id)+">");return d}(s,c,l.containers));var d=c.children.indexOf(s),u=hN(c.children,function(h){return!(!s.labelTarget&&h.labelTarget)&&l.level");this._pushAction(e),n||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo(function(){t._fire(i,"execute",e),o.execute&&t._markDirty(o.execute(r)),t._executedAction(e,n),t._fire(i,"executed",e)}),n||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},kn.prototype._pushAction=function(e){var n=this._currentExecution,t=n.actions,i=t[0];if(n.atomic)throw new Error("illegal invocation in or phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),t.push(e)},kn.prototype._popAction=function(){var e=this._currentExecution,n=e.trigger,t=e.actions,i=e.dirty;t.pop(),t.length||(this._eventBus.fire("elements.changed",{elements:fN("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:n}),e.trigger=null)},kn.prototype._markDirty=function(e){var n=this._currentExecution;e&&(e=Lt(e)?e:[e],n.dirty=n.dirty.concat(e))},kn.prototype._executedAction=function(e,n){var t=++this._stackIdx;n||this._stack.splice(t,this._stack.length,e)},kn.prototype._revertedAction=function(e){this._stackIdx--},kn.prototype._getHandler=function(e){return this._handlerMap[e]},kn.prototype._setHandler=function(e,n){if(!e||!n)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=n};const Zce={commandStack:["type",kn]};var Qce=new sE("tt");function MC(e,n){e.style.display=!1===n?"none":""}var N3="djs-tooltip",IC="."+N3;function lr(e,n){this._eventBus=e,this._canvas=n,this._ids=Qce,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=function Jce(e){var n=Dn('
');return e.insertBefore(n,e.firstChild),n}(n.getContainer());var t=this;Hr.bind(this._tooltipRoot,IC,"mousedown",function(i){i.stopPropagation()}),Hr.bind(this._tooltipRoot,IC,"mouseover",function(i){t.trigger("mouseover",i)}),Hr.bind(this._tooltipRoot,IC,"mouseout",function(i){t.trigger("mouseout",i)}),this._init()}lr.$inject=["eventBus","canvas"],lr.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=I({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},lr.prototype.trigger=function(e,n){var i=this.get(zr(n.delegateTarget||n.target,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},lr.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},lr.prototype.clearTimeout=function(e){if(e=this.get(e)){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},lr.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},lr.prototype.remove=function(e){var n=this.get(e);n&&(ga(n.html),ga(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},lr.prototype.show=function(){MC(this._tooltipRoot)},lr.prototype.hide=function(){MC(this._tooltipRoot,!1)},lr.prototype._updateRoot=function(e){var n=e.scale||1,t=e.scale||1,i="matrix("+n+",0,0,"+t+","+-1*e.x*n+","+-1*e.y*t+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},lr.prototype._addTooltip=function(e){var i,n=e.id,t=e.html,r=this._tooltipRoot;t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),Vr(t)&&(t=Dn(t)),(i=Dn('
')).appendChild(t),e.type&&fi(i).add("djs-tooltip-"+e.type),e.className&&fi(i).add(e.className),e.htmlContainer=i,r.appendChild(i),this._tooltips[n]=e,this._updateTooltip(e)},lr.prototype._updateTooltip=function(e){var n=e.position;!function ele(e,n,t){I(e.style,{left:n+"px",top:t+"px"})}(e.htmlContainer,n.x,n.y)},lr.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(n){var t=n.show,r=!0;t&&((t.minZoom>e.scale||t.maxZoomNC(e.dy)?"x":"y",i=e["d"+t],r=e[t]-i;if(NC(i)<5)return!1;i<0&&(i*=-1),ru(e)&&(i*=-1);var o=function hle(e,n){if("x"===e){if(n>0)return"e";if(n<0)return"w"}if("y"===e){if(n>0)return"s";if(n<0)return"n"}return null}(t,i),s=Tv(this._canvas.getRootElement(),!0),c=this.calculateAdjustments(s,t,i,r),d=function vle(e,n,t,i,r){var o=e.movingShapes,a=e.resizingShapes;if(a.length){var c,l,s={};return R(a,function(d){var p,g,v,u=ot(d),h=St(d.children,function(E){return!(LC(E)||U3(E)||FC(o,E)||FC(a,E))}),f=St(d.children,function(E){return!LC(E)&&!U3(E)&&FC(o,E)});h.length&&(g=H3(ot(Fi(h))),p=i-u[z_[t]]+g[z_[t]],"n"===t?s.bottom=l=yt(l)?Math.min(l,p):p:"w"===t?s.right=l=yt(l)?Math.min(l,p):p:"s"===t?s.top=c=yt(c)?Math.max(c,p):p:"e"===t&&(s.left=c=yt(c)?Math.max(c,p):p)),f.length&&(v=H3(ot(Fi(f))),p=i-v[z_[z3[t]]]+u[z_[z3[t]]],"n"===t?s.bottom=l=yt(l)?Math.min(l,p):p:"w"===t?s.right=l=yt(l)?Math.min(l,p):p:"s"===t?s.top=c=yt(c)?Math.max(c,p):p:"e"===t&&(s.left=c=yt(c)?Math.max(c,p):p));var k=r&&r[d.id];k&&("n"===t?(p=i+d[ls[n]]-k[ls[n]],s.bottom=l=yt(l)?Math.min(l,p):p):"w"===t?(p=i+d[ls[n]]-k[ls[n]],s.right=l=yt(l)?Math.min(l,p):p):"s"===t?(p=i-d[ls[n]]+k[ls[n]],s.top=c=yt(c)?Math.max(c,p):p):"e"===t&&(p=i-d[ls[n]]+k[ls[n]],s.left=c=yt(c)?Math.max(c,p):p))}),s}}(c,t,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:t,direction:o,shapes:c.resizingShapes,start:r}));return I(n,c,{axis:t,direction:o,spaceToolConstraints:d,start:r}),Kv("resize-"+("x"===t?"ew":"ns")),!0},ds.prototype.calculateAdjustments=function(e,n,t,i){var r=this._rules,o=[],a=[];return R(e,function(s){if(s.parent&&!LC(s)){var c=s[n],l=c+s[ls[n]];if(t>0&&c>i||t<0&&li&&r.allowed("shape.resize",{shape:s}))return a.push(s)}}),{movingShapes:o,resizingShapes:a}},ds.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},ds.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var BC="djs-dragging",G3="djs-resizing",$_=Math.max;function W3(e,n,t,i,r){function o(a,s){R(a,function(c){r.addDragger(c,s),t.addMarker(c,BC)})}e.on("spaceTool.selection.start",function(a){var s=t.getLayer("space"),c=a.context,d=qe("g");ge(d,i.cls("djs-crosshair-group",["no-events"])),Ze(s,d);var u=qe("path");ge(u,"d","M 0,-10000 L 0,10000"),Pt(u).add("djs-crosshair"),Ze(d,u);var h=qe("path");ge(h,"d","M -10000,0 L 10000,0"),Pt(h).add("djs-crosshair"),Ze(d,h),c.crosshairGroup=d}),e.on("spaceTool.selection.move",function(a){sr(a.context.crosshairGroup,a.x,a.y)}),e.on("spaceTool.selection.cleanup",function(a){var c=a.context.crosshairGroup;c&&ti(c)}),e.on("spaceTool.move",250,function(a){var s=a.context,c=s.line,l=s.axis,d=s.movingShapes,u=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var h=t.getLayer("space");ge(c=qe("path"),"d","M0,0 L0,0"),Pt(c).add("djs-crosshair"),Ze(h,c),s.line=c;var f=qe("g");ge(f,i.cls("djs-drag-group",["no-events"])),Ze(t.getActiveLayer(),f),o(d,f);var p=s.movingConnections=n.filter(function(x){var D=!1;R(d,function(Q){R(Q.outgoing,function(be){x===be&&(D=!0)})});var P=!1;R(d,function(Q){R(Q.incoming,function(be){x===be&&(P=!0)})});var V=!1;R(u,function(Q){R(Q.outgoing,function(be){x===be&&(V=!0)})});var F=!1;return R(u,function(Q){R(Q.incoming,function(be){x===be&&(F=!0)})}),function yle(e){return e.waypoints}(x)&&(D||V)&&(P||F)});o(p,f),s.dragGroup=f}if(!s.frameGroup){var g=qe("g");ge(g,i.cls("djs-frame-group",["no-events"])),Ze(t.getActiveLayer(),g);var v=[];R(u,function(x){var D=r.addFrame(x,g),P=D.getBBox();v.push({element:D,initialBounds:P}),t.addMarker(x,G3)}),s.frameGroup=g,s.frames=v}ge(c,{d:{x:"M"+a.x+", -10000 L"+a.x+", 10000",y:"M -10000, "+a.y+" L 10000, "+a.y}[l]});var C={x:a.dx,y:a.dy};C[{x:"y",y:"x"}[s.axis]]=0,sr(s.dragGroup,C.x,C.y),R(s.frames,function(x){var V,F,D=x.element,P=x.initialBounds;ge(D,"e"===s.direction?{width:$_(P.width+C.x,5)}:{width:V=$_(P.width-C.x,5),x:P.x+P.width-V}),ge(D,"s"===s.direction?{height:$_(P.height+C.y,5)}:{height:F=$_(P.height-C.y,5),y:P.y+P.height-F})})}}),e.on("spaceTool.cleanup",function(a){var s=a.context,l=s.movingConnections,d=s.resizingShapes,u=s.line,h=s.dragGroup,f=s.frameGroup;R(s.movingShapes,function(p){t.removeMarker(p,BC)}),R(l,function(p){t.removeMarker(p,BC)}),h&&(ti(u),ti(h)),R(d,function(p){t.removeMarker(p,G3)}),f&&ti(f)})}W3.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];const Y3={__init__:["spaceToolPreview"],__depends__:[as,Ca,j_,Ff,Vf],spaceTool:["type",ds],spaceToolPreview:["type",W3]};function yo(e){this._model=e}function Er(e,n,t,i){Ve.call(this,e),this._bpmnFactory=n,this._translate=i;var r=this;function c(f){R(f.context.oldRoot.children,function(k){b(k,"bpmn:BaseElement")&&r.updateParent(k)})}function l(f){var p=f.context.shape;b(p,"bpmn:BaseElement")&&r.updateBounds(p)}function d(f){r.updateConnection(f.context)}function u(f){r.updateConnectionWaypoints(f.context.connection)}function h(f){r.updateAttachment(f.context)}this.executed(["connection.layout","connection.create"],function o(f){var v,p=f.context;!p.cropped&&!1!==(p.hints||{}).createElementsBehavior&&((v=p.connection).waypoints=t.getCroppedWaypoints(v),p.cropped=!0)}),this.reverted(["connection.layout"],function(f){delete f.context.cropped}),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],bo(function a(f){var p=f.context;r.updateParent(p.shape||p.connection,p.oldParent)})),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],bo(function s(f){var p=f.context;r.updateParent(p.shape||p.connection,p.parent||p.newParent)})),this.executed(["canvas.updateRoot"],c),this.reverted(["canvas.updateRoot"],c),this.executed(["shape.move","shape.create","shape.resize"],bo(function(f){"label"!==f.context.shape.type&&l(f)})),this.reverted(["shape.move","shape.create","shape.resize"],bo(function(f){"label"!==f.context.shape.type&&l(f)})),e.on("shape.changed",function(f){"label"===f.element.type&&l({context:{shape:f.element}})}),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],bo(d)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],bo(d)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],bo(u)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],bo(u)),this.executed("connection.reconnect",bo(function(f){var p=f.context,v=p.oldSource,k=p.newSource,E=$e(p.connection),C=$e(v),x=$e(k);E.conditionExpression&&!Kt(x,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(p.oldConditionExpression=E.conditionExpression,delete E.conditionExpression),v!==k&&C.default===E&&(p.oldDefault=C.default,delete C.default)})),this.reverted("connection.reconnect",bo(function(f){var p=f.context,v=p.oldSource,k=p.newSource,E=$e(p.connection),C=$e(v),x=$e(k);p.oldConditionExpression&&(E.conditionExpression=p.oldConditionExpression),p.oldDefault&&(C.default=p.oldDefault,delete x.default)})),this.executed(["element.updateAttachment"],bo(h)),this.reverted(["element.updateAttachment"],bo(h))}function bo(e){return function(n){var t=n.context;b(t.shape||t.connection,"bpmn:BaseElement")&&e(n)}}function xo(e,n,t){ns.call(this),this._bpmnFactory=e,this._moddle=n,this._translate=t}function q3(e,n,t){e[t]=n[t],delete n[t]}function U_(e,n){this._modeling=e,this._canvas=n}function G_(e){this._modeling=e}function W_(e,n){this._canvas=e,this._layouter=n}yo.$inject=["moddle"],yo.prototype._needsId=function(e){return Kt(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},yo.prototype._ensureId=function(e){var n;e.id?this._model.ids.claim(e.id,e):(n=b(e,"bpmn:Activity")?"Activity":b(e,"bpmn:Event")?"Event":b(e,"bpmn:Gateway")?"Gateway":Kt(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),n+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(n,e)))},yo.prototype.create=function(e,n){var t=this._model.create(e,n||{});return this._ensureId(t),t},yo.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},yo.prototype.createDiShape=function(e,n,t){return this.create("bpmndi:BPMNShape",I({bpmnElement:e,bounds:this.createDiBounds(n)},t))},yo.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},yo.prototype.createDiWaypoints=function(e){var n=this;return Ti(e,function(t){return n.createDiWaypoint(t)})},yo.prototype.createDiWaypoint=function(e){return this.create("dc:Point",jr(e,["x","y"]))},yo.prototype.createDiEdge=function(e,n,t){return this.create("bpmndi:BPMNEdge",I({bpmnElement:e,waypoint:this.createDiWaypoints(n)},t))},yo.prototype.createDiPlane=function(e){return this.create("bpmndi:BPMNPlane",{bpmnElement:e})},Xe()(Er,Ve),Er.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Er.prototype.updateAttachment=function(e){var n=e.shape,i=n.host;n.businessObject.attachedToRef=i&&i.businessObject},Er.prototype.updateParent=function(e,n){if(!(e instanceof Iv||b(e,"bpmn:DataStoreReference")&&e.parent&&b(e.parent,"bpmn:Collaboration"))){var t=e.parent,i=e.businessObject,r=t&&t.businessObject,o=r&&r.di;b(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,r,n&&n.businessObject),b(e,"bpmn:DataOutputAssociation")&&(r=e.source?e.source.businessObject:null),b(e,"bpmn:DataInputAssociation")&&(r=e.target?e.target.businessObject:null),this.updateSemanticParent(i,r),b(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,r),this.updateDiParent(i.di,o)}},Er.prototype.updateBounds=function(e){var n=e.businessObject.di,t=e instanceof Iv?this._getLabel(n):n,i=t.bounds;i||(i=this._bpmnFactory.createDiBounds(),t.set("bounds",i)),I(i,{x:e.x,y:e.y,width:e.width,height:e.height})},Er.prototype.updateFlowNodeRefs=function(e,n,t){t!==n&&(b(t,"bpmn:Lane")&&$n(t.get("flowNodeRef"),e),b(n,"bpmn:Lane")&&Un(n.get("flowNodeRef"),e))},Er.prototype.updateDiConnection=function(e,n,t){e.sourceElement&&e.sourceElement.bpmnElement!==n&&(e.sourceElement=n&&n.di),e.targetElement&&e.targetElement.bpmnElement!==t&&(e.targetElement=t&&t.di)},Er.prototype.updateDiParent=function(e,n){if(n&&!b(n,"bpmndi:BPMNPlane")&&(n=n.$parent),e.$parent!==n){var t=(n||e.$parent).get("planeElement");n?(t.push(e),e.$parent=n):($n(t,e),e.$parent=null)}},Er.prototype.getLaneSet=function(e){var n,t;return b(e,"bpmn:Lane")?((n=e.childLaneSet)||(n=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=n,n.$parent=e),n):(b(e,"bpmn:Participant")&&(e=e.processRef),(n=(t=e.get("laneSets"))[0])||((n=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,t.push(n)),n)},Er.prototype.updateSemanticParent=function(e,n,t){var i,r=this._translate;if(e.$parent!==n&&(!b(e,"bpmn:DataInput")&&!b(e,"bpmn:DataOutput")||(b(n,"bpmn:Participant")&&"processRef"in n&&(n=n.processRef),!("ioSpecification"in n)||n.ioSpecification!==e.$parent))){if(b(e,"bpmn:Lane"))n&&(n=this.getLaneSet(n)),i="lanes";else if(b(e,"bpmn:FlowElement")){if(n)if(b(n,"bpmn:Participant"))n=n.processRef;else if(b(n,"bpmn:Lane"))do{n=n.$parent.$parent}while(b(n,"bpmn:Lane"));i="flowElements"}else if(b(e,"bpmn:Artifact")){for(;n&&!b(n,"bpmn:Process")&&!b(n,"bpmn:SubProcess")&&!b(n,"bpmn:Collaboration");){if(b(n,"bpmn:Participant")){n=n.processRef;break}n=n.$parent}i="artifacts"}else if(b(e,"bpmn:MessageFlow"))i="messageFlows";else if(b(e,"bpmn:Participant")){i="participants";var a,o=e.processRef;o&&(a=function ble(e){for(;e&&!b(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||n),e.$parent&&($n(a.get("rootElements"),o),o.$parent=null),n&&(Un(a.get("rootElements"),o),o.$parent=a))}else b(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":b(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:n.id}));var s;if(e.$parent&&$n(s=e.$parent.get(i),e),n?((s=n.get(i)).push(e),e.$parent=n):e.$parent=null,t){var c=t.get(i);$n(s,e),n&&(c||n.set(i,c=[]),c.push(e))}}},Er.prototype.updateConnectionWaypoints=function(e){e.businessObject.di.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Er.prototype.updateConnection=function(e){var n=e.connection,t=$e(n),i=$e(n.source),r=$e(n.target);if(b(t,"bpmn:DataAssociation"))b(t,"bpmn:DataInputAssociation")?(t.get("sourceRef")[0]=i,this.updateSemanticParent(t,r,e.parent||e.newParent||r)):b(t,"bpmn:DataOutputAssociation")&&(this.updateSemanticParent(t,i,e.parent||e.newParent||i),t.targetRef=r);else{var a=b(t,"bpmn:SequenceFlow");t.sourceRef!==i&&(a&&($n(t.sourceRef&&t.sourceRef.get("outgoing"),t),i&&i.get("outgoing")&&i.get("outgoing").push(t)),t.sourceRef=i),t.targetRef!==r&&(a&&($n(t.targetRef&&t.targetRef.get("incoming"),t),r&&r.get("incoming")&&r.get("incoming").push(t)),t.targetRef=r)}this.updateConnectionWaypoints(n),this.updateDiConnection(t.di,i,r)},Er.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},Xe()(xo,ns),xo.$inject=["bpmnFactory","moddle","translate"],xo.prototype.baseCreate=ns.prototype.create,xo.prototype.create=function(e,n){return"label"===e?this.baseCreate(e,I({type:"label"},eu,n)):this.createBpmnElement(e,n)},xo.prototype.createBpmnElement=function(e,n){var t,o,a,r=(n=n||{}).businessObject;if(!r){if(!n.type)throw new Error((0,this._translate)("no shape type specified"));r=this._bpmnFactory.create(n.type)}return r.di||(r.di="root"===e?this._bpmnFactory.createDiPlane(r,[],{id:r.id+"_di"}):"connection"===e?this._bpmnFactory.createDiEdge(r,[],{id:r.id+"_di"}):this._bpmnFactory.createDiShape(r,{},{id:r.id+"_di"})),b(r,"bpmn:Group")&&(n=I({isFrame:!0},n)),n.di&&(I(r.di,n.di),delete n.di),function xle(e,n,t){R(t,function(i){void 0!==n[i]&&q3(e,n,i)})}(r,n,["processRef","isInterrupting","associationDirection","isForCompensation"]),n.isExpanded&&q3(r.di,n,"isExpanded"),b(r,"bpmn:ExclusiveGateway")&&(r.di.isMarkerVisible=!0),n.eventDefinitionType&&(o=r.get("eventDefinitions")||[],a=this._bpmnFactory.create(n.eventDefinitionType,n.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===n.eventDefinitionType&&(a.condition=this._bpmnFactory.create("bpmn:FormalExpression")),o.push(a),a.$parent=r,r.eventDefinitions=o,delete n.eventDefinitionType),t=this._getDefaultSize(r),n=I({businessObject:r,id:r.id},t,n),this.baseCreate(e,n)},xo.prototype._getDefaultSize=function(e){return b(e,"bpmn:SubProcess")?ln(e)?{width:350,height:200}:{width:100,height:80}:b(e,"bpmn:Task")?{width:100,height:80}:b(e,"bpmn:Gateway")?{width:50,height:50}:b(e,"bpmn:Event")?{width:36,height:36}:b(e,"bpmn:Participant")?ln(e)?{width:600,height:250}:{width:400,height:60}:b(e,"bpmn:Lane")?{width:400,height:100}:b(e,"bpmn:DataObjectReference")?{width:36,height:50}:b(e,"bpmn:DataStoreReference")?{width:50,height:50}:b(e,"bpmn:TextAnnotation")?{width:100,height:30}:b(e,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},xo.prototype.createParticipantShape=function(e){return si(e)||(e={isExpanded:e}),!1!==(e=I({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},U_.$inject=["modeling","canvas"],U_.prototype.preExecute=function(e){var n=this._modeling,i=e.alignment;R(e.elements,function(r){var o={x:0,y:0};i.left?o.x=i.left-r.x:i.right?o.x=i.right-r.width-r.x:i.center?o.x=i.center-Math.round(r.width/2)-r.x:i.top?o.y=i.top-r.y:i.bottom?o.y=i.bottom-r.height-r.y:i.middle&&(o.y=i.middle-Math.round(r.height/2)-r.y),n.moveElements([r],o,r.parent)})},U_.prototype.postExecute=function(e){},G_.$inject=["modeling"],G_.prototype.preExecute=function(e){var n=e.source;if(!n)throw new Error("source required");var i=e.shape;i=e.shape=this._modeling.createShape(i,e.position,e.target||n.parent,{attach:(e.hints||{}).attach}),e.shape=i},G_.prototype.postExecute=function(e){var n=e.hints||{};(function wle(e,n){return Gc(e.outgoing,function(t){return t.target===n})})(e.source,e.shape)||(n.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},W_.$inject=["canvas","layouter"],W_.prototype.execute=function(e){var n=e.connection,t=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!t||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return n.source=t,n.target=i,n.waypoints||(n.waypoints=this._layouter.layoutConnection(n,a)),this._canvas.addConnection(n,r,o),n},W_.prototype.revert=function(e){var n=e.connection;return this._canvas.removeConnection(n),n.source=null,n.target=null,n};var Y_=Math.round;function VC(e){this._modeling=e}function K3(e){return!!e.waypoints}VC.$inject=["modeling"],VC.prototype.preExecute=function(e){var n=e.elements,t=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;R(n,function(d){yt(d.x)||(d.x=0),yt(d.y)||(d.y=0)});var s=Fi(n);R(n,function(d){K3(d)&&(d.waypoints=Ti(d.waypoints,function(u){return{x:Y_(u.x-s.x-s.width/2+r.x),y:Y_(u.y-s.y-s.height/2+r.y)}})),I(d,{x:Y_(d.x-s.x-s.width/2+r.x),y:Y_(d.y-s.y-s.height/2+r.y)})});var c=IN(n),l={};R(n,function(d){if(K3(d))l[d.id]=yt(i)?a.createConnection(l[d.source.id],l[d.target.id],i,d,d.parent||t,o):a.createConnection(l[d.source.id],l[d.target.id],d,d.parent||t,o);else{var u=I({},o);-1===c.indexOf(d)&&(u.autoResize=!1),l[d.id]=yt(i)?a.createShape(d,jr(d,["x","y","width","height"]),d.parent||t,i,u):a.createShape(d,jr(d,["x","y","width","height"]),d.parent||t,u)}}),e.elements=x1(l)};var X3=Math.round;function Js(e){this._canvas=e}function Qf(e){Js.call(this,e)}Js.$inject=["canvas"],Js.prototype.execute=function(e){var n=e.shape,t=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!t)throw new Error("position required");return I(n,void 0!==t.width?t:{x:t.x-X3(n.width/2),y:t.y-X3(n.height/2)}),this._canvas.addShape(n,i,r),n},Js.prototype.revert=function(e){var n=e.shape;return this._canvas.removeShape(n),n},Xe()(Qf,Js),Qf.$inject=["canvas"];var Ele=Js.prototype.execute;Qf.prototype.execute=function(e){var n=e.shape;return function Sle(e){["width","height"].forEach(function(n){typeof e[n]>"u"&&(e[n]=0)})}(n),n.labelTarget=e.labelTarget,Ele.call(this,e)};var Cle=Js.prototype.revert;function q_(e,n){this._canvas=e,this._modeling=n}function jC(e,n){this._modeling=e,this._elementRegistry=n}function Jf(e,n){this._canvas=e,this._modeling=n}function K_(e){this._modeling=e}Qf.prototype.revert=function(e){return e.shape.labelTarget=null,Cle.call(this,e)},q_.$inject=["canvas","modeling"],q_.prototype.execute=function(e){var n=e.connection,t=n.parent;return e.parent=t,e.parentIndex=j1(t.children,n),e.source=n.source,e.target=n.target,this._canvas.removeConnection(n),n.source=null,n.target=null,n},q_.prototype.revert=function(e){var n=e.connection,t=e.parent,i=e.parentIndex;return n.source=e.source,n.target=e.target,Un(t.children,n,i),this._canvas.addConnection(n,t),n},jC.$inject=["modeling","elementRegistry"],jC.prototype.postExecute=function(e){var n=this._modeling,t=this._elementRegistry;R(e.elements,function(r){t.get(r.id)&&(r.waypoints?n.removeConnection(r):n.removeShape(r))})},Jf.$inject=["canvas","modeling"],Jf.prototype.preExecute=function(e){var n=this._modeling,t=e.shape;gu(t.incoming,function(i){n.removeConnection(i,{nested:!0})}),gu(t.outgoing,function(i){n.removeConnection(i,{nested:!0})}),gu(t.children,function(i){!function Dle(e){return e.waypoints}(i)?n.removeShape(i,{nested:!0}):n.removeConnection(i,{nested:!0})})},Jf.prototype.execute=function(e){var n=this._canvas,t=e.shape,i=t.parent;return e.oldParent=i,e.oldParentIndex=j1(i.children,t),n.removeShape(t),t},Jf.prototype.revert=function(e){var n=this._canvas,t=e.shape,i=e.oldParent;return Un(i.children,t,e.oldParentIndex),n.addShape(t,i),t},K_.$inject=["modeling"];var Z3={x:"y",y:"x"};function X_(e,n){this._layouter=e,this._canvas=n}function zC(){}function HC(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function ep(e){this._modeling=e}function Z_(e){this._helper=new ep(e)}function al(e){this._modeling=e,this._helper=new ep(e)}function tp(e){this._modeling=e}function Q3(e){return e.original||e}function us(e,n){this._modeling=e,this._rules=n}function np(e){this._modeling=e}function ec(e){this._modeling=e}function J3(e){return I({},e)}function e5(e){switch(e){case"n":case"s":return"y";case"w":case"e":return"x"}}function t5(e,n,t){var i=e5(t);return/e|s/.test(t)?e[i]>n:/n|w/.test(t)?e[i] required");var r=e.changed||this.getVisualReferences(t).concat(n),o=e.oldProperties||function Ale(e,n){return br(n,function(t,i){return t[i]=e.get(i),t},{})}(t,xv(i));return c5(t,i),e.oldProperties=o,e.changed=r,r},ip.prototype.revert=function(e){var i=e.changed;return c5(e.moddleElement,e.oldProperties),i},ip.prototype.getVisualReferences=function(e){var n=this._elementRegistry;return b(e,"bpmn:DataObject")?function Mle(e,n){return n.filter(function(t){return b(t,"bpmn:DataObjectReference")&&$e(t).dataObjectRef===e})}(e,n):[]};var rp="default",hs="id",Ile={width:0,height:0};function op(e,n,t,i,r){this._elementRegistry=e,this._moddle=n,this._translate=t,this._modeling=i,this._textRenderer=r}function d5(e,n){return hs in e&&e[hs]!==n[hs]}function u5(e,n){R(n,function(t,i){"di"!==i?e.set(i,t):e.di&&function Ple(e,n){R(n,function(t,i){e.set(i,t)})}(e.di,t)})}op.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],op.prototype.execute=function(e){var n=e.element,t=[n];if(!n)throw new Error((0,this._translate)("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=n.businessObject,s=function Fle(e){var n=I({},e);return Nle.forEach(function(t){t in e&&(n[t]=$e(n[t]))}),n}(e.properties),c=e.oldProperties||function Ole(e,n){return br(xv(n),function(i,r){return i[r]="di"!==r?e.get(r):function Rle(e,n){return br(n,function(t,i){return t[i]=e.get(i),t},{})}(e.di,xv(n.di)),i},{})}(a,s);return d5(s,a)&&(o.unclaim(a[hs]),r.updateId(n,s[hs]),o.claim(s[hs],a)),rp in s&&(s[rp]&&t.push(r.get(s[rp].id)),a[rp]&&t.push(r.get(a[rp].id))),u5(a,s),e.oldProperties=c,e.changed=t,t},op.prototype.postExecute=function(e){var t=e.element.label,i=t&&$e(t).name;if(i){var r=this._textRenderer.getExternalLabelBounds(t,i);this._modeling.resizeShape(t,r,Ile)}},op.prototype.revert=function(e){var n=e.element,t=e.properties,i=e.oldProperties,r=n.businessObject,o=this._elementRegistry,a=this._moddle.ids;return u5(r,i),d5(t,r)&&(a.unclaim(t[hs]),o.updateId(n,i[hs]),a.claim(i[hs],r)),e.changed};var Nle=["default"];function ey(e,n){this._canvas=e,this._modeling=n}function UC(e,n){this._modeling=e,this._spaceTool=n}function GC(e,n){this._modeling=e,this._translate=n}function ap(e,n){this._modeling=e,this._spaceTool=n}ey.$inject=["canvas","modeling"],ey.prototype.execute=function(e){var n=this._canvas,t=e.newRoot,i=t.businessObject,r=n.getRootElement(),o=r.businessObject,a=o.$parent,s=o.di;n.setRootElement(t,!0),Un(a.rootElements,i),i.$parent=a,$n(a.rootElements,o),o.$parent=null,o.di=null,s.bpmnElement=i,i.di=s,e.oldRoot=r},ey.prototype.revert=function(e){var i=e.newRoot.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=i.di;this._canvas.setRootElement(r,!0),$n(a.rootElements,i),i.$parent=null,Un(a.rootElements,o),o.$parent=a,i.di=null,s.bpmnElement=o,o.di=s},UC.$inject=["modeling","spaceTool"],UC.prototype.preExecute=function(e){var n=this._spaceTool,t=this._modeling,i=e.shape,r=e.location,o=Ko(i),a=o===i,s=a?i:i.parent;nl(s).length||t.createShape({type:"bpmn:Lane"},{x:i.x+30,y:i.y,width:i.width-30,height:i.height},s);var l=[];Yc(o,function(g){return l.push(g),g.label&&l.push(g.label),g===i?[]:St(g.children,function(v){return v!==i})});var d="top"===r?-120:120,u="top"===r?i.y:i.y+i.height,h=u+("top"===r?10:-10),f="top"===r?"n":"s",p=n.calculateAdjustments(l,"y",d,h);n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:d},f,h),e.newLane=t.createShape({type:"bpmn:Lane"},{x:i.x+(a?30:0),y:u-("top"===r?120:0),width:i.width-(a?30:0),height:120},s)},GC.$inject=["modeling","translate"],GC.prototype.preExecute=function(e){var n=this._modeling,t=this._translate,i=e.shape,r=e.count,o=nl(i),a=o.length;if(a>r)throw new Error(t("more than {count} child lanes",{count:r}));var d,h,s=Math.round(i.height/r);for(h=0;h0||o.bottom<0?-l:l,e.y+(o.bottom?e.height:0)+(o.bottom?-10:10)),t.makeSpace(f.movingShapes,f.resizingShapes,{x:0,y:l},u)),(o.left||o.right)&&(l=o.right||o.left,u=o.right?"e":"w",f=t.calculateAdjustments(c,"x",o.left>0||o.right<0?-l:l,e.x+(o.right?e.width:0)+(o.right?-10:100)),t.makeSpace(f.movingShapes,f.resizingShapes,{x:l,y:0},u))};var sp="flowNodeRef",WC="lanes";function cp(e){this._elementRegistry=e}function ty(e){this._moddle=e}cp.$inject=["elementRegistry"],cp.prototype.computeUpdates=function(e,n){var t=[],i=[],r={},o=[];function s(d){-1===t.indexOf(d)&&(o.push(d),t.push(d))}return n.forEach(function(d){var u=Ko(d);u&&-1===t.indexOf(u)&&(u.children.filter(function(f){return b(f,"bpmn:FlowNode")}).forEach(s),t.push(u))}),e.forEach(s),o.forEach(function(d){var u=d.businessObject,f=u.get(WC).slice(),p=function l(d){if(!d.parent)return[];var u=function c(d){var u=Ko(d);return r[u.id]||(r[u.id]=u_(u)),r[u.id]}(d);return u.filter(function(h){return function a(d,u){var h=ot(u),f_x=d.x+d.width/2,f_y=d.y+d.height/2;return f_x>h.left&&f_xh.top&&f_y"u"&&(u=n.getExternalLabelBounds(l,f)),u&&e.resizeShape(l,u,zle)}}}function f5(e){return!e||!e.trim()}function Zn(e,n,t,i){mn.call(this,e,n,t),this._bpmnRules=i}function p5(){}h5.$inject=["modeling","textRenderer"],Xe()(Zn,mn),Zn.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],Zn.prototype.getHandlers=function(){var e=mn.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=ip,e["element.updateProperties"]=op,e["canvas.updateRoot"]=ey,e["lane.add"]=UC,e["lane.resize"]=ap,e["lane.split"]=GC,e["lane.updateRefs"]=cp,e["id.updateClaim"]=ty,e["element.setColor"]=YC,e["element.updateLabel"]=h5,e},Zn.prototype.updateLabel=function(e,n,t,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:t,hints:i||{}})},Zn.prototype.connect=function(e,n,t,i){if(t||(t=this._bpmnRules.canConnect(e,n)),t)return this.createConnection(e,n,t,e.parent,i)},Zn.prototype.updateModdleProperties=function(e,n,t){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n,properties:t})},Zn.prototype.updateProperties=function(e,n){this._commandStack.execute("element.updateProperties",{element:e,properties:n})},Zn.prototype.resizeLane=function(e,n,t){this._commandStack.execute("lane.resize",{shape:e,newBounds:n,balanced:t})},Zn.prototype.addLane=function(e,n){var t={shape:e,location:n};return this._commandStack.execute("lane.add",t),t.newLane},Zn.prototype.splitLane=function(e,n){this._commandStack.execute("lane.split",{shape:e,count:n})},Zn.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"});return this._commandStack.execute("canvas.updateRoot",{newRoot:e}),e},Zn.prototype.updateLaneRefs=function(e,n){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:n})},Zn.prototype.makeProcess=function(){var e=this._create("root",{type:"bpmn:Process"});this._commandStack.execute("canvas.updateRoot",{newRoot:e})},Zn.prototype.claimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n,claiming:!0})},Zn.prototype.unclaimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n})},Zn.prototype.setColor=function(e,n){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:n})},p5.prototype.layoutConnection=function(e,n){return[(n=n||{}).connectionStart||Mt(n.source||e.source),n.connectionEnd||Mt(n.target||e.target)]};var ny=20,Hle=5,iy=Math.round,m5=20,$le={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function g5(e,n,t){var s,c,i=Li(n,e,Hle),r=t.split(":")[0],o=iy((n.x-e.x)/2+e.x),a=iy((n.y-e.y)/2+e.y),l=function Gle(e,n){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[e].test(n)}(r,i),d=/h|r|l/.test(r),u=!1,h=!1;return l?(s=d?{x:o,y:e.y}:{x:e.x,y:a},c=d?"h:h":"v:v"):(u=function Ule(e,n){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[n].test(e)}(i,r),c=d?"h:v":"v:h",u?d?(h=a===e.y,s={x:e.x+ny*(/l/.test(r)?-1:1),y:h?a+ny:a}):s={x:(h=o===e.x)?o+ny:o,y:e.y+ny*(/t/.test(r)?-1:1)}:s={x:o,y:a}),{waypoints:qC(e,s,c).concat(s),directions:c,turnNextDirections:h}}function v5(e){return e.split(":").reverse().join(":")}function qC(e,n,t){if(!function rde(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(t=t||"h:h"))throw new Error("unknown directions: <"+t+">: must be specified as : with start/end in { h,v,t,r,b,l }");if(y5(t)){var i=function Wle(e,n,t){return g5(e,n,t)}(e,n,t),r=function Yle(e,n,t){var i=g5(n,e,v5(t));return{waypoints:i.waypoints.slice().reverse(),directions:v5(i.directions),turnNextDirections:i.turnNextDirections}}(e,n,t),o=function qle(e,n){var t=e.directions.split(":")[1],i=n.directions.split(":")[0];e.turnNextDirections&&(t="h"==t?"v":"h"),n.turnNextDirections&&(i="h"==i?"v":"h");var r=t+":"+i;return{waypoints:qC(e.waypoints[e.waypoints.length-1],n.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function Kle(e,n,t){var i=iy((n.x-e.x)/2+e.x),r=iy((n.y-e.y)/2+e.y);if("h:v"===t)return[{x:n.x,y:e.y}];if("v:h"===t)return[{x:e.x,y:n.y}];if("h:h"===t)return[{x:i,y:e.y},{x:i,y:n.y}];if("v:v"===t)return[{x:e.x,y:r},{x:n.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,n,t)}function Zle(e,n,t,i,r){var a=function KJ(e,n){return js(e)?[]:(function qJ(e){if(!Lt(e))throw new Error("must supply array")}(e),n=E1(n),e.filter(function(t,i){return!n(t,i)}))}(r&&r.preferredLayouts||[],"straight")[0]||"h:h",c=Li(e,n,$le[a]||0),l=function ide(e,n){if(y5(n))return n;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return n}}(c,a);t=t||Mt(e),i=i||Mt(n);var d=l.split(":"),u=b5(t,e,d[0],function ode(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(c));return function Xle(e,n,t){var i=qC(e,n,t);return i.unshift(e),i.push(n),x5(i)}(u,b5(i,n,d[1],c),l)}function _5(e,n,t){return function Jle(e,n,t){return e>=n&&e<=t}(n[e],t[e],t[e]+t[{x:"width",y:"height"}[e]])}function KC(e,n,t,i){if(function r(d){return d.length<3||!(d.length>4)&&!!on(d,function(u,h){var f=d[h-1];return f&&yf(u,f)<3})}(i))return null;var l,s=i[0],c=i.slice();return c[0]=t,c[1]=function o(d,u,h){switch(ts(u,d)){case"v":return{x:h.x,y:d.y};case"h":return{x:d.x,y:h.y}}return{x:d.x,y:d.y}}(c[1],s,t),(l=function a(d,u,h){var f;for(f=d.length-2;0!==f;f--)if(BN(d[f],u,m5)||BN(d[f],h,m5))return d.slice(f);return d}(c,e,n))!==c&&(c=KC(e,n,t,l)),c&&ts(c)?null:c}function y5(e){return e&&/t|r|b|l/.test(e)}function b5(e,n,t,i){if("h"===t&&(t=/left/.test(i)?"l":"r"),"v"===t&&(t=/top/.test(i)?"t":"b"),"t"===t)return{original:e,x:e.x,y:n.y};if("r"===t)return{original:e,x:n.x+n.width,y:e.y};if("b"===t)return{original:e,x:e.x,y:n.y+n.height};if("l"===t)return{original:e,x:n.x,y:e.y};throw new Error("unexpected dockingDirection: <"+t+">")}function x5(e){return e.reduce(function(n,t,i){return z1(n[n.length-1],e[i+1],t,0)||n.push(t),n},[])}var sde=40,XC={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},ry={top:"t",right:"r",bottom:"b",left:"l"};function ZC(){}function dde(e,n){return b(n,"bpmn:Participant")?"source":b(e,"bpmn:Participant")?"target":lp(n)?"source":lp(e)||b(n,"bpmn:Event")?"target":b(e,"bpmn:Event")?"source":null}function hde(e){return lp(e)?"target":"source"}function w5(e,n){return e?e.original||e:Mt(n)}function E5(e,n){return b(n,"bpmn:Activity")&&b(e,"bpmn:BoundaryEvent")&&n.businessObject.isForCompensation}function lp(e){return b(e,"bpmn:SubProcess")&&ln(e)}function dp(e,n){return e===n}function up(e){var n=/right|left/.exec(e);return n&&n[0]}function sl(e){var n=/top|bottom/.exec(e);return n&&n[0]}function QC(e){return"right"===e||"left"===e}function vde(e,n){var t=n.waypoints,i=t&&t.length&&Li(t[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function _de(e,n,t){var a,s,i=Mt(e),r=Mt(n),o=function cde(e){var n=e.host;return Li(Mt(e),n,-10)}(e),c=dp(e.host,n),l=function fde(e,n){return-1!==n.indexOf(e)}(o,["top","right","bottom","left"]),d=Li(r,i,{x:e.width/2+n.width/2,y:e.height/2+n.height/2});return c?function yde(e,n,t,i,r){var o=n?e:sl(e);return[ry[o]+":"+(n?QC(e)?C5("y",t,i,r)?"h":"b":C5("x",t,i,r)?"v":"l":"v")]}(o,l,e,n,t):(a=function bde(e,n,t){return t?ry[e]:dp(sl(e),sl(n))||function pde(e,n){return XC[e]===n}(up(e),up(n))?ry[sl(e)]:ry[up(e)]}(o,d,l),s=function xde(e,n,t){return t?QC(e)?function mde(e,n){var t=up(e);return-1!==n.indexOf(XC[t])}(e,n)||dp(e,n)?"h":"v":function gde(e,n){var t=sl(e);return-1!==n.indexOf(XC[t])}(e,n)||dp(e,n)?"v":"h":QC(n)||dp(sl(e),sl(n))&&up(n)?"h":"v"}(o,d,l),[a+":"+s])}function C5(e,n,t,i){var r=sde;return!(JC(e,i,t,r)||JC(e,i,{x:t.x+t.width,y:t.y+t.height},r)||JC(e,i,Mt(n),r))}function JC(e,n,t,i){return Math.abs(n[e]-t[e])
'),e.appendChild(o));var s=Dn(t.html||(t.separator?'
':'
'));o.appendChild(s),t.separator||(zr(s,"data-action",i),t.title&&zr(s,"title",t.title),t.className&&function Nde(e,n){var t=fi(e);(Lt(n)?n:n.split(/\s+/g)).forEach(function(r){t.add(r)})}(s,t.className),t.imageUrl&&s.appendChild(Dn('')))}),this.open()},li.prototype.trigger=function(e,n,t){var r,o,a,i=this._entries,s=n.delegateTarget||n.target;if(!s)return n.preventDefault();(r=i[zr(s,"data-action")])&&(a=n.originalEvent||n,Gi(o=r.action)?"click"===e&&o(a,t):o[e]&&o[e](a,t),n.preventDefault())},li.prototype._layoutChanged=function(){this._toggleState({})},li.prototype._needsCollapse=function(e,n){return e<46*Object.keys(n).length+50},li.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},li.prototype.open=function(){this._toggleState({open:!0})},li.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},li.prototype.isActiveTool=function(e){return e&&this._activeTool===e},li.prototype.updateToolHighlight=function(e){var n;this._toolsContainer||(n=Bn(".djs-palette-entries",this._container),this._toolsContainer=Bn("[data-group=tools]",n)),R(this._toolsContainer.children,function(i){var r=i.getAttribute("data-action");if(r){var o=fi(i);r=r.replace("-tool",""),o.contains("entry")&&r===e?o.add("highlighted-entry"):o.remove("highlighted-entry")}})},li.prototype.isOpen=function(){return fi(this._container).has(nS)},li.prototype._getParentContainer=function(){return this._canvas.getContainer()},li.HTML_MARKUP='
';const Lde={__init__:["palette"],palette:["type",li]};var F5="crosshair";function cl(e,n,t,i,r,o,a){this._selection=r,this._dragging=t,this._mouse=a;var s=this;o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",function(l){!l.hover&&!(l.originalEvent.target instanceof SVGElement)||e.once("lasso.selection.ended",function(){s.activateLasso(l.originalEvent,!0)})}),e.on("lasso.end",function(l){var d=iS(l),u=i.filter(function(h){return h});s.select(u,d)}),e.on("lasso.start",function(l){var d=l.context;d.bbox=iS(l),function(l){var u,d=n.getActiveLayer();ge(u=l.frame=qe("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Ze(d,u)}(d)}),e.on("lasso.move",function(l){var d=l.context;d.bbox=iS(l),function(l){var u=l.bbox;ge(l.frame,{x:u.x,y:u.y,width:u.width,height:u.height})}(d)}),e.on("lasso.cleanup",function(l){!function(l){l.frame&&ti(l.frame)}(l.context)}),e.on("element.mousedown",1500,function(l){if(AF(l))return s.activateLasso(l.originalEvent),!0})}function iS(e){var n={x:e.x-e.dx,y:e.y-e.dy},t={x:e.x,y:e.y};return n.x<=t.x&&n.y=t.x&&n.yt.x&&n.y<=t.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:n.x<=t.x&&n.y>t.y||n.x=t.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:n.x>=t.x&&n.y>t.y||n.x>t.x&&n.y>=t.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:{x:t.x,y:t.y,width:0,height:0}}cl.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],cl.prototype.activateLasso=function(e,n){this._dragging.init(e,"lasso",{autoActivate:n,cursor:F5,data:{context:{}}})},cl.prototype.activateSelection=function(e,n){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:n,cursor:F5,data:{context:{}}})},cl.prototype.select=function(e,n){var t=function Gee(e,n){var t={};return R(e,function(i){var r=i;r.waypoints&&(r=Fi(r)),!yt(n.y)&&r.x>n.x&&(t[i.id]=i),!yt(n.x)&&r.y>n.y&&(t[i.id]=i),r.x>n.x&&r.y>n.y&&(yt(n.width)&&yt(n.height)&&r.width+r.xn[i]+r-t&&gi(e,i,n[i]+r-t)})}(n,o,function Qde(e){return b(e,"bpmn:Task")?10:20}(o)),o&&function Zde(e,n){return Gc(n,function(t){return G5(e,t)})}(i,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=po(r),Kt(o,["bpmn:Event","bpmn:Gateway"])&&U5(n,po(o)),Kt(o,["bpmn:Task","bpmn:SubProcess"])&&function Kde(e,n){var t=po(n);H5.forEach(function(i){(function Jde(e,n,t){return e[t]>n[t]+20&&e[t]r[s]?r[s]+40:r[s]-40)})}}(n)):G5(i,"bpmn:MessageFlow")?(b(r,"bpmn:Event")&&(t.connectionStart=po(r)),b(o,"bpmn:Event")&&U5(n,po(o))):t.connectionStart=t.initialConnectionStart)})}function U5(e,n){gi(e,"x",n.x),gi(e,"y",n.y)}function G5(e,n){return e&&e.type===n}function W5(e,n){return"x"===e?n.width:n.height}function ic(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function ay(e){this._snapValues={}}$5.$inject=["eventBus"],ic.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},ic.prototype.setSnapOrigin=function(e,n){this._snapOrigins[e]=n,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},ic.prototype.addDefaultSnap=function(e,n){var t=this._defaultSnaps[e];t||(t=this._defaultSnaps[e]=[]),t.push(n)},ic.prototype.getSnapLocations=function(){return this._snapLocations},ic.prototype.setSnapLocations=function(e){this._snapLocations=e},ic.prototype.pointsForTarget=function(e){var n=e.id||e,t=this._targets[n];return t||(t=this._targets[n]=new ay).initDefaults(this._defaultSnaps),t},ay.prototype.add=function(e,n){var t=this._snapValues[e];t||(t=this._snapValues[e]={x:[],y:[]}),-1===t.x.indexOf(n.x)&&t.x.push(n.x),-1===t.y.indexOf(n.y)&&t.y.push(n.y)},ay.prototype.snap=function(e,n,t,i){var r=this._snapValues[n];return r&&function voe(e,n,t){var i,r;for(t=void 0===t?10:t,i=0;i=e.x||r&&r<=e.x)&&gi(e,"x",e.x),(i&&i>=e.y||o&&o<=e.y)&&gi(e,"y",e.y)}}function q5(e,n){return-1!==e.indexOf(n)}function K5(e,n,t){return n?{x:e.x-t.x,y:e.y-t.y}:{x:e.x,y:e.y}}function hp(e,n){var t=this;e.on(["resize.start"],function(i){t.initSnap(i)}),e.on(["resize.move","resize.end"],1250,function(i){var r=i.context,o=r.shape,a=o.parent,s=r.direction,c=r.snapContext;if(!(i.originalEvent&&Wr(i.originalEvent)||du(i))){var l=c.pointsForTarget(a);l.initialized||((l=t.addSnapTargetPoints(l,o,a,s)).initialized=!0),function fue(e){return"n"===e||"s"===e}(s)&&gi(i,"x",i.x),function pue(e){return"e"===e||"w"===e}(s)&&gi(i,"y",i.y),n.snap(i,l)}}),e.on(["resize.cleanup"],function(){n.hide()})}function X5(e,n){var t=Mt(e),i=ot(e),r={x:t.x,y:t.y};return-1!==n.indexOf("n")?r.y=i.top:-1!==n.indexOf("s")&&(r.y=i.bottom),-1!==n.indexOf("e")?r.x=i.right:-1!==n.indexOf("w")&&(r.x=i.left),r}function rc(e){this._canvas=e,this._asyncHide=pN(Wi(this.hide,this),1e3)}Da.$inject=["elementRegistry","eventBus","snapping"],Da.prototype.initSnap=function(e){var o,n=this._elementRegistry,t=e.context,i=t.shape,r=t.snapContext;r||(r=t.snapContext=new ic);var a_x=(o=n.get(i.id)?po(i,e):{x:e.x+po(i).x,y:e.y+po(i).y}).x-i.width/2,a_y=o.y-i.height/2,s_x=o.x+i.width/2,s_y=o.y+i.height/2;return r.setSnapOrigin("mid",{x:o.x-e.x,y:o.y-e.y}),cS(i)||(r.setSnapOrigin("top-left",{x:a_x-e.x,y:a_y-e.y}),r.setSnapOrigin("bottom-right",{x:s_x-e.x,y:s_y-e.y})),r},Da.prototype.addSnapTargetPoints=function(e,n,t){return R(this.getSnapTargets(n,t),function(r){if(cS(r))cS(n)&&e.add("mid",po(r));else if(function nue(e){return!!e.waypoints}(r)){if(r.waypoints.length<3)return;R(r.waypoints.slice(1,-1),function(a){e.add("mid",a)})}else e.add("mid",po(r))}),!yt(n.x)||!yt(n.y)||this._elementRegistry.get(n.id)&&e.add("mid",po(n)),e},Da.prototype.getSnapTargets=function(e,n){return M4(n).filter(function(t){return!function iue(e){return!!e.hidden}(t)})},Xe()(yu,Da),yu.$inject=["eventBus","injector"],yu.prototype.initSnap=function(e){var n=Da.prototype.initSnap.call(this,e),t=e.shape,i=!!this._elementRegistry.get(t.id);return R(t.outgoing,function(r){var o=r.waypoints[0];n.setSnapOrigin(r.id+"-docking",K5(o=o.original||o,i,e))}),R(t.incoming,function(r){var o=r.waypoints[r.waypoints.length-1];n.setSnapOrigin(r.id+"-docking",K5(o=o.original||o,i,e))}),b(t,"bpmn:Participant")&&n.setSnapLocations(["top-left","bottom-right","mid"]),n},yu.prototype.addSnapTargetPoints=function(e,n,t){Da.prototype.addSnapTargetPoints.call(this,e,n,t);var i=this.getSnapTargets(n,t);R(i,function(o){(function aue(e){return!(!b(e,"bpmn:SubProcess")||!ln(e))||b(e,"bpmn:Participant")}(o)||function oue(e,n){return e.every(function(t){return b(t,n)})}([n,o],"bpmn:TextAnnotation"))&&(e.add("top-left",T4(o)),e.add("bottom-right",A4(o)))});var r=this._elementRegistry;return R(n.incoming,function(o){if(r.get(n.id)){q5(i,o.source)||e.add("mid",Mt(o.source));var a=o.waypoints[0];e.add(o.id+"-docking",a.original||a)}}),R(n.outgoing,function(o){if(r.get(n.id)){q5(i,o.target)||e.add("mid",Mt(o.target));var a=o.waypoints[o.waypoints.length-1];e.add(o.id+"-docking",a.original||a)}}),b(t,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,n,t.parent)),e},yu.prototype.getSnapTargets=function(e,n){return Da.prototype.getSnapTargets.call(this,e,n).filter(function(t){return!b(t,"bpmn:Lane")})},hp.prototype.initSnap=function(e){var n=e.context,t=n.shape,i=n.direction,r=n.snapContext;r||(r=n.snapContext=new ic);var o=X5(t,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},hp.prototype.addSnapTargetPoints=function(e,n,t,i){return R(this.getSnapTargets(n,t),function(o){e.add("corner",A4(o)),e.add("corner",T4(o))}),e.add("corner",X5(n,i)),e},hp.$inject=["eventBus","snapping"],hp.prototype.getSnapTargets=function(e,n){return M4(n).filter(function(t){return!(function lue(e,n){return e.host===n}(t,e)||function due(e){return!!e.waypoints}(t)||function uue(e){return!!e.hidden}(t)||function hue(e){return!!e.labelTarget}(t))})},rc.$inject=["canvas"],rc.prototype.snap=function(e,n){var i=e.context.snapContext,r=i.getSnapLocations(),o={x:du(e,"x"),y:du(e,"y")};R(r,function(a){var s=i.getSnapOrigin(a),c={x:e.x+s.x,y:e.y+s.y};if(R(["x","y"],function(l){var d;o[l]||void 0!==(d=n.snap(c,a,l,7))&&(o[l]={value:d,originValue:d-s[l]})}),o.x&&o.y)return!1}),this.showSnapLine("vertical",o.x&&o.x.value),this.showSnapLine("horizontal",o.y&&o.y.value),R(["x","y"],function(a){var s=o[a];si(s)&&gi(e,a,s.originValue)})},rc.prototype._createLine=function(e){var n=this._canvas.getLayer("snap"),t=qe("path");return ge(t,{d:"M0,0 L0,0"}),Pt(t).add("djs-snap-line"),Ze(n,t),{update:function(i){yt(i)?ge(t,"horizontal"===e?{d:"M-100000,"+i+" L+100000,"+i,display:""}:{d:"M "+i+",-100000 L "+i+", +100000",display:""}):ge(t,{display:"none"})}}},rc.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},rc.prototype.showSnapLine=function(e,n){var t=this.getSnapLine(e);t&&t.update(n),this._asyncHide()},rc.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},rc.prototype.hide=function(){R(this._snapLines,function(e){e.update()})};const vue={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Da],resizeSnapping:["type",hp],snapping:["type",rc]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",$5],createMoveSnapping:["type",yu]};var _ue={"&":"&","<":"<",">":">",'"':""","'":"'"};function Z5(e){return(e=""+e)&&e.replace(/[&<>"']/g,function(n){return _ue[n]})}function ht(e,n,t,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=n,this._overlays=t,this._selection=i,this._container=Dn(ht.BOX_HTML),this._searchInput=Bn(ht.INPUT_SELECTOR,this._container),this._resultsContainer=Bn(ht.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),n.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Q5(e,n,t){var i=function bue(e){var n="";return e.forEach(function(t){n+=t.matched?''+Z5(t.matched)+"":Z5(t.normal)}),""!==n?n:null}(n),r=Dn(t);r.innerHTML=i,e.appendChild(r)}ht.$inject=["canvas","eventBus","overlays","selection"],ht.prototype._bindEvents=function(){var e=this;function n(t,i,r,o){e._eventMaps.push({el:t,type:r,listener:Hr.bind(t,i,r,o)})}n(document,"html","click",function(t){e.close()}),n(this._container,ht.INPUT_SELECTOR,"click",function(t){t.stopPropagation(),t.delegateTarget.focus()}),n(this._container,ht.RESULT_SELECTOR,"mouseover",function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)}),n(this._container,ht.RESULT_SELECTOR,"click",function(t){t.stopPropagation(),e._select(t.delegateTarget)}),n(this._container,ht.INPUT_SELECTOR,"keydown",function(t){38===t.keyCode&&t.preventDefault(),40===t.keyCode&&t.preventDefault()}),n(this._container,ht.INPUT_SELECTOR,"keyup",function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var i=e._getCurrentResult();return i?e._select(i):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37===t.keyCode||39===t.keyCode||e._search(t.delegateTarget.value))})},ht.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){Hr.unbind(e.el,e.type,e.listener)})},ht.prototype._search=function(e){var n=this;if(this._clearResults(),e&&""!==e){var t=this._searchProvider.find(e);if(t.length){t.forEach(function(r){var o=r.element.id,a=n._createResultNode(r,o);n._results[o]={element:r.element,node:a}});var i=Bn(ht.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},ht.prototype._scrollToDirection=function(e){var n=this._getCurrentResult();if(n){var t=e?n.previousElementSibling:n.nextElementSibling;t&&(this._scrollToNode(t),this._preselect(t))}},ht.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var n=e.offsetTop,t=this._resultsContainer.scrollTop,i=n-this._resultsContainer.clientHeight+e.clientHeight;n0&&Q5(t,e.primaryTokens,ht.RESULT_PRIMARY_HTML),Q5(t,e.secondaryTokens,ht.RESULT_SECONDARY_HTML),zr(t,ht.RESULT_ID_ATTRIBUTE,n),this._resultsContainer.appendChild(t),t},ht.prototype.registerProvider=function(e){this._searchProvider=e},ht.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,fi(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},ht.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,fi(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},ht.prototype.toggle=function(){this.isOpen()?this.close():this.open()},ht.prototype.isOpen=function(){return this._open},ht.prototype._preselect=function(e){var n=this._getCurrentResult();if(e!==n){n&&fi(n).remove(ht.RESULT_SELECTED_CLASS);var t=zr(e,ht.RESULT_ID_ATTRIBUTE),i=this._results[t].element;fi(e).add(ht.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},ht.prototype._select=function(e){var n=zr(e,ht.RESULT_ID_ATTRIBUTE),t=this._results[n].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(t,{top:400}),this._selection.select(t),this._eventBus.fire("searchPad.selected",t)},ht.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function yue(e){var t=e.width+12,i=e.height+12;return{position:{bottom:i-6,right:t-6},show:!0,html:'
'}}(Fi(e));this._overlayId=this._overlays.add(e,t)}},ht.CONTAINER_SELECTOR=".djs-search-container",ht.INPUT_SELECTOR=".djs-search-input input",ht.RESULTS_CONTAINER_SELECTOR=".djs-search-results",ht.RESULT_SELECTOR=".djs-search-result",ht.RESULT_SELECTED_SELECTOR="."+(ht.RESULT_SELECTED_CLASS="djs-search-result-selected"),ht.RESULT_ID_ATTRIBUTE="data-result-id",ht.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",ht.OVERLAY_CLASS="djs-search-overlay",ht.BOX_HTML='
',ht.RESULT_HTML='
',ht.RESULT_PRIMARY_HTML='
',ht.RESULT_SECONDARY_HTML='

';const xue={__depends__:[cE,ba],searchPad:["type",ht]};function lS(e,n,t){this._elementRegistry=e,this._canvas=t,n.registerProvider(this)}function J5(e){return St(e,function(t){return!!t.matched}).length>0}function eB(e,n){var t=[],i=e;if(!e)return t;e=e.toLowerCase(),n=n.toLowerCase();var r=e.indexOf(n);return r>-1?(0!==r&&t.push({normal:i.substr(0,r)}),t.push({matched:i.substr(r,n.length)}),n.length+r')}),Xo.prototype._modules=[].concat(Xs.prototype._modules,Xo.prototype._interactionModules=[HF,WF,Dre,KF],Xo.prototype._modelingModules=[Tre,Ure,noe,Xre,yoe,ME,Soe,Tae,eL,uu,Iae,Pae,Kae,Qae,Jae,rse,mse,wde,Ide,zde,$de,b_,vue,wue]);let dS=[];function uS(){}function tB(e){let n;return n=e>9999?0:e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e,n}function Due(e){let n=!1;return dS.forEach(t=>{e===t&&(n=!0)}),n}function fp(e,n){xo.call(this,e,n);let t=this,i=new uS;this.create=function(r,o){let a=o.type;if("label"===r)return t.baseCreate(r,I({type:"label"},eu,o));if(/^domainStory:/.test(a)){o.businessObject||(o.businessObject={type:a,name:o.name?o.name:""}),o.id?i.registerId(o.id):o.id=i.getId(r),I(o.businessObject,{id:o.id});let s=o.id;return o.businessObject.get=function(c){if("id"===c)return s},o.businessObject.set=function(c,l){"id"===c&&I(o.businessObject,{id:l})},o.businessObject.$type||I(o.businessObject,{$type:"Element"}),I(o.businessObject,{di:{}}),o.businessObject.$descriptor||I(o.businessObject,{$descriptor:{}}),(!/:activity$/.test(a)||!/:connection$/.test(a))&&!(/:group$/.test(a)&&o.height||o.width)&&I(o,t._getCustomElementSize(a)),"$instanceOf"in o.businessObject||Object.defineProperty(o.businessObject,"$instanceOf",{value:function(c){return this.type===c}}),t.baseCreate(r,o)}return t.createBpmnElement(r,o)}}function Cr(e,n){const t=nB(e);return t&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)}function nB(e){return e&&e.businessObject||e}uS.prototype.getId=function(e){return function Cue(e){let n=function Sue(){return Math.floor(1e4*Math.random())}(),t=e+"_"+tB(n);for(;Due(t);)n++,t=e+"_"+tB(n);return dS.push(t),t}(e)},uS.prototype.registerId=function(e){dS.push(e)},Xe()(fp,xo),fp.$inject=["bpmnFactory","moddle"],fp.prototype._getCustomElementSize=function(e){let n={__default:{width:75,height:75},"domainStory:textAnnotation":{width:100,height:30},"domainStory:group":{width:525,height:275}};return n[e]||n.__default};const iB="djs-element-hidden",rB="djs-label-hidden";let hS=0;function oB(e,n,t){let o,a,s,i=this,r=n.getDefaultLayer();e.on("directEditing.activate",function(c){let l=c.active;if(o=l.element.label||l.element,Cr(o,Z.TEXTANNOTATION)){a=n.getAbsoluteBBox(o),s=qe("g"),hS=o.height;let d=t.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:o.height,position:{mx:0,my:0}}),u=i.path=qe("path");ge(u,{d,strokeWidth:2,stroke:"black"}),Ze(s,u),Ze(r,s),sr(s,o.x,o.y)}Cr(o,Z.TEXTANNOTATION)||o.labelTarget?n.addMarker(o,iB):(o.type.includes(Z.ACTOR)||o.type.includes(Z.WORKOBJECT)||o.type.includes(Z.ACTIVITY)||o.type.includes(Z.GROUP))&&n.addMarker(o,rB)}),e.on("directEditing.resize",function(c){if(Cr(o,Z.TEXTANNOTATION)){let u=Math.max(o.height/a.height*(c.height+c.dy),0);hS=u;let h=t.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:u,position:{mx:0,my:0}});ge(i.path,{d:h})}}),e.on(["directEditing.complete","directEditing.cancel"],function(c){let l=c.active;l&&(n.removeMarker(l.element.label||l.element,iB),n.removeMarker(o,rB)),o=void 0,a=void 0,s&&(ti(s),s=void 0)})}function aB(e){return e.type.includes(Z.ACTOR)||e.type.includes(Z.WORKOBJECT)||e.type.includes(Z.ACTIVITY)||e.type.includes(Z.GROUP)?"name":Cr(e,Z.TEXTANNOTATION)?"text":void 0}function sB(e){if(Cr(e,Z.ACTIVITY))return"number"}function cB(e){let n;n=e.businessObject?e.businessObject:e;let t=aB(n);if(t&&n)return n[t]||""}oB.$inject=["eventBus","canvas","pathMap"];let lB,dB=0,sy=!1;function uB(e){setTimeout(()=>e.focus(),0)}function pp(e,n,t,i,r,o,a){function s(l,d){(d||Kt(l,[Z.TEXTANNOTATION])||l.businessObject.type.includes(Z.DOMAINSTORY))&&t.activate(l)}this._canvas=n,this._modeling=i,this._textRenderer=o,this._updateLabelHandler=a,t.registerProvider(this),e.on("element.dblclick",function(l){s(l.element,!0),Cr(l.element,Z.ACTIVITY)&&(dB=l.element.businessObject.number,sy=!0,t.complete())}),e.on(["element.mousedown","drag.init","canvas.viewbox.changing","autoPlace","popupMenu.open"],function(){t.isActive()&&t.complete()}),e.on(["commandStack.changed"],function(){t.isActive()&&t.cancel()}),e.on("directEditing.activate",function(l){r.removeResizers(),function c(l){let d=document.getElementsByClassName("djs-direct-editing-content");uB(d.item(0)),function Fue(e,n,t,i){let r,o;function a(l){if(!l||l.length<1)return!1;(function s(l){if(l.length>1)for(const d of l)d.classList.remove("autocomplete-active")})(l),r>=l.length&&(r=0),r<0&&(r=l.length-1),l[r].classList.add("autocomplete-active")}function c(l){let d=document.getElementsByClassName("autocomplete-items");for(const u of d)l!=u&&l!=e&&u.parentNode.removeChild(u)}c(),e.addEventListener("input",function(){if(0===n.length)return;t.type.includes(Z.WORKOBJECT)&&(this.value=this.innerHTML);let l,d,u=this.value;c(),r=-1,l=document.createElement("DIV"),l.setAttribute("id","autocomplete-list"),l.setAttribute("class","autocomplete-items"),this.parentNode.appendChild(l),o=[];for(const h of n)u&&h.substring(0,u.length).toUpperCase()===u.toUpperCase()&&(d=document.createElement("DIV"),d.innerHTML=""+h.substring(0,u.length)+""+h.substring(u.length),d.innerHTML+="",l.appendChild(d),o.push(h));t.type.includes(Z.ACTOR)&&(l.style.visibility="hidden")}),e.onkeydown=function(l){let d=document.getElementById("autocomplete-list");d&&(d=d.getElementsByTagName("div")),40===l.keyCode?(r++,a(d)):38===l.keyCode?(r--,a(d)):13===l.keyCode&&(l.preventDefault(),r>-1&&(t.businessObject.name=o[r],i.fire("element.changed",{element:t})))},document.addEventListener("click",function(l){c(l.target)})}(d[0],lB.getUniqueWorkObjectNames(),l,e)}(l.active.element)}),e.on("create.end",500,function(l){let d=l.shape;!l.isTouch&&l.context.canExecute&&(Cr(d,Z.ACTIVITY)||s(d),uB(document.getElementsByClassName("djs-direct-editing-content").item(0)))}),e.on("autoPlace.end",500,function(l){s(l.shape)})}function cy(e){return 180*e/Math.PI}function mp(e,n){let t;t=e.x<=n.x?e.y>=n.y?0:3:e.y>=n.y?1:2;const i=Math.abs(e.y-n.y),r=Math.abs(e.x-n.x);return 0===t?90-cy(Math.atan2(r,i)):1===t?90+cy(Math.atan2(r,i)):2===t?270-cy(Math.atan2(r,i)):3===t?270+cy(Math.atan2(r,i)):void 0}function jue(e,n,t,i,r,o){return r>t&&ri&&o2){let a=new Array(t-1);for(let c=0;c49&&(t=r);return t}(e,a);return r=fB(e[s],e[s+1]),o=pB(e[s],e[s+1],n),i={x:r,y:o,selected:s},i}return r=fB(e[0],e[1]),o=pB(e[0],e[1],n),i={x:r,y:o,selected:0},i}function fB(e,n){let t=mp(e,n),i=0,r=0;return 0===t||180===t||90===t||270===t?i=0:t>0&&t<90?i=5-t/6:t>90&&t<180?(r=t-90,i=5-r/18):t>180&&t<270?(r=t-180,i=r/18):t>270&&(r=t-270,i=5-r/6),i+(e.x+n.x)/2}function pB(e,n,t=1){let i=mp(e,n),r=0,o=0;return 0===i||180===i?r=15:90===i||270===i?r=0:i>0&&i<90?r=15-i/6:i>90&&i<180?(o=i-90,r=-o/9*t):i>180&&i<270?(o=i-180,r=15-o/3):i>270&&(o=i-270,r=-o/9*t),r+(e.y+n.y)/2}pp.$inject=["eventBus","canvas","directEditing","modeling","resizeHandles","textRenderer","updateLabelHandler"],pp.prototype.activate=function(e){if("__implicitrootbase"===e.id)return;let n=cB(e);if(void 0===n)return;let t={text:n};I(t,this.getEditingBBox(e));let r={};return ya(e)&&I(r,{autoResize:!0}),Cr(e,Z.TEXTANNOTATION)&&I(r,{resizable:!0,autoResize:!0}),I(t,{options:r}),t},pp.prototype.getEditingBBox=function(e){let n=this._canvas,t=e.label||e,i=n.getAbsoluteBBox(t),r_x=i.x+i.width/2,o={x:i.x,y:i.y},a=n.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,d=c.lineHeight,u=s.fontSize*a,h=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};Cr(e,Z.GROUP)&&(I(o,{minWidth:i.width/2.5>125?i.width/2.5:125,maxWidth:i.width,minHeight:30*a,x:i.x,y:i.y}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",textAlign:"left"})),(/^domainStory:actor\w*/.test(e.type)||/^domainStory:workObject\w*/.test(e.type))&&(I(o,{width:i.width,minHeight:30,y:i.y+i.height-20,x:i.x}),I(f,{fontSize:u+"px",lineHeight:h,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));let p=90*a,g=7*a,v=4*a;if(t.labelTarget&&(I(o,{width:p,height:i.height+g+v,x:r_x-p/2,y:i.y-g}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})),ya(t)&&!tu(t)&&!mi(t)){let k=nu(e),E=n.getAbsoluteBBox({x:k.x,y:k.y,width:0,height:0}),C=l+g+v;I(o,{width:p,height:C,x:E.x-p/2,y:E.y-C/2}),I(f,{fontSize:l+"px",lineHeight:d,paddingTop:g+"px",paddingBottom:v+"px"})}return Cr(e,Z.TEXTANNOTATION)&&(I(o,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",fontSize:u+"px",lineHeight:h})),{bounds:o,style:f}},pp.prototype.update=function(e,n,t,i){let r,o;Cr(e,Z.TEXTANNOTATION)&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),this._modeling.updateLabel(e,n,r)};let fS,mB=[],gB=[!1];function vB(e,n){const t=e.businessObject,i=[0];let r=-1;const o=fS.getActivitiesFromActors();o.forEach(a=>{a.businessObject.number&&i.push(+a.businessObject.number)});for(let a=0;a{let r=+i.businessObject.number;r>=n&&(n++,setTimeout(function(){t.execute("activity.changed",{businessObject:i.businessObject,newLabel:i.businessObject.name,newNumber:r,element:i})},10))})}(o,r,n),t.number=r,r}function _B(e,n,t){let i=[[]];e.forEach(o=>{i[o.businessObject.number]||(i[o.businessObject.number]=[]),i[o.businessObject.number].push(o)});let r=n;for(;r{if(i){let r=i.businessObject;r&&(r.number=n),t.fire("element.changed",{element:i})}})}let pS,xB,mS,ll,Jue,Xue=new S1,Zue=[];function oc(e,n,t,i,r,o){Uo.call(this,e,2e3);let a=Xue.next(),s={},c=n.computeStyle;function f(_,m,S,A){return C(_,m.businessObject.name,{box:m,align:S,padding:A||0,style:{fill:"#000000"}},m.type)}function g(_,m){if(m&&m.source){let S=m.businessObject,A=function $ue(e){let r=hB(e.waypoints),o=0;e.waypoints.length>1&&(o=mp(e.waypoints[0],e.waypoints[1]));let a=r.x,s=r.y;return o>=0&&o<=45?(s=s-30+o/2,a=a-25-o/2):o<=90?(s=s-10+(o-45)/4.5,a=a-35-o/9):o<=145?(s+=o/7.25,a=a-45-o/14.5):o<180?(s=s+20+o/9,a=a-50+o/4.5):o<=225?(s=s-45+o/12.25,a=a+10-o/6.125):o<=270?(s=s-80+o/3.375,a=a-5-o/6.125):o<=315?(s=s-135+o/2,a-=50):(s=s+22.5+(o-315)/6,a=a-50+(o-315)/1.8),{textAlign:"center",width:30,height:30,x:a,y:s}}(m);null==S.number&&m.source.type&&m.source.type.includes(Z.ACTOR)&&vB(m,o),S.number&&m.source.type.includes(Z.ACTOR)?function l(_,m,S){let A=function Bue(){let e={use:sy,number:dB};return sy=!1,e}(),z=m.businessObject;A.use&&(z.number=A.number),Zue[z.number]=!0;let L=function v(_,m,S,A){m<10&&(m=String(m)),m=String(m);let z=i.createText(m||"",S);return Pt(z).add("djs-labelNumber"),E(A,z,S,0,_),Ze(_,z),function k(_,m,S){const A=qe("ellipse");ge(A,{cx:m.box.x+15+3*S,cy:m.box.y-4,rx:"20",ry:"12",style:"fill:transparent;stroke:black;stroke-width:1"}),Ze(_,A)}(_,S,m.length),z}(_,z.number,function d(_){return{box:_,fitBox:!0,style:I({},i.getExternalStyle(),{fill:"black",position:"absolute"})}}(S),m.type);!function Wue(e,n){mB[n]=e}(L,z.number)}(_,m,A):S.number=null}}function E(_,m,S,A,z){/:activity$/.test(_)?(m.innerHTML=function D(_,m,S){if(_){let A="";for(let z=0;z<_.length;z++)A+=_[z].outerHTML.replace(/x="-?\d*.\d*"/,'x="'+(Number(m)+S+14)+'"');return A}}(m.children,S.box.x,0),m.innerHTML=x(m.children,S.box.y,0)):/:actor/.test(_)?m.innerHTML=x(m.children,z.firstChild.attributes.height.nodeValue,0):/:workObject/.test(_)&&(m.innerHTML=x(m.children,z.firstChild.attributes.height.nodeValue,26))}function C(_,m,S,A){let z=i.createText(m||"",S);return Pt(z).add("djs-label"),E(A,z,S,0,_),Ze(_,z),z}function x(_,m,S){if(_){let A="";for(let z=0;z<_.length;z++)A+=_[z].outerHTML.replace(/y="-?\d*.\d*"/,'y="'+(Number(m)+S+14*z)+'"');return A}}function V(_,m){return _.startsWith("data")?'':function P(_,m){_.businessObject.pickedColor||(_.businessObject.pickedColor="black");const S=m.match(/fill=".*?"/);if(S&&S.length>1)return m.replace(/fill=".*?"/,'fill="'+_.businessObject.pickedColor+'"');{const A=m.indexOf("m.y+60&&_.x>m.x+3&&_.x_.y&&(_.y+=S)}}function je(_,m,S,A,z,L){si(z)&&(L=z,z=0),z=z||0,L=c(L,{stroke:"black",strokeWidth:2,fill:"white"});let $=qe("rect");return ge($,{x:z,y:z,width:m-2*z,height:S-2*z,rx:A,ry:A}),ge($,L),Ze(_,$),$}function Ht(_,m,S){let A=_+"-"+m+"-"+S+"-"+a;return s[A]||function fe(_,m,S){let A=_+"-"+m+"-"+S+"-"+a;if("activity"===_){let z=qe("path");ge(z,{d:"M 1 5 L 11 10 L 1 15 Z"}),function ve(_,m){let S=I({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},m.attrs),A=m.ref||{x:0,y:0},z=m.scale||1;"none"===S.strokeDasharray&&(S.strokeDasharray=[1e4,1]);let L=qe("marker");ge(m.element,S),Ze(L,m.element),ge(L,{id:_,viewBox:"0 0 20 20",refX:A.x,refY:A.y,markerWidth:20*z,markerHeight:20*z,orient:"auto"});let $=Bn("defs",t._svg);$||($=qe("defs"),Ze(t._svg,$)),Ze($,L),s[_]=L}(A,{element:z,ref:{x:11,y:10},scale:.5,attrs:{fill:S,stroke:S}})}}(_,m,S),"url(#"+A+")"}this.drawGroup=function(_,m){m.businessObject.pickedColor||(m.businessObject.pickedColor="black");let S=je(_,m.width,m.height,0,I({fill:"none",stroke:m.businessObject.pickedColor},m.attrs));return f(_,m,"left-top",8),S},this.drawActor=function(_,m){let A,S={width:m.width,height:m.height},z=pS.getTypeIconSRC(Z.ACTOR,m.type);return z=V(z,m),A=qe(z),ge(A,S),Ze(_,A),f(_,m,"center",-5),A},this.drawWorkObject=function(_,m){let A,S={width:.65*m.width,height:.65*m.height,x:m.width/2-25,y:m.height/2-25},z=pS.getTypeIconSRC(Z.WORKOBJECT,m.type);return z=V(z,m),A=qe(z),ge(A,S),Ze(_,A),f(_,m,"center",-5),A},this.drawActivity=function(_,m){if(function be(_){let m=_.source,A=_.waypoints,z=A[0],L=A[A.length-1];z&&L&&m&&_.target&&(Q(z,m),Q(L,m))}(m),m){let S=function F(_){return _.businessObject.pickedColor||(_.businessObject.pickedColor="black"),c("",{stroke:_.businessObject.pickedColor,fill:"none",strokeWidth:1.5,strokeLinejoin:"round",markerEnd:Ht("activity","black",_.businessObject.pickedColor)})}(m),A=Ze(_,vf(m.waypoints,S));return function p(_,m){let S=m.businessObject,A=m.waypoints,z=function zue(e){return e.split(/\r\n|\r|\n/).length}(S.name);if(null!=m.waypoints){let L=hB(A,z),$=m.waypoints[L.selected],Pe=m.waypoints[L.selected+1],ut=mp($,Pe),bt="left",xn=500,gn=L.x;if((0===ut||180===ut)&&(xn=Math.abs($.x-Pe.x),bt="center",gn=($.x+Pe.x)/2-function Nue(e){if(!e)return 0;let n=5.1*e.length;return n/=2,n+=20,n}(S.name)),S.name&&S.name.length)C(_,S.name,{box:{textAlign:bt,width:xn,height:30,x:gn,y:L.y},fitBox:!0,style:I({},i.getExternalStyle(),{fill:"black",wordWrap:"break-word",overflowWrap:"break-word",hyphens:"auto"})},m.type)}}(_,m),g(_,m),function de(_){if(_){let m=_.getElementsByTagName("polyline");m.length>1&&m[1].setAttribute("points",m[0].getAttribute("points"))}}(_.parentElement),A}},this.drawDSConnection=function(_,m){let S="";return S=c(S,{stroke:"#000000",strokeWidth:1.5,strokeLinejoin:"round",strokeDasharray:"5, 5"}),Ze(_,vf(m.waypoints,S))},this.drawAnnotation=function(_,m){let A=m.businessObject.text||"";if(m.businessObject.text){let $=function Aue(){return hS}();0===$&&m.businessObject.number&&($=m.businessObject.number),I(m,{height:$}),I(m.businessObject,{number:$})}let z=je(_,m.width,m.height,0,0,{fill:"none",stroke:"none"});return function we(_,m,S){S=c(S,["no-fill"],{strokeWidth:2,stroke:"black"});let A=qe("path");ge(A,{d:m}),ge(A,S),Ze(_,A)}(_,r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:m.width,containerHeight:m.height,position:{mx:0,my:0}}),{stroke:"black"}),C(_,A,{box:m,align:"left-top",padding:5,style:{fill:"black"}}),z},this.getWorkObjectPath=function(_){return va(gS(_))},this.getGroupPath=function(_){return va(gS(_))},this.getActivityPath=function(_){let m=_.waypoints.map(function(A){return A.original||A}),S=[["M",m[0].x,m[0].y]];return m.forEach(function(A,z){0!==z&&S.push(["L",A.x,A.y])}),va(S)},this.getActorPath=function(_){return va(gS(_))}}function gS(e){let r=e.width/2+5,o=e.height/2+5;return[["M",e.x,e.y],["l",r,0],["l",r,o],["l",-r,o],["l",-r,0],["z"]]}function ly(e,n,t,i,r){this._create=n,this._elementFactory=t,this._spaceTool=i,this._lassoTool=r,e.registerProvider(this)}function wB(e,n,t,i){let r=Vs(e),o=ll.getIconForBPMN(e),a=[];a["domainStory-"+i+r]=n(e,i,o,r),I(t,a)}Xe()(oc,Uo),oc.$inject=["eventBus","styles","canvas","textRenderer","pathMap","commandStack"],oc.prototype.canRender=function(e){return/^domainStory:/.test(e.type)},oc.prototype.drawShape=function(e,n){String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(i,r){return this.substring(r=!r||r<0?0:+r,r+i.length)===i}});let t=n.type;return n.businessObject.type=t,xB.correctInitialize(),mS.makeDirty(),t.includes(Z.ACTOR)?this.drawActor(e,n):t.includes(Z.WORKOBJECT)?this.drawWorkObject(e,n):t.includes(Z.TEXTANNOTATION)?this.drawAnnotation(e,n):t.includes(Z.GROUP)?this.drawGroup(e,n):void 0},oc.prototype.getShapePath=function(e){let n=e.type;return n.includes(Z.ACTOR)?this.getActorPath(e):n.includes(Z.WORKOBJECT)?this.getWorkObjectPath(e):n.includes(Z.GROUP)?this.getGroupPath(e):void 0},oc.prototype.drawConnection=function(e,n){let t=n.type;return mS.makeDirty(),n.businessObject.type||(n.businessObject.type=t),t===Z.ACTIVITY?this.drawActivity(e,n):t===Z.CONNECTION?this.drawDSConnection(e,n):void 0},ly.$inject=["palette","create","elementFactory","spaceTool","lassoTool","modeling"],ly.prototype.getPaletteEntries=function(){let n=this._create,t=this._elementFactory;return function nhe(e,n,t,i){let r=ll?.getCurrentIconConfigurationForBPMN(),o=localStorage.getItem("appendedIcons");if(o&&(o=JSON.parse(o),function ihe(e){return!(1===Object.keys(e).length&&"entries"===Object.keys(e)[0])}(o)&&(o=function rhe(e){let n=new tn;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}(o)),o.entries&&o.entries.forEach)){const c=new tn;o.entries.forEach(l=>{c.putEntry(l)}),oN(c),function the(e){const n=document.createElement("style");document.head.appendChild(n);let t=new tn;t.appendDict(e),t.keysArray().forEach(r=>{if(ll.getAppendedIconDictionary().has(r)){let o=t.get(r);const a=".icon-domain-story-"+r.toLowerCase()+'::before{ display: block; content: url("data:image/svg+xml;utf8,'+function ohe(e){return""}(o)+'"); margin: 3px;}';n.sheet.insertRule(a,n.sheet.cssRules.length)}})}(o)}return ll?.initTypeDictionaries(r.actors,r.workObjects),ll?.getTypeDictionary(Z.ACTOR)?.keysArray().forEach(c=>{wB(c,i,e,"actor")}),I(e,{"actor-separator":{group:"actor",separator:!0}}),ll?.getTypeDictionary(Z.WORKOBJECT)?.keysArray().forEach(c=>{wB(c,i,e,"actor")}),I(e,{"workObject-separator":{group:"workObject",separator:!0},"domainStory-group":i(Z.GROUP,"group","icon-domain-story-tool-group","group"),"group-separator":{group:"group",separator:!0},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:"Activate the lasso tool",action:{click:function(c){t.activateSelection(c)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:"Activate the create/remove space tool",action:{click:function(c){n.activateSelection(c)}}}}),e}({},this._spaceTool,this._lassoTool,function o(a,s,c,l,d){function u(f){let p=t.createShape(I({type:a},d));I(p.businessObject,{id:p.id}),d&&(p.businessObject.di.isExpanded=d.isExpanded),n.start(f,p)}return a.replace(/^domainStory:/,""),{group:s,className:c,title:"Create "+l||0,action:{dragstart:u,click:u}}})};const wo=125;function ac(e){return e&&/^domainStory:/.test(e.type)}function EB(e){return e&&/^domainStory:group/.test(e.type)}function vS(e){return e&&/^domainStory:actor\w*/.test(e.type)}function _S(e){return e&&/^domainStory:activity/.test(e.type)}function gp(e){return e&&/^domainStory:connection/.test(e.type)}function vp(e){return e&&/^domainStory:textAnnotation/.test(e.type)}function uy(e,n){if(!EB(n)&&ac(e)&&ac(n)&&e!==n&&(!vS(e)||!vS(n))&&!_S(e)&&!_S(n)&&!gp(e)&&!gp(n))return vp(n)?{type:Z.CONNECTION}:{type:Z.ACTIVITY}}function CB(e,n){if(Cr(e,Z.GROUP)){if(n){let t={x:e.x,y:e.y+e.height},i={x:e.x+e.width,y:e.y+e.height},r={x:e.x+e.width,y:e.y};n.x!==e.x&&n.y!==e.y&&(n.x>i.x-wo&&I(n,{x:i.x-wo}),n.y>i.y-wo&&I(n,{y:i.y-wo})),n.x!==e.x&&n.y===e.y&&n.x>r.x-wo&&I(n,{x:r.x-wo}),n.x===e.x&&n.y!==e.y&&n.y>t.y-wo&&I(n,{y:t.y-wo}),n.height{t.id!==n.id&&t.x>=n.x&&t.x<=n.x+n.width&&t.y>=n.y&&t.y<=n.y+n.height&&(t.parent=n,n.children.includes(t)||n.children.push(t))})}(l,s)),s&&s.parent&&"type"in s.parent&&s.parent.type===Z.GROUP&&I(c,{parent:s.parent.id})}function i(o){let s=o.context.connection,c=s.source,l=s.target,d=s.businessObject;o.newTarget&&(l=o.newTarget),o.newSource&&(c=o.newSource);let h=n._customElements;s.parent?Un(h,d):$n(h,d),I(d,{waypoints:r(s)}),c&&(d.source?d.source=c.id:I(d,{source:c.id})),l&&(d.target?d.target=l.id:I(d,{target:l.id}))}function r(o){return o.waypoints.map(function(a){return a.original?{original:{x:a.original.x,y:a.original.y},x:a.x,y:a.y}:{x:a.x,y:a.y}})}Ve.call(this,e),this.executed(["shape.create","shape.move","shape.delete","shape.resize","shape.removeGroupWithChildren"],fy(t)),this.reverted(["shape.create","shape.move","shape.delete","shape.resize","shape.removeGroupWithChildren"],fy(t)),this.executed(["connection.create","connection.reconnect","connection.updateWaypoints","connection.delete","connection.layout","connection.move"],fy(i)),this.reverted(["connection.create","connection.reconnect","connection.updateWaypoints","connection.delete","connection.layout","connection.move"],fy(i))}function fy(e){return n=>{const t=n.context;(function che(e){return e&&/domainStory:/.test(e.type)})(t.shape||t.connection)&&e(n)}}Xe()(fs,Ea),fs.$inject=["eventBus"],fs.prototype.init=function(){function e(n,t){if(ac(n))return!ac(t)||EB(t)}this.addRule("elements.create",function(n){const r=n.target;return Uc(n.elements,function(o){return gp(o)?uy(o.source,o.target):o.host?SB(o,o.host,null):e(o,r)})}),this.addRule("elements.move",1500,function(n){let r,t=n.target;return br(n.shapes,function(o,a){return void 0===r&&(r=ac(a)),r===ac(a)&&!1!==o&&e(a,t)},void 0)}),this.addRule("shape.create",1500,function(n){return e(n.shape,n.target)}),this.addRule("connection.create",1500,function(n){return uy(n.source,n.target)}),this.addRule("connection.reconnect",1500,function(n){let i=n.hover||n.source,r=n.target;if(function she(e,n,t){return!(_S(t)&&vp(n)||gp(t)&&vp(e)&&vp(n)||gp(t)&&!vp(n)&&(vS(e)||function ahe(e){return e&&/^domainStory:workObject/.test(e.type)}(e)))}(i,r,n.connection))return uy(i,r)}),this.addRule("shape.resize",function(n){return CB(n.shape,n.newBounds)})},fs.prototype.canConnect=uy,fs.prototype.canAttach=SB,fs.prototype.isDomainStory=ac,fs.prototype.canResize=CB,Xe()(hy,Ve),hy.$inject=["eventBus","bpmnjs"];const lhe={width:0,height:0};function py(e,n,t){t.registerHandler("element.updateCustomLabel",function i(){this.preExecute=function(r){let o=r.element,a=o.businessObject,s=r.newLabel,c=r.newNumber;if(!mi(o)&&ya(o)&&!tu(o)&&(""!==s||""!==c)){let l=7,d=nu(o);d={x:d.x,y:d.y+l},e.createLabel(o,d,{id:a.id+"_label",businessObject:a})}},this.execute=function(r){return r.oldLabel=cB(r.element),r.oldNumber=function Iue(e){let n=e.businessObject,t=sB(n);if(t)return n[t]||""}(r.element),DB(r.element,r.newLabel,r.newNumber)},this.revert=function(r){return DB(r.element,r.oldLabel,r.oldNumber)},this.postExecute=function(r){let o=r.element,a=o.label||o,s=r.newLabel,c=r.newBounds;if(mi(a)&&""===s.trim())return void e.removeShape(a);if(!ya(o)&&!Cr(o,Z.TEXTANNOTATION))return;let l=nB(a),d=l.name||l.text;d&&(typeof c>"u"&&(c=n.getLayoutedBounds(a,d)),c&&e.resizeShape(a,c,lhe))}})}function DB(e,n,t){let i=e.label||e,r=e.number||e,o=e.labelTarget||e,a=e.numberTarget||e;return function Oue(e,n){let t;t=e.businessObject?e.businessObject:e;let i=aB(t);i&&(t[i]=n)}(i,n),function Rue(e,n){let t=e.businessObject,i=sB(t);i&&(t[i]=n)}(r,t),[i,o,r,a]}function yS(e,n){e.registerHandler("story.updateHeadlineAndDescription",function t(){this.execute=function(i){i.oldTitle=n.getTitle(),i.oldDescription=n.getDescription(),n.updateTitleAndDescription(i.newTitle,i.newDescription,!1)},this.revert=function(i){n.updateTitleAndDescription(i.oldTitle,i.oldDescription,!1)}})}let my,_p,yp;function gy(e,n,t,i,r,o,a,s,c,l,d,u){let h,f;e.invoke(Hf,this),e.get("autoPlace",!1);let g=Wi(this.getContextPadEntries,this);const v=document.getElementById("colorPicker");function C(de){I(de,{colorChange:{group:"edit",className:"icon-domain-story-color-picker",title:t("Change color"),action:{click:function(we,je){f=je,v.click()}}}})}function x(de){I(de,{"append.text-annotation":He(Z.TEXTANNOTATION,"bpmn-icon-text-annotation","textannotation","connect")})}function D(de,we){I(de,{connect:{group:"connect",className:"bpmn-icon-connection",title:t("Connect with activity"),action:{click:we,dragstart:we}}})}function P(de,we){_p.getTypeDictionary(Z.WORKOBJECT).keysArray().forEach(Ht=>{let fe=Vs(Ht),ve=_p.getIconForBPMN(Ht),_=[];_["append.workObject"+fe]=de(Ht,ve,fe,"workObjects"),I(we,_)})}function be(de){let je=o.getContainer(),Ht=a.getPad(de).html,fe=je.getBoundingClientRect(),ve=Ht.getBoundingClientRect();return{x:ve.left-fe.left,y:ve.top-fe.top+ve.height+5}}function He(de,we,je,Ht,fe){return"string"!=typeof je&&(fe=je,je=t("{type}",{type:de.replace(/^domainStory:/,"")})),{group:Ht,className:we,title:"Append "+je,action:{dragstart:h,click:function ve(_,m){let S=i.createShape(I({type:de},fe));r.start(_,S,{elements:[S],hints:{},source:m})}}}}v.onchange=de=>{l.execute("element.colorChange",{businessObject:f.businessObject,newColor:de.target.value,element:f}),my.makeDirty()},s.registerProvider("ds-replace",c),s.registerProvider("bpmn-replace",c),this.getContextPadEntries=function(de){const we=function VJ(){const e=new tn;return e.addEach(gv),e.keysArray()}();let je=g(de);return h=function(Ht,fe,ve){n.start(Ht,fe,ve)},de.type.includes(Z.WORKOBJECT)?(we.includes(de.type.replace(Z.WORKOBJECT,""))&&C(je),D(je,h),x(je),function V(de,we){_p.getTypeDictionary(Z.ACTOR).keysArray().forEach(Ht=>{let fe=Vs(Ht),ve=_p.getIconForBPMN(Ht),_=[];_["append.actor"+fe]=de(Ht,ve,fe,"actors"),I(we,_)})}(He,je),P(He,je),function F(de){I(de,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:t("Change type"),action:{click:function(we,je){let Ht=I(be(je),{cursor:{x:we.x,y:we.y}});s.open(je,"ds-replace",Ht)}}}})}(je)):de.type.includes(Z.ACTOR)?(we.includes(de.type.replace(Z.ACTOR,""))&&C(je),D(je,h),x(je),P(He,je),function E(de){I(de,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:t("Change type"),action:{click:function(we,je){let Ht=I(be(je),{cursor:{x:we.x,y:we.y}});s.open(je,"ds-replace",Ht)}}}})}(je)):de.type.includes(Z.GROUP)?(delete je.delete,x(je),I(je,{deleteGroup:{group:"edit",className:"bpmn-icon-trash",title:"Remove Group without Child-Elements",action:{click:function(Ht,fe){u.removeGroup(fe),my.makeDirty()}}}}),C(je)):de.type.includes(Z.ACTIVITY)&&(function k(de){delete de.delete,I(de,{changeDirection:{group:"edit",className:"icon-domain-story-changeDirection",title:t("Change direction"),action:{click:function(we,je){!function Q(de){let we,Ht,je=de.businessObject;Ht=de.source.type.includes(Z.ACTOR)?0:vB(de,l),we={businessObject:je,newNumber:Ht,element:de},l.execute("activity.directionChange",we)}(je)}}}})}(je),C(je),I(je,{delete:{group:"edit",className:"bpmn-icon-trash",title:"Remove",action:{click:function(Ht,fe){u.removeElements({element:fe}),my.makeDirty()}}}})),je}}function kB(e){this._modeling=e}function bu(e){this._dsReplace=new kB(e),this._modeling=e}py.$inject=["modeling","textRenderer","commandStack"],Xe()(gy,Hf),gy.$inject=["injector","connect","translate","elementFactory","create","canvas","contextPad","popupMenu","replaceMenuProvider","commandStack","eventBus","modeling"],kB.prototype.replaceElement=function uhe(e,n,t){let i=function hhe(e,n,t){return e.x=Math.ceil(n.x+(e.width||n.width)/2),e.y=Math.ceil(n.y+(e.height||n.height)/2),I(e,{name:n.businessObject.name}),t.replaceShape(n,e,{})}(n,e,t),o=i.incoming;return i.outgoing.forEach(a=>{a.businessObject.source=i.id}),o.forEach(a=>{a.businessObject.target=i.id}),i},bu.$inject=["modeling"],bu.prototype.getEntries=function(e){let n;return e.type.includes("actor")?n=function phe(e){const n=yp.getTypeDictionary(Z.ACTOR);let t={},i=0;return n.keysArray().forEach(r=>{if(!e.includes(r)){const o=Vs(r);t[i]={label:"Change to "+o,actionName:"replace-with-actor-"+o.toLowerCase(),className:yp.getIconForBPMN(r),target:{type:r}},i++}}),t}(e.type):e.type.includes("workObject")&&(n=function mhe(e){const n=yp.getTypeDictionary(Z.WORKOBJECT);let t={},i=0;return n.keysArray().forEach(r=>{if(!e.includes(r)){const o=Vs(r);t[i]={label:"Change to "+o,actionName:"replace-with-actor-"+o,className:yp.getIconForBPMN(r),target:{type:r}}}i++}),t}(e.type)),this._createEntries(e,n)},bu.prototype._createEntries=function(e,n){let t=[],i=this;return R(n,function(r){let o=i._createMenuEntry(r,e);t.push(o)}),t},bu.prototype._createMenuEntry=function(e,n,t){let i=this._dsReplace.replaceElement,r=this._modeling;return{label:e.label,className:e.className,id:e.actionName,action:t=t||function(){return i(n,e.target,r)}}};var ghe=J(302);function bp(e,n,t,i){Zn.call(this,e,n,t,i)}Zn.prototype.updateLabel=function(e,n,t){(e.businessObject?n!==e.businessObject.name:n!==e.name)&&(/^domainStory:/.test(e.type)?this._commandStack.execute("element.updateCustomLabel",{element:e,newLabel:n,newBounds:t}):this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:t}))},Zn.prototype.updateNumber=function(e,n,t){(e.businessObject?n!==e.businessObject.number:n!==e.number)&&(/^domainStory:/.test(e.type)?this._commandStack.execute("element.updateCustomLabel",{element:e,newNumber:n,newBounds:t}):this._commandStack.execute("element.updateLabel",{element:e,newNumber:n,newBounds:t}))},Zn.prototype.replaceShape=function(e,n,t){let i={oldShape:e,newData:n,hints:t||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Zn.prototype.removeGroup=function(e){this._commandStack.execute("shape.removeGroupWithoutChildren",{element:e}),this.removeElements({element:e})},(0,ghe.inherits)(bp,Zn),bp.$inject=["eventBus","elementFactory","commandStack","domainStoryRules"];const vhe={__depends__:[uu,RE,LE],__init__:["domainStoryRenderer","paletteProvider","domainStoryRules","domainStoryUpdater","contextPadProvider","replaceMenuProvider"],elementFactory:["type",fp],domainStoryRenderer:["type",oc],paletteProvider:["type",ly],domainStoryRules:["type",fs],domainStoryUpdater:["type",hy],contextPadProvider:["type",gy],elementFactoryBpmn:["type",xo],pathMap:["type",rE],replaceMenuProvider:["type",bu],commandStack:["type",kn],updateLabelHandler:["type",py],headlineAndDescriptionUpdateHandler:["type",yS],modeling:["type",bp]},_he={__depends__:[jE,b_,OE],__init__:["dSlabelEditingProvider","dSlabelEditingPreview"],dSlabelEditingProvider:["type",pp],dSlabelEditingPreview:["type",oB],updateLabelHandler:["type",py],commandStack:["type",kn],modeling:["type ",bp]},yhe={__depends__:[uu,RE,LE],__init__:["domainStoryRenderer","paletteProvider","domainStoryRules","domainStoryUpdater","contextPadProvider","replaceMenuProvider"],elementFactory:["type",fp],domainStoryRenderer:["type",oc],paletteProvider:["type",ly],domainStoryRules:["type",fs],domainStoryUpdater:["type",hy],contextPadProvider:["type",gy],elementFactoryBpmn:["type",xo],pathMap:["type",rE],replaceMenuProvider:["type",bu],commandStack:["type",kn],updateLabelHandler:["type",py],headlineAndDescriptionUpdateHandler:["type",yS],modeling:["type",bp]};function ka(e){Xo.call(this,e),this._customElements=[],this._groupElements=[]}function bS(e){return e&&e.type===Z.GROUP}Xe()(ka,Xo),ka.prototype._modules=[].concat(ka.prototype._modules,[vhe,_he,yhe],[b_]),ka.prototype._addCustomShape=function(e){let n=e.parent;delete e.children,delete e.parent,this._customElements.push(e);let t=this.get("canvas"),i=this.get("elementFactory"),r=I({businessObject:e},e),o=i.create("shape",r);if(bS(e)&&(this._groupElements[e.id]=o),n){let a=this._groupElements[n];if(bS(a))return t.addShape(o,a,a.id)}return t.addShape(o)},ka.prototype._addCustomConnection=function(e){this._customElements.push(e);let n=this.get("canvas"),t=this.get("elementFactory"),i=this.get("elementRegistry"),r=I({businessObject:e},e),o=t.create("connection",I(r,{source:i.get(e.source),target:i.get(e.target)}),i.get(e.source).parent);return n.addConnection(o)},ka.prototype.importCustomElements=function(e){this.get("eventBus").fire("diagram.clear",{}),this._customElements=[],this._groupElements=[],this.addCustomElements(e)},ka.prototype.addCustomElements=function(e){if(!Lt(e))throw new Error("argument must be an array");let n=[],t=[],i=[];e.forEach(function(r){!function bhe(e){return e.type===Z.ACTIVITY||e.type===Z.CONNECTION}(r)?bS(r)?i.push(r):n.push(r):t.push(r)}),i.forEach(this._addCustomShape,this),n.forEach(this._addCustomShape,this),t.forEach(this._addCustomConnection,this)},ka.prototype.getCustomElements=function(){return this._customElements},ka.prototype.createDiagram=function(e){};class TB{constructor(n,t,i,r){this.activity=n,this.numberIsAllowedMultipleTimes=t,this.showNumberFields=i,this.saveFN=r}}const xhe=["mat-button",""],whe=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Ehe=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],She=["mat-icon-button",""],Dhe=["*"],khe=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],The=Nw(AR(Fw(class{constructor(e){this._elementRef=e}})));let AB=(()=>{class e extends The{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=rn(t),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._updateRippleDisabled()}constructor(t,i,r,o){super(t),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=vt(Od),this._rippleLoader=vt(yX),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=t.nativeElement.classList;for(const s of khe)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...t){return t.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){Rm()};static#t=this.\u0275dir=Me({type:e,features:[dt]})}return e})(),ps=(()=>{class e extends AB{constructor(t,i,r,o){super(t,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(hn("disabled",r.disabled||null),Ct("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:xhe,ngContentSelectors:Ehe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(bi(whe),at(0,"span",0),_t(1),j(2,"span",1),_t(3,1),W(),_t(4,2),at(5,"span",2)(6,"span",3)),2&i&&Ct("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),Ihe=(()=>{class e extends AB{constructor(t,i,r,o){super(t,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(hn("disabled",r.disabled||null),Ct("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:She,ngContentSelectors:Dhe,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(bi(),at(0,"span",0),_t(1),at(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),xS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,Cn]})}return e})();class MB extends Y{constructor(n=1/0,t=1/0,i=Dw){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;t||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;athis._resizeSubject.next(t)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new pt(t=>{const i=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Pr(t=>t.some(i=>i.target===n)),function Ohe(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,hc({connector:()=>new MB(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Bo(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Phe=(()=>{class e{constructor(){this._observers=new Map,this._ngZone=vt(rt)}ngOnDestroy(){for(const[,t]of this._observers)t.destroy();this._observers.clear()}observe(t,i){const r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Rhe(r)),this._observers.get(r).observe(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Nhe=["notch"],Fhe=["matFormFieldNotchedOutline",""],Lhe=["*"],Bhe=["textField"],Vhe=["iconPrefixContainer"],jhe=["textPrefixContainer"];function zhe(e,n){1&e&&at(0,"span",19)}function Hhe(e,n){if(1&e&&(j(0,"label",17),_t(1,1),et(2,zhe,1,0,"span",18),W()),2&e){const t=st(2);Ae("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),hn("for",t._control.id),ye(2),Ae("ngIf",!t.hideRequiredMarker&&t._control.required)}}function $he(e,n){1&e&&et(0,Hhe,3,5,"label",16),2&e&&Ae("ngIf",st()._hasFloatingLabel())}function Uhe(e,n){1&e&&at(0,"div",20)}function Ghe(e,n){}function Whe(e,n){1&e&&et(0,Ghe,0,0,"ng-template",22),2&e&&(st(2),Ae("ngTemplateOutlet",er(1)))}function Yhe(e,n){if(1&e&&(j(0,"div",21),et(1,Whe,1,1,"ng-template",9),W()),2&e){const t=st();Ae("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),ye(1),Ae("ngIf",!t._forceDisplayInfixLabel())}}function qhe(e,n){1&e&&(j(0,"div",23,24),_t(2,2),W())}function Khe(e,n){1&e&&(j(0,"div",25,26),_t(2,3),W())}function Xhe(e,n){}function Zhe(e,n){1&e&&et(0,Xhe,0,0,"ng-template",22),2&e&&(st(),Ae("ngTemplateOutlet",er(1)))}function Qhe(e,n){1&e&&(j(0,"div",27),_t(1,4),W())}function Jhe(e,n){1&e&&(j(0,"div",28),_t(1,5),W())}function efe(e,n){1&e&&at(0,"div",29)}function tfe(e,n){1&e&&(j(0,"div",30),_t(1,6),W()),2&e&&Ae("@transitionMessages",st()._subscriptAnimationState)}function nfe(e,n){if(1&e&&(j(0,"mat-hint",34),Fe(1),W()),2&e){const t=st(2);Ae("id",t._hintLabelId),ye(1),io(t.hintLabel)}}function ife(e,n){if(1&e&&(j(0,"div",31),et(1,nfe,2,2,"mat-hint",32),_t(2,7),at(3,"div",33),_t(4,8),W()),2&e){const t=st();Ae("@transitionMessages",t._subscriptAnimationState),ye(1),Ae("ngIf",t.hintLabel)}}const rfe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ofe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let xu=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-label"]]})}return e})();const afe=new Ce("MatError");let sfe=0,IB=(()=>{class e{constructor(){this.align="start",this.id="mat-mdc-hint-"+sfe++}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){2&i&&(yd("id",r.id),hn("align",null),Ct("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}})}return e})();const cfe=new Ce("MatPrefix"),lfe=new Ce("MatSuffix"),OB=new Ce("FloatingLabelParent");let RB=(()=>{class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=vt(Phe),this._ngZone=vt(rt),this._parent=vt(OB),this._resizeSubscription=new ee}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function dfe(e){if(null!==e.offsetParent)return e.scrollWidth;const t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);const i=t.scrollWidth;return t.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return e})();const PB="mdc-line-ripple--active",vy="mdc-line-ripple--deactivating";let NB=(()=>{class e{constructor(t,i){this._elementRef=t,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(vy);"opacity"===r.propertyName&&a&&o.remove(PB,vy)},i.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const t=this._elementRef.nativeElement.classList;t.remove(vy),t.add(PB)}deactivate(){this._elementRef.nativeElement.classList.add(vy)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt))};static#t=this.\u0275dir=Me({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return e})(),FB=(()=>{class e{constructor(t,i){this._elementRef=t,this._ngZone=i,this.open=!1}ngAfterViewInit(){const t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){this._notch.nativeElement.style.width=this.open&&t?`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&wi(Nhe,5),2&i){let o;Vt(o=jt())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mdc-notched-outline--notched",r.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:Fhe,ngContentSelectors:Lhe,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,r){1&i&&(bi(),at(0,"div",0),j(1,"div",1,2),_t(3),W(),at(4,"div",3))},encapsulation:2,changeDetection:0})}return e})();const ufe={transitionMessages:Qh("transitionMessages",[Xa("enter",ar({opacity:1,transform:"translateY(0%)"})),Lc("void => enter",[ar({opacity:0,transform:"translateY(-5px)"}),Fc("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let LB=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e})}return e})();const BB=new Ce("MatFormField"),hfe=new Ce("MAT_FORM_FIELD_DEFAULT_OPTIONS");let VB=0,_y=(()=>{class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=rn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){const i=this._appearance;this._appearance=t||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,i,r,o,a,s,c,l){this._elementRef=t,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+VB++,this._hintLabelId="mat-mdc-hint-"+VB++,this._subscriptAnimationState="",this._destroyed=new Y,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Bo(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),To(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Bo(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Bo(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const t=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(t.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;t.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(No),T(rt),T(Yh),T(Xn),T(hfe,8),T($i,8),T(qt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(oi(o,xu,5),oi(o,xu,7),oi(o,LB,5),oi(o,cfe,5),oi(o,lfe,5),oi(o,afe,5),oi(o,IB,5)),2&i){let a;Vt(a=jt())&&(r._labelChildNonStatic=a.first),Vt(a=jt())&&(r._labelChildStatic=a.first),Vt(a=jt())&&(r._formFieldControl=a.first),Vt(a=jt())&&(r._prefixChildren=a),Vt(a=jt())&&(r._suffixChildren=a),Vt(a=jt())&&(r._errorChildren=a),Vt(a=jt())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(1&i&&(wi(Bhe,5),wi(Vhe,5),wi(jhe,5),wi(RB,5),wi(FB,5),wi(NB,5)),2&i){let o;Vt(o=jt())&&(r._textField=o.first),Vt(o=jt())&&(r._iconPrefixContainer=o.first),Vt(o=jt())&&(r._textPrefixContainer=o.first),Vt(o=jt())&&(r._floatingLabel=o.first),Vt(o=jt())&&(r._notchedOutline=o.first),Vt(o=jt())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){2&i&&Ct("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Yt([{provide:BB,useExisting:e},{provide:OB,useExisting:e}])],ngContentSelectors:ofe,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,r){1&i&&(bi(rfe),et(0,$he,1,1,"ng-template",null,0,Ed),j(2,"div",1,2),Le("click",function(a){return r._control.onContainerClick(a)}),et(4,Uhe,1,0,"div",3),j(5,"div",4),et(6,Yhe,2,2,"div",5),et(7,qhe,3,0,"div",6),et(8,Khe,3,0,"div",7),j(9,"div",8),et(10,Zhe,1,1,"ng-template",9),_t(11),W(),et(12,Qhe,2,0,"div",10),et(13,Jhe,2,0,"div",11),W(),et(14,efe,1,0,"div",12),W(),j(15,"div",13),et(16,tfe,2,1,"div",14),et(17,ife,5,2,"div",15),W()),2&i&&(ye(2),Ct("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),ye(2),Ae("ngIf",!r._hasOutline()&&!r._control.disabled),ye(2),Ae("ngIf",r._hasOutline()),ye(1),Ae("ngIf",r._hasIconPrefix),ye(1),Ae("ngIf",r._hasTextPrefix),ye(2),Ae("ngIf",!r._hasOutline()||r._forceDisplayInfixLabel()),ye(2),Ae("ngIf",r._hasTextSuffix),ye(1),Ae("ngIf",r._hasIconSuffix),ye(1),Ae("ngIf",!r._hasOutline()),ye(1),Ct("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),Ae("ngSwitch",r._getDisplayedMessages()),ye(1),Ae("ngSwitchCase","error"),ye(1),Ae("ngSwitchCase","hint"))},dependencies:[co,Bx,vg,TI,IB,RB,FB,NB],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[ufe.transitionMessages]},changeDetection:0})}return e})(),yy=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Wa,Mw,Cn]})}return e})();const HB=$h({passive:!0});let mfe=(()=>{class e{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Co;const i=qa(t),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Y,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,HB),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",s,HB)}}),o}stopMonitoring(t){const i=qa(t),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((t,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xn),N(rt))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gfe=(()=>{class e{get minRows(){return this._minRows}set minRows(t){this._minRows=pa(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=pa(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=rn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(t,i,r,o){this._elementRef=t,this._platform=i,this._ngZone=r,this._destroyed=new Y,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{iv(this._getWindow(),"resize").pipe(d1(16),Bo(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const t=this._textareaElement,i=t.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(a);const s=t.scrollHeight-4;return t.classList.remove(a),o&&(t.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,r=i.value;if(!t&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:i,selectionEnd:r}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(rt),T(qt,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){1&i&&Le("input",function(){return r._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return e})(),vfe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const _fe=new Ce("MAT_INPUT_VALUE_ACCESSOR"),yfe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bfe=0;const xfe=uX(class{constructor(e,n,t,i){this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=t,this.ngControl=i,this.stateChanges=new Y}});let UB,xp=(()=>{class e extends xfe{get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(pq.required)??!1}set required(t){this._required=rn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&iR().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=rn(t)}constructor(t,i,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=t,this._platform=i,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+bfe++,this.focused=!1,this.stateChanges=new Y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>iR().has(p)),this._iOSKeyupListener=p=>{const g=p.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){const t=this._getPlaceholder();if(t!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=t,t?i.setAttribute("placeholder",t):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){yfe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(Ya,10),T(jh,8),T(Ad,8),T(fX),T(_fe,10),T(mfe),T(rt),T(BB,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){1&i&&Le("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&i&&(yd("id",r.id)("disabled",r.disabled)("required",r.required),hn("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Ct("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Yt([{provide:LB,useExisting:e}]),dt,Tr]})}return e})(),$B=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,yy,yy,vfe,Cn]})}return e})(),wfe=(()=>{class e{constructor(t,i,r){this.fb=t,this.dialogRef=i,this.activity=r.activity,this.activityLabel=r.activity.businessObject.name,this.numberIsAllowedMultipleTimes=r.numberIsAllowedMultipleTimes,this.activityNumber=r.activity.businessObject.number,this.showNumberFields=r.showNumberFields,this.saveFN=r.saveFN,this.form=this.fb.group({activityLabel:[this.activityLabel,[]],activityNumber:[this.activityNumber,[]],multipleNumbers:[this.numberIsAllowedMultipleTimes,[]]})}onSubmit(){this.numberIsAllowedMultipleTimes=!this.numberIsAllowedMultipleTimes,this.form.patchValue({multipleNumbers:this.numberIsAllowedMultipleTimes})}save(){this.saveFN({activity:this.activity,...this.form.value}),this.dialogRef.close()}close(){this.dialogRef.close()}preventDefault(t){t.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||e)(T(xw),T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-activity-dialog"]],decls:20,vars:2,consts:[[3,"formGroup"],[3,"hidden"],[1,"shortWidth"],["matInput","","type","number","formControlName","activityNumber"],["type","checkbox","formControlName","multipleNumbers",3,"change"],[1,"fullWidth"],["matInput","","type","text","formControlName","activityLabel","autofocus","","cdkFocusInitial","",3,"keydown.enter","keyup.enter","keyup.escape"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2,"Edit Activity"),W(),j(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),Fe(7,"Number"),W(),at(8,"input",3),W(),j(9,"input",4),Le("change",function(){return r.onSubmit()}),W(),Fe(10," multiple "),W(),j(11,"mat-form-field",5)(12,"mat-label"),Fe(13,"Label"),W(),j(14,"textarea",6),Le("keydown.enter",function(a){return r.preventDefault(a)})("keyup.enter",function(){return r.save()})("keyup.escape",function(){return r.close()}),W()()()(),j(15,"mat-dialog-actions")(16,"button",7),Le("click",function(){return r.close()}),Fe(17,"Cancel"),W(),j(18,"button",8),Le("click",function(){return r.save()}),Fe(19,"Save"),W()()),2&i&&(ye(3),Ae("formGroup",r.form),ye(1),Ae("hidden",!r.showNumberFields))},dependencies:[Og,Rh,hw,Jx,iw,Eg,Ad,Rg,ps,Ld,lf,_y,xu,xp],styles:[".shortWidth[_ngcontent-%COMP%]{width:200px}.fullWidth[_ngcontent-%COMP%]{width:100%} .mat-form-field-label{font-size:12pt!important}"]})}return e})();let GB=(()=>{class e{constructor(t,i){this.elementRegistryService=t,this.commandStackService=i}massChangeNames(t,i,r){const o=[];this.elementRegistryService.getAllCanvasObjects().forEach(s=>{s.type.includes(r)&&s.businessObject.name===t&&o.push(s)}),this.commandStackService.execute("domainStoryObjects.massRename",{elements:o,newValue:i})}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo),N(b1))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wS=(()=>{class e{constructor(t,i,r){this.massNamingService=t,this.elementRegistryService=i,this.iconDictionaryService=r,this.activityLabels=[],this.workObjektLabels=[]}createLabelDictionaries(){this.activityLabels=[],this.workObjektLabels=[],this.elementRegistryService.getAllCanvasObjects().forEach(i=>{const r=i.businessObject.name;if(r&&r.length>0&&i.type.includes(Z.ACTIVITY)&&!this.activityLabels.map(o=>o.name).includes(r))this.activityLabels.push({name:r,originalName:r});else if(r&&r.length>0&&i.type.includes(Z.WORKOBJECT)&&!this.workObjektLabels.map(o=>o.name).includes(r)){const o=i.type.replace(Z.WORKOBJECT,"");let a=this.iconDictionaryService.getIconSource(o);if(!a)return;a.startsWith("data")||(a="data:image/svg+xml,"+a),this.workObjektLabels.push({name:r,originalName:r,icon:a})}}),this.activityLabels.sort((i,r)=>i.name.toLowerCase().localeCompare(r.name.toLowerCase())),this.workObjektLabels.sort((i,r)=>i.name.toLowerCase().localeCompare(r.name.toLowerCase()))}getActivityLabels(){return this.activityLabels.slice()}getWorkObjectLabels(){return this.workObjektLabels.slice()}getUniqueWorkObjectNames(){const t=this.elementRegistryService.getAllWorkobjects();return[...new Set(t.filter(i=>!!i.businessObject.name).map(i=>i.businessObject.name))]}massRenameLabels(t,i,r,o){for(let a=0;a{class e{constructor(){this.replayOnSubject=new Qt(!1),this.replayOn$=this.replayOnSubject.asObservable()}setReplayState(t){this.replayOnSubject.next(t)}getReplayOn(){return this.replayOnSubject.value}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Tfe=J(625),Afe=J.n(Tfe);let Lfe=(()=>{class e{constructor(t){this.elementRegistryService=t}showAll(){this.removeHighlights(),this.elementRegistryService.getAllCanvasObjects().slice().concat(this.elementRegistryService.getAllGroups().slice()).map(t=>t.businessObject).forEach(t=>{document.querySelector("[data-element-id="+t.id+"]").style.display="block"})}showStep(t,i){this.removeHighlights(),this.getAllNotShown(t.objects).forEach(o=>{const a=document.querySelector("[data-element-id="+o.id+"]");a&&(a.style.display="none")}),this.hightlightStep(i?t.objects.filter(o=>!i.objects.includes(o)):t.objects),t.objects.forEach(o=>{const a=document.querySelector("[data-element-id="+o.id+"]");a&&(a.style.display="block")})}getNumberDomForActivity(t){const i=t.parentElement?.getElementsByClassName("djs-labelNumber")||["",""];return{numberBackgroundDom:i[0],numberTextDom:i[1]}}removeHighlights(){const t=this.elementRegistryService.getAllActivities(),i=this.elementRegistryService.getAllConnections();t.forEach(r=>{const o=document.querySelector("[data-element-id="+r.id+"]");if(o){const a=o.getElementsByTagName("polyline")[0];a.style.stroke=r.businessObject.pickedColor||"black",a.style.strokeWidth="1.5";const{numberBackgroundDom:s,numberTextDom:c}=this.getNumberDomForActivity(a);s&&c&&(s.style.fill="white",c.style.fill="black")}}),i.forEach(r=>{const o=document.querySelector("[data-element-id="+r.id+"]").getElementsByTagName("polyline")[0];o.style.stroke=r.businessObject.pickedColor||"black",o.style.strokeWidth="1.5"})}hightlightStep(t){t.filter(i=>i.type===Z.ACTIVITY).forEach(i=>{const r=document.querySelector("[data-element-id="+i.id+"]");if(r){const o=r.getElementsByTagName("polyline")[0];o.style.stroke="black",o.style.strokeWidth="4";const{numberBackgroundDom:a,numberTextDom:s}=this.getNumberDomForActivity(o);s&&a&&(a.style.fill="#43acbf",s.style.fill="black")}})}getAllNotShown(t){const i=[];return this.elementRegistryService.getAllCanvasObjects().concat(this.elementRegistryService.getAllGroups()).forEach(o=>{t.includes(o.businessObject)||(o.type.includes(Z.CONNECTION)&&o.source.type.includes(Z.GROUP)?t.push(o.target):i.push(o.businessObject))}),i}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bfe=(()=>{class e{constructor(t){this.elementRegistryService=t}traceActivitiesAndCreateStory(){const t=new tn,i=[];this.elementRegistryService.getActivitiesFromActors().forEach(o=>{const a=Number(o.businessObject.number),s=t.get(""+(a-1))?t.get(""+(a-1)):[];s.push(o),t.set(""+(a-1),s)});for(let o=0;os.id);i>0&&r[i-1].objects.forEach(s=>{o.includes(s)||o.push(s)}),r[i]={highlightedObjects:a,objects:o}}getMissingSteps(t){if(!t||0===t.length)return[];const i=[];let r=!0;for(let o=0;o0)||t[o].objects.filter(a=>a.type===Z.ACTIVITY).length<=0)&&(i.push(o+1),r=!1);return i}getStepObjects(t){const i=[],r=t,o=[];return t.forEach(a=>{i.push(a.source),o.push(a.target);for(const c of o)c.businessObject&&!c.businessObject.type.includes("actor")&&c.outgoing&&c.outgoing.forEach(l=>{r.push(l);const d=l.target;d&&!o.includes(d)&&o.push(d)})}),i.map(a=>a.businessObject).concat(r.map(a=>a.businessObject)).concat(o.map(a=>a.businessObject))}addGroupStep(t){const i=this.elementRegistryService.getAllGroups();i.length>0&&t.push({highlightedObjects:[],objects:i.map(r=>r.businessObject).concat(t[t.length-1].objects)})}static#e=this.\u0275fac=function(i){return new(i||e)(N(jo))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vfe(e,n){if(1&e){const t=tr();j(0,"div",2)(1,"button",3),Le("click",function(){return yn(t),bn(st().action())}),Fe(2),W()()}if(2&e){const t=st();ye(2),$a(" ",t.data.action," ")}}const jfe=["label"];function zfe(e,n){}const Hfe=Math.pow(2,31)-1;class ES{constructor(n,t){this._overlayRef=t,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,Hfe))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const WB=new Ce("MatSnackBarData");class by{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let $fe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return e})(),Ufe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return e})(),Gfe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return e})(),Wfe=(()=>{class e{constructor(t,i){this.snackBarRef=t,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||e)(T(ES),T(WB))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){1&i&&(j(0,"div",0),Fe(1),W(),et(2,Vfe,3,1,"div",1)),2&i&&(ye(1),$a(" ",r.data.message,"\n"),ye(1),Ae("ngIf",r.hasAction))},dependencies:[co,ps,$fe,Ufe,Gfe],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return e})();const Yfe={snackBarState:Qh("state",[Xa("void, hidden",ar({transform:"scale(0.8)",opacity:0})),Xa("visible",ar({transform:"scale(1)",opacity:1})),Lc("* => visible",Fc("150ms cubic-bezier(0, 0, 0.2, 1)")),Lc("* => void, * => hidden",Fc("75ms cubic-bezier(0.4, 0.0, 1, 1)",ar({opacity:0})))])};let qfe=0,Kfe=(()=>{class e extends sv{constructor(t,i,r,o,a){super(),this._ngZone=t,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=vt(qt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Y,this._onExit=new Y,this._onEnter=new Y,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+qfe++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),i}attachTemplatePortal(t){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),i}onAnimationEnd(t){const{fromState:i,toState:r}=t;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ps(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const t=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>t.classList.add(r)):t.classList.add(i)),this._exposeToModals()}_exposeToModals(){const t=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=t.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?t.setAttribute("aria-owns",r):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(r=document.activeElement),t.removeAttribute("aria-hidden"),i.appendChild(t),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||e)(T(rt),T(Ft),T(No),T(Xn),T(by))};static#t=this.\u0275dir=Me({type:e,viewQuery:function(i,r){if(1&i&&wi(Pd,7),2&i){let o;Vt(o=jt())&&(r._portalOutlet=o.first)}},features:[dt]})}return e})(),Xfe=(()=>{class e extends Kfe{_afterPortalAttached(){super._afterPortalAttached();const t=this._label.nativeElement,i="mdc-snackbar__label";t.classList.toggle(i,!t.querySelector(`.${i}`))}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&wi(jfe,7),2&i){let o;Vt(o=jt())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){1&i&&F0("@state.done",function(a){return r.onAnimationEnd(a)}),2&i&&U0("@state",r._animationState)},features:[dt],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1,2)(3,"div",3),et(4,zfe,0,0,"ng-template",4),W(),at(5,"div"),W()()),2&i&&(ye(5),hn("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Pd],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Yfe.snackBarState]}})}return e})(),CS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[p1,Nd,Wa,xS,Cn,Cn]})}return e})();const YB=new Ce("mat-snack-bar-default-options",{providedIn:"root",factory:function Zfe(){return new by}});let Qfe=(()=>{class e{get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,i,r,o,a,s){this._overlay=t,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(t,i){return this._attach(t,i)}openFromTemplate(t,i){return this._attach(t,i)}open(t,i="",r){const o={...this._defaultConfig,...r};return o.data={message:t,action:i},o.announcementMessage===t&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,i){const o=ri.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:by,useValue:i}]}),a=new sf(this.snackBarContainerComponent,i.viewContainerRef,o),s=t.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(t,i){const r={...new by,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new ES(a,o);if(t instanceof ro){const c=new av(t,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new sf(t,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Bo(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(t,i){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),i.duration&&i.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(i.duration))}_createOverlay(t){const i=new f1;i.direction=t.direction;let r=this._overlay.position().global();const o="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!o||"end"===t.horizontalPosition&&o,s=!a&&"center"!==t.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===t.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(t,i){return ri.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:ES,useValue:i},{provide:WB,useValue:t.data}]})}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ER),N(ri),N(Ow),N(e,12),N(YB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac})}return e})(),dl=(()=>{class e extends Qfe{constructor(t,i,r,o,a,s){super(t,i,r,o,a,s),this.simpleSnackBarComponent=Wfe,this.snackBarContainerComponent=Xfe,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||e)(N(Ls),N(ER),N(ri),N(Ow),N(e,12),N(YB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:CS})}return e})(),Ep=(()=>{class e{constructor(t,i,r,o){this.replayStateService=t,this.domManipulationService=i,this.storyCreatorService=r,this.snackbar=o,this.story=[],this.currentStep=new Qt(-1),this.maxStepNumber=new Qt(0),this.currentStep$=this.currentStep.asObservable(),this.maxStepNumber$=this.maxStepNumber.asObservable()}initializeReplay(){this.currentStep.next(1),this.story=this.storyCreatorService.traceActivitiesAndCreateStory(),this.maxStepNumber.next(this.story.length)}getCurrentStepNumber(){return this.currentStep.value}getMaxStepNumber(){return this.maxStepNumber.value}nextStep(){this.currentStep.value1&&(this.currentStep.next(this.currentStep.value-1),this.showCurrentStep())}showCurrentStep(){this.domManipulationService.showStep(this.story[this.currentStep.value-1],this.currentStep.value>1?this.story[this.currentStep.value-2]:void 0)}startReplay(){if(this.initializeReplay(),this.story?.length){const t=this.storyCreatorService.getMissingSteps(this.story);if(0===t.length)this.replayStateService.setReplayState(!0),this.domManipulationService.showStep(this.story[this.currentStep.getValue()-1]);else{const i=t.join(", ");this.snackbar.open(1===i.length?`The Domain Story is not complete. Step ${i} is missing.`:`The Domain Story is not complete. Steps ${i} are missing.`,void 0,{duration:4e3,panelClass:Bs})}}else this.snackbar.open("You need a Domain Story for replay.",void 0,{duration:4e3,panelClass:Bs})}stopReplay(){this.currentStep.next(-1),this.maxStepNumber.next(0),this.replayStateService.setReplayState(!1),this.domManipulationService.showAll()}static#e=this.\u0275fac=function(i){return new(i||e)(N(wp),N(Lfe),N(Bfe),N(dl))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qB=(()=>{class e{constructor(t,i){this.replayService=t,this.titleService=i}setModelerClasses(t,i,r){this.modeler=r}static viewBoxCoordinates(t){return t.match(/width="([^"]+)"\s+height="([^"]+)"\s+viewBox="([^"]+)"/)[3]}downloadHTMLPresentation(t){var i=this;return uN(function*(){const r=[];i.replayService.startReplay();try{const l=yield i.modeler.saveSVG({});i.fixActivityMarkersForEachStep(l,i.replayService.getCurrentStepNumber()),r.push({content:e.createSVGData(l.svg),transition:"slide"})}catch(l){alert("There was an error exporting the SVG.\n"+l)}for(;i.replayService.getCurrentStepNumber()"),t.svg.indexOf("")+7),o=r.split("{const d=l.substring(4,l.length-1),u=d.slice(0,l.length-5)+"customId"+i+d.slice(d.length-2);t.svg=t.svg.replaceAll(d,u)}),a+='{class e{constructor(t,i,r,o,a,s,c,l,d,u){this.dirtyFlagService=t,this.iconDictionaryService=i,this.elementRegistryService=r,this.configurationService=o,this.labelDictionaryService=a,this.replayStateService=s,this.dialogService=c,this.commandStackService=l,this.titleService=d,this.htmlPresentationService=u}initializeDomainStoryModelerClasses(){(function dhe(e,n){my=e,_p=n})(this.dirtyFlagService,this.iconDictionaryService),function ehe(e,n){ll=e,Jue=n}(this.iconDictionaryService,this.configurationService),function Que(e,n,t){pS=e,xB=n,mS=t}(this.iconDictionaryService,this.elementRegistryService,this.dirtyFlagService),function Lue(e){lB=e}(this.labelDictionaryService),function fhe(e){yp=e}(this.iconDictionaryService),function Hue(e){fS=e}(this.elementRegistryService),function Cfe(e){UB=e}(this.elementRegistryService)}propagateDomainStoryModelerClassesToServices(t,i,r,o,a){this.commandStackService.setCommandStack(t),this.elementRegistryService.setElementRegistry(i),this.htmlPresentationService.setModelerClasses(r,o,a)}initializeDomainStoryModelerEventHandlers(t,i){(function Sfe(e,n){e.registerHandler("activity.directionChange",function i(r){this.preExecute=function(o){o.oldNumber=o.businessObject.number,o.oldWaypoints=o.element.waypoints,o.name=o.businessObject.name,o.oldNumber||(o.oldNumber=0),r.updateNumber(o.businessObject,o.newNumber)},this.execute=function(o){let a=o.businessObject,s=o.element,c=s.source,l=[],d=s.waypoints;for(let u=d.length-1;u>=0;u--)l.push(d[u]);s.source=s.target,a.source=a.target,s.target=c,a.target=c.id,a.name=o.name,a.number=o.newNumber,s.waypoints=l,n.fire("element.changed",{element:s})},this.revert=function(o){let a=o.businessObject,s=o.element,c=s.source;s.source=s.target,a.source=a.target,s.target=c,a.target=c.id,a.name=o.name,a.number=o.oldNumber,s.waypoints=o.oldWaypoints,n.fire("element.changed",{element:s})}}),e.registerHandler("activity.changed",function t(r){this.preExecute=function(o){o.oldLabel=o.businessObject.name||" ";let a=function Gue(){let e=[],n=fS.getActivitiesFromActors();for(let t=n.length-1;t>=0;t--)e.push({id:n[t].businessObject.id,number:n[t].businessObject.number});return e}();r.updateLabel(o.businessObject,o.newLabel),r.updateNumber(o.businessObject,o.newNumber),o.oldNumber=o.businessObject.number,o.oldNumbersWithIDs=a},this.execute=function(o){let a=o.businessObject,s=o.element;o.newLabel&&o.newLabel.length<1&&(o.newLabel=" "),a.name=o.newLabel,a.number=o.newNumber,n.fire("element.changed",{element:s})},this.revert=function(o){let a=o.businessObject,s=o.element;a.name=o.oldLabel,a.number=o.oldNumber,function Dfe(e,n){let t=UB?.getActivitesFromActors();for(let i=t.length-1;i>=0;i--)for(let r=e.length-1;r>=0;r--)if(e[r].id.includes(t[i].businessObject.id)){let o=t[i];o.businessObject.number=e[r].number,r=-5,n.fire("element.changed",{element:o}),e.splice(r,1)}}(o.oldNumbersWithIDs,n),n.fire("element.changed",{element:s})}})})(t,i),function Efe(e,n){e.registerHandler("domainStoryObjects.massRename",function t(i){this.preExecute=function(r){let o=r.elements;r.oldLabel=o[0].businessObject.name,o.forEach(a=>{i.updateLabel(a.businessObject,confirm.newValue)})},this.execute=function(r){r.elements.forEach(a=>{a.businessObject.name=r.newValue,n.fire("element.changed",{element:a})})},this.revert=function(r){r.elements.forEach(a=>{a.businessObject.name=r.oldLabel,n.fire("element.changed",{element:a})})}})}(t,i),function kfe(e,n){e.registerHandler("element.colorChange",function t(){this.preExecute=function(r){r.oldColor=r.businessObject.pickedColor},this.execute=function(r){let a=r.element;r.businessObject.pickedColor=r.newColor,n.fire("element.changed",{element:a})},this.revert=function(r){let a=r.element;r.businessObject.pickedColor=r.oldColor,n.fire("element.changed",{element:a})}}),e.registerHandler("shape.removeGroupWithoutChildren",function i(){this.preExecute=function(r){r.parent=r.element.parent,r.children=r.element.children.slice()},this.execute=function(r){let o=r.element;r.children.forEach(a=>{(function Tue(e,n){const t=e.parent;e.children.remove(n),t.children.add(n),n.parent=t;const i=document.querySelector("[data-element-id="+n.id+"]").parentElement,r=i.parentElement,o=r.parentElement.parentElement;r.removeChild(i),o.appendChild(i)})(o,a),n.fire("element.changed",{element:a})}),n.fire("shape.remove",{element:o})},this.revert=function(r){let o=r.element;n.fire("shape.added",{element:o}),r.element.children.forEach(a=>{reworkGroupElements(o,a)})}})}(t,i),yS(t,this.titleService)}initiateEventBusListeners(t,i){t.on("element.dblclick",r=>{if(!this.replayStateService.getReplayOn()){const o=r.element;if(o.type===Z.ACTIVITY)this.activityDoubleClick(o,t,i);else{const a=function que(){return mB.slice(0)}();if(a.length>1){const s=this.elementRegistryService.getActivitiesFromActors();if(s.length>0){const c=document.getElementById("canvas");if(c){let E,f=c.getElementsByClassName("djs-container")[0].getElementsByTagName("svg")[0].getElementsByClassName("viewport")[0].getAttribute("transform"),p=0,g=0,v=1,k=1;const C=r.originalEvent.offsetX,x=r.originalEvent.offsetY;f&&(f=f.replace("matrix(",""),f.replace(")",""),E=f.split(","),v=parseFloat(E[0]),k=parseFloat(E[3]),p=parseInt(E[4],void 0),g=parseInt(E[5],void 0));const D=25*v,P=22*k;for(let V=1;V{Ht.businessObject.number===de&&jue(D,P,we,je,C,x)&&this.activityDoubleClick(Ht,t,i)})}}}}}}}}),t.on(["element.click","element.dblclick","element.mousedown","drag.init","canvas.viewbox.changing","autoPlace","popupMenu.open"],1e10,r=>{this.replayStateService.getReplayOn()&&(r.stopPropagation(),r.preventDefault())})}activityDoubleClick(t,i,r){const o=t.source;!function Vue(e){sy=e}(!1);const a=new uo;a.disableClose=!1,a.autoFocus=!0,t.businessObject.number&&o&&o.type.includes(Z.ACTOR)?a.data=new TB(t,yB()[t.businessObject.number],!0,s=>this.saveActivityInputLabel(s,i,r)):o&&o.type.includes(Z.WORKOBJECT)&&(a.data=new TB(t,!1,!1,s=>this.saveActivityInputLabel(s,i,r))),this.dialogService.openDialog(wfe,a)}saveActivityInputLabel(t,i,r){const o=t.activityLabel,a=t.activityNumber??!1,s=t.activityNumber,c=t.multipleNumbers??!1,l=t.activity,d=this.elementRegistryService.getActivitiesFromActors(),u=d.indexOf(l);let h;d.splice(u,1),a&&function Yue(e,n){gB[e]=n}(s,c),l.businessObject.multipleNumberAllowed=c,h=a?{businessObject:l.businessObject,newLabel:o,newNumber:s,element:l}:{businessObject:l.businessObject,newLabel:o,element:l},r.execute("activity.changed",h),!1!==l.businessObject.multipleNumberAllowed?!1===yB()[s]&&_B(d,s,i):!1===l.businessObject.multipleNumberAllowed&&_B(d,s,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(_v),N(Qa),N(jo),N($c),N(wS),N(wp),N(df),N(b1),N(Br),N(qB))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Cp(e){const n=new tn,t=new tn;return Object.keys(e.actors).forEach(i=>{n.add(e.actors[i],i)}),Object.keys(e.workObjects).forEach(i=>{t.add(e.workObjects[i],i)}),{name:e.name,actors:n,workObjects:t}}structuredClone({$descriptor:void 0,$type:void 0,di:void 0,get:void 0,set:void 0,id:"test",name:"test",type:Z.WORKOBJECT,x:0,y:0,height:38,width:38,pickedColor:void 0}).type=Z.ACTOR;let xy=(()=>{class e{set(t,i){localStorage.setItem(t,JSON.stringify(i))}get(t){const i=localStorage.getItem(t);return i?JSON.parse(i):null}removeItem(t){localStorage.removeItem(t)}checkValidityOfConfiguration(t){return t.actors.keysArray().length>1&&t.workObjects.keysArray().length>1&&!t.actors.all().some(i=>"string"!=typeof i.value)&&!t.workObjects.all().some(i=>"string"!=typeof i.value)}getStoredDomainConfiguration(){const t=localStorage.getItem(tN);if(t){const i=Cp(JSON.parse(t));if(this.checkValidityOfConfiguration(i))return i}}setStoredDomainConfiguration(t){const i={};t.actors.keysArray().forEach(a=>{i[a]=t.actors.get(a)});const r={};t.workObjects.keysArray().forEach(a=>{r[a]=t.workObjects.get(a)}),localStorage.setItem(tN,JSON.stringify({name:t.name,actors:i,workObjects:r},null,2))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wu=(()=>{class e{constructor(t,i,r,o,a){this.initializerService=t,this.elementRegistryService=i,this.iconDictionaryService=r,this.domainConfigurationService=o,this.storageService=a}postInit(){const t=this.storageService.getStoredDomainConfiguration();t&&(this.iconDictionaryService.setCusomtConfiguration(t),this.domainConfigurationService.loadConfiguration(t)),this.initializerService.initializeDomainStoryModelerClasses(),this.modeler=new ka({container:"#canvas",keyboard:{bindTo:document},additionalModules:[{bpmnSearch:["value","foo"]}]}),this.modeler.get&&(this.canvas=this.modeler.get("canvas"),this.elementRegistry=this.modeler.get("elementRegistry"),this.eventBus=this.modeler.get("eventBus"),this.commandStack=this.modeler.get("commandStack"),this.selection=this.modeler.get("selection")),this.initializerService.initializeDomainStoryModelerEventHandlers(this.commandStack,this.eventBus),this.initializerService.propagateDomainStoryModelerClassesToServices(this.commandStack,this.elementRegistry,this.canvas,this.selection,this.modeler);const i=this.debounce(this.saveSVG,500);this.modeler.get&&this.modeler.on("commandStack.changed",i),this.initializerService.initiateEventBusListeners(this.eventBus,this.commandStack),this.modeler.createDiagram(),I(window,{bpmnjs:this.modeler}),this.startDebounce()}restart(t,i){const r=i??this.elementRegistryService.createObjectListForDSTDownload().map(o=>o.businessObject);t||(t=this.storageService.getStoredDomainConfiguration()),t&&(this.storageService.setStoredDomainConfiguration(t),this.iconDictionaryService.setCusomtConfiguration(t),this.domainConfigurationService.loadConfiguration(t)),this.elementRegistryService.clear(),this.modeler?.destroy(),this.postInit(),r&&this.modeler.get&&this.modeler.importCustomElements(r)}getModeler(){return this.modeler}commandStackChanged(){this.eventBus.fire("commandStack.changed",this.debounce(this.saveSVG,500))}startDebounce(){this.debounce(this.saveSVG,500)}debounce(t,i){return()=>{let r;r&&clearTimeout(r),r=setTimeout(()=>{t(this.modeler).then(o=>{this.encoded=o})},i)}}getEncoded(){return this.encoded?this.encoded:""}saveSVG(t){return uN(function*(){try{return(yield t.saveSVG()).svg}catch(i){alert("There was an error saving the SVG.\n"+i)}})()}static#e=this.\u0275fac=function(i){return new(i||e)(N(Jfe),N(jo),N(Qa),N($c),N(xy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),npe=(()=>{class e{constructor(t){this.modelerService=t,this.cacheData=""}createSVGData(t,i,r,o,a){this.cacheData=this.modelerService.getEncoded();let h,f,p,g,s=structuredClone(this.cacheData),c=s.indexOf('width="'),{width:l,height:d,viewBox:u}=this.viewBoxCoordinates(s);const v=u.split(/\s/);h=+v[0],p=+v[1],f=+v[2],g=+v[3],f<300&&(f+=300,l+=300);const{insertText:k,extraHeight:E}=cN(t,i,h,p,l);o&&(d+=E+80);const C=this.createBounds(l,d,h,p,f,g,o),x=s.substring(0,c);c=s.indexOf('" version');const D=s.substring(c);D.substring(c),s=x+C+D;const P=this.findIndexToInsertData(s);if(o&&(s=s.slice(0,P)+k+s.slice(P)),a){const V=s.indexOf('width="'),F='style="background-color:white" ';s=s.slice(0,V)+F+s.slice(V)}return this.appendDST(s,r)}findIndexToInsertData(t){let i=t.indexOf("");return i<0?i=t.indexOf('version="1.2">')+14:i+=7,i}createBounds(t,i,r,o,a,s,c){return'width="'+t+'" height=" '+i+'" viewBox="'+r+" "+(c?o-80:o)+" "+a+" "+(s+30)}viewBoxCoordinates(t){const r=t.match(/width="([^"]+)"\s+height="([^"]+)"\s+viewBox="([^"]+)"/);return r?{width:+r[1],height:+r[2],viewBox:r[3]}:{width:0,height:0,viewBox:""}}appendDST(t,i){return t+"\n\x3c!-- \n"+JSON.stringify(i,null,2)+"\n --\x3e"}static#e=this.\u0275fac=function(i){return new(i||e)(N(wu))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wy=(()=>{class e{constructor(t,i,r){this.modelerService=t,this.elementRegistryService=i,this.dirtyFlagService=r}renderStory(t){this.modelerService.getModeler().importCustomElements(t)}reset(){this.renderStory([])}importStory(t,i,r,o=!0){this.modelerService.restart(r,t),this.renderStory(t),this.elementRegistryService.correctInitialize(),this.modelerService.commandStackChanged(),this.modelerService.startDebounce(),o&&this.dirtyFlagService.makeClean()}getStory(){return this.elementRegistryService.createObjectListForDSTDownload().map(t=>t.businessObject)}static#e=this.\u0275fac=function(i){return new(i||e)(N(wu),N(jo),N(_v))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ey=(()=>{class e{constructor(t,i,r,o,a,s,c){this.configurationService=t,this.titleService=i,this.dirtyFlagService=r,this.pngService=o,this.svgService=a,this.htmlPresentationService=s,this.rendererService=c,this.title="",this.description="",this.titleSubscription=this.titleService.title$.subscribe(l=>{this.title=l}),this.descriptionSubscription=this.titleService.description$.subscribe(l=>{this.description=l})}ngOnDestroy(){this.titleSubscription.unsubscribe(),this.descriptionSubscription.unsubscribe()}isDomainStoryExportable(){return this.rendererService.getStory().length>=1}createConfigAndDST(t){return new BJ(this.configurationService.getCurrentConfigurationForExport(),t)}downloadDST(){const t=this.getStoryForDownload(),i=this.createConfigAndDST(t),r=JSON.stringify(i,null,2),o=uf(this.title+"_"+this.getCurrentDateString());this.downloadFile(r,"data:text/plain;charset=utf-8,",o,".egn",!0)}downloadFile(t,i,r,o,a){const s=document.createElement("a");s.setAttribute("href",i+encodeURIComponent(t)),s.setAttribute("download",r+o),s.style.display="none",document.body.appendChild(s),s.click(),a&&this.dirtyFlagService.makeClean(),document.body.removeChild(s)}downloadSVG(t,i){const r=this.getStoryForDownload(),o=this.createConfigAndDST(r),a=this.svgService.createSVGData(this.title,this.description,o,t,i);this.downloadFile(a,"data:application/bpmn20-xml;charset=UTF-8,",uf(this.title+"_"+this.getCurrentDateString()),".egn.svg",!0)}downloadPNG(t){const i=document.getElementById("canvas");if(i){const a=i.getElementsByClassName("djs-container")[0].getElementsByTagName("svg")[0],s=a.getElementsByClassName("viewport")[0],c=s.getElementsByClassName("layer-base")[0],l=document.createElement("img");let d=this.pngService.extractSVG(s,a);d=this.pngService.prepareSVG(d,c,this.description,this.title,t),l.onload=()=>{const u=document.createElement("canvas");u.width=this.pngService.getWidth()+10,u.height=this.pngService.getHeight()+10;const h=u.getContext("2d");h&&(h.rect(0,0,u.width,u.height),h.fillStyle="white",h.fill(),h.drawImage(l,0,0));const f=u.toDataURL("image/png"),p=document.createElement("a");p.setAttribute("download",uf(this.title)+"_"+this.getCurrentDateString()+".png"),p.setAttribute("href",f),document.body.appendChild(p),p.click(),document.body.removeChild(p),l.src=""},l.onchange=l.onload,l.width=this.pngService.getWidth(),l.height=this.pngService.getHeight(),l.src="data:image/svg+xml,"+d}}downloadHTMLPresentation(){const t=uf(this.title+"_"+this.getCurrentDateString());this.htmlPresentationService.downloadHTMLPresentation(t).then()}getStoryForDownload(){const t=this.rendererService.getStory();return t.push({info:this.titleService.getDescription()}),t.push({version:fv_version}),t}getCurrentDateString(){return vI(new Date,"YYYY-MM-dd","en-GB")}static#e=this.\u0275fac=function(i){return new(i||e)(N($c),N(Br),N(_v),N(WJ),N(npe),N(qB),N(wy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ipe=(()=>{class e{constructor(t,i,r){this.fb=t,this.dialogRef=i,this.titleService=r,this.title="< name of this Domain Story >"===this.titleService.getTitle()?"":this.titleService.getTitle(),this.description=this.titleService.getDescription(),this.form=this.fb.group({title:[this.title,[]],description:[this.description,[]]})}ngOnInit(){}save(){this.titleService.updateTitleAndDescription(this.form.get("title")?.value,this.form.get("description")?.value,!0),this.dialogRef.close()}close(){this.dialogRef.close()}preventDefault(t){t.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||e)(T(xw),T(Fd),T(Br))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header-dialog"]],decls:16,vars:1,consts:[[3,"formGroup"],[1,"dialogWidth"],["matInput","","type","text","formControlName","title"],["maxlength","2000","matInput","","formControlName","description",1,"descriptionInput",3,"keydown.enter","keyup.enter","keyup.escape"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"form",0)(2,"mat-form-field",1)(3,"mat-label"),Fe(4,"Title"),W(),at(5,"input",2),W(),at(6,"br"),j(7,"mat-form-field",1)(8,"mat-label"),Fe(9,"Description"),W(),j(10,"textarea",3),Le("keydown.enter",function(a){return r.preventDefault(a)})("keyup.enter",function(){return r.save()})("keyup.escape",function(){return r.close()}),W()()()(),j(11,"mat-dialog-actions")(12,"button",4),Le("click",function(){return r.close()}),Fe(13,"Cancel"),W(),j(14,"button",5),Le("click",function(){return r.save()}),Fe(15,"Save"),W()()),2&i&&(ye(1),Ae("formGroup",r.form))},dependencies:[Og,Rh,iw,Eg,bw,Ad,Rg,ps,Ld,lf,_y,xu,xp],styles:[".dialogWidth[_ngcontent-%COMP%]{width:50vw}.dialogWidth[_ngcontent-%COMP%] mat-label[_ngcontent-%COMP%]{font-size:12pt}.descriptionInput[_ngcontent-%COMP%]{min-height:75px}"]})}return e})();class rpe{constructor(n,t){this.title=n,this.options=t}}class Cy{constructor(n,t,i){this.text=n,this.tooltip=t,this.fn=i}}function ope(e,n){if(1&e){const t=tr();j(0,"button",3),Le("click",function(){const o=yn(t).index;return bn(st().doOption(o))}),Fe(1),W()}if(2&e){const t=n.$implicit;Ae("title",t.tooltip),ye(1),$a(" ",t.text," ")}}let ape=(()=>{class e{constructor(t,i){this.dialogRef=t,this.withTitle=new Qt(!0),this.useWhiteBackground=new Qt(!0),this.title=i.title,this.options=i.options}ngOnInit(){}doOption(t){this.options[t].fn(this.withTitle.value,this.useWhiteBackground.value),this.close()}close(){this.dialogRef.close()}updateWithTitle(t){this.withTitle.next(t.target.checked)}updateUseWhiteBackground(t){this.useWhiteBackground.next(t.target.checked)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd),T(dv))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-export-dialog"]],decls:18,vars:8,consts:[["type","checkbox",3,"checked","change"],["mat-flat-button","",3,"click"],["mat-stroked-button","","class","mr-1",3,"title","click",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-1",3,"title","click"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2),W(),j(3,"label")(4,"input",0),Le("change",function(a){return r.updateWithTitle(a)}),$t(5,"async"),W(),Fe(6," Add title and description to image "),W(),at(7,"br"),j(8,"label")(9,"input",0),Le("change",function(a){return r.updateUseWhiteBackground(a)}),$t(10,"async"),W(),Fe(11," Add white background to SVG (default: transparent) "),W()(),j(12,"mat-dialog-actions"),at(13,"br"),j(14,"div")(15,"button",1),Le("click",function(){return r.close()}),Fe(16,"Cancel"),W(),et(17,ope,2,2,"button",2),W()()),2&i&&(ye(2),io(r.title),ye(2),Ae("checked",Ut(5,4,r.withTitle)),ye(5),Ae("checked",Ut(10,6,r.useWhiteBackground)),ye(8),Ae("ngForOf",r.options))},dependencies:[kd,ps,Ld,lf,fa]})}return e})(),spe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();class SS{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,t,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,t&&t.length&&(n?t.forEach(o=>this._markSelected(o)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...n){this._verifyValueAssignment(n);const t=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),t.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const t=this._hasQueuedChanges();return n&&this._emitChangeEvent(),t}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let t of this._selection)if(this.compareWith(n,t))return t;return n}return n}}let KB=(()=>{class e{constructor(){this._listeners=[]}notify(t,i){for(let r of this._listeners)r(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const XB=["*"],QB=["unscopedContent"],cpe=["text"],lpe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],dpe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],JB=new Ce("ListOption");let e6=(()=>{class e{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return e})(),t6=(()=>{class e{constructor(t){this._elementRef=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft))};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return e})(),Tpe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return e})(),n6=(()=>{class e{constructor(t){this._listOption=t}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(i){return new(i||e)(T(JB,8))};static#t=this.\u0275dir=Me({type:e,hostVars:4,hostBindings:function(i,r){2&i&&Ct("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return e})(),Ape=(()=>{class e extends n6{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[dt]})}return e})(),Mpe=(()=>{class e extends n6{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[dt]})}return e})();const Ipe=new Ce("MAT_LIST_CONFIG");let Eu=(()=>{class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=vt(Ipe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=rn(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,hostVars:1,hostBindings:function(i,r){2&i&&hn("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return e})(),DS=(()=>{class e{set lines(t){this._explicitLines=pa(t,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=rn(t)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(t){this._disabled=rn(t)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(t,i,r,o,a,s){this._elementRef=t,this._ngZone=i,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new ee,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=a||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===s,r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Xh(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(To(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();const i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===i),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===i),this._hasUnscopedTextContent){const o=0===this._titles.length&&1===i;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!(!t.textContent||!t.textContent.trim()))}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Eu,8),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275dir=Me({type:e,contentQueries:function(i,r,o){if(1&i&&(oi(o,Ape,4),oi(o,Mpe,4)),2&i){let a;Vt(a=jt())&&(r._avatars=a),Vt(a=jt())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){2&i&&(hn("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),Ct("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return e})(),i6=(()=>{class e extends Eu{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Yt([{provide:Eu,useExisting:e}]),dt],ngContentSelectors:XB,decls:1,vars:0,template:function(i,r){1&i&&(bi(),_t(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0})}return e})(),r6=(()=>{class e extends DS{get activated(){return this._activated}set activated(t){this._activated=rn(t)}constructor(t,i,r,o,a,s){super(t,i,r,o,a,s),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(rt),T(Eu,8),T(Xn),T(Zh,8),T($i,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(1&i&&(oi(o,t6,5),oi(o,e6,5),oi(o,Tpe,5)),2&i){let a;Vt(a=jt())&&(r._lines=a),Vt(a=jt())&&(r._titles=a),Vt(a=jt())&&(r._meta=a)}},viewQuery:function(i,r){if(1&i&&(wi(QB,5),wi(cpe,5)),2&i){let o;Vt(o=jt())&&(r._unscopedContent=o.first),Vt(o=jt())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(i,r){2&i&&(hn("aria-current",r._getAriaCurrent()),Ct("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",0!==r._avatars.length)("mdc-list-item--with-leading-icon",0!==r._icons.length)("mdc-list-item--with-trailing-meta",0!==r._meta.length)("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[dt],ngContentSelectors:dpe,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(i,r){1&i&&(bi(lpe),_t(0),j(1,"span",0),_t(2,1),_t(3,2),j(4,"span",1,2),Le("cdkObserveContent",function(){return r._updateItemLines(!0)}),_t(6,3),W()(),_t(7,4),_t(8,5),at(9,"div",3))},dependencies:[dR],encapsulation:2,changeDetection:0})}return e})(),a6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Mw,Wa,Cn,zg,_X,spe]})}return e})();function Fpe(e,n){if(1&e){const t=tr();j(0,"mat-list-item")(1,"mat-form-field",6)(2,"input",7),Le("change",function(r){const a=yn(t).$implicit;return bn(st().updateWorkobjectEntry(r,a))}),W()()()}if(2&e){const t=n.$implicit;ye(2),Ae("value",t.name)}}function Lpe(e,n){if(1&e){const t=tr();j(0,"mat-list-item")(1,"mat-form-field",6)(2,"textarea",8),Le("change",function(r){const a=yn(t).$implicit;return bn(st().updateActivityEntry(r,a))})("keydown.enter",function(r){return yn(t),bn(st().preventDefault(r))})("keyup.enter",function(){return yn(t),bn(st().save())})("keyup.escape",function(){return yn(t),bn(st().close())}),W()()()}if(2&e){const t=n.$implicit;ye(2),Ae("value",t.name)}}let Bpe=(()=>{class e{constructor(t){this.labelDictionaryService=t,this.closeEmitter=new Xt,this.labelDictionaryService.createLabelDictionaries(),this.workObjectEntries=this.labelDictionaryService.getWorkObjectLabels(),this.activityEntries=this.labelDictionaryService.getActivityLabels(),this.workobjectEntriesSubject=new Qt(this.workObjectEntries),this.activityEntriesSubject=new Qt(this.activityEntries)}ngAfterViewInit(){this.labelDictionaryService.createLabelDictionaries(),this.workobjectEntriesSubject.next(this.labelDictionaryService.getWorkObjectLabels()),this.activityEntriesSubject.next(this.labelDictionaryService.getActivityLabels())}save(){this.workObjectEntries=this.workobjectEntriesSubject.value,this.activityEntries=this.activityEntriesSubject.value;const t=[],i=[],r=[],o=[];this.activityEntries.filter(a=>a.name!==a.originalName).forEach(a=>{t.push(a.name),i.push(a.originalName)}),this.workObjectEntries.filter(a=>a.name!==a.originalName).forEach(a=>{r.push(a.name),o.push(a.originalName)}),this.labelDictionaryService.massRenameLabels(t,i,r,o),this.closeEmitter.emit()}cancel(){this.workObjectEntries.forEach(t=>{t.name=t.originalName}),this.activityEntries.forEach(t=>{t.name=t.originalName}),this.workobjectEntriesSubject.next(this.workObjectEntries),this.activityEntriesSubject.next(this.activityEntries)}updateActivityEntry(t,i){let r=this.activityEntriesSubject.value;r.filter(o=>o.originalName===i.originalName)[0].name=t.target.value,this.activityEntriesSubject.next(r)}updateWorkobjectEntry(t,i){let r=this.workobjectEntriesSubject.value;r.filter(o=>o.originalName===i.originalName)[0].name=t.target.value,this.workobjectEntriesSubject.next(r)}preventDefault(t){t.preventDefault()}close(){this.closeEmitter.emit()}static#e=this.\u0275fac=function(i){return new(i||e)(T(wS))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-label-dictionary"]],outputs:{closeEmitter:"closeEmitter"},decls:18,vars:6,consts:[[1,"workobjectList"],[4,"ngFor","ngForOf"],[1,"activityList"],[1,"activityListTitle"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"],[1,"inputText"],["matInput","",1,"inputText",3,"value","change"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","3",1,"inputText","activity",3,"value","change","keydown.enter","keyup.enter","keyup.escape"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"div",0)(2,"h3"),Fe(3,"Workobjects"),W(),j(4,"mat-list"),et(5,Fpe,3,1,"mat-list-item",1),$t(6,"async"),W()(),j(7,"div",2)(8,"h3",3),Fe(9,"Activities"),W(),j(10,"mat-list"),et(11,Lpe,3,1,"mat-list-item",1),$t(12,"async"),W()()(),j(13,"mat-dialog-actions")(14,"button",4),Le("click",function(){return r.close()}),Fe(15,"Cancel"),W(),j(16,"button",5),Le("click",function(){return r.save()}),Fe(17,"Save"),W()()),2&i&&(ye(5),Ae("ngForOf",Ut(6,2,r.workobjectEntriesSubject)),ye(6),Ae("ngForOf",Ut(12,4,r.activityEntriesSubject)))},dependencies:[kd,ps,i6,r6,Ld,lf,_y,xp,gfe,fa],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto;top:0;bottom:0;max-height:75vh;grid-column-gap:5px;width:75vw}mat-dialog-content[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{height:unset!important}mat-dialog-content[_ngcontent-%COMP%] mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}h3[_ngcontent-%COMP%]{font-weight:700}.icon[_ngcontent-%COMP%]{width:36px;height:36px}.inputText[_ngcontent-%COMP%]{width:98%;resize:none;font-family:sans-serif;font-size:small;padding-top:1px;padding-bottom:1px;margin:0}.activityListHeader[_ngcontent-%COMP%]{display:inline-grid;grid-template-columns:auto auto auto;width:100%}.activityListTitle[_ngcontent-%COMP%]{justify-self:left}.saveButton[_ngcontent-%COMP%]{justify-self:end;padding-right:0!important}.saveButtonSpan[_ngcontent-%COMP%]{margin-left:2px}.activity[_ngcontent-%COMP%]{max-height:3rem}"]})}return e})(),Vpe=(()=>{class e{constructor(t){this.dialogRef=t}close(){this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Fd))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-label-dictionary-dialog"]],decls:4,vars:0,consts:[[3,"closeEmitter"]],template:function(i,r){1&i&&(j(0,"mat-dialog-content")(1,"h2"),Fe(2,"Label Dictionary"),W(),j(3,"app-label-dictionary",0),Le("closeEmitter",function(){return r.close()}),W()())},dependencies:[Bpe,Ld]})}return e})(),s6=(()=>{class e{checkForUnreferencedElementsInActivitiesAndRepair(t){const i=[],r=[];let o=!0;return t.forEach(a=>{const s=a.type;s===Z.ACTIVITY||s===Z.CONNECTION?i.push(a):r.push(a.id)}),i.forEach(a=>{const c=a.target;if(!r.includes(a.source)||!r.includes(c)){o=!1;const l=t.indexOf(a);t=t.splice(l,1)}}),o}updateCustomElementsPreviousV050(t){for(const i of t)i.type===Z.WORKOBJECT?i.type=Z.WORKOBJECT+"Document":i.type===Z.WORKOBJECT+"Bubble"&&(i.type=Z.WORKOBJECT+"Conversation");return t}adjustPositions(t){let i=0,r=0;this.findFirstElement(t,!0,i,r),(i<75||i>150||r<0||r>50)&&(i-=75,r-=50,t.forEach(a=>this.adjustElementPosition(a,i,r)))}adjustElementPosition(t,i,r){t.type===Z.ACTIVITY||t.type===Z.CONNECTION?t.waypoints.forEach(a=>{a.x-=i,a.y-=r,a.original&&(a.original.x=a.x,a.original.y=a.y)}):(t.x-=i,t.y-=r)}findFirstElement(t,i,r,o){t.forEach(a=>{let s,c;a.type!==Z.ACTIVITY&&a.type!==Z.CONNECTION&&(i&&(r=a.x,o=a.y,i=!1),s=a.x,c=a.y,s{class e{constructor(t,i,r,o,a,s,c){this.iconDictionaryService=t,this.importRepairService=i,this.titleService=r,this.rendererService=o,this.dialogService=a,this.domainConfigurationService=s,this.snackbar=c,this.title=pv,this.description=mv,this.importedConfiguration=null,this.importedConfigurationEmitter=new Xt,this.titleSubscription=this.titleService.title$.subscribe(l=>{this.title=l}),this.descriptionSubscription=this.titleService.description$.subscribe(l=>{this.description=l})}ngOnDestroy(){this.titleSubscription.unsubscribe(),this.descriptionSubscription.unsubscribe()}get importedConfigurationEvent(){return this.importedConfigurationEmitter.asObservable()}getImportedConfiguration(){const t={name:this.importedConfiguration?.name||"",actors:this.importedConfiguration?.actors||new tn,workObjects:this.importedConfiguration?.workObjects||new tn};return this.importedConfiguration=null,t}importDST(t,i,r){const o=new FileReader,a=iN(i,r);this.titleService.updateTitleAndDescription(a,null,!1),o.onloadend=s=>{s&&s.target&&this.fileReaderFunction(s.target.result,r,!1)},o.readAsText(t)}importEGN(t,i,r){const o=new FileReader,a=iN(i,r);this.titleService.updateTitleAndDescription(a,null,!1),o.onloadend=s=>{s&&s.target&&this.fileReaderFunction(s.target.result,r,!0)},o.readAsText(t)}fileReaderFunction(t,i,r){let o;if("string"==typeof t){o=i?this.removeXMLComments(t):t;let a,s,c,l=this.extractDstAndConfig(o,i);if(null==l)return;l.domain?(c=r?l.domain:JSON.parse(l.domain),s=Cp(c),a=r?l.dst:JSON.parse(l.dst)):l.config?(c=JSON.parse(l.config),s=Cp(c),a=JSON.parse(l.dst)):(a=JSON.parse(o),s=this.domainConfigurationService.createMinimalConfigurationWithDefaultIcons());const d=this.checkConfigForChanges(s);let u=a[a.length-1];if(!u.id){u=a.pop();let h=u;h.version&&(u=a.pop()),h.version?h=h.version:(h="?",this.snackbar.open("The version number is unreadable.",void 0,{duration:Lr,panelClass:nN})),a=this.handleVersionNumber(h,a)}this.importRepairService.checkForUnreferencedElementsInActivitiesAndRepair(a)||this.showBrokenImportDialog(i?"SVG":"DST"),this.titleService.updateTitleAndDescription(null,u.info,!1),this.importRepairService.adjustPositions(a),this.updateIconRegistries(a,s),this.rendererService.importStory(a,d,s)}}handleVersionNumber(t,i){const r=+t.substring(0,t.lastIndexOf("."));return r<=.5&&(i=this.importRepairService.updateCustomElementsPreviousV050(i),this.showPreviousV050Dialog(r)),i}extractDstAndConfig(t,i){let r=null;try{r=JSON.parse(t)}catch{this.showBrokenImportDialog(i?"SVG":"DST")}return r}removeXMLComments(t){for(t=t.substring(t.indexOf(""));t.includes("\x3c!--")||t.includes("--\x3e");)t=t.replace("\x3c!--","").replace("--\x3e","");return(t=t.replace("","")).replace("","")}checkConfigForChanges(t){const i=t.actors.keysArray(),r=t.workObjects.keysArray(),o=this.iconDictionaryService.getTypeDictionaryKeys(Z.ACTOR),a=this.iconDictionaryService.getTypeDictionaryKeys(Z.WORKOBJECT);let s=!1;if(i.length!==o.length||r.length!==a.length)return!0;for(let c=0;c{class e{constructor(t,i,r,o,a,s,c,l,d,u,h){this.settingsService=t,this.modelerService=i,this.replayStateService=r,this.dirtyFlagService=o,this.dialogService=a,this.replayService=s,this.exportService=c,this.importService=l,this.titleService=d,this.renderService=u,this.snackbar=h,this.isReplay$=this.replayStateService.replayOn$,this.isDirty$=this.dirtyFlagService.dirty$}import(){const t=document.getElementById("import").files[0].name;t.endsWith(".dst")?this.importService.importDST(document.getElementById("import").files[0],t,!1):t.endsWith(".dst.svg")?this.importService.importDST(document.getElementById("import").files[0],t,!0):t.endsWith(".egn")?this.importService.importEGN(document.getElementById("import").files[0],t,!1):t.endsWith(".egn.svg")&&this.importService.importEGN(document.getElementById("import").files[0],t,!0),this.modelerService.commandStackChanged()}openSettings(){this.settingsService.open()}openDownloadDialog(){if(this.exportService.isDomainStoryExportable()){const t=new Cy("SVG","Download an SVG-Image with the Domain-Story embedded. Can be used to save and share your Domain-Story.",(s,c)=>this.exportService.downloadSVG(s,c)),i=new Cy("EGN","Download an EGN-File with the Domain-Story. Can be used to save and share your Domain-Story.",(s,c)=>this.exportService.downloadDST()),r=new Cy("PNG","Donwload a PNG-Image of the DOmain-Story. This does not include the Domain-Story!",(s,c)=>this.exportService.downloadPNG(s)),o=new Cy("HTML-Presentation","Download an HTML-Presentation. This does not include the Domain-Story!",(s,c)=>this.exportService.downloadHTMLPresentation()),a=new uo;a.disableClose=!1,a.autoFocus=!0,a.data=new rpe("Export",[t,i,r,o]),this.dialogService.openDialog(ape,a)}else this.snackbar.open("No Domain Story to be exported",void 0,{duration:Lr,panelClass:Bs})}openKeyboardShortcutsDialog(){const r=new uo;r.disableClose=!1,r.autoFocus=!0,r.data=new uv("Keyboard shortcuts","Undo:\t\t\t\t\tctrl + Z \nRedo:\t\t\t\t\tctrl + Y OR ctrl + shift + Z\nSelect All:\t\t\t\tctrl + A\nExport as EGN:\t\t\tctrl + S\nImport Domain Story: \tctrl + L\nSearch for text:\t\t\tctrl + F\nDirect editing:\t\t\tE\nHand tool:\t\t\t\tH\nLasso tool:\t\t\t\tL\nSpace tool:\t\t\t\tS",!0),this.dialogService.openDialog(hv,r)}openLabelDictionary(){if(this.exportService.isDomainStoryExportable()){const t=new uo;t.disableClose=!1,t.autoFocus=!0,this.dialogService.openDialog(Vpe,t)}else this.snackbar.open("There are currently no Elements on the canvas",void 0,{duration:Lr,panelClass:Bs})}createNewDomainStory(){this.titleService.reset(),this.renderService.reset()}startReplay(){this.replayService.startReplay()}stopReplay(){this.replayService.stopReplay()}previousStep(){this.replayService.previousStep()}nextStep(){this.replayService.nextStep()}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(wu),T(wp),T(_v),T(df),T(Ep),T(Ey),T(kS),T(Br),T(wy),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header-buttons"]],decls:4,vars:6,consts:[[4,"ngIf"],["id","buttonStartReplay","title","Start replay",1,"headerButton",3,"click"],[1,"material-icons","materialIconButton"],["id","buttonImport","title","Import story from file","onclick","document.getElementById('import').click();",1,"headerButton"],["type","file","accept",".dst, .dst.svg, .egn, .egn.svg","id","import","onclick","this.value=null;","name","file",2,"display","none",3,"change"],["id","export","title","Export story as .egn, .svg or .png file",1,"headerButton",3,"click"],["class","material-icons-outlined materialIconButton",4,"ngIf"],["class","material-icons materialIconButton",4,"ngIf"],["title","Label Dictionary",1,"headerButton",3,"click"],["title","Label Dictionary",1,"material-icons","materialIconButton"],["title","Settings",1,"headerButton",3,"click"],["title","Change Icons and Settings",1,"material-icons","materialIconButton"],["title","Show keyboard shortcuts",1,"headerButton",3,"click"],["title","Create a new domain story",1,"headerButton",3,"click"],[1,"material-icons-outlined","materialIconButton"],["title","Previous Step",1,"headerButton",3,"click"],["title","NextStep",1,"headerButton",3,"click"],["title","Stop replay",1,"headerButton",3,"click"]],template:function(i,r){1&i&&(et(0,Hpe,25,6,"div",0),$t(1,"async"),et(2,$pe,10,0,"div",0),$t(3,"async")),2&i&&(Ae("ngIf",!Ut(1,2,r.isReplay$)),ye(2),Ae("ngIf",Ut(3,4,r.isReplay$)))},dependencies:[co,fa],styles:["span[_ngcontent-%COMP%]{font-size:15pt;color:#fff}#dictionaryButton[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}.headerButton[_ngcontent-%COMP%]:hover{cursor:pointer;color:#fff}.materialIconButton[_ngcontent-%COMP%]:hover{color:#d3d3d3}"]})}return e})();const Gpe=["*",[["mat-toolbar-row"]]],Wpe=["*","mat-toolbar-row"],Ype=Nw(class{constructor(e){this._elementRef=e}});let TS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),c6=(()=>{class e extends Ype{constructor(t,i,r){super(t),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Xn),T(qt))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&oi(o,TS,5),2&i){let a;Vt(a=jt())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[dt],ngContentSelectors:Wpe,decls:2,vars:0,template:function(i,r){1&i&&(bi(Gpe),_t(0),_t(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return e})(),l6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Cn]})}return e})();const qpe=["*"],Zpe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Qpe=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Jpe=new Ce("MAT_CARD_CONFIG");let AS=(()=>{class e{constructor(t){this.appearance=t?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||e)(T(Jpe,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){2&i&&Ct("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:qpe,decls:1,vars:0,template:function(i,r){1&i&&(bi(),_t(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return e})(),d6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return e})(),u6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return e})(),h6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:Qpe,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){1&i&&(bi(Zpe),_t(0),j(1,"div",0),_t(2,1),W(),_t(3,2))},encapsulation:2,changeDetection:0})}return e})(),f6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,Wa,Cn]})}return e})();function ime(e,n){if(1&e){const t=tr();j(0,"button",10),Le("click",function(){return yn(t),bn(st().setShowDescription(!1))}),j(1,"span",11),Fe(2," expand_less "),W()()}}function rme(e,n){if(1&e){const t=tr();j(0,"button",12),Le("click",function(){return yn(t),bn(st().setShowDescription(!0))}),j(1,"span",11),Fe(2," expand_more"),W()()}}function ome(e,n){if(1&e&&(j(0,"span",13),Fe(1),$t(2,"async"),W()),2&e){const t=st();ye(1),$a(" Step: ",Ut(2,1,t.stepDescription$),"")}}function ame(e,n){if(1&e&&(j(0,"mat-card",14)(1,"span",15),Fe(2),$t(3,"async"),W()()),2&e){const t=st();ye(2),io(Ut(3,1,t.description$))}}let sme=(()=>{class e{constructor(t,i,r,o){this.titleService=t,this.replayService=i,this.replayStateService=r,this.dialogService=o,this.title$=this.titleService.title$,this.description$=this.titleService.description$,this.showDescription$=this.titleService.showDescription$,this.isReplay$=this.replayStateService.replayOn$,this.stepDescription$=uR([this.replayService.currentStep$,this.replayService.maxStepNumber$]).pipe(ce(([a,s])=>`${a}/${s}`)),this.showDescription=this.titleService.showDescription$}openHeaderDialog(){const t=new uo;t.disableClose=!1,t.autoFocus=!0,this.dialogService.openDialog(ipe,t)}setShowDescription(t){this.titleService.setShowDescription(t)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Br),T(Ep),T(wp),T(df))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-header"]],decls:19,vars:15,consts:[["color","primary",1,"toolbar"],["class","headerButton","title","Hide Description",3,"click",4,"ngIf"],["class","headerButton","title","Show Description",3,"click",4,"ngIf"],[1,"mr-10"],["title","Edit Title and Description",1,"headline",3,"click"],[1,"material-icons","materialIconButton","editIcon"],[1,"domainNameSpacer"],["title","Replay Step",4,"ngIf"],[1,"buttonSpacer"],["class","smallScrollbar description",4,"ngIf"],["title","Hide Description",1,"headerButton",3,"click"],[1,"material-icons","materialIconButton","toggle"],["title","Show Description",1,"headerButton",3,"click"],["title","Replay Step"],[1,"smallScrollbar","description"],[1,"descriptionText"]],template:function(i,r){1&i&&(j(0,"mat-toolbar",0)(1,"mat-toolbar-row"),et(2,ime,3,0,"button",1),$t(3,"async"),et(4,rme,3,0,"button",2),$t(5,"async"),j(6,"span",3)(7,"span",4),Le("click",function(){return r.openHeaderDialog()}),Fe(8),$t(9,"async"),j(10,"span",5),Fe(11," edit "),W()()(),at(12,"span",6),et(13,ome,3,3,"span",7),$t(14,"async"),at(15,"span",8)(16,"app-header-buttons"),W()(),et(17,ame,4,3,"mat-card",9),$t(18,"async")),2&i&&(ye(2),Ae("ngIf",Ut(3,5,r.showDescription)),ye(2),Ae("ngIf",!Ut(5,7,r.showDescription)),ye(4),$a(" ",Ut(9,9,r.title$)," "),ye(5),Ae("ngIf",Ut(14,11,r.isReplay$)),ye(4),Ae("ngIf",Ut(18,13,r.showDescription$)))},dependencies:[co,Upe,c6,TS,AS,fa],styles:[".noPointer[_ngcontent-%COMP%]{cursor:default!important}.description[_ngcontent-%COMP%]{top:0;max-width:100vw;overflow-y:scroll;display:grid}.descriptionText[_ngcontent-%COMP%]{position:relative;font-size:10pt;overflow-wrap:anywhere;word-wrap:anywhere;white-space:pre-wrap;padding-left:15px;padding-right:15px;align-self:center;line-height:12pt}.description[_ngcontent-%COMP%]:hover{cursor:default}.domainNameSpacer[_ngcontent-%COMP%]{flex:1 1 auto}.buttonSpacer[_ngcontent-%COMP%]{margin-right:15px}.headline[_ngcontent-%COMP%]:hover > .editIcon[_ngcontent-%COMP%]{display:contents}.headline[_ngcontent-%COMP%] > .editIcon[_ngcontent-%COMP%]{display:none}.headerButton[_ngcontent-%COMP%]:hover{cursor:pointer;color:#fff}"]})}return e})(),Sy=(()=>{class e{constructor(t,i,r,o,a,s,c){this.configurationService=t,this.iconDictionaryService=i,this.importService=r,this.titleService=o,this.storageService=a,this.elementRegistryService=s,this.snackbar=c,this.allIconListItems=new tn,this.configurationHasChanged=!1,this.selectedActors$=new Qt([]),this.selectedWorkobjects$=new Qt([]),this.domainConfigurationTypes=new Qt(this.configurationService.getCurrentConfigurationNamesWithoutPrefix()),this.selectedWorkobjects$.next(this.domainConfigurationTypes.value.workObjects),this.selectedActors$.next(this.domainConfigurationTypes.value.actors),i.getAllIconDictionary().keysArray().forEach(u=>{this.addIconToAllIconList(u)}),r.importedConfigurationEvent.subscribe(u=>{this.importConfiguration(u)});const l=this.storageService.getStoredDomainConfiguration();l&&this.importConfiguration(l,!1);const d=this.importService.getImportedConfiguration();d&&this.importConfiguration(d,!1)}importConfiguration(t,i=!0){const r=t.actors.keysArray(),o=t.workObjects.keysArray();this.changeName(t.name),r.forEach(a=>{this.allIconListItems.has(a)||this.addIconToAllIconList(a),this.selectedActors$.value.includes(a)||this.selectActor(a)}),o.forEach(a=>{this.allIconListItems.has(a)||this.addIconToAllIconList(a),this.selectedWorkobjects$.value.includes(a)||this.selectWorkObject(a)}),i&&this.saveDomain(this.elementRegistryService.getUsedIcons(),!0)}getDomainConfiguration(){return this.domainConfigurationTypes}getIconForName(t){return this.allIconListItems.get(t)}isIconActor(t){return this.domainConfigurationTypes.value.actors.filter(i=>i===t).length>0}isIconWorkObject(t){return this.domainConfigurationTypes.value.workObjects.filter(i=>i===t).length>0}changeName(t){this.titleService.setDomainName(t);const i=this.domainConfigurationTypes.value;i.name=t,this.domainConfigurationTypes.next(i)}setAsUnassigned(t,i){i?this.deselectActor(t):this.deselectWorkobject(t),this.updateIcon(!1,!1,t)}setAsActor(t,i){if(t){this.updateIcon(!0,!1,i),this.selectActor(i),this.deselectWorkobject(i);const r=this.iconDictionaryService.getFullDictionary().get(i);this.iconDictionaryService.getActorsDictionary().add(r,i)}else this.deselectActor(i),this.updateIcon(!1,!1,i),this.iconDictionaryService.getActorsDictionary().delete(i)}setAsWorkobject(t,i){if(t){this.updateIcon(!1,!0,i),this.selectWorkObject(i),this.deselectActor(i);const r=this.iconDictionaryService.getFullDictionary().get(i);this.iconDictionaryService.getWorkObjectsDictionary().add(r,i)}else this.deselectWorkobject(i),this.updateIcon(!1,!1,i),this.iconDictionaryService.getWorkObjectsDictionary().delete(i)}selectActor(t){const i=this.domainConfigurationTypes.value;i.actors.includes(t)||(i.actors.push(t),this.domainConfigurationTypes.next(i),this.updateActorSubject())}selectWorkObject(t){const i=this.domainConfigurationTypes.value;i.workObjects.includes(t)||(i.workObjects.push(t),this.domainConfigurationTypes.next(i),this.updateWorkObjectSubject())}deselectActor(t){this.domainConfigurationTypes&&this.domainConfigurationTypes.next({name:this.domainConfigurationTypes.value.name,actors:this.domainConfigurationTypes.value.actors.filter(i=>!i.includes(t)),workObjects:this.domainConfigurationTypes.value.workObjects}),this.updateActorSubject()}deselectWorkobject(t){this.domainConfigurationTypes&&this.domainConfigurationTypes.next({name:this.domainConfigurationTypes.value.name,actors:this.domainConfigurationTypes.value.actors,workObjects:this.domainConfigurationTypes.value.workObjects.filter(i=>!i.includes(t))}),this.updateWorkObjectSubject()}setSelectedWorkObject(t){const i=this.domainConfigurationTypes.value;i.workObjects=t,this.domainConfigurationTypes.next(i),this.updateWorkObjectSubject()}setSelectedActors(t){const i=this.domainConfigurationTypes.value;i.actors=t,this.domainConfigurationTypes.next(i),this.updateActorSubject()}updateActorSubject(){this.selectedActors$.next(this.domainConfigurationTypes.value.actors),this.configurationHasChanged=!0}updateWorkObjectSubject(){this.selectedWorkobjects$.next(this.domainConfigurationTypes.value.workObjects),this.configurationHasChanged=!0}resetDomain(){const t=this.configurationService.createMinimalConfigurationWithDefaultIcons();this.selectedWorkobjects$.value.forEach(i=>{t.workObjects.has(i)||this.deselectWorkobject(i)}),this.selectedActors$.value.forEach(i=>{t.actors.has(i)||this.deselectActor(i)}),this.domainConfigurationTypes.next({name:t.name,actors:t.actors.keysArray(),workObjects:t.workObjects.keysArray()}),this.updateAllIconBehaviourSubjects()}cancel(){this.domainConfigurationTypes.next(this.configurationService.getCurrentConfigurationNamesWithoutPrefix()),this.updateAllIconBehaviourSubjects(),this.resetToInitialConfiguration()}resetToInitialConfiguration(){this.updateActorSubject(),this.updateWorkObjectSubject()}saveDomain(t,i=!1){const r=[],o=[];if(this.configurationHasChanged){const a=this.createDomainConfiguration(),s=a.actors.keysArray();t?.actors.forEach(l=>{!s?.includes(l)&&!r.includes(l)&&r.push(l)});const c=a.workObjects.keysArray();t?.workobjects.forEach(l=>{!c?.includes(l)&&!o.includes(l)&&o.push(l)}),!r.length&&!o.length&&(this.changedDomainCofiguration=a,this.updateIcons(a),this.storageService.setStoredDomainConfiguration(this.changedDomainCofiguration),this.snackbar.open(i?"Configuration imported successfully":"Configuration saved sucessfully",void 0,{duration:Lr,panelClass:y1}))}else this.snackbar.open(i?"No configuration to be imported":"No configuration to be saved",void 0,{duration:Lr,panelClass:Bs});if(r.length||o.length){if(r.length){const a=r.join(", ");this.snackbar.open(`The following icons are already in use as actors and cannot be changed: ${a}`,void 0,{duration:6e3,panelClass:Bs})}if(o.length){const a=o.join(", ");this.snackbar.open(`The following icons are already in use as workobjects and cannot be changed: ${a}`,void 0,{duration:6e3,panelClass:Bs})}}}exportDomain(){this.configurationService.exportConfiguration()}getAndClearSavedConfiguration(){const t=this.changedDomainCofiguration;return this.changedDomainCofiguration=void 0,t}createDomainConfiguration(){const t=new tn,i=new tn;return this.domainConfigurationTypes.value.actors.forEach(r=>{t.add(this.iconDictionaryService.getIconSource(r),r)}),this.domainConfigurationTypes.value.workObjects.forEach(r=>{i.add(this.iconDictionaryService.getIconSource(r),r)}),{name:this.domainConfigurationTypes.value.name||"",actors:t,workObjects:i}}addNewIcon(t){const i=new tn;i.add(this.getSrcForIcon(t),t),this.iconDictionaryService.addIconsToCss(i),this.addIconToAllIconList(t)}addIconToAllIconList(t){this.allIconListItems.add(new Qt({name:t,svg:this.getSrcForIcon(t),isActor:this.isIconActor(t),isWorkObject:this.isIconWorkObject(t)}),t)}updateIcon(t,i,r){const o=this.getIconForName(r),a=o.value;a.isActor=t,a.isWorkObject=i,o.next(a)}updateAllIconBehaviourSubjects(){const t=this.domainConfigurationTypes.value;this.allIconListItems.keysArray().forEach(i=>{t.actors.includes(i)?this.updateIcon(!0,!1,i):t.workObjects.includes(i)?this.updateIcon(!1,!0,i):this.updateIcon(!1,!1,i)})}getSrcForIcon(t){let i;i=t.includes(Z.DOMAINSTORY)?Vs(t):t;const r=this.iconDictionaryService.getIconSource(i);return r?r.startsWith("data")?r:"data:image/svg+xml,"+r:""}updateIcons(t){this.allIconListItems.keysArray().forEach(i=>this.setAsUnassigned(i,this.isIconActor(i))),t.actors.keysArray().forEach(i=>this.setAsActor(!0,i)),t.workObjects.keysArray().forEach(i=>this.setAsWorkobject(!0,i))}static#e=this.\u0275fac=function(i){return new(i||e)(N($c),N(Qa),N(kS),N(Br),N(xy),N(jo),N(dl))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const p6="autosaveConfiguration",m6={activated:!0,interval:30,amount:5};let g6=(()=>{class e{constructor(t){this.storageService=t,this.configuration=m6,this.configurationSubject=new MB(1),this.configuration$=this.configurationSubject.asObservable(),this.initializeConfiguration()}initializeConfiguration(){this.loadConfiguration(),this.configurationSubject.next(this.configuration)}setConfiguration(t){try{return this.configuration=t,this.saveConfiguration(),this.configurationSubject.next(t),!0}catch{return!1}}loadConfiguration(){this.configuration=this.storageService.get(p6)??m6}saveConfiguration(){this.storageService.set(p6,this.configuration)}static#e=this.\u0275fac=function(i){return new(i||e)(N(xy))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cme(e,n){if(1&e){const t=tr();j(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),Fe(3,"Autosave Options"),W()(),j(4,"mat-card-content",1)(5,"div",2),at(6,"input",3,4),j(8,"mat-label"),Fe(9,"Enabled"),W()(),j(10,"div",5)(11,"mat-label"),Fe(12,"Interval"),W(),at(13,"input",6,7),W(),j(15,"div",5)(16,"mat-label"),Fe(17,"Amount"),W(),at(18,"input",6,8),W(),j(20,"button",9),Le("click",function(){yn(t);const r=er(7),o=er(19),a=er(14);return bn(st().save(r.checked,+o.value,+a.value))}),Fe(21," Apply "),W()()()}if(2&e){const t=n.ngIf;ye(6),Ae("checked",t.activated),ye(7),Ae("value",t.interval),ye(5),Ae("value",t.amount)}}let lme=(()=>{class e{constructor(t,i){this.autosaveConfiguration=t,this.snackbar=i}save(t,i,r){this.autosaveConfiguration.setConfiguration({activated:t,amount:i,interval:r})?this.snackbar.open("Settings for Autosave saved",void 0,{duration:Lr,panelClass:y1}):this.snackbar.open("Unable to save settings for Autosave - please try again",void 0,{duration:4e3,panelClass:nN})}static#e=this.\u0275fac=function(i){return new(i||e)(T(g6),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosave-options"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"cardContent"],[1,"alignSelfCenter"],["type","checkbox",3,"checked"],["activated",""],[1,"inputContainer"],["min","1","type","number",1,"numberInput",3,"value"],["interval",""],["amount",""],["mat-raised-button","","color","primary",1,"saveButton",3,"click"]],template:function(i,r){1&i&&(et(0,cme,22,3,"mat-card",0),$t(1,"async")),2&i&&Ae("ngIf",Ut(1,1,r.autosaveConfiguration.configuration$))},dependencies:[co,ps,xu,AS,u6,h6,d6,fa],styles:[".autosaveEnabled[_ngcontent-%COMP%], .autosaveInterval[_ngcontent-%COMP%]{display:inline-grid;grid-template-columns:120px auto;width:300px;grid-row-gap:5px;height:20px}.enableButton[_ngcontent-%COMP%]{justify-self:start}.autosaveEnabled[_ngcontent-%COMP%]{padding-bottom:2px}.autosaveInterval[_ngcontent-%COMP%]{padding-bottom:10px}.autosaveIntervalSpan[_ngcontent-%COMP%]{padding-top:2px;justify-self:start}.saveButton[_ngcontent-%COMP%]{align-self:end;right:0;margin-left:-5px}.cardContent[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.inputContainer[_ngcontent-%COMP%]{display:inline-grid;width:-moz-fit-content;width:fit-content}.numberInput[_ngcontent-%COMP%]{justify-self:end;width:64px}.alignSelfCenter[_ngcontent-%COMP%]{align-self:center}"]})}return e})();const MS="autosaveDrafts";let Dy=(()=>{class e{constructor(t,i,r,o,a,s,c){this.autosaveConfiguration=t,this.exportService=i,this.iconDictionaryService=r,this.rendererService=o,this.snackbar=a,this.storageService=s,this.titleService=c,this.autosavedDraftsChanged$=new Y,this.autosaveConfiguration.configuration$.subscribe(l=>this.updateConfiguration(l))}loadCurrentDrafts(){const t=this.readDrafts();return this.sortDrafts(t),t}loadDraft(t){const r=Cp(t.configAndDST.domain),o=JSON.parse(t.configAndDST.dst);this.titleService.updateTitleAndDescription(t.title,t.description,!1);const a=this.iconDictionaryService.getElementsOfType(o,Z.ACTOR),s=this.iconDictionaryService.getElementsOfType(o,Z.WORKOBJECT);this.iconDictionaryService.updateIconRegistries(a,s,r),this.rendererService.importStory(o,!0,r,!1)}removeAllDrafts(){this.storageService.set(MS,[]),this.autosavedDraftsChanged$.next()}loadLatestDraft(){const t=this.readDrafts();0!==t.length&&this.loadDraft(t[0])}updateConfiguration(t){this.stopTimer(),t.activated&&this.startTimer(t.interval,t.amount)}stopTimer(){this.autosaveTimer&&(clearInterval(this.autosaveTimer),this.autosaveTimer=void 0)}startTimer(t,i){this.autosaveTimer=setInterval(()=>{const r=this.loadCurrentDrafts(),o=this.createDraft();let a=i>0;if(r.length>0&&(a=a&&!this.isSame(o,r[0])),a&&!this.isDraftEmpty(o)){for(r.unshift(o);r.length>i;)r.pop();this.writeDrafts(r),this.snackbar.open("Draft Saved",void 0,{panelClass:Bs,duration:Lr}),this.autosavedDraftsChanged$.next()}},1e3*t)}isDraftEmpty(t){return t.title===pv&&t.description===mv&&0===JSON.parse(t.configAndDST.dst).length}isSame(t,i){return t.title===i.title&&t.description===i.description&&JSON.stringify(t.configAndDST)===JSON.stringify(i.configAndDST)}writeDrafts(t){this.storageService.set(MS,t)}readDrafts(){return this.storageService.get(MS)??[]}createDraft(){const t=JSON.stringify(this.rendererService.getStory(),null,2),i=this.exportService.createConfigAndDST(t),r=(new Date).toString().slice(0,25);return{title:this.titleService.getTitle(),description:this.titleService.getDescription(),configAndDST:i,date:r}}sortDrafts(t){t.sort((i,r)=>Date.parse(i.date)>Date.parse(r.date)?0:1)}static#e=this.\u0275fac=function(i){return new(i||e)(N(g6),N(Ey),N(Qa),N(wy),N(dl),N(xy),N(Br))};static#t=this.\u0275prov=Se({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dme=0;const IS=new Ce("CdkAccordion");let ume=(()=>{class e{constructor(){this._stateChanges=new Y,this._openCloseAllActions=new Y,this.id="cdk-accordion-"+dme++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=rn(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Yt([{provide:IS,useExisting:e}]),Tr]})}return e})(),hme=0,fme=(()=>{class e{get expanded(){return this._expanded}set expanded(t){t=rn(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t)}constructor(t,i,r){this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=ee.EMPTY,this.closed=new Xt,this.opened=new Xt,this.destroyed=new Xt,this.expandedChange=new Xt,this.id="cdk-accordion-child-"+hme++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}static#e=this.\u0275fac=function(i){return new(i||e)(T(IS,12),T(No),T(KB))};static#t=this.\u0275dir=Me({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Yt([{provide:IS,useValue:void 0}])]})}return e})(),pme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({})}return e})();const mme=["body"];function gme(e,n){}const vme=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],_me=["mat-expansion-panel-header","*","mat-action-row"];function yme(e,n){1&e&&at(0,"span",2),2&e&&Ae("@indicatorRotate",st()._getExpandedState())}const bme=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xme=["mat-panel-title","mat-panel-description","*"],OS=new Ce("MAT_ACCORDION"),v6="225ms cubic-bezier(0.4,0.0,0.2,1)",_6={indicatorRotate:Qh("indicatorRotate",[Xa("collapsed, void",ar({transform:"rotate(0deg)"})),Xa("expanded",ar({transform:"rotate(180deg)"})),Lc("expanded <=> collapsed, void => collapsed",Fc(v6))]),bodyExpansion:Qh("bodyExpansion",[Xa("collapsed, void",ar({height:"0px",visibility:"hidden"})),Xa("expanded",ar({height:"*",visibility:""})),Lc("expanded <=> collapsed, void => collapsed",Fc(v6))])},y6=new Ce("MAT_EXPANSION_PANEL");let wme=(()=>{class e{constructor(t,i){this._template=t,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||e)(T(ro),T(y6,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]})}return e})(),Eme=0;const b6=new Ce("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let x6=(()=>{class e extends fme{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=rn(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,i,r,o,a,s,c){super(t,i,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Xt,this.afterCollapse=new Xt,this._inputChanges=new Y,this._headerId="mat-expansion-panel-header-"+Eme++,this._bodyAnimationDone=new Y,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Ao((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{"void"!==l.fromState&&("expanded"===l.toState?this.afterExpand.emit():"collapsed"===l.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Wh(null),Pr(()=>this.expanded&&!this._portal),Ps(1)).subscribe(()=>{this._portal=new av(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,i=this._body.nativeElement;return t===i||i.contains(t)}return!1}static#e=this.\u0275fac=function(i){return new(i||e)(T(OS,12),T(No),T(KB),T(oo),T(qt),T($i,8),T(b6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&oi(o,wme,5),2&i){let a;Vt(a=jt())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(1&i&&wi(mme,5),2&i){let o;Vt(o=jt())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){2&i&&Ct("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Yt([{provide:OS,useValue:void 0},{provide:y6,useExisting:e}]),dt,Tr],ngContentSelectors:_me,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){1&i&&(bi(vme),_t(0),j(1,"div",0,1),Le("@bodyExpansion.done",function(a){return r._bodyAnimationDone.next(a)}),j(3,"div",2),_t(4,1),et(5,gme,0,0,"ng-template",3),W(),_t(6,2),W()),2&i&&(ye(1),Ae("@bodyExpansion",r._getExpandedState())("id",r.id),hn("aria-labelledby",r._headerId),ye(4),Ae("cdkPortalOutlet",r._portal))},dependencies:[Pd],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_6.bodyExpansion]},changeDetection:0})}return e})();class Cme{}const Sme=MR(Cme);let w6=(()=>{class e extends Sme{constructor(t,i,r,o,a,s,c){super(),this.panel=t,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=ee.EMPTY;const l=t.accordion?t.accordion._stateChanges.pipe(Pr(d=>!(!d.hideToggle&&!d.togglePosition))):Co;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=To(t.opened,t.closed,l,t._inputChanges.pipe(Pr(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Pr(()=>t._containsFocus())).subscribe(()=>r.focusVia(i,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Uh(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,i){t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(i){return new(i||e)(T(x6,1),T(Ft),T(Od),T(No),T(b6,8),T($i,8),Vl("tabindex"))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,r){1&i&&Le("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),2&i&&(hn("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),z0("height",r._getHeaderHeight()),Ct("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[dt],ngContentSelectors:xme,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,r){1&i&&(bi(bme),j(0,"span",0),_t(1),_t(2,1),_t(3,2),W(),et(4,yme,1,1,"span",1)),2&i&&(Ct("mat-content-hide-toggle",!r._showToggle()),ye(4),Ae("ngIf",r._showToggle()))},dependencies:[co],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_6.indicatorRotate]},changeDetection:0})}return e})(),Dme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return e})(),kme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return e})(),Tme=(()=>{class e extends ume{constructor(){super(...arguments),this._ownHeaders=new wd,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=rn(t)}ngAfterContentInit(){this._headers.changes.pipe(Wh(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new vR(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Kn(e)))(r||e)}}();static#t=this.\u0275dir=Me({type:e,selectors:[["mat-accordion"]],contentQueries:function(i,r,o){if(1&i&&oi(o,w6,5),2&i){let a;Vt(a=jt())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mat-accordion-multi",r.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Yt([{provide:OS,useExisting:e}]),dt]})}return e})(),E6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa,Cn,pme,Nd]})}return e})();function Ame(e,n){if(1&e){const t=tr();j(0,"div",6)(1,"div")(2,"div",7),Fe(3),W(),j(4,"div",8),Fe(5),W()(),j(6,"button",5),Le("click",function(){const o=yn(t).$implicit;return bn(st(2).loadDraft(o))}),Fe(7," Load Draft "),W()()}if(2&e){const t=n.$implicit;ye(3),io(t.title),ye(2),io(t.date)}}function Mme(e,n){if(1&e){const t=tr();j(0,"div",2),et(1,Ame,8,2,"div",3),j(2,"div",4),at(3,"div"),j(4,"button",5),Le("click",function(){return yn(t),bn(st().removeAllDrafts())}),Fe(5," Remove All Drafts "),W()()()}if(2&e){const t=st();ye(1),Ae("ngForOf",t.drafts)}}function Ime(e,n){1&e&&Fe(0,"No drafts found.")}let Ome=(()=>{class e{constructor(t,i){this.autosaveService=t,this.snackbar=i,this.drafts=[],this.subscription=this.autosaveService.autosavedDraftsChanged$.subscribe(()=>this.initDrafts())}ngOnInit(){this.initDrafts()}initDrafts(){this.drafts=this.autosaveService.loadCurrentDrafts()}loadDraft(t){this.autosaveService.loadDraft(t),this.snackbar.open("Draft loaded",void 0,{duration:Lr,panelClass:y1})}removeAllDrafts(){this.autosaveService.removeAllDrafts()}static#e=this.\u0275fac=function(i){return new(i||e)(T(Dy),T(dl))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosaved-drafts"]],decls:10,vars:4,consts:[["class","items",4,"ngIf","ngIfElse"],["noDrafts",""],[1,"items"],["class","item border-bottom",4,"ngFor","ngForOf"],[1,"item"],["mat-raised-button","","color","primary",1,"item-button",3,"click"],[1,"item","border-bottom"],[1,"item-title"],[1,"item-date"]],template:function(i,r){if(1&i&&(j(0,"mat-accordion")(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),Fe(4," Autosaves "),W(),j(5,"mat-panel-description"),Fe(6),W()(),et(7,Mme,6,1,"div",0),W()(),et(8,Ime,1,0,"ng-template",null,1,Ed)),2&i){const o=er(9);ye(6),$0(" ",r.drafts.length?r.drafts.length:"no"," ",r.drafts.length>1?"drafts":"draft"," available "),ye(1),Ae("ngIf",r.drafts.length)("ngIfElse",o)}},dependencies:[kd,co,ps,Tme,x6,w6,kme,Dme],styles:[".items[_ngcontent-%COMP%]{padding-top:0!important}.items[_ngcontent-%COMP%] .mat-list-item-content{padding:0}.item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding:8px 0;width:400px}.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid darkgray}.item-title[_ngcontent-%COMP%]{font-weight:700;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.item-date[_ngcontent-%COMP%]{font-weight:400}.item-button[_ngcontent-%COMP%]{margin-left:1rem}mat-list-item[_ngcontent-%COMP%]{border-bottom:1px solid darkgray}"]})}return e})(),Rme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-autosave-settings"]],decls:2,vars:0,template:function(i,r){1&i&&at(0,"app-autosave-options")(1,"app-autosaved-drafts")},dependencies:[lme,Ome]})}return e})(),Pme=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-general-settings"]],decls:2,vars:0,consts:[[1,"content"]],template:function(i,r){1&i&&(j(0,"div",0),at(1,"app-autosave-settings"),W())},dependencies:[Rme],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:450px auto}"]})}return e})();var dr=function(e){return e.ICON_FILTER_ACTOR="ICON_FILTER_ACTOR",e.ICON_FILTER_WORKOBJECT="ICON_FILTER_WORKOBJECT",e.ICON_FILTER_UNASSIGNED="ICON_FILTER_UNASSIGNED",e.ICON_FILTER_NONE="ICON_FILTER_NONE",e}(dr||{});const C6=["*"];class Fme{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const n=Math.max(...this.tracker);return n>1?this.rowCount+n-1:this.rowCount}update(n,t){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(n),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map(i=>this._trackTile(i))}_trackTile(n){const t=this._findMatchingGap(n.colspan);return this._markTilePosition(t,n),this.columnIndex=t+n.colspan,new Lme(this.rowIndex,t)}_findMatchingGap(n){let t=-1,i=-1;do{this.columnIndex+n>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):(t=this.tracker.indexOf(0,this.columnIndex),-1!=t?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)))}while(i-t{class e{constructor(t,i){this._element=t,this._gridList=i,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(pa(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(pa(t))}_setStyle(t,i){this._element.nativeElement.style[t]=i}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(S6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(i,r){2&i&&hn("rowspan",r.rowspan)("colspan",r.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:C6,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(i,r){1&i&&(bi(),j(0,"div",0),_t(1),W())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size)}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size)}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size)}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size)}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0})}return e})();const Bme=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class RS{constructor(){this._rows=0,this._rowspan=0}init(n,t,i,r){this._gutterSize=k6(n),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=r}getBaseTileSize(n,t){return`(${n}% - (${this._gutterSize} * ${t}))`}getTilePosition(n,t){return 0===t?"0":ul(`(${n} + ${this._gutterSize}) * ${t}`)}getTileSize(n,t){return`(${n} * ${t}) + (${t-1} * ${this._gutterSize})`}setStyle(n,t,i){let r=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(n,i,r,o),this.setRowStyles(n,t,r,o)}setColStyles(n,t,i,r){let o=this.getBaseTileSize(i,r);n._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(o,t)),n._setStyle("width",ul(this.getTileSize(o,n.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(n){return`${this._rowspan} * ${this.getTileSize(n,1)}`}getComputedHeight(){return null}}class Vme extends RS{constructor(n){super(),this.fixedRowHeight=n}init(n,t,i,r){super.init(n,t,i,r),this.fixedRowHeight=k6(this.fixedRowHeight),Bme.test(this.fixedRowHeight)}setRowStyles(n,t){n._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),n._setStyle("height",ul(this.getTileSize(this.fixedRowHeight,n.rowspan)))}getComputedHeight(){return["height",ul(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["height",null]),n._tiles&&n._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class jme extends RS{constructor(n){super(),this._parseRatio(n)}setRowStyles(n,t,i,r){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,r),n._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),n._setStyle("paddingTop",ul(this.getTileSize(this.baseTileHeight,n.rowspan)))}getComputedHeight(){return["paddingBottom",ul(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(n){n._setListStyle(["paddingBottom",null]),n._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(n){const t=n.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}class zme extends RS{setRowStyles(n,t){let o=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);n._setStyle("top",this.getTilePosition(o,t)),n._setStyle("height",ul(this.getTileSize(o,n.rowspan)))}reset(n){n._tiles&&n._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ul(e){return`calc(${e})`}function k6(e){return e.match(/([A-Za-z%]+)$/)?e:`${e}px`}let $me=(()=>{class e{constructor(t,i){this._element=t,this._dir=i,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(pa(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${t??""}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const i=`${t??""}`;i!==this._rowHeight&&(this._rowHeight=i,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new zme:t&&t.indexOf(":")>-1?new jme(t):new Vme(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Fme);const t=this._tileCoordinator,i=this._tiles.filter(o=>!o._gridList||o._gridList===this),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,t,this.cols,r),i.forEach((o,a)=>{const s=t.positions[a];this._tileStyler.setStyle(o,s.row,s.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}static#e=this.\u0275fac=function(i){return new(i||e)(T(Ft),T(Yh,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-grid-list"]],contentQueries:function(i,r,o){if(1&i&&oi(o,D6,5),2&i){let a;Vt(a=jt())&&(r._tiles=a)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(i,r){2&i&&hn("cols",r.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Yt([{provide:S6,useExisting:e}])],ngContentSelectors:C6,decls:2,vars:0,template:function(i,r){1&i&&(bi(),j(0,"div"),_t(1),W())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size)}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size)}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size)}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size)}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0})}return e})(),T6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[IR,Cn,IR,Cn]})}return e})();const Ume=["button"],Gme=["*"],A6=new Ce("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),M6=new Ce("MatButtonToggleGroup"),Wme={provide:Rr,useExisting:y(()=>R6),multi:!0};let I6=0;class O6{constructor(n,t){this.source=n,this.value=t}}let R6=(()=>{class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(t){this._vertical=rn(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(i=>i.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=rn(t),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=rn(t),this._markButtonsForCheck()}constructor(t,i){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+I6++,this.valueChange=new Xt,this.change=new Xt,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new SS(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(t){const i=new O6(t,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,i,r=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,r)):this._updateModelValue(t,r)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=t.value&&i===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===t);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(t,i){i&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(T(No),T(A6,8))};static#t=this.\u0275dir=Me({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,r,o){if(1&i&&oi(o,P6,5),2&i){let a;Vt(a=jt())&&(r._buttonToggles=a)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(i,r){2&i&&(hn("aria-disabled",r.disabled),Ct("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Yt([Wme,{provide:M6,useExisting:e}])]})}return e})();const Yme=Fw(class{});let P6=(()=>{class e extends Yme{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const i=rn(t);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=rn(t)}constructor(t,i,r,o,a,s){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Xt;const c=Number(a);this.tabIndex=c||0===c?c:null,this.buttonToggleGroup=t,this.appearance=s&&s.appearance?s.appearance:"standard"}ngOnInit(){const t=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I6++,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector()||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new O6(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static#e=this.\u0275fac=function(i){return new(i||e)(T(M6,8),T(No),T(Ft),T(Od),Vl("tabindex"),T(A6,8))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(i,r){if(1&i&&wi(Ume,5),2&i){let o;Vt(o=jt())&&(r._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(i,r){1&i&&Le("focus",function(){return r.focus()}),2&i&&(hn("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),Ct("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[dt],ngContentSelectors:Gme,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){if(1&i&&(bi(),j(0,"button",0,1),Le("click",function(){return r._onButtonClick()}),j(2,"span",2),_t(3),W()(),at(4,"span",3)(5,"span",4)),2&i){const o=er(1);Ae("id",r.buttonId)("disabled",r.disabled||null),hn("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),ye(5),Ae("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[jg],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:0.04;--mat-standard-button-toggle-focus-state-layer-opacity:0.12;color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0})}return e})(),N6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Cn,zg,Cn]})}return e})(),qme=(()=>{class e{get name(){return this.iconName}get id(){return"domain-configuration-icon-"+this.iconName}constructor(t){this.domainCustomizationService=t,this.iconName="",this.iconInitiated=!1,this.icon=new Qt({}),this.isActor=!1,this.isWorkobject=!1,this.isNone=!0}ngOnInit(){this.icon=this.domainCustomizationService.getIconForName(this.iconName),this.icon&&(this.icon.subscribe(t=>{this.isActor=t.isActor,this.isWorkobject=t.isWorkObject,this.isNone=!(t.isActor||t.isWorkObject)}),this.isActor=this.icon.value.isActor,this.isWorkobject=this.icon.value.isWorkObject,this.isNone=!(this.icon.value.isActor||this.icon.value.isWorkObject))}ngAfterViewChecked(){this.createIcon()}createIcon(){const t=document.getElementById(this.id);t&&!this.iconInitiated&&(t.src=""+this.icon.value?.svg,this.iconInitiated=!0)}toggleNone(){this.domainCustomizationService.setAsUnassigned(this.iconName,this.icon.value.isActor)}toggleActor(){this.domainCustomizationService.setAsActor(!0,this.iconName)}toggleWorkobject(){this.domainCustomizationService.setAsWorkobject(!0,this.iconName)}static#e=this.\u0275fac=function(i){return new(i||e)(T(Sy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-icon-list-item"]],inputs:{iconName:"iconName"},decls:16,vars:13,consts:[[1,"IconContainer"],[1,"content"],["src","",1,"icon",3,"id","alt"],[1,"name"],[1,"footer"],[3,"value","checked","change"],[1,"toggleButtonTitle"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1),at(2,"img",2),j(3,"div",3),Fe(4),W()(),j(5,"div",4)(6,"mat-button-toggle-group")(7,"mat-button-toggle",5),Le("change",function(){return r.toggleNone()}),j(8,"span",6),Fe(9,"None"),W()(),j(10,"mat-button-toggle",5),Le("change",function(){return r.toggleActor()}),j(11,"span",6),Fe(12,"Actor"),W()(),j(13,"mat-button-toggle",5),Le("change",function(){return r.toggleWorkobject()}),j(14,"span",6),Fe(15,"Workobject"),W()()()()()),2&i&&(ye(2),Cc("id",r.id),Cc("alt",r.name),ye(2),io(r.name),ye(3),Ae("value",r.isNone)("checked",r.isNone),ye(3),Ct("activeMatButtonActor",r.isActor),Ae("value",r.isActor)("checked",r.isActor),ye(3),Ct("activeMatButtonWorkObject",r.isWorkobject),Ae("value",r.isWorkobject)("checked",r.isWorkobject))},dependencies:[R6,P6],styles:[".IconContainer[_ngcontent-%COMP%]{width:170px;height:170px}.content[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto;justify-items:center}.icon[_ngcontent-%COMP%]{width:50px;height:50px}.name[_ngcontent-%COMP%]{word-wrap:anywhere;max-height:75px;overflow:hidden;padding-bottom:2px}.footer[_ngcontent-%COMP%]{display:flex;justify-content:center}.footer[_ngcontent-%COMP%] .mat-button-toggle-label-content{font-size:10pt!important;padding:0 5px!important;line-height:inherit!important}.footer[_ngcontent-%COMP%] .activeMatButtonActor button{background-color:#43acbf;color:#fff}.footer[_ngcontent-%COMP%] .activeMatButtonWorkObject button{background-color:#0168b7;color:#fff}"]})}return e})(),Kme=(()=>{class e{constructor(){this.iconInitiated=!1}get id(){return"domain-configuration-details-icon-"+this.icon.name.toLowerCase()+"-"+(this.icon.isWorkObject?"workobject":"actor")}get name(){return this.icon.name}ngAfterViewChecked(){this.createIcon()}createIcon(){const t=document.getElementById(this.id);t&&!this.iconInitiated&&(t.src=""+this.icon.svg,this.iconInitiated=!0)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-details-list-item"]],inputs:{icon:"icon"},decls:4,vars:4,consts:[[1,"detailsListItem"],[1,"icon",3,"id","alt","src"],[1,"iconName"]],template:function(i,r){1&i&&(j(0,"div",0),at(1,"img",1),j(2,"mat-label",2),Fe(3),W()()),2&i&&(ye(1),Cc("id",r.id),Cc("alt",r.name),Ae("src",r.icon.svg,bm),ye(2),io(r.icon.name))},dependencies:[xu],styles:[".icon[_ngcontent-%COMP%]{width:20px;height:20px;padding-right:3px}.detailsListItem[_ngcontent-%COMP%]{display:flex;justify-items:center;align-items:center;width:250px}.iconName[_ngcontent-%COMP%]{max-width:225px;word-wrap:anywhere;white-space:pre-wrap!important}"]})}return e})();function Xme(e,n){if(1&e){const t=tr();j(0,"mat-list-item",7),Le("dragover",function(r){return yn(t),bn(st().allowDrop(r,"actorList"))})("dragstart",function(){const o=yn(t).index;return bn(st().onDragStart(o,"actorList"))})("drop",function(r){const o=yn(t),a=o.$implicit,s=o.index;return bn(st().onDrop(r,a,!0,s))}),at(1,"app-details-list-item",8),W()}if(2&e){const t=n.$implicit,i=st();ye(1),Ae("icon",i.getIconForName(t))}}function Zme(e,n){if(1&e){const t=tr();j(0,"mat-list-item",7),Le("dragover",function(r){return yn(t),bn(st().allowDrop(r,"workobjectList"))})("dragstart",function(){const o=yn(t).index;return bn(st().onDragStart(o,"workobjectList"))})("drop",function(r){const o=yn(t),a=o.$implicit,s=o.index;return bn(st().onDrop(r,a,!1,s))}),at(1,"app-details-list-item",8),W()}if(2&e){const t=n.$implicit,i=st();ye(1),Ae("icon",i.getIconForName(t))}}let Qme=(()=>{class e{constructor(t,i){this.customizationService=t,this.draggedList="",this.draggedIndex=0,this.selectedActors$=this.customizationService.selectedActors$,this.selectedWorkobjects$=this.customizationService.selectedWorkobjects$,this.domainName=i.domainName$}ngOnInit(){}changeName(t){this.customizationService.changeName(t.target.value)}getIconForName(t){return this.customizationService.getIconForName(t).value}allowDrop(t,i){this.draggedList===i&&t.preventDefault()}onDrop(t,i,r,o){let a;a=r?this.selectedActors$:this.selectedWorkobjects$;const s=a.value,c=s[this.draggedIndex];s.splice(this.draggedIndex,1),s.splice(o,0,c),a.next(s),r?this.customizationService.setSelectedActors(s):this.customizationService.setSelectedWorkObject(s)}onDragStart(t,i){this.draggedList=i,this.draggedIndex=t}static#e=this.\u0275fac=function(i){return new(i||e)(T(Sy),T(Br))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-domain-details"]],decls:20,vars:9,consts:[[1,"details","smallScrollbar"],[1,"domainDetails","bottom-border"],[1,"inputWidth"],["matInput","","type","text",3,"value","input"],[1,"actorList","bottom-border"],["class","compactItem","draggable","true",3,"dragover","dragstart","drop",4,"ngFor","ngForOf"],[1,"workobjectList"],["draggable","true",1,"compactItem",3,"dragover","dragstart","drop"],[3,"icon"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div",1)(2,"h3"),Fe(3,"Icon Set name"),W(),j(4,"form")(5,"mat-form-field",2)(6,"input",3),Le("input",function(a){return r.changeName(a)}),$t(7,"async"),W()()()(),j(8,"div",4)(9,"h3"),Fe(10,"Order of actors"),W(),j(11,"mat-list"),et(12,Xme,2,1,"mat-list-item",5),$t(13,"async"),W()(),j(14,"div",6)(15,"h3"),Fe(16,"Order of work objects"),W(),j(17,"mat-list"),et(18,Zme,2,1,"mat-list-item",5),$t(19,"async"),W()()()),2&i&&(ye(6),Ae("value",Ut(7,3,r.domainName)),ye(6),Ae("ngForOf",Ut(13,5,r.selectedActors$)),ye(6),Ae("ngForOf",Ut(19,7,r.selectedWorkobjects$)))},dependencies:[kd,Og,Eg,jh,i6,r6,_y,xp,Kme,fa],styles:[".details[_ngcontent-%COMP%]{display:grid;grid-template-rows:68px auto auto;min-height:100vh;grid-row-gap:1px;overflow-y:scroll;overflow-x:hidden;width:250px;border-left:solid 1px #ccc}.domainDetails[_ngcontent-%COMP%]{margin-top:10px}.domainDetails[_ngcontent-%COMP%] .mat-mdc-form-field-infix{border:none;padding-bottom:0!important;padding-top:0!important}.domainDetails[_ngcontent-%COMP%] .mdc-text-field{padding-left:0!important}.compactItem[_ngcontent-%COMP%]{height:40px!important}.fullWidth[_ngcontent-%COMP%]{width:100%;padding-left:15px}.inputWidth[_ngcontent-%COMP%]{width:200px;padding-left:15px;height:46px}h3[_ngcontent-%COMP%]{padding-left:15px;margin-bottom:0;font-weight:700}mat-list[_ngcontent-%COMP%]{overflow:auto;padding-top:0}.bottom-border[_ngcontent-%COMP%]{border-bottom:2px solid #ccc}"]})}return e})();function Jme(e,n){if(1&e&&(j(0,"mat-grid-tile",25),at(1,"app-icon-list-item",26),W()),2&e){const t=n.$implicit;Ae("colspan",1)("rowspan",1),ye(1),Ae("iconName",t)}}let ege=(()=>{class e{constructor(t,i,r,o){this.configurationService=t,this.iconDictionaryService=i,this.domainCustomizationService=r,this.elementRegistryService=o,this.filter=new Qt(dr.ICON_FILTER_NONE),this.selectedActors=new Qt([]),this.selectedWorkobjects=new Qt([]),this.allIconNames=new Qt([]),this.allFilteredIconNames=new Qt([]),this.domainConfigurationTypes=this.domainCustomizationService.getDomainConfiguration().value,this.allIcons=new Qt(this.iconDictionaryService.getFullDictionary()),this.allIcons.subscribe(a=>{this.allIconNames.next(a.keysArray().sort(this.sortByName))}),this.selectedActors=this.domainCustomizationService.selectedActors$,this.selectedWorkobjects=this.domainCustomizationService.selectedWorkobjects$}ngOnInit(){this.filter.subscribe(t=>{let i=this.getFilteredNamesForType(t);this.allFilteredIconNames.next(i.sort(this.sortByName))})}sortByName(t,i){return t.includes("_custom")==i.includes("_custom")?t{if(s.target){const c=s.target.result;this.iconDictionaryService.addIMGToIconDictionary(c,a),this.iconDictionaryService.registerIconForBPMN(a,c),this.allIcons.next(this.iconDictionaryService.getFullDictionary()),this.filter.next(this.filter.value),this.domainCustomizationService.addNewIcon(a)}},r.readAsDataURL(i)}}startDomainImport(){document.getElementById("importDomain")?.click()}importDomain(){const t=document.getElementById("importDomain").files[0],i=new FileReader;i.onloadend=r=>{const a=Cp(JSON.parse(r.target?.result));this.configurationService.loadConfiguration(a,!1),this.domainCustomizationService.importConfiguration(a)},i.readAsText(t)}filterForActors(){this.filter.next(this.filter.value!==dr.ICON_FILTER_ACTOR?dr.ICON_FILTER_ACTOR:dr.ICON_FILTER_NONE)}filterForWorkobjects(){this.filter.next(this.filter.value!==dr.ICON_FILTER_WORKOBJECT?dr.ICON_FILTER_WORKOBJECT:dr.ICON_FILTER_NONE)}filterForUnassigned(){this.filter.next(this.filter.value!==dr.ICON_FILTER_UNASSIGNED?dr.ICON_FILTER_UNASSIGNED:dr.ICON_FILTER_NONE)}filterByNameAndType(t){const i=this.getFilteredNamesForType(this.filter.value).filter(r=>r.toLowerCase().includes(t.target.value.toLowerCase()));this.allFilteredIconNames.next(i.sort(this.sortByName))}getFilteredNamesForType(t){let i=[];switch(t){case dr.ICON_FILTER_NONE:i=this.allIconNames.value;break;case dr.ICON_FILTER_ACTOR:i=this.allIconNames.value.filter(r=>this.domainCustomizationService.isIconActor(r));break;case dr.ICON_FILTER_WORKOBJECT:i=this.allIconNames.value.filter(r=>this.domainCustomizationService.isIconWorkObject(r));break;case dr.ICON_FILTER_UNASSIGNED:i=this.allIconNames.value.filter(r=>!this.domainCustomizationService.isIconActor(r)&&!this.domainCustomizationService.isIconWorkObject(r))}return i}static#e=this.\u0275fac=function(i){return new(i||e)(T($c),T(Qa),T(Sy),T(jo))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-domain-configuration"]],decls:53,vars:15,consts:[[1,"content"],[1,"header"],[1,"buttons"],["mat-button","","title","Upload Icon",3,"click"],[1,"material-icons-outlined","materialIconButton"],["type","file","multiple","","accept",".svg, image/png, image/jpeg, image/gif, image/bpmn","id","importIcon","name","file","onclick","this.value=null",2,"display","none",3,"change"],["mat-button","","title","Reset to default icon set",1,"button",3,"click"],[1,"searchbar"],["mat-button","","title","Unassigned Icons",3,"click"],["mat-button","","title","Actors",3,"click"],["mat-button","","title","Workobjects",3,"click"],["matInput","","type","text","placeholder","Filter by name",1,"textInput",3,"input"],[1,"saveButtons"],["mat-button","","title","Export icon set",3,"click"],["mat-button","","title","Import icon set",3,"click"],["type","file","accept",".domain","id","importDomain","name","file","onclick","this.value=null",2,"display","none",3,"change"],[1,"divider"],["mat-button","","title","Cancel changes",3,"click"],["mat-button","","title","Save icon set",3,"click"],[1,"domainConfiguration"],[1,"icons"],[1,"iconList","smallScrollbar"],["cols","8","rowHeight","170px"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"domainDetails"],[3,"colspan","rowspan"],[1,"iconListItem",3,"iconName"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"button",3),Le("click",function(){return r.startIconUpload()}),j(5,"span",4),Fe(6,"upload"),W(),j(7,"input",5),Le("change",function(){return r.importIcon()}),W()(),j(8,"button",6),Le("click",function(){return r.loadMinimalIconConfigurationWithDefaultIcons()}),j(9,"span",4),Fe(10," home "),W()()(),j(11,"div",7),at(12,"div"),j(13,"div"),Fe(14,"Filter:"),W(),j(15,"button",8),Le("click",function(){return r.filterForUnassigned()}),$t(16,"async"),j(17,"span"),Fe(18,"None"),W()(),at(19,"div"),j(20,"button",9),Le("click",function(){return r.filterForActors()}),$t(21,"async"),j(22,"span"),Fe(23,"Actors"),W()(),at(24,"div"),j(25,"button",10),Le("click",function(){return r.filterForWorkobjects()}),$t(26,"async"),j(27,"span"),Fe(28,"Workobjects"),W()(),at(29,"div"),j(30,"input",11),Le("input",function(a){return r.filterByNameAndType(a)}),W()(),j(31,"div",12)(32,"button",13),Le("click",function(){return r.exportDomain()}),j(33,"span",4),Fe(34,"archive"),W()(),j(35,"button",14),Le("click",function(){return r.startDomainImport()}),j(36,"span",4),Fe(37,"unarchive"),W(),j(38,"input",15),Le("change",function(){return r.importDomain()}),W()(),at(39,"div",16),j(40,"button",17),Le("click",function(){return r.loadInitialConfiguration()}),j(41,"span",4),Fe(42,"close"),W()(),j(43,"button",18),Le("click",function(){return r.saveDomain()}),j(44,"span",4),Fe(45,"save"),W()()()(),j(46,"div",19)(47,"div",20)(48,"div",21)(49,"mat-grid-list",22),et(50,Jme,2,3,"mat-grid-tile",23),$t(51,"async"),W()()()()(),at(52,"app-domain-details",24),W()),2&i&&(ye(15),Ct("activeNone","ICON_FILTER_UNASSIGNED"===Ut(16,7,r.filter)),ye(5),Ct("activeActor","ICON_FILTER_ACTOR"===Ut(21,9,r.filter)),ye(5),Ct("activeWorkObject","ICON_FILTER_WORKOBJECT"===Ut(26,11,r.filter)),ye(25),Ae("ngForOf",Ut(51,13,r.allFilteredIconNames)))},dependencies:[kd,ps,$me,D6,xp,qme,Qme,fa],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 250px}.header[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content auto max-content;border-bottom:#ccc 2px solid;height:46px}.buttons[_ngcontent-%COMP%]{align-self:center;justify-self:left}.buttons[_ngcontent-%COMP%] .mat-button{min-width:36px}.saveButtons[_ngcontent-%COMP%]{align-self:center;display:inline-flex;justify-items:center;padding-right:5px}.saveButtons[_ngcontent-%COMP%] .mat-button{min-width:36px}.button[_ngcontent-%COMP%]{width:36px}.mat-button[_ngcontent-%COMP%]{color:#666}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.domainConfiguration[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:5px;margin-top:15px;height:100%}.icons[_ngcontent-%COMP%]{display:grid;grid-template-rows:2rem auto;height:100%;grid-row-gap:1px}.divider[_ngcontent-%COMP%]{border-left:#ccc 2px solid}.searchbar[_ngcontent-%COMP%]{display:grid;grid-template-columns:5px 40px 65px 10px 65px 10px 100px 20px 300px;margin-left:15px;margin-right:10px;align-self:center;align-items:center;justify-self:left;border-left:#ccc 2px solid;height:inherit}.activeActor[_ngcontent-%COMP%]{background-color:#42aebb;color:#fff}.activeNone[_ngcontent-%COMP%]{background-color:#e0e0e0;color:#000}.activeWorkObject[_ngcontent-%COMP%]{background-color:#42aebb;color:#fff}.textInput[_ngcontent-%COMP%]{width:300px;border:#666666 1px solid}.iconList[_ngcontent-%COMP%]{display:grid;overflow-y:scroll;height:calc(100vh - 130px)}.domainDetails[_ngcontent-%COMP%]{overflow-y:scroll;width:250px;height:calc(100vh - 65px)} .mat-grid-tile .mat-grid-tile-content{justify-content:inherit}"]})}return e})();function tge(e,n){1&e&&at(0,"app-general-settings")}function nge(e,n){1&e&&at(0,"app-domain-configuration",10)}let ige=(()=>{class e{constructor(t,i,r){this.settingsService=t,this.modelerService=i,this.domainCustomizationService=r,this.showGeneralSettings=new Qt(!1),this.showDomainCustomization=new Qt(!0)}close(){const t=this.domainCustomizationService.getAndClearSavedConfiguration();t&&this.modelerService.restart(t),this.settingsService.close()}openGeneralSettings(){this.showGeneralSettings.next(!0),this.showDomainCustomization.next(!1)}openDomainCustomization(){this.showGeneralSettings.next(!1),this.showDomainCustomization.next(!0)}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(wu),T(Sy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-settings"]],decls:19,vars:14,consts:[[1,"settings"],["color","primary",1,"toolbar"],["mat-icon-button","",1,"headerButton","noPadding",3,"click"],[1,"material-icons-outlined","materialIconButton"],[1,"paddedButton"],["mat-button","",1,"headerButton","mr-10",3,"click"],[1,"headline"],["mat-button","",1,"headerButton",3,"click"],[4,"ngIf"],["class","tab",4,"ngIf"],[1,"tab"]],template:function(i,r){1&i&&(j(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row")(3,"button",2),Le("click",function(){return r.close()}),j(4,"span",3),Fe(5," arrow_back"),W()(),j(6,"div",4)(7,"button",5),Le("click",function(){return r.openDomainCustomization()}),$t(8,"async"),j(9,"span",6),Fe(10,"Customize Icons for Your Domain"),W()(),j(11,"button",7),Le("click",function(){return r.openGeneralSettings()}),$t(12,"async"),j(13,"span",6),Fe(14,"General Settings"),W()()()()(),et(15,tge,1,0,"app-general-settings",8),$t(16,"async"),et(17,nge,1,0,"app-domain-configuration",9),$t(18,"async"),W()),2&i&&(ye(7),Ct("highlight",Ut(8,6,r.showDomainCustomization)),ye(4),Ct("highlight",Ut(12,8,r.showGeneralSettings)),ye(4),Ae("ngIf",Ut(16,10,r.showGeneralSettings)),ye(2),Ae("ngIf",Ut(18,12,r.showDomainCustomization)))},dependencies:[co,Pme,ege,ps,Ihe,c6,TS,fa],styles:["mat-toolbar[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff}app-general-settings[_ngcontent-%COMP%]{overflow-y:auto}.settings[_ngcontent-%COMP%]{display:grid;grid-template-rows:65px auto;width:100%;height:100%}.settings[_ngcontent-%COMP%] .mat-button{padding:0}.settings[_ngcontent-%COMP%] .materialIconButton[_ngcontent-%COMP%]{margin-top:0;margin-right:5px;padding:0}.highlight[_ngcontent-%COMP%]{border:2px solid white}.tab[_ngcontent-%COMP%]{display:inline-block;height:calc(100% - 10px);width:100%;overflow:hidden} .mat-tab-label, .mat-tab-label-active{height:30px!important}"]})}return e})(),rge=(()=>{class e{constructor(t,i){this.modelerService=t,this.autosaveService=i}ngOnInit(){this.modelerService.postInit(),this.autosaveService.loadLatestDraft()}static#e=this.\u0275fac=function(i){return new(i||e)(T(wu),T(Dy))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-modeler"]],decls:1,vars:0,consts:[["id","canvas"]],template:function(i,r){1&i&&at(0,"div",0)},styles:["#canvas[_ngcontent-%COMP%], #canvas[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{top:0;width:100%;height:100%;position:relative;bottom:0;overflow:hidden}"]})}return e})();function oge(e,n){1&e&&at(0,"app-settings")}let age=(()=>{class e{constructor(t,i,r,o,a,s){this.settingsService=t,this.dialogService=i,this.titleService=r,this.exportService=o,this.replayStateSerice=a,this.version=fv_version,this.showSettings$=new Qt(!1),this.showDescription$=new Qt(!0),document.onkeydown=c=>{c.ctrlKey&&"s"===c.key&&(this.exportService.isDomainStoryExportable()&&this.exportService.downloadDST(),c.preventDefault(),c.stopPropagation()),c.ctrlKey&&"l"===c.key&&(document.getElementById("import")?.click(),c.preventDefault(),c.stopPropagation()),"ArrowRight"===c.key&&this.replayStateSerice.getReplayOn()&&(c.preventDefault(),c.stopPropagation(),s.nextStep()),"ArrowLeft"===c.key&&this.replayStateSerice.getReplayOn()&&(c.preventDefault(),c.stopPropagation(),s.previousStep())}}ngOnInit(){this.showDescription$=this.titleService.showDescription$,this.showSettings$=this.settingsService.showSettings$}openLinkDialog(t,i,r){const o=new uo;o.disableClose=!1,o.autoFocus=!0,o.data=new uv(i,r,!0,!0,t),this.dialogService.openDialog(hv,o)}static#e=this.\u0275fac=function(i){return new(i||e)(T(_1),T(df),T(Br),T(Ey),T(wp),T(Ep))};static#t=this.\u0275cmp=Tt({type:e,selectors:[["app-root"]],decls:27,vars:36,consts:[["role","main",1,"content"],[4,"ngIf"],["type","color","id","colorPicker",2,"display","none"],["src","./assets/logo/dst_logo.png","height","74","width","74","alt","",3,"click"],["href","https://egon.io","target","_blank"],["href","https://github.com/WPS/egon.io/releases/latest","target","_blank"],["href","https://www.wps.de/","target","_blank"]],template:function(i,r){1&i&&(j(0,"div",0),et(1,oge,1,0,"app-settings",1),$t(2,"async"),j(3,"div"),$t(4,"async"),$t(5,"async"),$t(6,"async"),$t(7,"async"),$t(8,"async"),at(9,"input",2),j(10,"app-header"),$t(11,"async"),$t(12,"async"),W(),at(13,"app-modeler"),W(),j(14,"div"),$t(15,"async"),$t(16,"async"),j(17,"img",3),Le("click",function(){return r.openLinkDialog("https://domainstorytelling.org/","Domain-Storytelling","Check us out at: ")}),W(),j(18,"span")(19,"a",4),Fe(20,"egon.io"),W()(),j(21,"span")(22,"a",5),Fe(23),W(),Fe(24," by "),j(25,"a",6),Fe(26,"WPS"),W()()()()),2&i&&(ye(1),Ae("ngIf",Ut(2,16,r.showSettings$)),ye(2),Ct("headerAndCanvas",!Ut(4,18,r.showSettings$)&&Ut(5,20,r.showDescription$))("headerAndCanvasCollapsed",!Ut(6,22,r.showSettings$)&&!Ut(7,24,r.showDescription$))("hidden",Ut(8,26,r.showSettings$)),ye(7),Ct("header",Ut(11,28,r.showDescription$))("headerCollapsed",!Ut(12,30,r.showDescription$)),ye(4),Ct("logoContainer",!Ut(15,32,r.showSettings$))("hidden",Ut(16,34,r.showSettings$)),ye(9),io(r.version))},dependencies:[co,sme,ige,rge,fa],styles:[".content[_ngcontent-%COMP%]{height:100%;overflow:hidden}.headerAndCanvas[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-template-rows:220px auto;overflow:hidden}.headerAndCanvasCollapsed[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-template-rows:65px auto;overflow:hidden}.settings[_ngcontent-%COMP%]{height:100%}.header[_ngcontent-%COMP%]{display:grid;grid-template-rows:65px 155px}.logoContainer[_ngcontent-%COMP%]{display:flex;position:absolute;bottom:0;right:100px;align-items:flex-end}.logoContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{cursor:pointer}.logoContainer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:16px;margin-bottom:14px}.hidden[_ngcontent-%COMP%]{height:1px;width:1px}#wrapper[_ngcontent-%COMP%]{padding:16px;min-height:100%;height:100%;box-sizing:border-box}#tab-group[_ngcontent-%COMP%]{height:100%}#tab-group[_ngcontent-%COMP%] mat-tab-body[_ngcontent-%COMP%]{flex-grow:1}.mat-button-toggle-label-content[_ngcontent-%COMP%]{font-size:10pt!important;padding:0 5px!important;line-height:inherit!important} .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}"]})}return e})(),PS=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[xS,N6,a6,UR,JP,yy,T6,$B,l6,E6,CS,f6,xS,N6,a6,UR,JP,yy,T6,$B,l6,E6,CS,f6]})}return e})(),sge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa,tR,PS]})}return e})(),cge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[sge,Wa,tR,PS]})}return e})(),lge=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({imports:[Wa]})}return e})(),dge=(()=>{class e{constructor(t){this.autosaveService=t}ngDoBootstrap(t){const i=document.createElement("app-root");document.body.append(i),t.bootstrap(age)}static#e=this.\u0275fac=function(i){return new(i||e)(N(Dy))};static#t=this.\u0275mod=Rt({type:e});static#n=this.\u0275inj=kt({providers:[Dy,Ey,kS,s6,Qa,Br,wS,Ep,jo,$c,wu,GB,xw,{provide:jR,useValue:{clickAction:"noop"}}],imports:[KI,kQ,iK,cge,lge,PS]})}return e})();YY().bootstrapModule(dge).catch(e=>console.error(e))},17:ze=>{"use strict";var X=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],J=typeof globalThis>"u"?global:globalThis;ze.exports=function(){for(var le=[],Ee=0;Ee{ze(ze.s=650)}]); \ No newline at end of file