From c55514a9341a253fd8a3a9710cc37302031a85a6 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 1 Mar 2023 14:00:49 -0400 Subject: [PATCH] dev: remove fileSize limit and fit the video in the block editor #23863 --- .../dot-block-editor.component.scss | 11 +++++++ .../src/lib/nodes/video/video.node.ts | 29 +++++++++++++++---- .../main/webapp/html/dotcms-block-editor.js | 2 +- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/core-web/libs/block-editor/src/lib/components/dot-block-editor/dot-block-editor.component.scss b/core-web/libs/block-editor/src/lib/components/dot-block-editor/dot-block-editor.component.scss index a3fa700c43b4..5343061ecdc1 100644 --- a/core-web/libs/block-editor/src/lib/components/dot-block-editor/dot-block-editor.component.scss +++ b/core-web/libs/block-editor/src/lib/components/dot-block-editor/dot-block-editor.component.scss @@ -256,6 +256,17 @@ } } + video { + max-width: 100%; + max-height: 100%; + height: auto; + } + + .vertical-video { + max-height: 400px; + width: auto; + } + .node-container { margin-bottom: $spacing-3; } diff --git a/core-web/libs/block-editor/src/lib/nodes/video/video.node.ts b/core-web/libs/block-editor/src/lib/nodes/video/video.node.ts index 6c0c6b1798d8..29aba3c2337f 100644 --- a/core-web/libs/block-editor/src/lib/nodes/video/video.node.ts +++ b/core-web/libs/block-editor/src/lib/nodes/video/video.node.ts @@ -35,6 +35,13 @@ export const VideoNode = Node.create({ parseHTML: (element) => element.getAttribute('height'), renderHTML: (attributes) => ({ height: attributes.height }) }, + orientation: { + default: null, + parseHTML: (element) => element.getAttribute('orientation'), + renderHTML: ({ height, width }) => ({ + orientation: height > width ? 'vertical' : 'horizontal' + }) + }, data: { default: null, parseHTML: (element) => element.getAttribute('data'), @@ -84,10 +91,18 @@ export const VideoNode = Node.create({ }, renderHTML({ HTMLAttributes }) { + const { orientation = false } = HTMLAttributes; + return [ 'div', { class: 'node-container' }, - ['video', mergeAttributes(HTMLAttributes, { controls: true })] + [ + 'video', + mergeAttributes(HTMLAttributes, { + controls: true, + class: orientation === 'vertical' ? 'vertical-video' : '' + }) + ] ]; } }); @@ -97,14 +112,18 @@ const getVideoAttrs = (attrs: DotCMSContentlet | string) => { return { src: attrs }; } - const { assetMetaData, asset, assetVersion, mimeType } = attrs; - const { width = 'auto', height = 'auto' } = assetMetaData || {}; + const { assetMetaData, asset, assetVersion, mineType } = attrs; + const { width = 'auto', height = 'auto', contentType } = assetMetaData || {}; + const orientation = height > width ? 'vertical' : 'horizontal'; return { src: assetVersion || asset, - data: attrs, + data: { + ...attrs + }, width, height, - mimeType + mineType: mineType || contentType, + orientation }; }; diff --git a/dotCMS/src/main/webapp/html/dotcms-block-editor.js b/dotCMS/src/main/webapp/html/dotcms-block-editor.js index 713a68c432bf..030b5414f742 100644 --- a/dotCMS/src/main/webapp/html/dotcms-block-editor.js +++ b/dotCMS/src/main/webapp/html/dotcms-block-editor.js @@ -1 +1 @@ -var runtime=function(s){"use strict";var v,C=Object.prototype,p=C.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},w=G.iterator||"@@iterator",$=G.asyncIterator||"@@asyncIterator",_=G.toStringTag||"@@toStringTag";function h(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{h({},"")}catch{h=function(t,e,o){return t[e]=o}}function M(r,t,e,o){var i=Object.create((t&&t.prototype instanceof k?t:k).prototype),a=new I(o||[]);return i._invoke=function B(r,t,e){var o=R;return function(i,a){if(o===Y)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return W()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var c=D(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===R)throw o=L,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=Y;var f=O(r,t,e);if("normal"===f.type){if(o=e.done?L:z,f.arg===l)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=L,e.method="throw",e.arg=f.arg)}}}(r,e,a),i}function O(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}s.wrap=M;var R="suspendedStart",z="suspendedYield",Y="executing",L="completed",l={};function k(){}function b(){}function d(){}var T={};h(T,w,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==C&&p.call(S,w)&&(T=S);var g=d.prototype=k.prototype=Object.create(T);function q(r){["next","throw","return"].forEach(function(t){h(r,t,function(e){return this._invoke(t,e)})})}function E(r,t){function e(i,a,u,c){var f=O(r[i],r,a);if("throw"!==f.type){var A=f.arg,m=A.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,c)},function(y){e("throw",y,u,c)}):t.resolve(m).then(function(y){A.value=y,u(A)},function(y){return e("throw",y,u,c)})}c(f.arg)}var o;this._invoke=function n(i,a){function u(){return new t(function(c,f){e(i,a,c,f)})}return o=o?o.then(u,u):u()}}function D(r,t){var e=r.iterator[t.method];if(e===v){if(t.delegate=null,"throw"===t.method){if(r.iterator.return&&(t.method="return",t.arg=v,D(r,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var o=O(e,r.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var n=o.arg;return n?n.done?(t[r.resultName]=n.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,l):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function H(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function j(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(H,this),this.reset(!0)}function P(r){if(r){var t=r[w];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),j(e),l}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;j(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:P(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=v),l}},s}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;if(ht&&u===ke&&"error"===t.type){const m=t;f=c&&c.call(this,m.message,m.filename,m.lineno,m.colno,m.error),!0===f&&t.preventDefault()}else f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault();return f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{203:(Ur,El,pu)=>{"use strict";function Eo(n){return"function"==typeof n}let ca=!1;const Fn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else ca&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ca=n},get useDeprecatedSynchronousErrorHandling(){return ca}};function Co(n){setTimeout(()=>{throw n},0)}const ua={closed:!0,next(n){},error(n){if(Fn.useDeprecatedSynchronousErrorHandling)throw n;Co(n)},complete(){}},Ar=Array.isArray||(n=>n&&"number"==typeof n.length);function da(n){return null!==n&&"object"==typeof n}const ha=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class We{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof We)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof ha?e.errors:e),[])}We.EMPTY=((n=new We).closed=!0,n);const pa="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ge extends We{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ua;break;case 1:if(!t){this.destination=ua;break}if("object"==typeof t){t instanceof Ge?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new gu(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new gu(this,t,e,i)}}[pa](){return this}static create(t,e,i){const r=new Ge(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class gu extends Ge{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;Eo(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ua&&(s=Object.create(e),Eo(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Fn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Fn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Co(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Co(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Fn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Fn.useDeprecatedSynchronousErrorHandling)throw i;Co(i)}}__tryOrSetError(t,e,i){if(!Fn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Fn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Co(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ss="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cl(n){return n}function fa(n){return 0===n.length?Cl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let et=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function rs(n,t,e){if(n){if(n instanceof Ge)return n;if(n[pa])return n[pa]()}return n||t||e?new Ge(n,t,e):new Ge(ua)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Fn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Fn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Fn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function YA(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ge?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ep(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ss](){return this}pipe(...e){return 0===e.length?this:fa(e)(this)}toPromise(e){return new(e=ep(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function ep(n){if(n||(n=Fn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const br=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class mu extends We{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ga extends Ge{constructor(t){super(t),this.destination=t}}let Me=(()=>{class n extends et{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[pa](){return new ga(this)}lift(e){const i=new tp(this,this);return i.operator=e,i}next(e){if(this.closed)throw new br;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew tp(t,e),n})();class tp extends Me{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):We.EMPTY}}function as(n){return n&&"function"==typeof n.schedule}function fe(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new WA(n,t))}}class WA{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new JA(t,this.project,this.thisArg))}}class JA extends Ge{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const np=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function ip(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Di=n=>{if(n&&"function"==typeof n[ss])return(n=>t=>{const e=n[ss]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Au(n))return np(n);if(ip(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Co),t))(n);if(n&&"function"==typeof n[vl])return(n=>t=>{const e=n[vl]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${da(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ml(n,t){return new et(e=>{const i=new We;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function yu(n,t){if(null!=n){if(function sp(n){return n&&"function"==typeof n[ss]}(n))return function rp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>{const r=n[ss]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(ip(n))return function op(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Au(n))return Ml(n,t);if(function ap(n){return n&&"function"==typeof n[vl]}(n)||"string"==typeof n)return function bu(n,t){if(!n)throw new Error("Iterable cannot be null");return new et(e=>{const i=new We;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[vl](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Lt(n,t){return t?yu(n,t):n instanceof et?n:new et(Di(n))}class ma extends Ge{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Aa extends Ge{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ba(n,t){if(t.closed)return;if(n instanceof et)return n.subscribe(t);let e;try{e=Di(n)(t)}catch(i){t.error(i)}return e}function nn(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(nn((r,o)=>Lt(n(r,o)).pipe(fe((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new XA(n,e)))}class XA{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ZA(t,this.project,this.concurrent))}}class ZA extends Aa{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ls(n=Number.POSITIVE_INFINITY){return nn(Cl,n)}function cs(n,t){return t?Ml(n,t):new et(np(n))}function ya(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return as(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof et?n[0]:ls(t)(cs(n,e))}function _a(){return function(t){return t.lift(new Hi(t))}}class Hi{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new lp(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class lp extends Ge{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class wl extends et{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new We,t.add(this.source.subscribe(new cp(this.getSubject(),this))),t.closed&&(this._connection=null,t=We.EMPTY)),t}refCount(){return _a()(this)}}const eb=(()=>{const n=wl.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class cp extends ga{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class tb{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function vo(){return new Me}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Eu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function rt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(rt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Mo(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Cu=gt({__forward_ref__:gt});function Je(n){return n.__forward_ref__=Je,n.toString=function(){return rt(this())},n}function he(n){return wo(n)?n():n}function wo(n){return"function"==typeof n&&n.hasOwnProperty(Cu)&&n.__forward_ref__===Je}class P extends Error{constructor(t,e){super(function Dl(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function we(n){return"string"==typeof n?n:null==n?"":String(n)}function Il(n,t){throw new P(-201,!1)}function Zn(n,t){null==n&&function tt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Y(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Sl(n){return gp(n,xl)||gp(n,Mu)}function gp(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ea(n){return n&&(n.hasOwnProperty(So)||n.hasOwnProperty(mp))?n[So]:null}const xl=gt({\u0275prov:gt}),So=gt({\u0275inj:gt}),Mu=gt({ngInjectableDef:gt}),mp=gt({ngInjectorDef:gt});var pe=(()=>((pe=pe||{})[pe.Default=0]="Default",pe[pe.Host=1]="Host",pe[pe.Self=2]="Self",pe[pe.SkipSelf=4]="SkipSelf",pe[pe.Optional=8]="Optional",pe))();let wu;function hi(n){const t=wu;return wu=n,t}function Du(n,t,e){const i=Sl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&pe.Optional?null:void 0!==t?t:void Il(rt(n))}function jr(n){return{toString:n}.toString()}var pi=(()=>((pi=pi||{})[pi.OnPush=0]="OnPush",pi[pi.Default=1]="Default",pi))(),Ii=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ii||(Ii={})),Ii))();const mt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ds={},qe=[],Tl=gt({\u0275cmp:gt}),Su=gt({\u0275dir:gt}),yr=gt({\u0275pipe:gt}),xu=gt({\u0275mod:gt}),_r=gt({\u0275fac:gt}),zr=gt({__NG_ELEMENT_ID__:gt});let cb=0;function ve(n){return jr(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===pi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||qe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ii.Emulated,id:"c"+cb++,styles:n.styles||qe,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Ou(n.inputs,i),r.outputs=Ou(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Tu).filter(Bu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(M).filter(Bu):null,r})}function hs(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Tu),i.pipeDefs=()=>("function"==typeof e?e():e).map(M)}function Tu(n){return ot(n)||_(n)}function Bu(n){return null!==n}function Fe(n){return jr(()=>({type:n.type,bootstrap:n.bootstrap||qe,declarations:n.declarations||qe,imports:n.imports||qe,exports:n.exports||qe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Ou(n,t){if(null==n)return ds;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const ue=ve;function In(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Tl]||null}function _(n){return n[Su]||null}function M(n){return n[yr]||null}function z(n,t){const e=n[xu]||null;if(!e&&!0===t)throw new Error(`Type ${rt(n)} does not have '\u0275mod' property.`);return e}function mi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Cr(n){return Array.isArray(n)&&!0===n[1]}function db(n){return 0!=(8&n.flags)}function yp(n){return 2==(2&n.flags)}function _p(n){return 1==(1&n.flags)}function vr(n){return null!==n.template}function JQ(n){return 0!=(256&n[2])}function wa(n,t){return n.hasOwnProperty(_r)?n[_r]:null}class Qw{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ai(){return Uw}function Uw(n){return n.type.prototype.ngOnChanges&&(n.setInput=XQ),qQ}function qQ(){const n=zw(this),t=n?.current;if(t){const e=n.previous;if(e===ds)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function XQ(n,t,e,i){const r=zw(n)||function ZQ(n,t){return n[jw]=t}(n,{previous:ds,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Qw(l&&l.currentValue,t,s===ds),n[i]=t}Ai.ngInherit=!0;const jw="__ngSimpleChanges__";function zw(n){return n[jw]||null}function rn(n){for(;Array.isArray(n);)n=n[0];return n}function Ep(n,t){return rn(t[n])}function Yi(n,t){return rn(t[n.index])}function mb(n,t){return n.data[t]}function Pl(n,t){return n[t]}function Si(n,t){const e=t[n];return mi(e)?e:e[0]}function Hw(n){return 4==(4&n[2])}function Cp(n){return 64==(64&n[2])}function ps(n,t){return null==t?null:n[t]}function Vw(n){n[18]=0}function Ab(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Ie={lFrame:Zw(null),bindingsEnabled:!0};function Yw(){return Ie.bindingsEnabled}function N(){return Ie.lFrame.lView}function Ke(){return Ie.lFrame.tView}function re(n){return Ie.lFrame.contextLView=n,n[8]}function oe(n){return Ie.lFrame.contextLView=null,n}function pn(){let n=Ww();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ww(){return Ie.lFrame.currentTNode}function Hr(n,t){const e=Ie.lFrame;e.currentTNode=n,e.isParent=t}function bb(){return Ie.lFrame.isParent}function yb(){Ie.lFrame.isParent=!1}function ei(){const n=Ie.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Fl(){return Ie.lFrame.bindingIndex++}function Bo(n){const t=Ie.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function f2(n,t){const e=Ie.lFrame;e.bindingIndex=e.bindingRootIndex=n,_b(t)}function _b(n){Ie.lFrame.currentDirectiveIndex=n}function $w(){return Ie.lFrame.currentQueryIndex}function Cb(n){Ie.lFrame.currentQueryIndex=n}function m2(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function qw(n,t,e){if(e&pe.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&pe.Host||(r=m2(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Ie.lFrame=Xw();return i.currentTNode=t,i.lView=n,!0}function vb(n){const t=Xw(),e=n[1];Ie.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Xw(){const n=Ie.lFrame,t=null===n?null:n.child;return null===t?Zw(n):t}function Zw(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function e0(){const n=Ie.lFrame;return Ie.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const t0=e0;function Mb(){const n=e0();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ti(){return Ie.lFrame.selectedIndex}function fs(n){Ie.lFrame.selectedIndex=n}function Vt(){const n=Ie.lFrame;return mb(n.tView,n.selectedIndex)}function Mp(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ru{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ip(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ib=!0;function xp(n){const t=Ib;return Ib=n,t}let B2=0;const Vr={};function Lu(n,t){const e=xb(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Sb(i.data,n),Sb(t,null),Sb(i.blueprint,null));const r=Tp(n,t),o=n.injectorIndex;if(a0(r)){const s=Rl(r),a=Nl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Sb(n,t){n.push(0,0,0,0,0,0,0,0,t)}function xb(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Tp(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=m0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Bp(n,t,e){!function O2(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(zr)&&(i=e[zr]),null==i&&(i=e[zr]=B2++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:R2:t}(e);if("function"==typeof o){if(!qw(t,n,i))return i&pe.Host?u0(r,0,i):d0(t,e,i,r);try{const s=o(i);if(null!=s||i&pe.Optional)return s;Il()}finally{t0()}}else if("number"==typeof o){let s=null,a=xb(n,t),l=-1,c=i&pe.Host?t[16][6]:null;for((-1===a||i&pe.SkipSelf)&&(l=-1===a?Tp(n,t):t[a+8],-1!==l&&g0(i,!1)?(s=t[1],a=Rl(l),t=Nl(l,t)):a=-1);-1!==a;){const u=t[1];if(f0(o,a,u.data)){const d=P2(a,t,e,s,i,c);if(d!==Vr)return d}l=t[a+8],-1!==l&&g0(i,t[1].data[a+8]===c)&&f0(o,a,t)?(s=u,a=Rl(l),t=Nl(l,t)):a=-1}}return r}function P2(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Op(a,s,e,null==i?yp(a)&&Ib:i!=s&&0!=(3&a.type),r&pe.Host&&o===a);return null!==u?Qu(t,s,u,a):Vr}function Op(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===e)return p}if(r){const p=s[l];if(p&&vr(p)&&p.type===e)return l}return null}function Qu(n,t,e,i){let r=n[e];const o=t.data;if(function D2(n){return n instanceof Ru}(r)){const s=r;s.resolving&&function pp(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new P(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():we(n)}(o[e]));const a=xp(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?hi(s.injectImpl):null;qw(n,i,pe.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function M2(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Uw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&hi(l),xp(a),s.resolving=!1,t0()}}return r}function f0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[_r]||Tb(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[_r]||Tb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Tb(n){return wo(n)?()=>{const t=Tb(he(n));return t&&t()}:wa(n)}function m0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const Ul="__parameters__";function zl(n,t,e){return jr(()=>{const i=function Bb(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ul)?l[Ul]:Object.defineProperty(l,Ul,{value:[]})[Ul];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ${constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xi(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Oo(e,t):t(e))}function b0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function kp(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Hu(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function j2(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function kb(n,t){const e=Hl(n,t);if(e>=0)return n[1|e]}function Hl(n,t){return function E0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Wu=Yu(zl("Optional"),8),Ju=Yu(zl("SkipSelf"),4);let Nb,Qp,Up;function Yl(n){return function Lb(){if(void 0===Qp&&(Qp=null,mt.trustedTypes))try{Qp=mt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Qp}()?.createHTML(n)||n}function O0(n){return function Qb(){if(void 0===Up&&(Up=null,mt.trustedTypes))try{Up=mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Up}()?.createHTML(n)||n}class Da{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class pU extends Da{getTypeName(){return"HTML"}}class fU extends Da{getTypeName(){return"Style"}}class gU extends Da{getTypeName(){return"Script"}}class mU extends Da{getTypeName(){return"URL"}}class AU extends Da{getTypeName(){return"ResourceURL"}}function Bi(n){return n instanceof Da?n.changingThisBreaksApplicationSecurity:n}function Gr(n,t){const e=function bU(n){return n instanceof Da&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class MU{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Yl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class wU{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Yl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Yl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0qu(t.trim())).join(", ")}function Yr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Xu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const N0=Yr("area,br,col,hr,img,wbr"),L0=Yr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q0=Yr("rp,rt"),Ub=Xu(N0,Xu(L0,Yr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xu(Q0,Yr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xu(Q0,L0)),jb=Yr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zb=Yr("srcset"),U0=Xu(jb,zb,Yr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),SU=Yr("script,style,template");class xU{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ub.hasOwnProperty(e))return this.sanitizedSomething=!0,!SU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ub.hasOwnProperty(e)&&!N0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(j0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const TU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BU=/([^\#-~ |!])/g;function j0(n){return n.replace(/&/g,"&").replace(TU,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(BU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jp;function z0(n,t){let e=null;try{jp=jp||function F0(n){const t=new wU(n);return function DU(){try{return!!(new window.DOMParser).parseFromString(Yl(""),"text/html")}catch{return!1}}()?new MU(t):t}(n);let i=t?String(t):"";e=jp.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=jp.getInertBodyElement(i)}while(i!==o);return Yl((new xU).sanitizeChildren(Hb(e)||e))}finally{if(e){const i=Hb(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Hb(n){return"content"in n&&function OU(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var It=(()=>((It=It||{})[It.NONE=0]="NONE",It[It.HTML=1]="HTML",It[It.STYLE=2]="STYLE",It[It.SCRIPT=3]="SCRIPT",It[It.URL=4]="URL",It[It.RESOURCE_URL=5]="RESOURCE_URL",It))();function zp(n){const t=Zu();return t?O0(t.sanitize(It.HTML,n)||""):Gr(n,"HTML")?O0(Bi(n)):z0(function B0(){return void 0!==Nb?Nb:typeof document<"u"?document:void 0}(),we(n))}function ko(n){const t=Zu();return t?t.sanitize(It.URL,n)||"":Gr(n,"URL")?Bi(n):qu(we(n))}function Zu(){const n=N();return n&&n[12]}const Vb=new $("ENVIRONMENT_INITIALIZER"),V0=new $("INJECTOR",-1),G0=new $("INJECTOR_DEF_TYPES");class Y0{get(t,e=Vu){if(e===Vu){const i=new Error(`NullInjectorError: No provider for ${rt(t)}!`);throw i.name="NullInjectorError",i}return e}}function QU(...n){return{\u0275providers:W0(0,n)}}function W0(n,...t){const e=[],i=new Set;let r;return Oo(t,o=>{const s=o;Gb(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&J0(r,e),e}function J0(n,t){for(let e=0;e{t.push(o)})}}function Gb(n,t,e,i){if(!(n=he(n)))return!1;let r=null,o=Ea(n);const s=!o&&ot(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ea(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Gb(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Oo(o.imports,u=>{Gb(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&J0(c,t)}if(!a){const c=wa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:qe},{provide:G0,useValue:r,multi:!0},{provide:Vb,useValue:()=>j(r),multi:!0})}const l=o.providers;null==l||a||Oo(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const UU=gt({provide:String,useValue:gt});function Yb(n){return null!==n&&"object"==typeof n&&UU in n}function Ia(n){return"function"==typeof n}const Wb=new $("Set Injector scope."),Hp={},zU={};let Jb;function Vp(){return void 0===Jb&&(Jb=new Y0),Jb}class ms{}class q0 extends ms{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,$b(t,s=>this.processProvider(s)),this.records.set(V0,Wl(void 0,this)),r.has("environment")&&this.records.set(ms,Wl(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(G0.multi,qe,pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Vl(this),i=hi(void 0);try{return t()}finally{Vl(e),hi(i)}}get(t,e=Vu,i=pe.Default){this.assertNotDestroyed();const r=Vl(this),o=hi(void 0);try{if(!(i&pe.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function WU(n){return"function"==typeof n||"object"==typeof n&&n instanceof $}(t)&&Sl(t);a=l&&this.injectableDefInScope(l)?Wl(Kb(t),Hp):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&pe.Self?Vp():this.parent).get(t,e=i&pe.Optional&&e===Vu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Fp]=s[Fp]||[]).unshift(rt(t)),r)throw s;return function Z2(n,t,e,i){const r=n[Fp];throw t[C0]&&r.unshift(t[C0]),n.message=function eU(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=rt(t);if(Array.isArray(t))r=t.map(rt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(K2,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Fp]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{hi(o),Vl(r)}}resolveInjectorInitializers(){const t=Vl(this),e=hi(void 0);try{const i=this.get(Vb.multi,qe,pe.Self);for(const r of i)r()}finally{Vl(t),hi(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(rt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(t){let e=Ia(t=he(t))?t:he(t&&t.provide);const i=function VU(n){return Yb(n)?Wl(void 0,n.useValue):Wl(X0(n),Hp)}(t);if(Ia(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Wl(void 0,Hp,!0),r.factory=()=>Rb(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Hp&&(e.value=zU,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YU(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=he(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Kb(n){const t=Sl(n),e=null!==t?t.factory:wa(n);if(null!==e)return e;if(n instanceof $)throw new P(204,!1);if(n instanceof Function)return function HU(n){const t=n.length;if(t>0)throw Hu(t,"?"),new P(204,!1);const e=function sb(n){const t=n&&(n[xl]||n[Mu]);if(t){const e=function ab(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new P(204,!1)}function X0(n,t,e){let i;if(Ia(n)){const r=he(n);return wa(r)||Kb(r)}if(Yb(n))i=()=>he(n.useValue);else if(function $0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Rb(n.deps||[]));else if(function K0(n){return!(!n||!n.useExisting)}(n))i=()=>j(he(n.useExisting));else{const r=he(n&&(n.useClass||n.provide));if(!function GU(n){return!!n.deps}(n))return wa(r)||Kb(r);i=()=>new r(...Rb(n.deps))}return i}function Wl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function JU(n){return!!n.\u0275providers}function $b(n,t){for(const e of n)Array.isArray(e)?$b(e,t):JU(e)?$b(e.\u0275providers,t):t(e)}class Z0{}class qU{resolveComponentFactory(t){throw function $U(n){const t=Error(`No component factory found for ${rt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let As=(()=>{class n{}return n.NULL=new qU,n})();function XU(){return Jl(pn(),N())}function Jl(n,t){return new St(Yi(n,t))}let St=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=XU,n})();function ZU(n){return n instanceof St?n.nativeElement:n}class ed{}let Wr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function ej(){const n=N(),e=Si(pn().index,n);return(mi(e)?e:n)[11]}(),n})(),tj=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>null}),n})();class Kl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nj=new Kl("14.2.0"),qb={};function ny(n){return n.ngOriginalError}class $l{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&ny(t);for(;e&&ny(e);)e=ny(e);return e||null}}const iy=new Map;let fj=0;const oy="__ngContext__";function Nn(n,t){mi(t)?(n[oy]=t[20],function mj(n){iy.set(n[20],n)}(t)):n[oy]=t}function td(n){const t=n[oy];return"number"==typeof t?function sD(n){return iy.get(n)||null}(t):t||null}function sy(n){const t=td(n);return t?mi(t)?t:t.lView:null}function Po(n){return n instanceof Function?n():n}var bi=(()=>((bi=bi||{})[bi.Important=1]="Important",bi[bi.DashCase=2]="DashCase",bi))();function ly(n,t){return undefined(n,t)}function nd(n){const t=n[3];return Cr(t)?t[3]:t}function cy(n){return pD(n[13])}function uy(n){return pD(n[4])}function pD(n){for(;null!==n&&!Cr(n);)n=n[4];return n}function Xl(n,t,e,i,r){if(null!=i){let o,s=!1;Cr(i)?o=i:mi(i)&&(s=!0,i=i[0]);const a=rn(i);0===n&&null!==e?null==r?yD(t,e,a):Sa(t,e,a,r||null,!0):1===n&&null!==e?Sa(t,e,a,r||null,!0):2===n?function DD(n,t,e){const i=Gp(n,t);i&&function Hj(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function Yj(n,t,e,i,r){const o=e[7];o!==rn(e)&&Xl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=kp(n,10+t);!function Fj(n,t){id(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function mD(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&id(n,t,e,3,null,null),function Lj(n){let t=n[13];if(!t)return fy(n[1],n);for(;t;){let e=null;if(mi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)mi(t)&&fy(t[1],t),t=t[3];null===t&&(t=n),mi(t)&&fy(t[1],t),e=t&&t[4]}t=e}}(t)}}function fy(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function zj(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==xD(p,c,0)||2&i&&c!==h){if(Mr(i))return!1;s=!0}}}}else{if(!s&&!Mr(i)&&!Mr(l))return!1;if(s&&Mr(l))continue;s=!1,i=l|1&i}}return Mr(i)||s}function Mr(n){return 0==(1&n)}function qj(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Mr(s)&&(t+=kD(o,r),r=""),i=s,o=o||!Mr(i);e++}return""!==r&&(t+=kD(o,r)),t}const Se={};function v(n){PD(Ke(),N(),ti()+n,!1)}function PD(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&wp(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Dp(t,o,0,e)}fs(e)}function LD(n,t=null,e=null,i){const r=QD(n,t,e,i);return r.resolveInjectorInitializers(),r}function QD(n,t=null,e=null,i,r=new Set){const o=[e||qe,QU(n)];return i=i||("object"==typeof n?void 0:rt(n)),new q0(o,t||Vp(),i||null,r)}let Sn=(()=>{class n{static create(e,i){if(Array.isArray(e))return LD({name:""},i,e,"");{const r=e.name??"";return LD({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Vu,n.NULL=new Y0,n.\u0275prov=Y({token:n,providedIn:"any",factory:()=>j(V0)}),n.__NG_ELEMENT_ID__=-1,n})();function T(n,t=pe.Default){const e=N();return null===e?j(n,t):h0(pn(),e,he(n),t)}function vy(){throw new Error("invalid")}function Kp(n,t){return n<<17|t<<2}function wr(n){return n>>17&32767}function My(n){return 2|n}function Fo(n){return(131068&n)>>2}function wy(n,t){return-131069&n|t<<2}function Dy(n){return 1|n}function nI(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&PD(n,t,22,!1),e(i,r)}finally{fs(o)}}function rI(n,t,e){if(db(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function dI(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function hI(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function Jz(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Uy(e)}}function Uy(n){for(let i=cy(n);null!==i;i=uy(i))for(let r=10;r0&&Uy(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Uy(r)}}function tH(n,t){const e=Si(t,n),i=e[1];(function nH(n,t){for(let e=t.length;e-1&&(py(t,i),kp(e,i))}this._attachedToViewContainer=!1}mD(this._lView[1],this._lView)}onDestroy(t){sI(this._lView[1],this._lView,null,t)}markForCheck(){jy(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function zy(n,t,e){const i=t[10];i.begin&&i.begin();try{rd(n,t,n.template,e)}catch(r){throw _I(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Nj(n,t){id(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t}}class rH extends od{constructor(t){super(t),this._view=t}detectChanges(){!function mI(n){!function iH(n){for(let t=0;t0&&by(c,d,b.join(" "))}if(A=mb(f,22),void 0!==e){const E=A.projection=[];for(let b=0;b=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Sp(r.hostAttrs,e=Sp(e,r.hostAttrs))}}(i)}function Yy(n){return n===ds?{}:n===qe?[]:n}function fH(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function gH(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function mH(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let rf=null;function xa(){if(!rf){const n=mt.Symbol;if(n&&n.iterator)rf=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(rn(D[i.index])):i.index;let b=null;if(!a&&l&&(b=function SH(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,p=!1;else{o=RI(i,t,d,o,!1);const D=e.listen(A,r,o);h.push(o,D),u&&u.push(r,E,y,y+1)}}else o=RI(i,t,d,o,!1);const f=i.outputs;let g;if(p&&null!==f&&(g=f[r])){const m=g.length;if(m)for(let A=0;A0;)t=t[15],n--;return t}(n,Ie.lFrame.contextLView))[8]}(n)}function xH(n,t){let e=null;const i=function Xj(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function WI(n){return n.substring(gn.key,gn.keyEnd)}function kH(n){return n.substring(gn.value,gn.valueEnd)}function JI(n,t){const e=gn.textEnd;return e===t?-1:(t=gn.keyEnd=function RH(n,t,e){for(;t32;)t++;return t}(n,gn.key=t,e),dc(n,t,e))}function KI(n,t){const e=gn.textEnd;let i=gn.key=dc(n,t,e);return e===i?-1:(i=gn.keyEnd=function NH(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=qI(n,i,e),i=gn.value=dc(n,i,e),i=gn.valueEnd=function LH(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),qI(n,i,e))}function $I(n){gn.key=0,gn.keyEnd=0,gn.value=0,gn.valueEnd=0,gn.textEnd=n.length}function dc(n,t,e){for(;t=0;e=KI(t,e))tS(n,WI(t),kH(t))}function Gt(n){Ir(Ti,qr,n,!0)}function qr(n,t){for(let e=function PH(n){return $I(n),JI(n,dc(n,0,gn.textEnd))}(t);e>=0;e=JI(t,e))Ti(n,WI(t),!0)}function Dr(n,t,e,i){const r=N(),o=Ke(),s=Bo(2);o.firstUpdatePass&&eS(o,n,s,i),t!==Se&&Ln(r,s,t)&&nS(o,o.data[ti()],r,r[11],n,r[s+1]=function YH(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=rt(Bi(n)))),n}(t,e),i,s)}function Ir(n,t,e,i){const r=Ke(),o=Bo(2);r.firstUpdatePass&&eS(r,null,o,i);const s=N();if(e!==Se&&Ln(s,o,e)){const a=r.data[ti()];if(rS(a,i)&&!ZI(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Mo(l,e||"")),Jy(r,a,s,e,i)}else!function GH(n,t,e,i,r,o,s,a){r===Se&&(r=qe);let l=0,c=0,u=0=n.expandoStartIndex}function eS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[ti()],s=ZI(n,e);rS(o,i)&&null===t&&!s&&(t=!1),t=function UH(n,t,e,i){const r=function Eb(n){const t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=ud(e=qy(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=qy(r,n,t,e,i),null===o){let l=function jH(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Fo(i))return n[wr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=qy(null,n,t,l[1],i),l=ud(l,t.attrs,i),function zH(n,t,e,i){n[wr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function HH(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=wr(n[a+1]);n[i+1]=Kp(h,a),0!==h&&(n[h+1]=wy(n[h+1],i)),n[a+1]=function vz(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Kp(a,0),0!==a&&(n[a+1]=wy(n[a+1],i)),a=i;else n[i+1]=Kp(l,0),0===a?a=i:n[l+1]=wy(n[l+1],i),l=i;c&&(n[i+1]=My(n[i+1])),YI(n,u,i,!0),YI(n,u,i,!1),function BH(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Hl(o,t)>=0&&(e[i+1]=Dy(e[i+1]))}(t,u,n,i,o),s=Kp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function qy(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Se&&(h=d?qe:void 0);let p=d?kb(h,i):u===i?h:void 0;if(c&&!lf(p)&&(p=kb(l,i)),lf(p)&&(a=p,s))return a;const f=n[r+1];r=s?wr(f):Fo(f)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=kb(l,i))}return a}function lf(n){return void 0!==n}function rS(n,t){return 0!=(n.flags&(t?16:32))}function de(n,t=""){const e=N(),i=Ke(),r=n+22,o=i.firstCreatePass?ec(i,r,1,t,null):i.data[r],s=e[r]=function dy(n,t){return n.createText(t)}(e[11],t);Yp(i,e,s,o),Hr(o,!1)}function pt(n){return Xr("",n,""),pt}function Xr(n,t,e){const i=N(),r=function ic(n,t,e,i){return Ln(n,Fl(),e)?t+we(e)+i:Se}(i,n,t,e);return r!==Se&&Ro(i,ti(),r),Xr}function cf(n,t,e,i,r){const o=N(),s=rc(o,n,t,e,i,r);return s!==Se&&Ro(o,ti(),s),cf}const pc="en-US";let wS=pc;function e_(n,t,e,i,r){if(n=he(n),Array.isArray(n))for(let o=0;o>20;if(Ia(n)||!n.multi){const p=new Ru(l,r,T),f=n_(a,t,r?u:u+h,d);-1===f?(Bp(Lu(c,s),o,a),t_(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[f]=p,s[f]=p)}else{const p=n_(a,t,u+h,d),f=n_(a,t,u,u+h),g=p>=0&&e[p],m=f>=0&&e[f];if(r&&!m||!r&&!g){Bp(Lu(c,s),o,a);const A=function d4(n,t,e,i,r){const o=new Ru(n,e,T);return o.multi=[],o.index=t,o.componentProviders=0,$S(o,r,i&&!e),o}(r?u4:c4,e.length,r,i,l);!r&&m&&(e[f].providerFactory=A),t_(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(A),s.push(A)}else t_(o,n,p>-1?p:f,$S(e[r?f:p],l,!r&&i));!r&&i&&m&&e[f].componentProviders++}}}function t_(n,t,e,i){const r=Ia(t),o=function jU(n){return!!n.useClass}(t);if(r||o){const l=(o?he(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function $S(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function n_(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function l4(n,t,e){const i=Ke();if(i.firstCreatePass){const r=vr(n);e_(e,i.data,i.blueprint,r,!0),e_(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Oa{}class qS{}class XS extends Oa{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Gy(this);const i=z(t);this._bootstrapComponents=Po(i.bootstrap),this._r3Injector=QD(t,e,[{provide:Oa,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],rt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class r_ extends qS{constructor(t){super(),this.moduleType=t}create(t){return new XS(this.moduleType,t)}}class p4 extends Oa{constructor(t,e,i){super(),this.componentFactoryResolver=new Gy(this),this.instance=null;const r=new q0([...t,{provide:Oa,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],e||Vp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ff(n,t,e=null){return new p4(n,t,e).injector}let f4=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=W0(0,e.type),r=i.length>0?ff([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Y({token:n,providedIn:"environment",factory:()=>new n(j(ms))}),n})();function ZS(n){n.getStandaloneInjector=t=>t.get(f4).getOrCreateStandaloneInjector(n)}function Zr(n,t,e){const i=ei()+n,r=N();return r[i]===Se?Kr(r,i,e?t.call(e):t()):ld(r,i)}function Wt(n,t,e,i){return ax(N(),ei(),n,t,e,i)}function Ji(n,t,e,i,r){return function lx(n,t,e,i,r,o,s){const a=t+e;return Ta(n,a,r,o)?Kr(n,a+2,s?i.call(s,r,o):i(r,o)):gd(n,a+2)}(N(),ei(),n,t,e,i,r)}function ka(n,t,e,i,r,o){return function cx(n,t,e,i,r,o,s,a){const l=t+e;return function sf(n,t,e,i,r){const o=Ta(n,t,e,i);return Ln(n,t+2,r)||o}(n,l,r,o,s)?Kr(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):gd(n,l+3)}(N(),ei(),n,t,e,i,r,o)}function gf(n,t,e,i,r,o,s){return function ux(n,t,e,i,r,o,s,a,l){const c=t+e;return Wi(n,c,r,o,s,a)?Kr(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):gd(n,c+4)}(N(),ei(),n,t,e,i,r,o,s)}function gd(n,t){const e=n[t];return e===Se?void 0:e}function ax(n,t,e,i,r,o){const s=t+e;return Ln(n,s,r)?Kr(n,s+1,o?i.call(o,r):i(r)):gd(n,s+1)}function Pa(n,t){const e=Ke();let i;const r=n+22;e.firstCreatePass?(i=function I4(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=wa(i.type)),s=hi(T);try{const a=xp(!1),l=o();return xp(a),function wH(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,N(),r,l),l}finally{hi(s)}}function Fa(n,t,e){const i=n+22,r=N(),o=Pl(r,i);return function md(n,t){return n[1].data[t].pure}(r,i)?ax(r,ei(),t,o.transform,e,o):o.transform(e)}function s_(n){return t=>{setTimeout(n,void 0,t)}}const te=class O4 extends Me{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=s_(o),r&&(r=s_(r)),s&&(s=s_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof We&&t.add(a),a}};function k4(){return this._results[xa()]()}class Ad{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xa(),i=Ad.prototype;i[e]||(i[e]=k4)}get changes(){return this._changes||(this._changes=new te)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=xi(t);(this._changesDetected=!function Q2(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=R4,n})();const P4=eo,F4=class extends P4{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Xp(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Zp(i,r,t),new od(r)}};function R4(){return mf(pn(),N())}function mf(n,t){return 4&n.type?new F4(t,n,Jl(n,t)):null}let Pi=(()=>{class n{}return n.__NG_ELEMENT_ID__=N4,n})();function N4(){return fx(pn(),N())}const L4=Pi,hx=class extends L4{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Jl(this._hostTNode,this._hostLView)}get injector(){return new Ll(this._hostTNode,this._hostLView)}get parentInjector(){const t=Tp(this._hostTNode,this._hostLView);if(a0(t)){const e=Nl(t,this._hostLView),i=Rl(t);return new Ll(e[1].data[i+8],e)}return new Ll(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=px(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function zu(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new sd(ot(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(ms,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function s2(n){return Cr(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new hx(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function Qj(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=bf,this.reject=bf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(j(yf,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yd=new $("AppId",{providedIn:"root",factory:function Lx(){return`${A_()}${A_()}${A_()}`}});function A_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qx=new $("Platform Initializer"),Ef=new $("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ux=new $("appBootstrapListener"),jx=new $("AnimationModuleType");let hG=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const No=new $("LocaleId",{providedIn:"root",factory:()=>Xt(No,pe.Optional|pe.SkipSelf)||function pG(){return typeof $localize<"u"&&$localize.locale||pc}()});class gG{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let b_=(()=>{class n{compileModuleSync(e){return new r_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Po(z(e).declarations).reduce((s,a)=>{const l=ot(a);return l&&s.push(new sd(l)),s},[]);return new gG(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bG=(()=>Promise.resolve(0))();function y_(n){typeof Zone>"u"?bG.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class At{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new te(!1),this.onMicrotaskEmpty=new te(!1),this.onStable=new te(!1),this.onError=new te(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function yG(){let n=mt.requestAnimationFrame,t=mt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function CG(n){const t=()=>{!function EG(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(mt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,E_(n),n.isCheckStableRunning=!0,__(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),E_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Vx(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Gx(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Vx(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Gx(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,E_(n),__(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!At.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(At.isInAngularZone())throw new P(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,_G,bf,bf);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _G={};function __(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function E_(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Vx(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Gx(n){n._nesting--,__(n)}class vG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new te,this.onMicrotaskEmpty=new te,this.onStable=new te,this.onError=new te}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const Yx=new $(""),Cf=new $("");let M_,C_=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,M_||(function MG(n){M_=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.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:()=>{At.assertNotInAngularZone(),y_(()=>{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())y_(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(v_),j(Cf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),v_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return M_?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Es=null;const Wx=new $("AllowMultipleToken"),w_=new $("PlatformDestroyListeners");class Jx{constructor(t,e){this.name=t,this.token=e}}function $x(n,t,e=[]){const i=`Platform: ${t}`,r=new $(i);return(o=[])=>{let s=D_();if(!s||s.injector.get(Wx,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function IG(n){if(Es&&!Es.get(Wx,!1))throw new P(400,!1);Es=n;const t=n.get(Xx);(function Kx(n){const t=n.get(Qx,null);t&&t.forEach(e=>e())})(n)}(function qx(n=[],t){return Sn.create({name:t,providers:[{provide:Wb,useValue:"platform"},{provide:w_,useValue:new Set([()=>Es=null])},...n]})}(a,i))}return function xG(n){const t=D_();if(!t)throw new P(401,!1);return t}()}}function D_(){return Es?.get(Xx)??null}let Xx=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function eT(n,t){let e;return e="noop"===n?new vG:("zone.js"===n?void 0:n)||new At(t),e}(i?.ngZone,function Zx(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:At,useValue:r}];return r.run(()=>{const s=Sn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get($l,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{vf(this._modules,a),c.unsubscribe()})}),function tT(n,t,e){try{const i=e();return cd(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_f);return c.runInitializers(),c.donePromise.then(()=>(function DS(n){Zn(n,"Expected localeId to be defined"),"string"==typeof n&&(wS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(No,pc)||pc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=nT({},i);return function wG(n,t,e){const i=new r_(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ra);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new P(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(w_,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(j(Sn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function nT(n,t){return Array.isArray(t)?t.reduce(nT,n):{...n,...t}}let Ra=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new et(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new et(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{At.assertNotInAngularZone(),y_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{At.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=ya(o,s.pipe(function hp(){return n=>_a()(function dp(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new tb(r,t));const o=Object.create(i,eb);return o.source=i,o.subjectFactory=r,o}}(vo)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Z0;if(!this._injector.get(_f).done)throw!r&&function R(n){const t=ot(n)||_(n)||M(n);return null!==t&&t.standalone}(e),new P(405,false);let s;s=r?e:this._injector.get(As).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function DG(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Oa),c=s.create(Sn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(Yx,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),vf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;vf(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ux,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>vf(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new P(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(ms),j($l))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vf(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let rT=!0,oT=!1,oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=kG,n})();function kG(n){return function PG(n,t,e){if(yp(n)&&!e){const i=Si(n.index,t);return new od(i,i)}return 47&n.type?new od(t[16],t):null}(pn(),N(),16==(16&n))}class cT{constructor(){}supports(t){return ad(t)}create(t){return new UG(t)}}const QG=(n,t)=>t;class UG{constructor(t){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=t||QG}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new jG(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new uT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jG{constructor(t,e){this.item=t,this.trackById=e,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 zG{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class uT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new zG,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new VG(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class VG{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pT(){return new Df([new cT])}let Df=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||pT()),deps:[[n,new Ju,new Wu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:pT}),n})();function fT(){return new _d([new hT])}let _d=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||fT()),deps:[[n,new Ju,new Wu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:fT}),n})();const WG=$x(null,"core",[]);let JG=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(j(Ra))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();let If=null;function to(){return If}const Jt=new $("DocumentToken");let B_=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return function XG(){return j(gT)}()},providedIn:"platform"}),n})();const ZG=new $("Location Initialized");let gT=(()=>{class n extends B_{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return to().getBaseHref(this._doc)}onPopState(e){const i=to().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=to().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){mT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){mT()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(){return function eY(){return new gT(j(Jt))}()},providedIn:"platform"}),n})();function mT(){return!!window.history.pushState}function O_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function AT(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Uo(n){return n&&"?"!==n[0]?"?"+n:n}let La=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(yT)},providedIn:"root"}),n})();const bT=new $("appBaseHref");let yT=(()=>{class n extends La{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Xt(Jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return O_(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Uo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Uo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Uo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B_),j(bT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tY=(()=>{class n extends La{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=O_(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Uo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Uo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B_),j(bT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),k_=(()=>{class n{constructor(e){this._subject=new te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=AT(_T(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Uo(i))}normalize(e){return n.stripTrailingSlash(function iY(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,_T(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Uo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Uo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Uo,n.joinWithSlash=O_,n.stripTrailingSlash=AT,n.\u0275fac=function(e){return new(e||n)(j(La))},n.\u0275prov=Y({token:n,factory:function(){return function nY(){return new k_(j(La))}()},providedIn:"root"}),n})();function _T(n){return n.replace(/\/index.html$/,"")}function xT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Un=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ad(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${rt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(T(Df),T(_d),T(St),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class jY{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,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 qi=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new jY(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),OT(a,r)}});for(let r=0,o=i.length;r{OT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(Df))},n.\u0275dir=ue({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function OT(n,t){n.context.$implicit=t.item}let Pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new HY,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){kT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){kT("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo))},n.\u0275dir=ue({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class HY{constructor(){this.$implicit=null,this.ngIf=null}}function kT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${rt(t)}'.`)}class H_{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vd=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new H_(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(vd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),G_=(()=>{class n{constructor(e,i,r){r._addDefault(new H_(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(vd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Xi=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:bi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(_d),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),zo=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(T(Pi))},n.\u0275dir=ue({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ai]}),n})();function Tr(n,t){return new P(2100,!1)}class GY{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class YY{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const WY=new YY,JY=new GY;let FT=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(cd(e))return WY;if(OI(e))return JY;throw Tr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(T(oi,16))},n.\u0275pipe=In({name:"async",type:n,pure:!1,standalone:!0}),n})(),Y_=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Tr();return e.toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const KY=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uF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DB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9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uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let RT=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Tr();return e.replace(KY,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),Kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const LT="browser";let f3=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>new g3(j(Jt),window)}),n})();class g3{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function m3(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=QT(this.window.history)||QT(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function QT(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class UT{}class q_ extends class P3 extends class qG{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function $G(n){If||(If=n)}(new q_)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function F3(){return wd=wd||document.querySelector("base"),wd?wd.getAttribute("href"):null}();return null==e?null:function R3(n){Lf=Lf||document.createElement("a"),Lf.setAttribute("href",n);const t=Lf.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){wd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xT(document.cookie,t)}}let Lf,wd=null;const VT=new $("TRANSITION_ID"),L3=[{provide:yf,useFactory:function N3(n,t,e){return()=>{e.get(_f).donePromise.then(()=>{const i=to(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Qf=new $("EventManagerPlugins");let Uf=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Dd=(()=>{class n extends YT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(WT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(WT))}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function WT(n){to().remove(n)}const X_={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/"},Z_=/%COMP%/g;function jf(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let zf=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new eE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ii.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Y3(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ii.ShadowDom:return new W3(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=jf(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(j(Uf),j(Dd),j(yd))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class eE{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(X_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(XT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(XT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=X_[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=X_[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(bi.DashCase|bi.Important)?t.style.setProperty(e,i,r&bi.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&bi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$T(i)):this.eventManager.addEventListener(t,e,$T(i))}}function XT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Y3 extends eE{constructor(t,e,i,r){super(t),this.component=i;const o=jf(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function H3(n){return"_ngcontent-%COMP%".replace(Z_,n)}(r+"-"+i.id),this.hostAttr=function V3(n){return"_nghost-%COMP%".replace(Z_,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class W3 extends eE{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=jf(r.id,r.styles,[]);for(let s=0;s{class n extends GT{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const ZT=["alt","control","meta","shift"],K3={"\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"},$3={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let q3=(()=>{class n extends GT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>to().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),ZT.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=K3[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),ZT.forEach(s=>{s!==r&&(0,$3[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const t1=[{provide:Ef,useValue:LT},{provide:Qx,useValue:function X3(){q_.makeCurrent()},multi:!0},{provide:Jt,useFactory:function e5(){return function uU(n){Nb=n}(document),document},deps:[]}],t5=$x(WG,"browser",t1),n1=new $(""),r1=[{provide:Cf,useClass:class Q3{addToWindow(t){mt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),mt.getAllAngularRootElements=()=>t.getAllRootElements(),mt.frameworkStabilizers||(mt.frameworkStabilizers=[]),mt.frameworkStabilizers.push(i=>{const r=mt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?to().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:Yx,useClass:C_,deps:[At,v_,Cf]},{provide:C_,useClass:C_,deps:[At,v_,Cf]}],o1=[{provide:Wb,useValue:"root"},{provide:$l,useFactory:function Z3(){return new $l},deps:[]},{provide:Qf,useClass:J3,multi:!0,deps:[Jt,At,Ef]},{provide:Qf,useClass:q3,multi:!0,deps:[Jt]},{provide:zf,useClass:zf,deps:[Uf,Dd,yd]},{provide:ed,useExisting:zf},{provide:YT,useExisting:Dd},{provide:Dd,useClass:Dd,deps:[Jt]},{provide:Uf,useClass:Uf,deps:[Qf,At]},{provide:UT,useClass:U3,deps:[]},[]];let s1=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:yd,useValue:e.appId},{provide:VT,useExisting:yd},L3]}}}return n.\u0275fac=function(e){return new(e||n)(j(n1,12))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[...o1,...r1],imports:[Kt,JG]}),n})(),a1=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function r5(){return new a1(j(Jt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let iE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new(e||n):j(rE),i},providedIn:"root"}),n})(),rE=(()=>{class n extends iE{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case It.NONE:return i;case It.HTML:return Gr(i,"HTML")?Bi(i):z0(this._doc,String(i)).toString();case It.STYLE:return Gr(i,"Style")?Bi(i):i;case It.SCRIPT:if(Gr(i,"Script"))return Bi(i);throw new Error("unsafe value used in a script context");case It.URL:return Gr(i,"URL")?Bi(i):qu(String(i));case It.RESOURCE_URL:if(Gr(i,"ResourceURL"))return Bi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function yU(n){return new pU(n)}(e)}bypassSecurityTrustStyle(e){return function _U(n){return new fU(n)}(e)}bypassSecurityTrustScript(e){return function EU(n){return new gU(n)}(e)}bypassSecurityTrustUrl(e){return function CU(n){return new mU(n)}(e)}bypassSecurityTrustResourceUrl(e){return function vU(n){return new AU(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function d5(n){return new rE(n.get(Jt))}(j(Sn)),i},providedIn:"root"}),n})();function ae(...n){let t=n[n.length-1];return as(t)?(n.pop(),Ml(n,t)):cs(n)}function Ho(n,t){return nn(n,t,1)}function Zi(n,t){return function(i){return i.lift(new h5(n,t))}}class h5{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new p5(t,this.predicate,this.thisArg))}}class p5 extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class u1{}class d1{}class Br{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Br?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Br;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Br?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f5{encodeKey(t){return h1(t)}encodeValue(t){return h1(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const m5=/%(\d[a-f0-9])/gi,A5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function h1(n){return encodeURIComponent(n).replace(m5,(t,e)=>A5[e]??t)}function Hf(n){return`${n}`}class vs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Hf):[Hf(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new vs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Hf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Hf(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function p1(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function f1(n){return typeof Blob<"u"&&n instanceof Blob}function g1(n){return typeof FormData<"u"&&n instanceof FormData}class Id{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function y5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Br),this.context||(this.context=new b5),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Id(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var jt=(()=>((jt=jt||{})[jt.Sent=0]="Sent",jt[jt.UploadProgress=1]="UploadProgress",jt[jt.ResponseHeader=2]="ResponseHeader",jt[jt.DownloadProgress=3]="DownloadProgress",jt[jt.Response=4]="Response",jt[jt.User=5]="User",jt))();class oE{constructor(t,e=200,i="OK"){this.headers=t.headers||new Br,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class sE extends oE{constructor(t={}){super(t),this.type=jt.ResponseHeader}clone(t={}){return new sE({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Vf extends oE{constructor(t={}){super(t),this.type=jt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Vf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class m1 extends oE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function aE(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ac=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Id)o=e;else{let l,c;l=r.headers instanceof Br?r.headers:new Br(r.headers),r.params&&(c=r.params instanceof vs?r.params:new vs({fromObject:r.params})),o=new Id(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=ae(o).pipe(Ho(l=>this.handler.handle(l)));if(e instanceof Id||"events"===r.observe)return s;const a=s.pipe(Zi(l=>l instanceof Vf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new vs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,aE(r,i))}post(e,i,r={}){return this.request("POST",e,aE(r,i))}put(e,i,r={}){return this.request("PUT",e,aE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(j(u1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class A1{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const b1=new $("HTTP_INTERCEPTORS");let E5=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const C5=/^\)\]\}',?\n/;let y1=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new et(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,f)=>r.setRequestHeader(p,f.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=r.statusText||"OK",f=new Br(r.getAllResponseHeaders()),g=function v5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new sE({headers:f,status:r.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof r.response>"u"?r.responseText:r.response),0===f&&(f=A?200:0);let y=f>=200&&f<300;if("json"===e.responseType&&"string"==typeof A){const E=A;A=A.replace(C5,"");try{A=""!==A?JSON.parse(A):null}catch(b){A=E,y&&(y=!1,A={error:b,text:A})}}y?(i.next(new Vf({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new m1({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new m1({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:jt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===e.responseType&&!!r.responseText&&(f.partialText=r.responseText),i.next(f)},h=p=>{let f={type:jt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:jt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(j(UT))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const lE=new $("XSRF_COOKIE_NAME"),cE=new $("XSRF_HEADER_NAME");class _1{}let M5=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(Ef),j(lE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),uE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(_1),j(cE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),w5=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(b1,[]);this.chain=i.reduceRight((r,o)=>new A1(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(d1),j(Sn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),D5=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:uE,useClass:E5}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:lE,useValue:e.cookieName}:[],e.headerName?{provide:cE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[uE,{provide:b1,useExisting:uE,multi:!0},{provide:_1,useClass:M5},{provide:lE,useValue:"XSRF-TOKEN"},{provide:cE,useValue:"X-XSRF-TOKEN"}]}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[Ac,{provide:u1,useClass:w5},y1,{provide:d1,useExisting:y1}],imports:[D5.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class I5 extends We{constructor(t,e){super()}schedule(t,e=0){return this}}class Gf extends I5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let E1=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Or extends E1{constructor(t,e=E1.now){super(t,()=>Or.delegate&&Or.delegate!==this?Or.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Or.delegate&&Or.delegate!==this?Or.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const hE=new class x5 extends Or{}(class S5 extends Gf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),T5=hE,bc=new et(n=>n.complete());function Yf(n){return n?function B5(n){return new et(t=>n.schedule(()=>t.complete()))}(n):bc}function Ms(n,t){return new et(t?e=>t.schedule(O5,0,{error:n,subscriber:e}):e=>e.error(n))}function O5({error:n,subscriber:t}){t.error(n)}class er{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ae(this.value);case"E":return Ms(this.error);case"C":return Yf()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new er("N",t):er.undefinedValueNotification}static createError(t){return new er("E",void 0,t)}static createComplete(){return er.completeNotification}}er.completeNotification=new er("C"),er.undefinedValueNotification=new er("N",void 0);class Wf extends Ge{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Wf.dispatch,this.delay,new P5(t,this.destination)))}_next(t){this.scheduleMessage(er.createNext(t))}_error(t){this.scheduleMessage(er.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(er.createComplete()),this.unsubscribe()}}class P5{constructor(t,e){this.notification=t,this.destination=e}}class Jf extends Me{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new F5(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new br;if(this.isStopped||this.hasError?s=We.EMPTY:(this.observers.push(t),s=new mu(this,t)),r&&t.add(t=new Wf(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class F5{constructor(t,e){this.time=t,this.value=e}}function Fi(n,t){return"function"==typeof t?e=>e.pipe(Fi((i,r)=>Lt(n(i,r)).pipe(fe((o,s)=>t(i,o,r,s))))):e=>e.lift(new R5(n))}class R5{constructor(t){this.project=t}call(t,e){return e.subscribe(new N5(t,this.project))}}class N5 extends Aa{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ma(this),r=this.destination;r.add(i),this.innerSubscription=ba(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Kf={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return Kf.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return Kf.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let pE;function Y5(n,t,e){let i=e;return function Q5(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function j5(n,t){if(!pE){const e=Element.prototype;pE=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&pE.call(n,t)}(n,r)||(i=o,0))),i}class J5{constructor(t,e){this.componentFactory=e.get(As).resolveComponentFactory(t)}create(t){return new K5(this.componentFactory,t)}}class K5{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Jf(1),this.events=this.eventEmitters.pipe(Fi(i=>ya(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(At),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Kf.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function z5(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Sn.create({providers:[],parent:this.injector}),i=function G5(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(fe(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Kf.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Qw(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class $5 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function $f(n,t){return new et(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let C1=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(T(Wr),T(St))},n.\u0275dir=ue({type:n}),n})(),Qa=(()=>{class n extends C1{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275dir=ue({type:n,features:[lt]}),n})();const Ri=new $("NgValueAccessor"),e8={provide:Ri,useExisting:Je(()=>yc),multi:!0},n8=new $("CompositionEventMode");let yc=(()=>{class n extends C1{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function t8(){const n=to()?to().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Wr),T(St),T(n8,8))},n.\u0275dir=ue({type:n,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(e,i){1&e&&K("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[yt([e8]),lt]}),n})();function ws(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function M1(n){return null!=n&&"number"==typeof n.length}const zn=new $("NgValidators"),Ds=new $("NgAsyncValidators"),r8=/^(?=.{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 fE{static min(t){return function w1(n){return t=>{if(ws(t.value)||ws(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(ws(t.value)||ws(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function I1(n){return ws(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function S1(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function x1(n){return ws(n.value)||r8.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function T1(n){return t=>ws(t.value)||!M1(t.value)?null:t.value.lengthM1(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function O1(n){if(!n)return qf;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ws(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return L1(t)}static composeAsync(t){return Q1(t)}}function qf(n){return null}function k1(n){return null!=n}function P1(n){return cd(n)?Lt(n):n}function F1(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function R1(n,t){return t.map(e=>e(n))}function N1(n){return n.map(t=>function o8(n){return!n.validate}(t)?t:e=>t.validate(e))}function L1(n){if(!n)return null;const t=n.filter(k1);return 0==t.length?null:function(e){return F1(R1(e,t))}}function gE(n){return null!=n?L1(N1(n)):null}function Q1(n){if(!n)return null;const t=n.filter(k1);return 0==t.length?null:function(e){return function X5(...n){if(1===n.length){const t=n[0];if(Ar(t))return $f(t,null);if(da(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return $f(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return $f(n=1===n.length&&Ar(n[0])?n[0]:n,null).pipe(fe(e=>t(...e)))}return $f(n,null)}(R1(e,t).map(P1)).pipe(fe(F1))}}function mE(n){return null!=n?Q1(N1(n)):null}function U1(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function j1(n){return n._rawValidators}function z1(n){return n._rawAsyncValidators}function AE(n){return n?Array.isArray(n)?n:[n]:[]}function Xf(n,t){return Array.isArray(n)?n.includes(t):n===t}function H1(n,t){const e=AE(t);return AE(n).forEach(r=>{Xf(e,r)||e.push(r)}),e}function V1(n,t){return AE(t).filter(e=>!Xf(n,e))}class G1{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(t){this._rawValidators=t||[],this._composedValidatorFn=gE(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class si extends G1{get formDirective(){return null}get path(){return null}}class Is extends G1{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Y1{constructor(t){this._cd=t}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 Sd=(()=>{class n extends Y1{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Is,2))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&_s("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[lt]}),n})(),Zf=(()=>{class n extends Y1{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(si,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&_s("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[lt]}),n})();const xd="VALID",tg="INVALID",_c="PENDING",Td="DISABLED";function EE(n){return(ng(n)?n.validators:n)||null}function J1(n){return Array.isArray(n)?gE(n):n||null}function CE(n,t){return(ng(t)?t.asyncValidators:n)||null}function K1(n){return Array.isArray(n)?mE(n):n||null}function ng(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function $1(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new P(1e3,"");if(!i[e])throw new P(1001,"")}function q1(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new P(1002,"")})}class ig{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=J1(this._rawValidators),this._composedAsyncValidatorFn=K1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===xd}get invalid(){return this.status===tg}get pending(){return this.status==_c}get disabled(){return this.status===Td}get enabled(){return this.status!==Td}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=J1(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=K1(t)}addValidators(t){this.setValidators(H1(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(H1(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(V1(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(V1(t,this._rawAsyncValidators))}hasValidator(t){return Xf(this._rawValidators,t)}hasAsyncValidator(t){return Xf(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=_c,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Td,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=xd,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xd||this.status===_c)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Td:xd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_c,this._hasOwnPendingAsyncValidator=!0;const e=P1(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new te,this.statusChanges=new te}_calculateStatus(){return this._allControlsDisabled()?Td:this.errors?tg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_c)?_c:this._anyControlsHaveStatus(tg)?tg:xd}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ng(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Bd extends ig{constructor(t,e,i){super(EE(e),CE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){q1(this,0,t),Object.keys(t).forEach(i=>{$1(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class X1 extends Bd{}function rg(n,t){return[...t.path,n]}function Od(n,t){vE(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function p8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Z1(n,t)})}(n,t),function g8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function f8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Z1(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function h8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function og(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),ag(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function sg(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vE(n,t){const e=j1(n);null!==t.validator?n.setValidators(U1(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=z1(n);null!==t.asyncValidator?n.setAsyncValidators(U1(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();sg(t._rawValidators,r),sg(t._rawAsyncValidators,r)}function ag(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=j1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=z1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return sg(t._rawValidators,i),sg(t._rawAsyncValidators,i),e}function Z1(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function ME(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function wE(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===yc?e=o:function b8(n){return Object.getPrototypeOf(n.constructor)===Qa}(o)?i=o:r=o}),r||i||e||null}function iB(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function rB(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Pd=class extends ig{constructor(t=null,e,i){super(EE(e),CE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ng(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=rB(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){iB(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){iB(this._onDisabledChange,t)}_forEachChild(t){}_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(t){rB(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},v8={provide:Is,useExisting:Je(()=>lg)},aB=(()=>Promise.resolve(null))();let lg=(()=>{class n extends Is{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Pd,this._registered=!1,this.update=new te,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=wE(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ME(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Od(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){aB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Qo(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);aB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?rg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(T(si,9),T(zn,10),T(Ds,10),T(Ri,10),T(oi,8))},n.\u0275dir=ue({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([v8]),lt,Ai]}),n})(),cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ue({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),cB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const IE=new $("NgModelWithFormControlWarning"),x8={provide:si,useExisting:Je(()=>Ec)};let Ec=(()=>{class n extends si{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new te,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ag(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Od(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){og(e.control||null,e,!1),function y8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function nB(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(og(i||null,e),(n=>n instanceof Pd)(r)&&(Od(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function eB(n,t){vE(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function m8(n,t){return ag(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){vE(this.form,this),this._oldForm&&ag(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(T(zn,10),T(Ds,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&K("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yt([x8]),lt,Ai]}),n})();const O8={provide:Is,useExisting:Je(()=>Fd)};let Fd=(()=>{class n extends Is{constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new te,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=wE(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),ME(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return rg(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}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(T(si,13),T(zn,10),T(Ds,10),T(Ri,10),T(IE,8))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yt([O8]),lt,Ai]}),n})(),wB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[cB]}),n})(),ug=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[wB]}),n})(),Rd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:IE,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[wB]}),n})();class DB extends ig{constructor(t,e,i){super(EE(e),CE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){q1(this,0,t),t.forEach((i,r)=>{$1(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function IB(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let kE=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return IB(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Bd(r,o)}record(e,i=null){const r=this._reduceControls(e);return new X1(r,i)}control(e,i,r){let o={};return this.useNonNullable?(IB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Pd(e,{...o,nonNullable:!0})):new Pd(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new DB(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Pd||e instanceof ig?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:Rd}),n})();class SB{}const Vo="*";function J8(n,t){return{type:7,name:n,definitions:t,options:{}}}function xB(n,t=null){return{type:4,styles:t,timings:n}}function TB(n,t=null){return{type:2,steps:n,options:t}}function dg(n){return{type:6,styles:n,offset:null}}function BB(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function OB(n){Promise.resolve(null).then(n)}class Nd{constructor(t=0,e=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){OB(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class kB{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?OB(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function PB(n){return new P(3e3,!1)}function xW(){return typeof window<"u"&&typeof window.document<"u"}function FE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ss(n){switch(n.length){case 0:return new Nd;case 1:return n[0];default:return new kB(n)}}function FB(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=t.normalizePropertyName(m,s),A){case"!":A=r.get(g);break;case Vo:A=o.get(g);break;default:A=t.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function AW(n){return new P(3502,!1)}();return a}function RE(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&NE(e,"start",n)));break;case"done":n.onDone(()=>i(e&&NE(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&NE(e,"destroy",n)))}}function NE(n,t,e){const o=LE(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function LE(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ni(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function RB(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let QE=(n,t)=>!1,NB=(n,t,e)=>[],LB=null;function UE(n){const t=n.parentNode||n.host;return t===LB?null:t}(FE()||typeof Element<"u")&&(xW()?(LB=(()=>document.documentElement)(),QE=(n,t)=>{for(;t;){if(t===n)return!0;t=UE(t)}return!1}):QE=(n,t)=>n.contains(t),NB=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let ja=null,QB=!1;const UB=QE,jB=NB;let zB=(()=>{class n{validateStyleProperty(e){return function BW(n){ja||(ja=function OW(){return typeof document<"u"?document.body:null}()||{},QB=!!ja.style&&"WebkitAppearance"in ja.style);let t=!0;return ja.style&&!function TW(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ja.style,!t&&QB&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ja.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return UB(e,i)}getParentElement(e){return UE(e)}query(e,i,r){return jB(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Nd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),jE=(()=>{class n{}return n.NOOP=new zB,n})();const zE="ng-enter",hg="ng-leave",pg="ng-trigger",fg=".ng-trigger",VB="ng-animating",HE=".ng-animating";function xs(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:VE(parseFloat(t[1]),t[2])}function VE(n,t){return"s"===t?1e3*n:n}function gg(n,t,e){return n.hasOwnProperty("duration")?n:function FW(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(PB()),{duration:0,delay:0,easing:""};r=VE(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=VE(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function K8(){return new P(3100,!1)}()),a=!0),o<0&&(t.push(function $8(){return new P(3101,!1)}()),a=!0),a&&t.splice(l,0,PB())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Ld(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function GB(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ts(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function WB(n,t,e){return e?t+":"+e+";":""}function JB(n){let t="";for(let e=0;e{const o=YE(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),FE()&&JB(n))}function za(n,t){n.style&&(t.forEach((e,i)=>{const r=YE(i);n.style[r]=""}),FE()&&JB(n))}function Qd(n){return Array.isArray(n)?1==n.length?n[0]:TB(n):n}const GE=new RegExp("{{\\s*(.+?)\\s*}}","g");function KB(n){let t=[];if("string"==typeof n){let e;for(;e=GE.exec(n);)t.push(e[1]);GE.lastIndex=0}return t}function mg(n,t,e){const i=n.toString(),r=i.replace(GE,(o,s)=>{let a=t[s];return null==a&&(e.push(function X8(n){return new P(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Ag(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const LW=/-+([a-z0-9])/g;function YE(n){return n.replace(LW,(...t)=>t[1].toUpperCase())}function QW(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Li(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function Z8(n){return new P(3004,!1)}()}}function $B(n,t){return window.getComputedStyle(n)[t]}function GW(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function YW(n,t,e){if(":"==n[0]){const l=function WW(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function hW(n){return new P(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(qB(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(qB(s,r))}(i,e,t)):e.push(n),e}const Eg=new Set(["true","1"]),Cg=new Set(["false","0"]);function qB(n,t){const e=Eg.has(n)||Cg.has(n),i=Eg.has(t)||Cg.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Eg.has(n):Cg.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Eg.has(t):Cg.has(t)),s&&a}}const JW=new RegExp("s*:selfs*,?","g");function WE(n,t,e,i){return new KW(n).build(t,e,i)}class KW{constructor(t){this._driver=t}build(t,e,i){const r=new XW(e);return this._resetContextStyleTimingState(r),Li(this,Qd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function tW(){return new P(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function nW(){return new P(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{KB(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Ag(o.values()),e.errors.push(function iW(n,t){return new P(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Li(this,Qd(t.animation),e);return{type:1,matchers:GW(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ha(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Li(this,i,e)),options:Ha(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Li(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Ha(t.options)}}visitAnimate(t,e){const i=function eJ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return JE(gg(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=JE(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=gg(e,t);return JE(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:dg({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=dg(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Vo?i.push(a):e.errors.push(new P(3002,!1)):i.push(GB(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function oW(n,t,e,i,r){return new P(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function NW(n,t,e){const i=t.params||{},r=KB(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function q8(n){return new P(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sW(){return new P(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(A=>{const y=this._makeStyleAst(A,e);let E=null!=y.offset?y.offset:function ZW(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(y.styles),b=0;return null!=E&&(o++,b=y.offset=E),l=l||b<0||b>1,a=a||b0&&o{const E=h>0?y==p?1:h*y:s[y],b=E*m;e.currentTime=f+g.delay+b,g.duration=b,this._validateStyleAst(A,e),A.offset=E,i.styles.push(A)}),i}visitReference(t,e){return{type:8,animation:Li(this,Qd(t.animation),e),options:Ha(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ha(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ha(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function $W(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(JW,"")),n=n.replace(/@\*/g,fg).replace(/@\w+/g,e=>fg+"-"+e.slice(1)).replace(/:animating/g,HE),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ni(e.collectedStyles,e.currentQuerySelector,new Map);const a=Li(this,Qd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ha(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function uW(){return new P(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:gg(t.timings,e.errors,!0);return{type:12,animation:Li(this,Qd(t.animation),e),timings:i,options:null}}}class XW{constructor(t){this.errors=t,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 Ha(n){return n?(n=Ld(n)).params&&(n.params=function qW(n){return n?Ld(n):null}(n.params)):n={},n}function JE(n,t,e){return{duration:n,delay:t,easing:e}}function KE(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class vg{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const iJ=new RegExp(":enter","g"),oJ=new RegExp(":leave","g");function $E(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new sJ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class sJ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new vg;const d=new qE(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?xs(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Li(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[KE(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?xs(i.duration):null,a=null!=i.delay?xs(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Li(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Mg);const s=xs(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Li(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?xs(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Li(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return gg(e.params?mg(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?xs(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Mg);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Li(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Li(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Mg={};class qE{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new wg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=xs(i.duration)),null!=i.delay&&(r.delay=xs(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=mg(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new qE(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Mg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new aJ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(iJ,"."+this._enterClassName)).replace(oJ,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function dW(n){return new P(3014,!1)}()),a}}class wg{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wg(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vo),this._currentKeyframe.set(e,Vo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function lJ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Vo)}else Ts(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=mg(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vo),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ts(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Vo&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Ag(t.values()):[],s=e.size?Ag(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return KE(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class aJ extends wg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ts(t[0]);l.set("offset",0),o.push(l);const c=Ts(t[0]);c.set("offset",eO(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ts(t[d]);const p=h.get("offset");h.set("offset",eO((e+p*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return KE(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function eO(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class XE{}const cJ=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 uJ extends XE{normalizePropertyName(t,e){return YE(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(cJ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function eW(n,t){return new P(3005,!1)}())}return s+o}}function tO(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ZE={};class nO{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function dJ(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ZE,f=this.buildStyles(i,a&&a.params||ZE,d),g=l&&l.params||ZE,m=this.buildStyles(r,g,d),A=new Set,y=new Map,E=new Map,b="void"===r,D={params:hJ(g,h),delay:this.ast.options?.delay},I=u?[]:$E(t,e,this.ast.animation,o,s,f,m,D,c,d);let Q=0;if(I.forEach(q=>{Q=Math.max(q.duration+q.delay,Q)}),d.length)return tO(e,this._triggerName,i,r,b,f,m,[],[],y,E,Q,d);I.forEach(q=>{const le=q.element,xe=Ni(y,le,new Set);q.preStyleProps.forEach(Ae=>xe.add(Ae));const ke=Ni(E,le,new Set);q.postStyleProps.forEach(Ae=>ke.add(Ae)),le!==e&&A.add(le)});const O=Ag(A.values());return tO(e,this._triggerName,i,r,b,f,m,I,O,y,E,Q)}}function hJ(n,t){const e=Ld(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class pJ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Ld(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=mg(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class gJ{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new pJ(r.style,r.options&&r.options.params||{},i))}),iO(this.states,"true","1"),iO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new nO(t,r,this.states))}),this.fallbackTransition=function mJ(n,t,e){return new nO(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function iO(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const AJ=new vg;class bJ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=WE(this._driver,e,i,[]);if(i.length)throw function bW(n){return new P(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=FB(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=$E(this._driver,e,o,zE,hg,new Map,new Map,i,AJ,r),s.forEach(u=>{const d=Ni(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function yW(){return new P(3300,!1)}()),s=[]),r.length)throw function _W(n){return new P(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Vo))})});const c=Ss(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function EW(n){return new P(3301,!1)}();return e}listen(t,e,i,r){const o=LE(e,"","","");return RE(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);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(t)}}}const rO="ng-animate-queued",eC="ng-animate-disabled",vJ=[],oO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class tC{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function SJ(n){return n??null}(i?t.value:t),i){const o=Ld(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ud="void",nC=new tC(Ud);class wJ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function CW(n,t){return new P(3302,!1)}();if(null==i||0==i.length)throw function vW(n){return new P(3303,!1)}();if(!function xJ(n){return"start"==n||"done"==n}(i))throw function MW(n,t){return new P(3400,!1)}();const o=Ni(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Ni(this._engine.statesByElement,t,new Map);return a.has(e)||(nr(t,pg),nr(t,pg+"-"+e),a.set(e,nC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function wW(n){return new P(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new iC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(nr(t,pg),nr(t,pg+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new tC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=nC),c.value!==Ud&&l.value===c.value){if(!function OJ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{za(t,m),no(t,A)})}return}const h=Ni(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(nr(t,rO),s.onStart(()=>{Cc(t,rO)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(t);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,fg,!0);i.forEach(r=>{if(r[tr])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Ud,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Ss(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||nC,u=new tC(Ud),d=new iC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[tr];(!o||o===oO)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){nr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=LE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,RE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class DJ{constructor(t,e,i){this.bodyNode=t,this.driver=e,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new wJ(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Dg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Dg(e))return;const o=e[tr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),nr(t,eC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Cc(t,eC))}removeNode(t,e,i,r){if(Dg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[tr]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Dg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,fg,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,HE,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ss(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[tr];if(e&&e.setForRemoval){if(t[tr]=oO,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(eC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];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=[],e.length?Ss(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function DW(n){return new P(3402,!1)}()}_flushAnimations(t,e){const i=new vg,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(U=>{u.add(U);const V=this.driver.query(U,".ng-animate-queued",!0);for(let W=0;W{const W=zE+g++;f.set(V,W),U.forEach(X=>nr(X,W))});const m=[],A=new Set,y=new Set;for(let U=0;UA.add(X)):y.add(V))}const E=new Map,b=lO(h,Array.from(A));b.forEach((U,V)=>{const W=hg+g++;E.set(V,W),U.forEach(X=>nr(X,W))}),t.push(()=>{p.forEach((U,V)=>{const W=f.get(V);U.forEach(X=>Cc(X,W))}),b.forEach((U,V)=>{const W=E.get(V);U.forEach(X=>Cc(X,W))}),m.forEach(U=>{this.processLeaveNode(U)})});const D=[],I=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(W=>{const X=W.player,Ce=W.element;if(D.push(X),this.collectedEnterElements.length){const Ht=Ce[tr];if(Ht&&Ht.setForMove){if(Ht.previousTriggersValues&&Ht.previousTriggersValues.has(W.triggerName)){const Pn=Ht.previousTriggersValues.get(W.triggerName),yn=this.statesByElement.get(W.element);if(yn&&yn.has(W.triggerName)){const zi=yn.get(W.triggerName);zi.value=Pn,yn.set(W.triggerName,zi)}}return void X.destroy()}}const ft=!d||!this.driver.containsElement(d,Ce),Bt=E.get(Ce),cn=f.get(Ce),Xe=this._buildInstruction(W,i,cn,Bt,ft);if(Xe.errors&&Xe.errors.length)return void I.push(Xe);if(ft)return X.onStart(()=>za(Ce,Xe.fromStyles)),X.onDestroy(()=>no(Ce,Xe.toStyles)),void r.push(X);if(W.isFallbackTransition)return X.onStart(()=>za(Ce,Xe.fromStyles)),X.onDestroy(()=>no(Ce,Xe.toStyles)),void r.push(X);const wi=[];Xe.timelines.forEach(Ht=>{Ht.stretchStartingKeyframe=!0,this.disabledNodes.has(Ht.element)||wi.push(Ht)}),Xe.timelines=wi,i.append(Ce,Xe.timelines),s.push({instruction:Xe,player:X,element:Ce}),Xe.queriedElements.forEach(Ht=>Ni(a,Ht,[]).push(X)),Xe.preStyleProps.forEach((Ht,Pn)=>{if(Ht.size){let yn=l.get(Pn);yn||l.set(Pn,yn=new Set),Ht.forEach((zi,_o)=>yn.add(_o))}}),Xe.postStyleProps.forEach((Ht,Pn)=>{let yn=c.get(Pn);yn||c.set(Pn,yn=new Set),Ht.forEach((zi,_o)=>yn.add(_o))})});if(I.length){const U=[];I.forEach(V=>{U.push(function IW(n,t){return new P(3505,!1)}())}),D.forEach(V=>V.destroy()),this.reportError(U)}const Q=new Map,O=new Map;s.forEach(U=>{const V=U.element;i.has(V)&&(O.set(V,V),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,Q))}),r.forEach(U=>{const V=U.element;this._getPreviousPlayers(V,!1,U.namespaceId,U.triggerName,null).forEach(X=>{Ni(Q,V,[]).push(X),X.destroy()})});const q=m.filter(U=>uO(U,l,c)),le=new Map;aO(le,this.driver,y,c,Vo).forEach(U=>{uO(U,l,c)&&q.push(U)});const ke=new Map;p.forEach((U,V)=>{aO(ke,this.driver,new Set(U),l,"!")}),q.forEach(U=>{const V=le.get(U),W=ke.get(U);le.set(U,new Map([...Array.from(V?.entries()??[]),...Array.from(W?.entries()??[])]))});const Ae=[],dt=[],ht={};s.forEach(U=>{const{element:V,player:W,instruction:X}=U;if(i.has(V)){if(u.has(V))return W.onDestroy(()=>no(V,X.toStyles)),W.disabled=!0,W.overrideTotalTime(X.totalTime),void r.push(W);let Ce=ht;if(O.size>1){let Bt=V;const cn=[];for(;Bt=Bt.parentNode;){const Xe=O.get(Bt);if(Xe){Ce=Xe;break}cn.push(Bt)}cn.forEach(Xe=>O.set(Xe,Ce))}const ft=this._buildAnimation(W.namespaceId,X,Q,o,ke,le);if(W.setRealPlayer(ft),Ce===ht)Ae.push(W);else{const Bt=this.playersByElement.get(Ce);Bt&&Bt.length&&(W.parentPlayer=Ss(Bt)),r.push(W)}}else za(V,X.fromStyles),W.onDestroy(()=>no(V,X.toStyles)),dt.push(W),u.has(V)&&r.push(W)}),dt.forEach(U=>{const V=o.get(U.element);if(V&&V.length){const W=Ss(V);U.setRealPlayer(W)}}),r.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U!ft.destroyed);Ce.length?TJ(this,V,Ce):this.processLeaveNode(V)}return m.length=0,Ae.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const V=this.players.indexOf(U);this.players.splice(V,1)}),U.play()}),Ae}elementContainsData(t,e){let i=!1;const r=e[tr];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Ud;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Ni(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}za(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(f=>{const g=f.element;u.add(g);const m=g[tr];if(m&&m.removedBeforeQueried)return new Nd(f.duration,f.delay);const A=g!==l,y=function BJ(n){const t=[];return cO(n,t),t}((i.get(g)||vJ).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===g),E=o.get(g),b=s.get(g),D=FB(0,this._normalizer,0,f.keyframes,E,b),I=this._buildPlayer(f,D,y);if(f.subTimeline&&r&&d.add(g),A){const Q=new iC(t,a,g);Q.setRealPlayer(I),c.push(Q)}return I});c.forEach(f=>{Ni(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function IJ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>nr(f,VB));const p=Ss(h);return p.onDestroy(()=>{u.forEach(f=>Cc(f,VB)),no(l,e.toStyles)}),d.forEach(f=>{Ni(r,f,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Nd(t.duration,t.delay)}}class iC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Nd,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>RE(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ni(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Dg(n){return n&&1===n.nodeType}function sO(n,t){const e=n.style.display;return n.style.display=t??"none",e}function aO(n,t,e,i,r){const o=[];e.forEach(l=>o.push(sO(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[tr]=MJ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>sO(l,o[a++])),s}function lO(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function nr(n,t){n.classList?.add(t)}function Cc(n,t){n.classList?.remove(t)}function TJ(n,t,e){Ss(e).onDone(()=>n.processLeaveNode(t))}function cO(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Ig{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new DJ(t,e,i),this._timelineEngine=new bJ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=WE(this._driver,o,l,[]);if(l.length)throw function mW(n,t){return new P(3404,!1)}();a=function fJ(n,t,e){return new gJ(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=RB(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=RB(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let PJ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&no(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(no(this._element,this._initialStyles),this._endStyles&&(no(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(za(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(za(this._element,this._endStyles),this._endStyles=null),no(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function rC(n){let t=null;return n.forEach((e,i)=>{(function FJ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class dO{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:$B(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class RJ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return UB(t,e)}getParentElement(t){return UE(t)}query(t,e,i){return jB(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(p=>p instanceof dO);(function UW(n,t){return 0===n||0===t})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function RW(n){return n.length?n[0]instanceof Map?n:n.map(t=>GB(t)):[]}(e).map(p=>Ts(p));d=function jW(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,$B(n,a)))}}return t}(t,d,c);const h=function kJ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=rC(t[0]),t.length>1&&(i=rC(t[t.length-1]))):t instanceof Map&&(e=rC(t)),e||i?new PJ(n,e,i):null}(t,d);return new dO(t,d,l,h)}}let NJ=(()=>{class n extends SB{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ii.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?TB(e):e;return hO(this._renderer,null,i,"register",[r]),new LJ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(j(ed),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class LJ extends class W8{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new QJ(this._id,t,e||{},this._renderer)}}class QJ{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return hO(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function hO(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const pO="@.disabled";let UJ=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new fO("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new jJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),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()}}return n.\u0275fac=function(e){return new(e||n)(j(ed),j(Ig),j(At))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class fO{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==pO?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class jJ extends fO{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==pO?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function zJ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function HJ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let VJ=(()=>{class n extends Ig{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(jE),j(XE),j(Ra))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const gO=[{provide:SB,useClass:NJ},{provide:XE,useFactory:function GJ(){return new uJ}},{provide:Ig,useClass:VJ},{provide:ed,useFactory:function YJ(n,t,e){return new UJ(n,t,e)},deps:[zf,Ig,At]}],oC=[{provide:jE,useFactory:()=>new RJ},{provide:jx,useValue:"BrowserAnimations"},...gO],mO=[{provide:jE,useClass:zB},{provide:jx,useValue:"NoopAnimations"},...gO];let WJ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?mO:oC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:oC,imports:[s1]}),n})();class wt{static equals(t,e,i){return i?this.resolveFieldData(t,i)===this.resolveFieldData(e,i):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o,s,a,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if((s=t.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var h=Object.keys(t);if((s=h.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,h[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[a=h[o]],e[a]))return!1;return!0}return t!=t&&e!=e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(-1==e.indexOf("."))return t[e];{let i=e.split("."),r=t;for(let o=0,s=i.length;o=t.length&&(i%=t.length,e%=t.length),t.splice(i,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,t),o=!0;break}o||i.push(t)}else i.push(t)}static findIndexInList(t,e){let i=-1;if(e)for(let r=0;r-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t}static isEmpty(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,e,i,r=1){let o=-1;const s=this.isEmpty(t),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof t&&"string"==typeof e?t.localeCompare(e,i,{numeric:!0}):te?1:0,o}static sort(t,e,i=1,r,o=1){return(1===o?i:o)*wt.compare(t,e,r,i)}static merge(t,e){return null!=t&&"object"!=typeof t||null!=e&&"object"!=typeof e?null!=t&&"string"!=typeof t||null!=e&&"string"!=typeof e?e||t:[t||"",e||""].join(" "):{...t||{},...e||{}}}}var sC=function JJ(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const bO=["*"];let Hn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),KJ=(()=>{class n{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return wt.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r),s=wt.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=wt.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$J=(()=>{class n{constructor(){this.messageSource=new Me,this.clearSource=new Me,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),xg=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Hn.STARTS_WITH,Hn.CONTAINS,Hn.NOT_CONTAINS,Hn.ENDS_WITH,Hn.EQUALS,Hn.NOT_EQUALS],numeric:[Hn.EQUALS,Hn.NOT_EQUALS,Hn.LESS_THAN,Hn.LESS_THAN_OR_EQUAL_TO,Hn.GREATER_THAN,Hn.GREATER_THAN_OR_EQUAL_TO],date:[Hn.DATE_IS,Hn.DATE_IS_NOT,Hn.DATE_BEFORE,Hn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Me,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-header"]],ngContentSelectors:bO,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},encapsulation:2}),n})(),_O=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-footer"]],ngContentSelectors:bO,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},encapsulation:2}),n})(),ir=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(T(eo))},n.\u0275dir=ue({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),Go=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),jd=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Z=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+o.height>u.height?(p=a.top-h.top-o.height,e.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,e.style.transformOrigin="top"),f=o.width>u.width?-1*(a.left-h.left):a.left-h.left+o.width>u.width?-1*(a.left-h.left+o.width-u.width):a.left-h.left,e.style.top=p+"px",e.style.left=f+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+o>h.height?(p=c.top+u-o,e.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,e.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=p+"px",e.style.left=f+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,h=e.clientHeight,p=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+p>h&&(e.scrollTop=d+u-h+p)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&r.push(o);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class qJ{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=Z.getScrollableParents(this.element);for(let t=0;t{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Z.removeClass(i,"p-ink-active"),!Z.getHeight(i)&&!Z.getWidth(i)){let a=Math.max(Z.getOuterWidth(this.el.nativeElement),Z.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=Z.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-Z.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-Z.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",Z.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Z.removeClass(a,"p-ink-active")},401)}getInk(){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const XJ=["headerchkbox"],ZJ=["filter"];function eK(n,t){1&n&&Mt(0)}function tK(n,t){if(1&n&&(x(0,"div",7),ki(1),S(2,eK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}const EO=function(n){return{"p-checkbox-disabled":n}},nK=function(n,t,e){return{"p-highlight":n,"p-focus":t,"p-disabled":e}},CO=function(n){return{"pi pi-check":n}};function iK(n,t){if(1&n){const e=Re();x(0,"div",12)(1,"div",13)(2,"input",14),K("focus",function(){return re(e),oe(w(2).onHeaderCheckboxFocus())})("blur",function(){return re(e),oe(w(2).onHeaderCheckboxBlur())})("keydown.space",function(r){return re(e),oe(w(2).toggleAll(r))}),B()(),x(3,"div",15,16),K("click",function(r){return re(e),oe(w(2).toggleAll(r))}),ie(5,"span",17),B()()}if(2&n){const e=w(2);C("ngClass",Wt(5,EO,e.disabled||e.toggleAllDisabled)),v(2),C("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),v(1),C("ngClass",ka(7,nK,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),v(2),C("ngClass",Wt(11,CO,e.allChecked))}}function rK(n,t){1&n&&Mt(0)}const oK=function(n){return{options:n}};function sK(n,t){if(1&n&&(ct(0),S(1,rK,1,0,"ng-container",18),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Wt(2,oK,e.filterOptions))}}function aK(n,t){if(1&n){const e=Re();x(0,"div",20)(1,"input",21,22),K("input",function(r){return re(e),oe(w(3).onFilter(r))}),B(),ie(3,"span",23),B()}if(2&n){const e=w(3);v(1),C("value",e.filterValue||"")("disabled",e.disabled),Ot("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function lK(n,t){1&n&&S(0,aK,4,4,"div",19),2&n&&C("ngIf",w(2).filter)}function cK(n,t){if(1&n&&(x(0,"div",7),S(1,iK,6,13,"div",9),S(2,sK,2,4,"ng-container",10),S(3,lK,1,1,"ng-template",null,11,on),B()),2&n){const e=Qt(4),i=w();v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),v(1),C("ngIf",i.filterTemplate)("ngIfElse",e)}}function uK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionGroupLabel(e)||"empty")}}function dK(n,t){1&n&&Mt(0)}function hK(n,t){1&n&&Mt(0)}const aC=function(n){return{$implicit:n}};function pK(n,t){if(1&n&&(x(0,"li",25),S(1,uK,2,1,"span",3),S(2,dK,1,0,"ng-container",18),B(),S(3,hK,1,0,"ng-container",18)),2&n){const e=t.$implicit,i=w(2),r=Qt(8);v(1),C("ngIf",!i.groupTemplate),v(1),C("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",Wt(5,aC,e)),v(1),C("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(7,aC,i.getOptionGroupChildren(e)))}}function fK(n,t){if(1&n&&(ct(0),S(1,pK,4,9,"ng-template",24),ut()),2&n){const e=w();v(1),C("ngForOf",e.optionsToRender)}}function gK(n,t){1&n&&Mt(0)}function mK(n,t){if(1&n&&(ct(0),S(1,gK,1,0,"ng-container",18),ut()),2&n){const e=w(),i=Qt(8);v(1),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(2,aC,e.optionsToRender))}}const AK=function(n){return{"p-highlight":n}};function bK(n,t){if(1&n&&(x(0,"div",12)(1,"div",28),ie(2,"span",17),B()()),2&n){const e=w().$implicit,i=w(2);C("ngClass",Wt(3,EO,i.disabled||i.isOptionDisabled(e))),v(1),C("ngClass",Wt(5,AK,i.isSelected(e))),v(1),C("ngClass",Wt(7,CO,i.isSelected(e)))}}function yK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionLabel(e))}}function _K(n,t){1&n&&Mt(0)}const EK=function(n,t){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":t}},CK=function(n,t){return{$implicit:n,index:t}};function vK(n,t){if(1&n){const e=Re();x(0,"li",27),K("click",function(r){const s=re(e).$implicit;return oe(w(2).onOptionClick(r,s))})("dblclick",function(r){const s=re(e).$implicit;return oe(w(2).onOptionDoubleClick(r,s))})("touchend",function(){const o=re(e).$implicit;return oe(w(2).onOptionTouchEnd(o))})("keydown",function(r){const s=re(e).$implicit;return oe(w(2).onOptionKeyDown(r,s))}),S(1,bK,3,9,"div",9),S(2,yK,2,1,"span",3),S(3,_K,1,0,"ng-container",18),B()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);C("ngClass",Ji(8,EK,r.isSelected(e),r.isOptionDisabled(e))),Ot("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),v(1),C("ngIf",r.checkbox&&r.multiple),v(1),C("ngIf",!r.itemTemplate),v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ji(11,CK,e,i))}}function MK(n,t){1&n&&S(0,vK,4,14,"li",26),2&n&&C("ngForOf",t.$implicit)}function wK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),Xr(" ",e.emptyFilterMessageLabel," ")}}function DK(n,t){1&n&&Mt(0,null,30)}function IK(n,t){if(1&n&&(x(0,"li",29),S(1,wK,2,1,"ng-container",10),S(2,DK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),v(1),C("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function SK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),Xr(" ",e.emptyMessageLabel," ")}}function xK(n,t){1&n&&Mt(0,null,31)}function TK(n,t){if(1&n&&(x(0,"li",29),S(1,SK,2,1,"ng-container",10),S(2,xK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),v(1),C("ngTemplateOutlet",e.emptyTemplate)}}function BK(n,t){1&n&&Mt(0)}function OK(n,t){if(1&n&&(x(0,"div",32),ki(1,1),S(2,BK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const kK=[[["p-header"]],[["p-footer"]]],PK=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},FK=["p-header","p-footer"],RK={provide:Ri,useExisting:Je(()=>NK),multi:!0};let NK=(()=>{class n{constructor(e,i,r,o){this.el=e,this.cd=i,this.filterService=r,this.config=o,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new te,this.onClick=new te,this.onDblClick=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:e=>this.onFilter(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?wt.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?wt.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?wt.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?wt.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?wt.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,o=!0):(this.value=this.getOptionValue(i),o=!0)}else this.value=r?null:this.getOptionValue(i),o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],o=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],o=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!wt.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(wt.equals(o,r,this.dataKey)){i=!0;break}}else i=wt.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,o=0,s=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;o++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;o++}}return s===i||s===o||o&&s===o+r+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jd.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jd.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let r of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&i.push({...r,[this.optionGroupChildren]:o})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let o=this.getOptionGroupChildren(r);o&&o.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let o=this.isOptionDisabled(r);(!o||o&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)return;let r=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(r);o&&o.focus(),e.preventDefault();break;case 38:var s=this.findPrevItem(r);s&&s.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(oi),T(KJ),T(xg))},n.\u0275cmp=ve({type:n,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(Qn(r,yO,5),Qn(r,_O,5),Qn(r,ir,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(XJ,5),Zt(ZJ,5)),2&e){let r;He(r=Ve())&&(i.headerCheckboxViewChild=r.first),He(r=Ve())&&(i.filterViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[yt([RK])],ngContentSelectors:FK,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&($r(kK),x(0,"div",0),S(1,tK,3,1,"div",1),S(2,cK,5,3,"div",1),x(3,"div",0)(4,"ul",2),S(5,fK,2,1,"ng-container",3),S(6,mK,2,4,"ng-container",3),S(7,MK,1,1,"ng-template",null,4,on),S(9,IK,3,3,"li",5),S(10,TK,3,3,"li",5),B()(),S(11,OK,3,1,"div",6),B()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(16,PK,i.disabled))("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),v(1),Gt(i.listStyleClass),C("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),v(1),Ot("aria-multiselectable",i.multiple),v(1),C("ngIf",i.group),v(1),C("ngIf",!i.group),v(3),C("ngIf",i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",!i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Un,qi,Pt,zo,Xi,zd],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),lC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,Va,Go]}),n})();function LK(n,t){1&n&&Mt(0)}const QK=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function UK(n,t){if(1&n&&ie(0,"span",4),2&n){const e=w();Gt(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),C("ngClass",gf(4,QK,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ot("aria-hidden",!0)}}function jK(n,t){if(1&n&&(x(0,"span",5),de(1),B()),2&n){const e=w();Ot("aria-hidden",e.icon&&!e.label),v(1),pt(e.label)}}function zK(n,t){if(1&n&&(x(0,"span",4),de(1),B()),2&n){const e=w();Gt(e.badgeClass),C("ngClass",e.badgeStyleClass()),v(1),pt(e.badge)}}const HK=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},VK=["*"];let Bs=(()=>{class n{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,Z.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&wt.isEmpty(this.el.nativeElement.textContent)&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createLabel(){if(this.label){let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Z.addClass(e,i);let r=this.getIconClass();r&&Z.addMultipleClasses(e,r),this.el.nativeElement.insertBefore(e,this.el.nativeElement.firstChild)}}updateLabel(){let e=Z.findSingle(this.el.nativeElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.el.nativeElement.removeChild(e)}updateIcon(){let e=Z.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():e&&this.el.nativeElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275dir=ue({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),GK=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new te,this.onFocus=new te,this.onBlur=new te}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:VK,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&($r(),x(0,"button",0),K("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),ki(1),S(2,LK,1,0,"ng-container",1),S(3,UK,1,9,"span",2),S(4,jK,2,2,"span",3),S(5,zK,2,4,"span",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function sx(n,t,e,i,r,o,s,a){const l=ei()+n,c=N(),u=Wi(c,l,e,i,r,o);return Ln(c,l+4,s)||u?Kr(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):ld(c,l+5)}(11,HK,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ot("type",i.type)("aria-label",i.ariaLabel),v(2),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",!i.contentTemplate&&(i.icon||i.loading)),v(1),C("ngIf",!i.contentTemplate&&i.label),v(1),C("ngIf",!i.contentTemplate&&i.badge))},dependencies:[Un,Pt,zo,Xi,zd],encapsulation:2,changeDetection:0}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Va]}),n})();const vO=new class WK extends Or{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let JK=1;const KK=Promise.resolve(),Tg={};function MO(n){return n in Tg&&(delete Tg[n],!0)}const wO={setImmediate(n){const t=JK++;return Tg[t]=!0,KK.then(()=>MO(t)&&n()),t},clearImmediate(n){MO(n)}},DO=new class qK extends Or{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=wO.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(wO.clearImmediate(e),t.scheduled=void 0)}}),IO=new Or(Gf),Mc=IO;class ZK{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new e$(t,this.durationSelector))}}class e$ extends Aa{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ba(e,new ma(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function cC(n){return!Ar(n)&&n-parseFloat(n)+1>=0}function SO(n=0,t,e){let i=-1;return cC(t)?i=Number(t)<1?1:Number(t):as(t)&&(e=t),as(e)||(e=Mc),new et(r=>{const o=cC(n)?n:+n-e.now();return e.schedule(t$,o,{index:0,period:i,subscriber:r})})}function t$(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}let uC;try{uC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{uC=!1}let Hd,dC,i$=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function p3(n){return n===LT}(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&&!uC)&&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}}return n.\u0275fac=function(e){return new(e||n)(j(Ef))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vd(n){return function r$(){if(null==Hd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hd=!0}))}finally{Hd=Hd||!1}return Hd}()?n:!!n.capture}function TO(n){if(function o$(){if(null==dC){const n=typeof document<"u"?document.head:null;dC=!(!n||!n.createShadowRoot&&!n.attachShadow)}return dC}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Og(n){return n.composedPath?n.composedPath()[0]:n.target}let a$=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(function n$(n,t=Mc){return function XK(n){return function(e){return e.lift(new ZK(n))}}(()=>SO(n,t))}(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(j(i$),j(At),j(Jt,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),l$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();function rr(n){return n instanceof St?n.nativeElement:n}function Os(){}function bn(n,t,e){return function(r){return r.lift(new S$(n,t,e))}}class S${constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new x$(t,this.nextOrObserver,this.error,this.complete))}}class x$ extends Ge{constructor(t,e,i,r){super(t),this._tapNext=Os,this._tapError=Os,this._tapComplete=Os,this._tapError=i||Os,this._tapComplete=r||Os,Eo(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Os,this._tapError=e.error||Os,this._tapComplete=e.complete||Os)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function kg(n,t=Mc){return e=>e.lift(new T$(n,t))}class T${constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new B$(t,this.dueTime,this.scheduler))}}class B$ extends Ge{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O$,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function O$(n){n.debouncedNext()}class kO extends class F${constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=We.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,t instanceof Ad&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(bn(e=>this._pressedLetters.push(e)),kg(t),Zi(()=>this._pressedLetters.length>0),fe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){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;default:return void((r||function I$(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ad?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function G$(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function Vn(n){return t=>t.lift(new Y$(n))}class Y${constructor(t){this.notifier=t}call(t,e){const i=new W$(t),r=ba(this.notifier,new ma(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class W$ extends Aa{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function hC(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Dc(n,t){const e=t?"":"none";hC(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function FO(n,t,e){hC(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Pg(n,t){return t&&"none"!=t?n+" "+t:n}function RO(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function pC(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function fC(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function gC(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function Gd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function NO(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:fC(e)})})}handleScroll(t){const e=Og(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Gd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function QO(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new LO(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=function c$(n){return null!=n&&"false"!=`${n}`}(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Dc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>rr(i)),this._handles.forEach(i=>Dc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=rr(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Fg),e.addEventListener("touchstart",this._pointerDown,HO),e.addEventListener("dragstart",this._nativeDragStart,Fg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?rr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Dc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Dc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Yd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),FO(i,!1,mC),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Yd(e),o=!r&&0!==e.button,s=this._rootElement,a=Og(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?function z$(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e):function j$(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=fC(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){FO(this._rootElement,!0,mC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=GO(s,this._document),this._previewRef=s,t.matchSize?YO(r,o):r.style.transform=Rg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=QO(this._rootElement),YO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return hC(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},mC),Dc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function J$(n){const t=getComputedStyle(n),e=pC(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=pC(t,"transition-duration"),s=pC(t,"transition-delay");return RO(o[r])+RO(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Og(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=GO(this._placeholderRef,this._document)):i=QO(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Yd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Yd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=VO(i,a.left+o,a.right-(l-o)),r=VO(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Dc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Fg),t.removeEventListener("touchstart",this._pointerDown,HO),t.removeEventListener("dragstart",this._nativeDragStart,Fg)}_applyRootElementTransform(t,e){const i=Rg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Pg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Rg(t,e);this._preview.style.transform=Pg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Yd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Og(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Gd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=TO(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return rr(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Rg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function VO(n,t,e){return Math.max(t,Math.min(e,n))}function Yd(n){return"t"===n.type[0]}function GO(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function YO(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Rg(t.left,t.top)}function Wd(n,t){return Math.max(0,Math.min(t,n))}class Z${constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(m=>m.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(o[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,o,h),g=o.slice();return function X$(n,t,e){const i=Wd(t,n.length-1),r=Wd(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(g[A]===m)return;const y=m.drag===t,E=y?p:f,b=y?t.getPlaceholderElement():m.drag.getRootElement();m.offset+=E,a?(b.style.transform=Pg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),Gd(m.clientRect,0,E)):(b.style.transform=Pg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),Gd(m.clientRect,E,0))}),this._previousSwap.overlaps=gC(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else rr(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Gd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:fC(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=We.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function V$(n=0,t=Mc){return(!cC(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Mc),new et(e=>(e.add(t.schedule(G$,n,{subscriber:e,counter:0,period:n})),e))}(0,vO).pipe(Vn(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=rr(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LO(i),this._sortStrategy=new Z$(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=rr(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!NO(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||NO(s.clientRect,.05,t,e)&&([r,o]=function t9(n,t,e,i){const r=KO(t,i),o=$O(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=KO(l,e),o=$O(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=rr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=rr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=rr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&gC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!gC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=rr(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=TO(rr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function KO(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function $O(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Ng=Vd({passive:!1,capture:!0});let n9=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ng)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ng)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ng}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Ng}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new et(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),ya(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const i9={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let r9=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=i9){return new q$(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new e9(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(At),j(a$),j(n9))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[r9],imports:[l$]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,vc,Go,Va,qO,Go,qO]}),n})();const y9=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjMyODEgMjJWMjEuMDE1Nkw3LjkwNjI1IDIwLjc5NjlWMTEuODM1OUw2LjYzMjgxIDExLjYxNzJWMTAuNjI1SDEwLjcxODhWMTEuNjE3Mkw5LjQ0NTMxIDExLjgzNTlWMTUuNzY1NkgxNC44ODI4VjExLjgzNTlMMTMuNjA5NCAxMS42MTcyVjEwLjYyNUgxNy42OTUzVjExLjYxNzJMMTYuNDIxOSAx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I0LjMxNzcgMjEuMTEyIDIzLjg5MDYgMjEuNDk0OCAyMy4zNDM4IDIxLjc2NTZDMjIuNzk2OSAyMi4wMzEyIDIyLjE3MTkgMjIuMTY0MSAyMS40Njg4IDIyLjE2NDFaIiBmaWxsPSIjMjIyMjIyIi8+Cjwvc3ZnPgo="],I9=new rE(document),XO=[...Array(3).keys()].map(n=>{const t=n+1;return{label:`Heading ${t}`,icon:ks(y9[n]),id:`heading${t}`,attributes:{level:t}}}),bC={label:"Paragraph",icon:ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDc0NjEgMTZWMTUuMjYxN0w3LjQyOTY5IDE1LjA5NzdWOC4zNzY5NUw2LjQ3NDYxIDguMjEyODlWNy40Njg3NUgxMC4zOTQ1QzExLjMwNDcgNy40Njg3NSAxMi4wMTE3IDcuNzAzMTIgMTIuNTE1NiA4LjE3MTg4QzEzLjAyMzQgOC42NDA2MiAxMy4yNzczIDkuMjU3ODEgMTMuMjc3MyAxMC4wMjM0QzEzLjI3NzMgMTAuNzk2OSAxMy4wMjM0IDExLjQxNiAxMi41MTU2IDExLjg4MDlDMTIuMDExNyAxMi4zNDU3IDExLjMwNDcgMTIuNTc4MSAxMC4zOTQ1IDEyLjU3ODFIOC41ODM5OFYxNS4wOTc3TDkuNTM5MDYgMTUuMjYxN1YxNkg2LjQ3NDYxWk04LjU4Mzk4IDExLjY3NThIMTAuMzk0NUMxMC45NzI3IDExLjY3NTggMTEuNDA0MyAxMS41MjE1IDExLjY4OTUgMTEuMjEyOUMxMS45Nzg1IDEwLjkwMDQgMTIuMTIzIDEwLjUwNzggMTIuMTIzIDEwLjAzNTJDMTIuMTIzIDkuNTYyNSAxMS45Nzg1IDkuMTY3OTcgMTEuNjg5NSA4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zIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQgMjAuNkw4LjggMTZMMTMuNCAxMS40TDEyIDEwTDYgMTZMMTIgMjJMMTMuNCAyMC42Wk0xOC42IDIwLjZMMjMuMiAxNkwxOC42IDExLjRMMjAgMTBMMjYgMTZMMjAgMjJMMTguNiAyMC42WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="),id:"codeBlock"},{label:"Horizontal Line",icon:ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function ks(n){return I9.bypassSecurityTrustUrl(n)}const Lg=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...XO,{label:"Table",icon:"table_view",id:"table"},...ZO,...B9,bC],O9=[...XO,bC,...ZO],k9=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],F9={horizontalRule:!0,table:!0,image:!0,video:!0},R9=[...Lg.filter(n=>!F9[n.id])],ek=function({type:n,editor:t,range:e,suggestionKey:i,ItemsType:r}){const o={to:e.to+i.getState(t.view.state).query?.length,from:n===r.BLOCK?e.from:e.from+1};t.chain().deleteRange(o).run()},tk={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class L9{getQueryParams(){const t=window.location.search.substring(1).split("&"),e=new Map;return t.forEach(i=>{const r=i.split("=");e.set(r[0],r[1])}),e}getQueryStringParam(t){let e=null;const r=new RegExp("[?&]"+t.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return r&&r[2]&&(e=decodeURIComponent(r[2].replace(/\+/g," "))),e}}let nk=(()=>{class n{getLine(e,i){let r=null;if(e){const o=e.split("\n");r=o&&o.length>i?o[i]:null}return r}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(i,r)=>0===r?i.toLowerCase():i.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),U9=(()=>{class n{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new L9,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...i){i&&i.length>0?console.info(this.wrapMessage(e),i):console.info(this.wrapMessage(e))}error(e,...i){i&&i.length>0?console.error(this.wrapMessage(e),i):console.error(this.wrapMessage(e))}warn(e,...i){i&&i.length>0?console.warn(this.wrapMessage(e),i):console.warn(this.wrapMessage(e))}debug(e,...i){i&&i.length>0?console.debug(this.wrapMessage(e),i):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(i){e=this.cleanCaller(this.stringUtils.getLine(i.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}return n.\u0275fac=function(e){return new(e||n)(j(nk))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Y9=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Jd=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};function Gn(n){this.content=n}Jd.\u0275prov=Y({token:Jd,factory:Jd.\u0275fac}),Jd=function z9(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Rp("config"),function H9(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[Y9])],Jd),Gn.prototype={constructor:Gn,find:function(n){for(var t=0;t>1}},Gn.from=function(n){if(n instanceof Gn)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new Gn(t)};const sk=Gn;function ak(n,t,e){for(let i=0;;i++){if(i==n.childCount||i==t.childCount)return n.childCount==t.childCount?null:e;let r=n.child(i),o=t.child(i);if(r!=o){if(!r.sameMarkup(o))return e;if(r.isText&&r.text!=o.text){for(let s=0;r.text[s]==o.text[s];s++)e++;return e}if(r.content.size||o.content.size){let s=ak(r.content,o.content,e+1);if(null!=s)return s}e+=r.nodeSize}else e+=r.nodeSize}}function lk(n,t,e,i){for(let r=n.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:e,b:i};let s=n.child(--r),a=t.child(--o),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:e,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ct&&!1!==i(l,r+a,o||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),i,r+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,i,r){let o="",s=!0;return this.nodesBetween(t,e,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(t,l)-l,e-l),s=!i):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(o+=i,s=!0)},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,i=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(i)&&(r[r.length-1]=e.withText(e.text+i.text),o=1);ot)for(let o=0,s=0;st&&((se)&&(a=a.isText?a.cut(Math.max(0,t-s),Math.min(a.text.length,e-s)):a.cut(Math.max(0,t-s-1),Math.min(a.content.size,e-s-1))),i.push(a),r+=a.nodeSize),s=l}return new L(i,r)}cutByIndex(t,e){return t==e?L.empty:0==t&&e==this.content.length?this:new L(this.content.slice(t,e))}replaceChild(t,e){let i=this.content[t];if(i==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-i.nodeSize;return r[t]=e,new L(r,o)}addToStart(t){return new L([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new L(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=r+this.child(i).nodeSize;if(s>=t)return s==t||e>0?Ug(i+1,s):Ug(i,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return L.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new L(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return L.empty;let e,i=0;for(let r=0;r{class n{constructor(e,i){this.type=e,this.attrs=i}addToSet(e){let i,r=!1;for(let o=0;othis.type.rank&&(i||(i=e.slice(0,o)),i.push(this),r=!0),i&&i.push(s)}}return i||(i=e.slice()),r||i.push(this),i}removeFromSet(e){for(let i=0;ir.type.rank-o.type.rank),i}}return n.none=[],n})();class zg extends Error{}class G{constructor(t,e,i){this.content=t,this.openStart=e,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let i=uk(this.content,t+this.openStart,e);return i&&new G(i,this.openStart,this.openEnd)}removeBetween(t,e){return new G(ck(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return G.empty;let i=e.openStart||0,r=e.openEnd||0;if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new G(L.fromJSON(t,e.content),i,r)}static maxOpen(t,e=!0){let i=0,r=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=t.lastChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.lastChild)r++;return new G(t,i,r)}}function ck(n,t,e){let{index:i,offset:r}=n.findIndex(t),o=n.maybeChild(i),{index:s,offset:a}=n.findIndex(e);if(r==t||o.isText){if(a!=e&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,o.copy(ck(o.content,t-r-1,e-r-1)))}function uk(n,t,e,i){let{index:r,offset:o}=n.findIndex(t),s=n.maybeChild(r);if(o==t||s.isText)return i&&!i.canReplace(r,r,e)?null:n.cut(0,t).append(e).append(n.cut(t));let a=uk(s.content,t-o-1,e);return a&&n.replaceChild(r,s.copy(a))}function W9(n,t,e){if(e.openStart>n.depth)throw new zg("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new zg("Inconsistent open depths");return dk(n,t,e,0)}function dk(n,t,e,i){let r=n.index(i),o=n.node(i);if(r==t.index(i)&&i=0;o--)r=t.node(o).copy(L.from(r));return{start:r.resolveNoCache(n.openStart+e),end:r.resolveNoCache(r.content.size-n.openEnd-e)}}(e,n);return Wa(o,pk(n,s,a,t,i))}{let s=n.parent,a=s.content;return Wa(s,a.cut(0,n.parentOffset).append(e.content).append(a.cut(t.parentOffset)))}}return Wa(o,Hg(n,t,i))}function hk(n,t){if(!t.type.compatibleContent(n.type))throw new zg("Cannot join "+t.type.name+" onto "+n.type.name)}function EC(n,t,e){let i=n.node(e);return hk(i,t.node(e)),i}function Ya(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function Kd(n,t,e,i){let r=(t||n).node(e),o=0,s=t?t.index(e):r.childCount;n&&(o=n.index(e),n.depth>e?o++:n.textOffset&&(Ya(n.nodeAfter,i),o++));for(let a=o;ar&&EC(n,t,r+1),s=i.depth>r&&EC(e,i,r+1),a=[];return Kd(null,n,r,a),o&&s&&t.index(r)==e.index(r)?(hk(o,s),Ya(Wa(o,pk(n,t,e,i,r+1)),a)):(o&&Ya(Wa(o,Hg(n,t,r+1)),a),Kd(t,e,r,a),s&&Ya(Wa(s,Hg(e,i,r+1)),a)),Kd(i,null,r,a),new L(a)}function Hg(n,t,e){let i=[];return Kd(null,n,e,i),n.depth>e&&Ya(Wa(EC(n,t,e+1),Hg(n,t,e+1)),i),Kd(t,null,e,i),new L(i)}G.empty=new G(L.empty,0,0);class $d{constructor(t,e,i){this.pos=t,this.path=e,this.parentOffset=i,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(e);return i?t.child(e).cut(i):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let i=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let o=0;o0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!e||e(this.node(i))))return new Vg(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let i=[],r=0,o=e;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(i.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;o=c-1,r+=l+1}return new $d(e,i,o)}static resolveCached(t,e){for(let r=0;rt&&this.nodesBetween(t,e,o=>(i.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),fk(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,i=L.empty,r=0,o=i.childCount){let s=this.contentMatchAt(t).matchFragment(i,r,o),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let l=r;le.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,i)}let r=L.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,i)}}ro.prototype.text=void 0;class Gg extends ro{constructor(t,e,i,r){if(super(t,e,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):fk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Gg(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Gg(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function fk(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class Ja{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let i=new q9(t,e);if(null==i.next)return Ja.empty;let r=gk(i);i.next&&i.err("Unexpected trailing text");let o=function r6(n){let t=Object.create(null);return function e(i){let r=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||r.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let o=t[i.join(",")]=new Ja(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(o(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=e();return i(a,l),r(o(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=e();return r(o(s.expr,a),l),r(o(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(o(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(r));return function o6(n,t){for(let e=0,i=[n];ec.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(i){t.push(i);for(let r=0;r{let o=r+(i.validEnd?"*":" ")+" ";for(let s=0;s"+t.indexOf(i.next[s].next);return o}).join("\n")}}Ja.empty=new Ja(!0);class q9{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function gk(n){let t=[];do{t.push(X9(n))}while(n.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function X9(n){let t=[];do{t.push(Z9(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function Z9(n){let t=function n6(n){if(n.eat("(")){let t=gk(n);return n.eat(")")||n.err("Missing closing paren"),t}if(!/\W/.test(n.next)){let t=function t6(n,t){let e=n.nodeTypes,i=e[t];if(i)return[i];let r=[];for(let o in e){let s=e[o];s.groups.indexOf(t)>-1&&r.push(s)}return 0==r.length&&n.err("No node type or group '"+t+"' found"),r}(n,n.next).map(e=>(null==n.inline?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else{if(!n.eat("{"))break;t=e6(n,t)}return t}function mk(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function e6(n,t){let e=mk(n),i=e;return n.eat(",")&&(i="}"!=n.next?mk(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:i,expr:t}}function Ak(n,t){return t-n}function bk(n,t){let e=[];return function i(r){let o=n[r];if(1==o.length&&!o[0].term)return i(o[0].to);e.push(r);for(let s=0;s-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;ei[o]=new Yg(o,e,s));let r=e.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class s6{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class Wg{constructor(t,e,i,r){this.name=t,this.rank=e,this.schema=i,this.spec=r,this.attrs=Ek(r.attrs),this.excluded=null;let o=yk(this.attrs);this.instance=o?new Tt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Tt(this,_k(this.attrs,t))}static compile(t,e){let i=Object.create(null),r=0;return t.forEach((o,s)=>i[o]=new Wg(o,r++,e,s)),i}removeFromSet(t){for(var e=0;e-1}}class a6{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=sk.from(t.nodes),e.marks=sk.from(t.marks||{}),this.nodes=Yg.compile(this.spec.nodes,this),this.marks=Wg.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=i[s]||(i[s]=Ja.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?Ck(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(let r in this.marks){let o=this.marks[r],s=o.spec.excludes;o.excluded=null==s?[o]:""==s?[]:Ck(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,i,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Yg))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,i,r)}text(t,e){let i=this.nodes.text;return new Gg(i,i.defaultAttrs,t,Tt.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return ro.fromJSON(this,t)}markFromJSON(t){return Tt.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Ck(n,t){let e=[];for(let i=0;i-1)&&e.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return e}class Ic{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let r=t.nodes[i.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let i=new Dk(this,e,!1);return i.addAll(t,e.from,e.to),i.finish()}parseSlice(t,e={}){let i=new Dk(this,e,!0);return i.addAll(t,e.from,e.to),G.maxOpen(i.finish())}matchTag(t,e,i){for(let r=i?this.tags.indexOf(i)+1:0;rt.length&&(61!=a.charCodeAt(t.length)||a.slice(t.length+1)!=e))){if(s.getAttrs){let l=s.getAttrs(e);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let e=[];function i(r){let o=r.priority??50,s=0;for(;s{i(s=Ik(s)),s.mark=r})}for(let r in t.nodes){let o=t.nodes[r].spec.parseDOM;o&&o.forEach(s=>{i(s=Ik(s)),s.node=r})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Ic(t,Ic.schemaRules(t)))}}const vk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},l6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Mk={ol:!0,ul:!0};function wk(n,t,e){return null!=t?(t?1:0)|("full"===t?2:0):n&&"pre"==n.whitespace?3:-5&e}class $g{constructor(t,e,i,r,o,s,a){this.type=t,this.attrs=e,this.marks=i,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=Tt.none,this.stashMarks=[],this.match=s||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(L.from(t));if(!e){let r,i=this.type.contentMatch;return(r=i.findWrapping(t.type))?(this.match=i,r):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let r,i=this.content[this.content.length-1];if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let e=L.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(L.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,i=this.pendingMarks;ethis.insertNode(l));else{let l=t;"string"==typeof e.contentElement?l=t.querySelector(e.contentElement):"function"==typeof e.contentElement?l=e.contentElement(t):e.contentElement&&(l=e.contentElement),this.findAround(t,l,!0),this.addAll(l)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(t,e,i){let r=e||0;for(let o=e?t.childNodes[e]:t.firstChild,s=null==i?null:t.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(o);this.findAtPoint(t,r)}findPlace(t){let e,i;for(let r=this.open;r>=0;r--){let o=this.nodes[r],s=o.findWrapping(t);if(s&&(!e||e.length>s.length)&&(e=s,i=o,!s.length)||o.solid)break}if(!e)return!1;this.sync(i);for(let r=0;rthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let i=this.nodes[e].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=(r?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=e[a];if(""==c){if(a==e.length-1||0==a)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&r?this.nodes[l].type:i&&l>=o?i.node(l-o).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let i=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let e in this.parser.schema.nodes){let i=this.parser.schema.nodes[e];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let e=function p6(n,t){for(let e=0;e=0;i--){let r=this.nodes[i];if(r.pendingMarks.lastIndexOf(t)>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);let s=r.popFromStashMark(t);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function u6(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function Ik(n){let t={};for(let e in n)t[e]=n[e];return t}function h6(n,t){let e=t.schema.nodes;for(let i in e){let r=e[i];if(!r.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let l=0;l{if(o.length||s.marks.length){let a=0,l=0;for(;a=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(t,e,i={}){let r=this.marks[t.type.name];return r&&oo.renderSpec(MC(i),r(t,e))}static renderSpec(t,e,i=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let r=e[0],o=r.indexOf(" ");o>0&&(i=r.slice(0,o),r=r.slice(o+1));let s,a=i?t.createElementNS(i,r):t.createElement(r),l=e[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=oo.renderSpec(t,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new oo(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=Sk(t.nodes);return e.text||(e.text=i=>i.text),e}static marksFromSchema(t){return Sk(t.marks)}}function Sk(n){let t={};for(let e in n){let i=n[e].spec.toDOM;i&&(t[e]=i)}return t}function MC(n){return n.document||window.document}const Tk=Math.pow(2,16);function f6(n,t){return n+t*Tk}function Bk(n){return 65535&n}class wC{constructor(t,e,i){this.pos=t,this.delInfo=e,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class or{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&or.empty)return or.empty}recover(t){let e=0,i=Bk(t);if(!this.inverted)for(let r=0;rt)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let p=l+r+((c?t==l?-1:t==d?1:e:e)<0?0:u);if(i)return p;let f=t==(e<0?l:d)?null:f6(a/3,t-l),g=t==l?2:t==d?1:4;return(e<0?t!=l:t!=d)&&(g|=8),new wC(p,g,f)}r+=u-c}return i?t+r:new wC(t+r,0,null)}touches(t,e){let i=0,r=Bk(e),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;at)break;let c=this.ranges[a+o];if(t<=l+c&&a==3*r)return!0;i+=this.ranges[a+s]-c}return!1}forEach(t){let e=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,o=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?i-r-1:void 0)}}invert(){let t=new Sc;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;io&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,r),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,o)}invert(){return new so(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new Ps(e.pos,i.pos,this.mark)}merge(t){return t instanceof Ps&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ps(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ps(e.from,e.to,t.markFromJSON(e.mark))}}Yn.jsonID("addMark",Ps);class so extends Yn{constructor(t,e,i){super(),this.from=t,this.to=e,this.mark=i}apply(t){let e=t.slice(this.from,this.to),i=new G(IC(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,i)}invert(){return new Ps(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new so(e.pos,i.pos,this.mark)}merge(t){return t instanceof so&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new so(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new so(e.from,e.to,t.markFromJSON(e.mark))}}Yn.jsonID("removeMark",so);class Fs extends Yn{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at mark step's position");let i=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(i),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let i=this.mark.addToSet(e.marks);if(i.length==e.marks.length){for(let r=0;ri.pos?null:new Cn(e.pos,i.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Cn(e.from,e.to,e.gapFrom,e.gapTo,G.fromJSON(t,e.slice),e.insert,!!e.structure)}}function SC(n,t,e){let i=n.resolve(t),r=e-t,o=i.depth;for(;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0){let s=i.node(o).maybeChild(i.indexAfter(o));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function y6(n,t,e){return(0==t||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function Tc(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let r=n.$from.node(i),o=n.$from.index(i),s=n.$to.indexAfter(i);if(io;c--,u--){let d=r.node(c),h=r.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u]||d;if(f!=d&&(p=p.replaceChild(0,f.type.create(f.attrs))),!d.canReplace(h+1,d.childCount)||!f.type.validContent(p))return!1}let a=r.indexAfter(o),l=i&&i[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function Rs(n,t){let e=n.resolve(t),i=e.index();return Rk(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(i,i+1)}function Rk(n,t){return!(!n||!t||n.isLeaf||!n.canAppend(t))}function Nk(n,t,e=-1){let i=n.resolve(t);for(let r=i.depth;;r--){let o,s,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):e>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Rk(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=e<0?i.before(r):i.after(r)}}function Lk(n,t,e){let i=n.resolve(t);if(!e.content.size)return t;let r=e.content;for(let o=0;o=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==o)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function TC(n,t,e=t,i=G.empty){if(t==e&&!i.size)return null;let r=n.resolve(t),o=n.resolve(e);return Qk(r,o,i)?new Wn(t,e,i):new T6(r,o,i).fit()}function Qk(n,t,e){return!e.openStart&&!e.openEnd&&n.start()==t.start()&&n.parent.canReplace(n.index(),t.index(),e.content)}Yn.jsonID("replaceAround",Cn);class T6{constructor(t,e,i){this.$from=t,this.$to=e,this.unplaced=i,this.frontier=[],this.placed=L.empty;for(let r=0;r<=t.depth;r++){let o=t.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=L.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let o=this.placed,s=i.depth,a=r.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new G(o,s,a);return t>-1?new Cn(i.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||i.pos!=this.$to.pos?new Wn(i.pos,r.pos,l):null}findFittable(){for(let t=1;t<=2;t++)for(let e=this.unplaced.openStart;e>=0;e--){let i,r=null;e?(r=BC(this.unplaced.content,e-1).firstChild,i=r.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let c,{type:a,match:l}=this.frontier[s],u=null;if(1==t&&(o?l.matchType(o.type)||(u=l.fillBefore(L.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:e,frontierDepth:s,parent:r,inject:u};if(2==t&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:e,frontierDepth:s,parent:r,wrap:c};if(r&&l.matchType(r.type))break}}}openMore(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=BC(t,e);return!(!r.childCount||r.firstChild.isLeaf||(this.unplaced=new G(t,e+1,Math.max(i,r.size+e>=t.size-i?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=BC(t,e);if(r.childCount<=1&&e>0){let o=t.size-e<=e+r.size;this.unplaced=new G(Xd(t,e-1,1),e-1,o?e-1:i)}else this.unplaced=new G(Xd(t,e,1),e,i)}placeNodes({sliceDepth:t,frontierDepth:e,parent:i,inject:r,wrap:o}){for(;this.depth>e;)this.closeFrontierNode();if(o)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(Uk(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Zd(this.placed,e,L.from(u)),this.frontier[e].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:i,type:r}=this.frontier[e],o=e=0;a--){let{match:l,type:c}=this.frontier[a],u=OC(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:e,fit:s,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=Zd(this.placed,e.depth,e.fit)),t=e.move;for(let i=e.depth+1;i<=t.depth;i++){let r=t.node(i),o=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,o)}return t}openFrontierNode(t,e=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=Zd(this.placed,this.depth,L.from(t.create(e,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(L.empty,!0);e.childCount&&(this.placed=Zd(this.placed,this.frontier.length,e))}}function Xd(n,t,e){return 0==t?n.cutByIndex(e,n.childCount):n.replaceChild(0,n.firstChild.copy(Xd(n.firstChild.content,t-1,e)))}function Zd(n,t,e){return 0==t?n.append(e):n.replaceChild(n.childCount-1,n.lastChild.copy(Zd(n.lastChild.content,t-1,e)))}function BC(n,t){for(let e=0;e1&&(i=i.replaceChild(0,Uk(i.firstChild,t-1,1==i.childCount?e-1:0))),t>0&&(i=n.type.contentMatch.fillBefore(i).append(i),e<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(L.empty,!0)))),n.copy(i)}function OC(n,t,e,i,r){let o=n.node(t),s=r?n.indexAfter(t):n.index(t);if(s==o.childCount&&!e.compatibleContent(o.type))return null;let a=i.fillBefore(o.content,!0,s);return a&&!function B6(n,t,e){for(let i=e;ii){let o=r.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(L.empty,!0))}return n}function zk(n,t){let e=[];for(let r=Math.min(n.depth,t.depth);r>=0;r--){let o=n.start(r);if(ot.pos+(t.depth-r)||n.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==n.depth&&r==t.depth&&n.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&e.push(r)}return e}class Bc extends Yn{constructor(t,e,i){super(),this.pos=t,this.attr=e,this.value=i}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at attribute step's position");let i=Object.create(null);for(let o in e.attrs)i[o]=e.attrs[o];i[this.attr]=this.value;let r=e.type.create(i,null,e.marks);return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(r),0,e.isLeaf?0:1))}getMap(){return or.empty}invert(t){return new Bc(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Bc(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bc(e.pos,e.attr,e.value)}}Yn.jsonID("attr",Bc);let Oc=class extends Error{};Oc=function n(t){let e=Error.call(this,t);return e.__proto__=n.prototype,e},(Oc.prototype=Object.create(Error.prototype)).constructor=Oc,Oc.prototype.name="TransformError";class kC{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Sc}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Oc(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,i=G.empty){let r=TC(this.doc,t,e,i);return r&&this.step(r),this}replaceWith(t,e,i){return this.replace(t,e,new G(L.from(i),0,0))}delete(t,e){return this.replace(t,e,G.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,i){return function k6(n,t,e,i){if(!i.size)return n.deleteRange(t,e);let r=n.doc.resolve(t),o=n.doc.resolve(e);if(Qk(r,o,i))return n.step(new Wn(t,e,i));let s=zk(r,n.doc.resolve(e));0==s[s.length-1]&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let h=r.depth,p=r.pos-1;h>0;h--,p--){let f=r.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:r.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=O6(p);if(f&&r.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(t,e,i),!(n.steps.length>d));h--){let p=s[h];p<0||(t=r.before(p),e=o.after(p))}}(this,t,e,i),this}replaceRangeWith(t,e,i){return function P6(n,t,e,i){if(!i.isInline&&t==e&&n.doc.resolve(t).parent.content.size){let r=function x6(n,t,e){let i=n.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),e))return t;if(0==i.parentOffset)for(let r=i.depth-1;r>=0;r--){let o=i.index(r);if(i.node(r).canReplaceWith(o,o,e))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let o=i.indexAfter(r);if(i.node(r).canReplaceWith(o,o,e))return i.after(r+1);if(o0&&(l||i.node(a-1).canReplace(i.index(a-1),r.indexAfter(a-1))))return n.delete(i.before(a),r.after(a))}for(let s=1;s<=i.depth&&s<=r.depth;s++)if(t-i.start(s)==i.depth-s&&e>i.end(s)&&r.end(s)-e!=r.depth-s)return n.delete(i.before(s),e);n.delete(t,e)}(this,t,e),this}lift(t,e){return function _6(n,t,e){let{$from:i,$to:r,depth:o}=t,s=i.before(o+1),a=r.after(o+1),l=s,c=a,u=L.empty,d=0;for(let f=o,g=!1;f>e;f--)g||i.index(f)>0?(g=!0,u=L.from(i.node(f).copy(u)),d++):l--;let h=L.empty,p=0;for(let f=o,g=!1;f>e;f--)g||r.after(f+1)=0;s--){if(i.size){let a=e[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=L.from(e[s].type.create(e[s].attrs,i))}let r=t.start,o=t.end;n.step(new Cn(r,o,r,o,new G(i,0,0),e.length,!0))}(this,t,e),this}setBlockType(t,e=t,i,r=null){return function M6(n,t,e,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(t,e,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,r)&&function w6(n,t,e){let i=n.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,e)}(n.doc,n.mapping.slice(o).map(a),i)){n.clearIncompatible(n.mapping.slice(o).map(a,1),i);let l=n.mapping.slice(o),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new Cn(c,u,c+1,u-1,new G(L.from(i.create(r,null,s.marks)),0,0),1,!0)),!1}})}(this,t,e,i,r),this}setNodeMarkup(t,e,i=null,r=[]){return function D6(n,t,e,i,r){let o=n.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");e||(e=o.type);let s=e.create(i,null,r||o.marks);if(o.isLeaf)return n.replaceWith(t,t+o.nodeSize,s);if(!e.validContent(o.content))throw new RangeError("Invalid content for node type "+e.name);n.step(new Cn(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new G(L.from(s),0,0),1,!0))}(this,t,e,i,r),this}setNodeAttribute(t,e,i){return this.step(new Bc(t,e,i)),this}addNodeMark(t,e){return this.step(new Fs(t,e)),this}removeNodeMark(t,e){if(!(e instanceof Tt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(i.marks)))return this}return this.step(new xc(t,e)),this}split(t,e=1,i){return function I6(n,t,e=1,i){let r=n.doc.resolve(t),o=L.empty,s=L.empty;for(let a=r.depth,l=r.depth-e,c=e-1;a>l;a--,c--){o=L.from(r.node(a).copy(o));let u=i&&i[c];s=L.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}n.step(new Wn(t,t,new G(o.append(s),e,e),!0))}(this,t,e,i),this}addMark(t,e,i){return function m6(n,t,e,i){let s,a,r=[],o=[];n.doc.nodesBetween(t,e,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,t),p=Math.min(c+l.nodeSize,e),f=i.addToSet(d);for(let g=0;gn.step(l)),o.forEach(l=>n.step(l))}(this,t,e,i),this}removeMark(t,e,i){return function A6(n,t,e,i){let r=[],o=0;n.doc.nodesBetween(t,e,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(i instanceof Wg){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,e);for(let u=0;un.step(new so(s.from,s.to,s.style)))}(this,t,e,i),this}clearIncompatible(t,e,i){return function b6(n,t,e,i=e.contentMatch){let r=n.doc.nodeAt(t),o=[],s=t+1;for(let a=0;a=0;a--)n.step(o[a])}(this,t,e,i),this}}const PC=Object.create(null);class _e{constructor(t,e,i){this.$anchor=t,this.$head=e,this.ranges=i||[new Hk(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let s=e<0?kc(t.node(0),t.node(o),t.before(o+1),t.index(o),e,i):kc(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,i);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new Qi(t.node(0))}static atStart(t){return kc(t,t,0,0,1)||new Qi(t)}static atEnd(t){return kc(t,t,t.content.size,t.childCount,-1)||new Qi(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=PC[e.type];if(!i)throw new RangeError(`No selection type ${e.type} defined`);return i.fromJSON(t,e)}static jsonID(t,e){if(t in PC)throw new RangeError("Duplicate use of selection JSON ID "+t);return PC[t]=e,e.prototype.jsonID=t,e}getBookmark(){return Ee.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class Hk{constructor(t,e){this.$from=t,this.$to=e}}let Vk=!1;function Gk(n){!Vk&&!n.parent.inlineContent&&(Vk=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ee extends _e{constructor(t,e=t){Gk(t),Gk(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let i=t.resolve(e.map(this.head));if(!i.parent.inlineContent)return _e.near(i);let r=t.resolve(e.map(this.anchor));return new Ee(r.parent.inlineContent?r:i,i)}replace(t,e=G.empty){if(super.replace(t,e),e==G.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ee&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Xg(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ee(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,i=e){let r=t.resolve(e);return new this(r,i==e?r:t.resolve(i))}static between(t,e,i){let r=t.pos-e.pos;if((!i||r)&&(i=r>=0?1:-1),!e.parent.inlineContent){let o=_e.findFrom(e,i,!0)||_e.findFrom(e,-i,!0);if(!o)return _e.near(e,i);e=o.$head}return t.parent.inlineContent||(0==r||(t=(_e.findFrom(t,-i,!0)||_e.findFrom(t,i,!0)).$anchor).posnew Qi(n)};function kc(n,t,e,i,r,o=!1){if(t.inlineContent)return Ee.create(n,e);for(let s=i-(r>0?0:1);r>0?s=0;s+=r){let a=t.child(s);if(a.isAtom){if(!o&&ce.isSelectable(a))return ce.create(n,e-(r<0?a.nodeSize:0))}else{let l=kc(n,a,e+r,r<0?a.childCount:0,r,o);if(l)return l}e+=a.nodeSize*r}return null}function Yk(n,t,e){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e)))}class N6 extends kC{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Tt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Tt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,i){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==i&&(i=e),i=i??e,!t)return this.deleteRange(e,i);let o=this.storedMarks;if(!o){let s=this.doc.resolve(e);o=i==e?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(e,i,r.text(t,o)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function Kk(n,t){return t&&n?n.bind(t):n}class eh{constructor(t,e,i){this.name=t,this.init=Kk(e.init,i),this.apply=Kk(e.apply,i)}}const L6=[new eh("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new eh("selection",{init:(n,t)=>n.selection||_e.atStart(t.doc),apply:n=>n.selection}),new eh("storedMarks",{init:n=>n.storedMarks||null,apply:(n,t,e,i)=>i.selection.$cursor?n.storedMarks:null}),new eh("scrollToSelection",{init:()=>0,apply:(n,t)=>n.scrolledIntoView?t+1:t})];class RC{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=L6.slice(),e&&e.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new eh(i.key,i.spec.state,i))})}}class Pc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let i=0;ii.toJSON())),t&&"object"==typeof t)for(let i in t){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],o=r.spec.state;o&&o.toJSON&&(e[i]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,i){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new RC(t.schema,t.plugins),o=new Pc(r);return r.fields.forEach(s=>{if("doc"==s.name)o.doc=ro.fromJSON(t.schema,e.doc);else if("selection"==s.name)o.selection=_e.fromJSON(o.doc,e.selection);else if("storedMarks"==s.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(e,a))return void(o[s.name]=c.fromJSON.call(l,t,e[a],o))}o[s.name]=s.init(t,o)}}),o}}function $k(n,t,e){for(let i in n){let r=n[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=$k(r,t,{})),e[i]=r}return e}class it{constructor(t){this.spec=t,this.props={},t.props&&$k(t.props,this,this.props),this.key=t.key?t.key.key:qk("plugin")}getState(t){return t[this.key]}}const NC=Object.create(null);function qk(n){return n in NC?n+"$"+ ++NC[n]:(NC[n]=0,n+"$")}class _t{constructor(t="key"){this.key=qk(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}function sr(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Ka(n){return n instanceof sr(n).Element||n instanceof Element}function ar(n){return n instanceof sr(n).HTMLElement||n instanceof HTMLElement}function LC(n){return!(typeof ShadowRoot>"u")&&(n instanceof sr(n).ShadowRoot||n instanceof ShadowRoot)}var $a=Math.max,em=Math.min,Fc=Math.round;function QC(){var n=navigator.userAgentData;return null!=n&&n.brands?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Xk(){return!/^((?!chrome|android).)*safari/i.test(QC())}function Rc(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=n.getBoundingClientRect(),r=1,o=1;t&&ar(n)&&(r=n.offsetWidth>0&&Fc(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Fc(i.height)/n.offsetHeight||1);var a=(Ka(n)?sr(n):window).visualViewport,l=!Xk()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function UC(n){var t=sr(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ao(n){return n?(n.nodeName||"").toLowerCase():null}function Ns(n){return((Ka(n)?n.ownerDocument:n.document)||window.document).documentElement}function jC(n){return Rc(Ns(n)).left+UC(n).scrollLeft}function Wo(n){return sr(n).getComputedStyle(n)}function zC(n){var t=Wo(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function z6(n,t,e){void 0===e&&(e=!1);var i=ar(t),r=ar(t)&&function j6(n){var t=n.getBoundingClientRect(),e=Fc(t.width)/n.offsetWidth||1,i=Fc(t.height)/n.offsetHeight||1;return 1!==e||1!==i}(t),o=Ns(t),s=Rc(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==ao(t)||zC(o))&&(a=function U6(n){return n!==sr(n)&&ar(n)?function Q6(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):UC(n)}(t)),ar(t)?((l=Rc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function HC(n){var t=Rc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function tm(n){return"html"===ao(n)?n:n.assignedSlot||n.parentNode||(LC(n)?n.host:null)||Ns(n)}function Zk(n){return["html","body","#document"].indexOf(ao(n))>=0?n.ownerDocument.body:ar(n)&&zC(n)?n:Zk(tm(n))}function th(n,t){var e;void 0===t&&(t=[]);var i=Zk(n),r=i===(null==(e=n.ownerDocument)?void 0:e.body),o=sr(i),s=r?[o].concat(o.visualViewport||[],zC(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(th(tm(s)))}function H6(n){return["table","td","th"].indexOf(ao(n))>=0}function eP(n){return ar(n)&&"fixed"!==Wo(n).position?n.offsetParent:null}function nh(n){for(var t=sr(n),e=eP(n);e&&H6(e)&&"static"===Wo(e).position;)e=eP(e);return e&&("html"===ao(e)||"body"===ao(e)&&"static"===Wo(e).position)?t:e||function V6(n){var t=/firefox/i.test(QC());if(/Trident/i.test(QC())&&ar(n)&&"fixed"===Wo(n).position)return null;var r=tm(n);for(LC(r)&&(r=r.host);ar(r)&&["html","body"].indexOf(ao(r))<0;){var o=Wo(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(n)||t}var _i="top",lr="bottom",cr="right",Ei="left",VC="auto",ih=[_i,lr,cr,Ei],Nc="start",rh="end",tP="viewport",oh="popper",nP=ih.reduce(function(n,t){return n.concat([t+"-"+Nc,t+"-"+rh])},[]),iP=[].concat(ih,[VC]).reduce(function(n,t){return n.concat([t,t+"-"+Nc,t+"-"+rh])},[]),nq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function iq(n){var t=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.set(o.name,o)}),n.forEach(function(o){e.has(o.name)||r(o)}),i}function oq(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var rP={placement:"bottom",modifiers:[],strategy:"absolute"};function oP(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function sP(n){var l,t=n.reference,e=n.element,i=n.placement,r=i?lo(i):null,o=i?Lc(i):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2;switch(r){case _i:l={x:s,y:t.y-e.height};break;case lr:l={x:s,y:t.y+t.height};break;case cr:l={x:t.x+t.width,y:a};break;case Ei:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?GC(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Nc:l[c]=l[c]-(t[u]/2-e[u]/2);break;case rh:l[c]=l[c]+(t[u]/2-e[u]/2)}}return l}const dq={name:"popperOffsets",enabled:!0,phase:"read",fn:function uq(n){var t=n.state;t.modifiersData[n.name]=sP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var hq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aP(n){var t,e=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),E=Ei,b=_i,D=window;if(c){var I=nh(e),Q="clientHeight",O="clientWidth";I===sr(e)&&"static"!==Wo(I=Ns(e)).position&&"absolute"===a&&(Q="scrollHeight",O="scrollWidth"),(r===_i||(r===Ei||r===cr)&&o===rh)&&(b=lr,g-=(d&&I===D&&D.visualViewport?D.visualViewport.height:I[Q])-i.height,g*=l?1:-1),r!==Ei&&(r!==_i&&r!==lr||o!==rh)||(E=cr,p-=(d&&I===D&&D.visualViewport?D.visualViewport.width:I[O])-i.width,p*=l?1:-1)}var Ae,xe=Object.assign({position:a},c&&hq),ke=!0===u?function pq(n){var e=n.y,r=window.devicePixelRatio||1;return{x:Fc(n.x*r)/r||0,y:Fc(e*r)/r||0}}({x:p,y:g}):{x:p,y:g};return p=ke.x,g=ke.y,Object.assign({},xe,l?((Ae={})[b]=y?"0":"",Ae[E]=A?"0":"",Ae.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Ae):((t={})[b]=y?g+"px":"",t[E]=A?p+"px":"",t.transform="",t))}const gq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fq(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,s=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,u={placement:lo(t.placement),variation:Lc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,aP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,aP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},lP={name:"applyStyles",enabled:!0,phase:"write",fn:function mq(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!ar(o)||!ao(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];!1===a?o.removeAttribute(s):o.setAttribute(s,!0===a?"":a)}))})},effect:function Aq(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]).reduce(function(l,c){return l[c]="",l},{});!ar(r)||!ao(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]},_q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function yq(n){var t=n.state,i=n.name,r=n.options.offset,o=void 0===r?[0,0]:r,s=iP.reduce(function(u,d){return u[d]=function bq(n,t,e){var i=lo(n),r=[Ei,_i].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:n})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Ei,cr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,t.rects,o),u},{}),a=s[t.placement],c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a.x,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var Eq={left:"right",right:"left",bottom:"top",top:"bottom"};function im(n){return n.replace(/left|right|bottom|top/g,function(t){return Eq[t]})}var Cq={start:"end",end:"start"};function cP(n){return n.replace(/start|end/g,function(t){return Cq[t]})}function uP(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&LC(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function YC(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function dP(n,t,e){return t===tP?YC(function vq(n,t){var e=sr(n),i=Ns(n),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=Xk();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+jC(n),y:l}}(n,e)):Ka(t)?function wq(n,t){var e=Rc(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):YC(function Mq(n){var t,e=Ns(n),i=UC(n),r=null==(t=n.ownerDocument)?void 0:t.body,o=$a(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=$a(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+jC(n),l=-i.scrollTop;return"rtl"===Wo(r||e).direction&&(a+=$a(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Ns(n)))}function pP(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function fP(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}function sh(n,t){void 0===t&&(t={});var i=t.placement,r=void 0===i?n.placement:i,o=t.strategy,s=void 0===o?n.strategy:o,a=t.boundary,l=void 0===a?"clippingParents":a,c=t.rootBoundary,u=void 0===c?tP:c,d=t.elementContext,h=void 0===d?oh:d,p=t.altBoundary,f=void 0!==p&&p,g=t.padding,m=void 0===g?0:g,A=pP("number"!=typeof m?m:fP(m,ih)),E=n.rects.popper,b=n.elements[f?h===oh?"reference":oh:h],D=function Iq(n,t,e,i){var r="clippingParents"===t?function Dq(n){var t=th(tm(n)),i=["absolute","fixed"].indexOf(Wo(n).position)>=0&&ar(n)?nh(n):n;return Ka(i)?t.filter(function(r){return Ka(r)&&uP(r,i)&&"body"!==ao(r)}):[]}(n):[].concat(t),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=dP(n,c,i);return l.top=$a(u.top,l.top),l.right=em(u.right,l.right),l.bottom=em(u.bottom,l.bottom),l.left=$a(u.left,l.left),l},dP(n,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ka(b)?b:b.contextElement||Ns(n.elements.popper),l,u,s),I=Rc(n.elements.reference),Q=sP({reference:I,element:E,strategy:"absolute",placement:r}),O=YC(Object.assign({},E,Q)),q=h===oh?O:I,le={top:D.top-q.top+A.top,bottom:q.bottom-D.bottom+A.bottom,left:D.left-q.left+A.left,right:q.right-D.right+A.right},xe=n.modifiersData.offset;if(h===oh&&xe){var ke=xe[r];Object.keys(le).forEach(function(Ae){var dt=[cr,lr].indexOf(Ae)>=0?1:-1,ht=[_i,lr].indexOf(Ae)>=0?"y":"x";le[Ae]+=ke[ht]*dt})}return le}const Bq={name:"flip",enabled:!0,phase:"main",fn:function Tq(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,p=e.flipVariations,f=void 0===p||p,g=e.allowedAutoPlacements,m=t.options.placement,A=lo(m),E=l||(A!==m&&f?function xq(n){if(lo(n)===VC)return[];var t=im(n);return[cP(n),t,cP(t)]}(m):[im(m)]),b=[m].concat(E).reduce(function(Xe,wi){return Xe.concat(lo(wi)===VC?function Sq(n,t){void 0===t&&(t={});var r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?iP:l,u=Lc(t.placement),d=u?a?nP:nP.filter(function(f){return Lc(f)===u}):ih,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=sh(n,{placement:g,boundary:r,rootBoundary:o,padding:s})[lo(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(t,{placement:wi,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):wi)},[]),D=t.rects.reference,I=t.rects.popper,Q=new Map,O=!0,q=b[0],le=0;le=0,ht=dt?"width":"height",U=sh(t,{placement:xe,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),V=dt?Ae?cr:Ei:Ae?lr:_i;D[ht]>I[ht]&&(V=im(V));var W=im(V),X=[];if(o&&X.push(U[ke]<=0),a&&X.push(U[V]<=0,U[W]<=0),X.every(function(Xe){return Xe})){q=xe,O=!1;break}Q.set(xe,X)}if(O)for(var ft=function(wi){var Qr=b.find(function(Ht){var Pn=Q.get(Ht);if(Pn)return Pn.slice(0,wi).every(function(yn){return yn})});if(Qr)return q=Qr,"break"},Bt=f?3:1;Bt>0&&"break"!==ft(Bt);Bt--);t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ah(n,t,e){return $a(n,em(t,e))}const Fq={name:"preventOverflow",enabled:!0,phase:"main",fn:function Pq(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,p=void 0===h||h,f=e.tetherOffset,g=void 0===f?0:f,m=sh(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),A=lo(t.placement),y=Lc(t.placement),E=!y,b=GC(A),D=function Oq(n){return"x"===n?"y":"x"}(b),I=t.modifiersData.popperOffsets,Q=t.rects.reference,O=t.rects.popper,q="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,le="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),xe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(I){if(o){var Ae,dt="y"===b?_i:Ei,ht="y"===b?lr:cr,U="y"===b?"height":"width",V=I[b],W=V+m[dt],X=V-m[ht],Ce=p?-O[U]/2:0,ft=y===Nc?Q[U]:O[U],Bt=y===Nc?-O[U]:-Q[U],cn=t.elements.arrow,Xe=p&&cn?HC(cn):{width:0,height:0},wi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Qr=wi[dt],Ht=wi[ht],Pn=ah(0,Q[U],Xe[U]),yn=E?Q[U]/2-Ce-Pn-Qr-le.mainAxis:ft-Pn-Qr-le.mainAxis,zi=E?-Q[U]/2+Ce+Pn+Ht+le.mainAxis:Bt+Pn+Ht+le.mainAxis,_o=t.elements.arrow&&nh(t.elements.arrow),Jh=null!=(Ae=xe?.[b])?Ae:0,NA=V+zi-Jh,Kh=ah(p?em(W,V+yn-Jh-(_o?"y"===b?_o.clientTop||0:_o.clientLeft||0:0)):W,V,p?$a(X,NA):X);I[b]=Kh,ke[b]=Kh-V}if(a){var $h,is=I[D],la="y"===D?"height":"width",qh=is+m["x"===b?_i:Ei],yl=is-m["x"===b?lr:cr],Xh=-1!==[_i,Ei].indexOf(A),UA=null!=($h=xe?.[D])?$h:0,jA=Xh?qh:is-Q[la]-O[la]-UA+le.altAxis,zA=Xh?is+Q[la]+O[la]-UA-le.altAxis:yl,HA=p&&Xh?function kq(n,t,e){var i=ah(n,t,e);return i>e?e:i}(jA,is,zA):ah(p?jA:qh,is,p?zA:yl);I[D]=HA,ke[D]=HA-is}t.modifiersData[i]=ke}},requiresIfExists:["offset"]},Qq={name:"arrow",enabled:!0,phase:"main",fn:function Nq(n){var t,e=n.state,i=n.name,r=n.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=lo(e.placement),l=GC(a),u=[Ei,cr].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(t,e){return pP("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:fP(t,ih))}(r.padding,e),h=HC(o),p="y"===l?_i:Ei,f="y"===l?lr:cr,g=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],m=s[l]-e.rects.reference[l],A=nh(o),y=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=y/2-h[u]/2+(g/2-m/2),Q=ah(d[p],I,y-h[u]-d[f]);e.modifiersData[i]=((t={})[l]=Q,t.centerOffset=Q-I,t)}},effect:function Lq(n){var t=n.state,i=n.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!uP(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gP(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function mP(n){return[_i,cr,lr,Ei].some(function(t){return n[t]>=0})}var jq=[cq,dq,gq,lP,_q,Bq,Fq,Qq,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Uq(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=sh(t,{elementContext:"reference"}),a=sh(t,{altBoundary:!0}),l=gP(s,i),c=gP(a,r,o),u=mP(l),d=mP(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],zq=aq({defaultModifiers:jq}),AP="tippy-content",yP="tippy-arrow",_P="tippy-svg-arrow",Ls={passive:!0,capture:!0},EP=function(){return document.body};function WC(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function JC(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function CP(n,t){return"function"==typeof n?n.apply(void 0,t):n}function vP(n,t){return 0===t?n:function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)};var e}function Qs(n){return[].concat(n)}function MP(n,t){-1===n.indexOf(t)&&n.push(t)}function Qc(n){return[].slice.call(n)}function DP(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function qa(){return document.createElement("div")}function rm(n){return["Element","Fragment"].some(function(t){return JC(n,t)})}function qC(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function lh(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function XC(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function xP(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var co={isTouch:!1},TP=0;function $q(){co.isTouch||(co.isTouch=!0,window.performance&&document.addEventListener("mousemove",BP))}function BP(){var n=performance.now();n-TP<20&&(co.isTouch=!1,document.removeEventListener("mousemove",BP)),TP=n}function qq(){var n=document.activeElement;(function IP(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var e7=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Ci=Object.assign({appendTo:EP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),r7=Object.keys(Ci);function RP(n){var e=(n.plugins||[]).reduce(function(i,r){var a,o=r.name;return o&&(i[o]=void 0!==n[o]?n[o]:null!=(a=Ci[o])?a:r.defaultValue),i},{});return Object.assign({},n,e)}function NP(n,t){var e=Object.assign({},t,{content:CP(t.content,[n])},t.ignoreAttributes?{}:function s7(n,t){return(t?Object.keys(RP(Object.assign({},Ci,{plugins:t}))):r7).reduce(function(r,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return r;if("content"===o)r[o]=s;else try{r[o]=JSON.parse(s)}catch{r[o]=s}return r},{})}(n,t.plugins));return e.aria=Object.assign({},Ci.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function ZC(n,t){n.innerHTML=t}function LP(n){var t=qa();return!0===n?t.className=yP:(t.className=_P,rm(n)?t.appendChild(n):ZC(t,n)),t}function QP(n,t){rm(t.content)?(ZC(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ZC(n,t.content):n.textContent=t.content)}function om(n){var t=n.firstElementChild,e=Qc(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(AP)}),arrow:e.find(function(i){return i.classList.contains(yP)||i.classList.contains(_P)}),backdrop:e.find(function(i){return i.classList.contains("tippy-backdrop")})}}function UP(n){var t=qa(),e=qa();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=qa();function r(o,s){var a=om(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&QP(c,n.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(LP(s.arrow))):l.appendChild(LP(s.arrow)):u&&l.removeChild(u)}return i.className=AP,i.setAttribute("data-state","hidden"),QP(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props),{popper:t,onUpdate:r}}UP.$$tippy=!0;var l7=1,sm=[],am=[];function c7(n,t){var i,r,o,u,d,h,g,e=NP(n,Object.assign({},Ci,RP(DP(t)))),s=!1,a=!1,l=!1,c=!1,p=[],f=vP(RA,e.interactiveDebounce),m=l7++,y=function Yq(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),b={id:m,reference:n,popper:qa(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function jA(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(o)},setProps:function zA(k){if(!b.state.isDestroyed){W("onBeforeUpdate",[b,k]),FA();var se=b.props,De=NP(n,Object.assign({},se,DP(k),{ignoreAttributes:!0}));b.props=De,_o(),se.interactiveDebounce!==De.interactiveDebounce&&(ft(),f=vP(RA,De.interactiveDebounce)),se.triggerTarget&&!De.triggerTarget?Qs(se.triggerTarget).forEach(function(bt){bt.removeAttribute("aria-expanded")}):De.triggerTarget&&n.removeAttribute("aria-expanded"),Ce(),V(),Q&&Q(se,De),b.popperInstance&&(LA(),la().forEach(function(bt){requestAnimationFrame(bt._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[b,k])}},setContent:function HA(k){b.setProps({content:k})},show:function Upe(){var k=b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=co.isTouch&&!b.props.touch,Ze=WC(b.props.duration,0,Ci.duration);if(!(k||se||De||bt||Ae().hasAttribute("disabled")||(W("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,ke()&&(I.style.visibility="visible"),V(),wi(),b.state.isMounted||(I.style.transition="none"),ke()){var di=ht();qC([di.box,di.content],0)}h=function(){var _l;if(b.state.isVisible&&!c){if(c=!0,I.style.transition=b.props.moveTransition,ke()&&b.props.animation){var mw=ht(),VA=mw.box,hu=mw.content;qC([VA,hu],Ze),lh([VA,hu],"visible")}X(),Ce(),MP(am,b),null==(_l=b.popperInstance)||_l.forceUpdate(),W("onMount",[b]),b.props.animation&&ke()&&function Pn(k,se){yn(k,se)}(Ze,function(){b.state.isShown=!0,W("onShown",[b])})}},function is(){var se,k=b.props.appendTo,De=Ae();(se=b.props.interactive&&k===EP||"parent"===k?De.parentNode:CP(k,[De])).contains(I)||se.appendChild(I),b.state.isMounted=!0,LA()}()}},hide:function jpe(){var k=!b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=WC(b.props.duration,1,Ci.duration);if(!(k||se||De)&&(W("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,ke()&&(I.style.visibility="hidden"),ft(),Qr(),V(!0),ke()){var Ze=ht(),di=Ze.box,mr=Ze.content;b.props.animation&&(qC([di,mr],bt),lh([di,mr],"hidden"))}X(),Ce(),b.props.animation?ke()&&function Ht(k,se){yn(k,function(){!b.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&se()})}(bt,b.unmount):b.unmount()}},hideWithInteractivity:function zpe(k){dt().addEventListener("mousemove",f),MP(sm,f),f(k)},enable:function Xh(){b.state.isEnabled=!0},disable:function UA(){b.hide(),b.state.isEnabled=!1},unmount:function Hpe(){b.state.isVisible&&b.hide(),b.state.isMounted&&(QA(),la().forEach(function(k){k._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),am=am.filter(function(k){return k!==b}),b.state.isMounted=!1,W("onHidden",[b]))},destroy:function Vpe(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),FA(),delete n._tippy,b.state.isDestroyed=!0,W("onDestroy",[b]))}};if(!e.render)return b;var D=e.render(b),I=D.popper,Q=D.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+b.id,b.popper=I,n._tippy=b,I._tippy=b;var O=y.map(function(k){return k.fn(b)}),q=n.hasAttribute("aria-expanded");return _o(),Ce(),V(),W("onCreate",[b]),e.showOnCreate&&qh(),I.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&dt().addEventListener("mousemove",f)}),b;function le(){var k=b.props.touch;return Array.isArray(k)?k:[k,0]}function xe(){return"hold"===le()[0]}function ke(){var k;return!(null==(k=b.props.render)||!k.$$tippy)}function Ae(){return g||n}function dt(){var k=Ae().parentNode;return k?function SP(n){var t,i=Qs(n)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(k):document}function ht(){return om(I)}function U(k){return b.state.isMounted&&!b.state.isVisible||co.isTouch||u&&"focus"===u.type?0:WC(b.props.delay,k?0:1,Ci.delay)}function V(k){void 0===k&&(k=!1),I.style.pointerEvents=b.props.interactive&&!k?"":"none",I.style.zIndex=""+b.props.zIndex}function W(k,se,De){var bt;void 0===De&&(De=!0),O.forEach(function(Ze){Ze[k]&&Ze[k].apply(Ze,se)}),De&&(bt=b.props)[k].apply(bt,se)}function X(){var k=b.props.aria;if(k.content){var se="aria-"+k.content,De=I.id;Qs(b.props.triggerTarget||n).forEach(function(Ze){var di=Ze.getAttribute(se);if(b.state.isVisible)Ze.setAttribute(se,di?di+" "+De:De);else{var mr=di&&di.replace(De,"").trim();mr?Ze.setAttribute(se,mr):Ze.removeAttribute(se)}})}}function Ce(){!q&&b.props.aria.expanded&&Qs(b.props.triggerTarget||n).forEach(function(se){b.props.interactive?se.setAttribute("aria-expanded",b.state.isVisible&&se===Ae()?"true":"false"):se.removeAttribute("aria-expanded")})}function ft(){dt().removeEventListener("mousemove",f),sm=sm.filter(function(k){return k!==f})}function Bt(k){if(!co.isTouch||!l&&"mousedown"!==k.type){var se=k.composedPath&&k.composedPath()[0]||k.target;if(!b.props.interactive||!xP(I,se)){if(Qs(b.props.triggerTarget||n).some(function(De){return xP(De,se)})){if(co.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[b,k]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||Qr())}}}function cn(){l=!0}function Xe(){l=!1}function wi(){var k=dt();k.addEventListener("mousedown",Bt,!0),k.addEventListener("touchend",Bt,Ls),k.addEventListener("touchstart",Xe,Ls),k.addEventListener("touchmove",cn,Ls)}function Qr(){var k=dt();k.removeEventListener("mousedown",Bt,!0),k.removeEventListener("touchend",Bt,Ls),k.removeEventListener("touchstart",Xe,Ls),k.removeEventListener("touchmove",cn,Ls)}function yn(k,se){var De=ht().box;function bt(Ze){Ze.target===De&&(XC(De,"remove",bt),se())}if(0===k)return se();XC(De,"remove",d),XC(De,"add",bt),d=bt}function zi(k,se,De){void 0===De&&(De=!1),Qs(b.props.triggerTarget||n).forEach(function(Ze){Ze.addEventListener(k,se,De),p.push({node:Ze,eventType:k,handler:se,options:De})})}function _o(){xe()&&(zi("touchstart",Jh,{passive:!0}),zi("touchend",NA,{passive:!0})),function Gq(n){return n.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach(function(k){if("manual"!==k)switch(zi(k,Jh),k){case"mouseenter":zi("mouseleave",NA);break;case"focus":zi(e7?"focusout":"blur",Kh);break;case"focusin":zi("focusout",Kh)}})}function FA(){p.forEach(function(k){k.node.removeEventListener(k.eventType,k.handler,k.options)}),p=[]}function Jh(k){var se,De=!1;if(b.state.isEnabled&&!$h(k)&&!a){var bt="focus"===(null==(se=u)?void 0:se.type);u=k,g=k.currentTarget,Ce(),!b.state.isVisible&&function $C(n){return JC(n,"MouseEvent")}(k)&&sm.forEach(function(Ze){return Ze(k)}),"click"===k.type&&(b.props.trigger.indexOf("mouseenter")<0||s)&&!1!==b.props.hideOnClick&&b.state.isVisible?De=!0:qh(k),"click"===k.type&&(s=!De),De&&!bt&&yl(k)}}function RA(k){var se=k.target,De=Ae().contains(se)||I.contains(se);"mousemove"===k.type&&De||function Kq(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var o=r.popperRect,s=r.popperState,l=r.props.interactiveBorder,c=function wP(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||o.top-i+("bottom"===c?u.top.y:0)>l||i-o.bottom-("top"===c?u.bottom.y:0)>l||o.left-e+("right"===c?u.left.x:0)>l||e-o.right-("left"===c?u.right.x:0)>l})}(la().concat(I).map(function(Ze){var di,du=null==(di=Ze._tippy.popperInstance)?void 0:di.state;return du?{popperRect:Ze.getBoundingClientRect(),popperState:du,props:e}:null}).filter(Boolean),k)&&(ft(),yl(k))}function NA(k){if(!($h(k)||b.props.trigger.indexOf("click")>=0&&s)){if(b.props.interactive)return void b.hideWithInteractivity(k);yl(k)}}function Kh(k){b.props.trigger.indexOf("focusin")<0&&k.target!==Ae()||b.props.interactive&&k.relatedTarget&&I.contains(k.relatedTarget)||yl(k)}function $h(k){return!!co.isTouch&&xe()!==k.type.indexOf("touch")>=0}function LA(){QA();var k=b.props,se=k.popperOptions,De=k.placement,bt=k.offset,Ze=k.getReferenceClientRect,di=k.moveTransition,mr=ke()?om(I).arrow:null,du=Ze?{getBoundingClientRect:Ze,contextElement:Ze.contextElement||Ae()}:n,_l=[{name:"offset",options:{offset:bt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!di}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(VA){var hu=VA.state;if(ke()){var Aw=ht().box;["placement","reference-hidden","escaped"].forEach(function(GA){"placement"===GA?Aw.setAttribute("data-placement",hu.placement):hu.attributes.popper["data-popper-"+GA]?Aw.setAttribute("data-"+GA,""):Aw.removeAttribute("data-"+GA)}),hu.attributes.popper={}}}}];ke()&&mr&&_l.push({name:"arrow",options:{element:mr,padding:3}}),_l.push.apply(_l,se?.modifiers||[]),b.popperInstance=zq(du,I,Object.assign({},se,{placement:De,onFirstUpdate:h,modifiers:_l}))}function QA(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function la(){return Qc(I.querySelectorAll("[data-tippy-root]"))}function qh(k){b.clearDelayTimeouts(),k&&W("onTrigger",[b,k]),wi();var se=U(!0),De=le(),Ze=De[1];co.isTouch&&"hold"===De[0]&&Ze&&(se=Ze),se?i=setTimeout(function(){b.show()},se):b.show()}function yl(k){if(b.clearDelayTimeouts(),W("onUntrigger",[b,k]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(k.type)>=0&&s)){var se=U(!1);se?r=setTimeout(function(){b.state.isVisible&&b.hide()},se):o=requestAnimationFrame(function(){b.hide()})}}else Qr()}}function Us(n,t){void 0===t&&(t={});var e=Ci.plugins.concat(t.plugins||[]);!function Xq(){document.addEventListener("touchstart",$q,Ls),window.addEventListener("blur",qq)}();var i=Object.assign({},t,{plugins:e}),a=function Jq(n){return rm(n)?[n]:function Wq(n){return JC(n,"NodeList")}(n)?Qc(n):Array.isArray(n)?n:Qc(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&c7(c,i);return u&&l.push(u),l},[]);return rm(n)?a[0]:a}Us.defaultProps=Ci,Us.setDefaultProps=function(t){Object.keys(t).forEach(function(i){Ci[i]=t[i]})},Us.currentInput=co,Object.assign({},lP,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}}),Us.setDefaultProps({render:UP});const Jo=Us,HP=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Jn(n){return t=>0===n?Yf():t.lift(new A7(n))}class A7{constructor(t){if(this.total=t,this.total<0)throw new HP}call(t,e){return e.subscribe(new b7(t,this.total))}}class b7 extends Ge{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const Ui=function(n){for(var t=0;;t++)if(!(n=n.previousSibling))return t},uh=function(n){let t=n.assignedSlot||n.parentNode;return t&&11==t.nodeType?t.host:t};let VP=null;const Ko=function(n,t,e){let i=VP||(VP=document.createRange());return i.setEnd(n,e??n.nodeValue.length),i.setStart(n,t||0),i},Xa=function(n,t,e,i){return e&&(GP(n,t,e,i,-1)||GP(n,t,e,i,1))},y7=/^(img|br|input|textarea|hr)$/i;function GP(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:uo(n))){let o=n.parentNode;if(!o||1!=o.nodeType||E7(n)||y7.test(n.nodeName)||"false"==n.contentEditable)return!1;t=Ui(n)+(r<0?0:1),n=o}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?uo(n):0}}}function uo(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function E7(n){let t;for(let e=n;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==n||t.contentDOM==n)}const cm=function(n){return n.focusNode&&Xa(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Uc(n,t){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=n,e.key=e.code=t,e}const js=typeof navigator<"u"?navigator:null,YP=typeof document<"u"?document:null,zs=js&&js.userAgent||"",tv=/Edge\/(\d+)/.exec(zs),WP=/MSIE \d/.exec(zs),nv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zs),vi=!!(WP||nv||tv),Hs=WP?document.documentMode:nv?+nv[1]:tv?+tv[1]:0,kr=!vi&&/gecko\/(\d+)/i.test(zs);kr&&/Firefox\/(\d+)/.exec(zs);const iv=!vi&&/Chrome\/(\d+)/.exec(zs),Mi=!!iv,v7=iv?+iv[1]:0,ai=!vi&&!!js&&/Apple Computer/.test(js.vendor),jc=ai&&(/Mobile\/\w+/.test(zs)||!!js&&js.maxTouchPoints>2),ur=jc||!!js&&/Mac/.test(js.platform),ho=/Android \d/.test(zs),um=!!YP&&"webkitFontSmoothing"in YP.documentElement.style,M7=um?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function w7(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Vs(n,t){return"number"==typeof n?n:n[t]}function D7(n){let t=n.getBoundingClientRect();return{left:t.left,right:t.left+n.clientWidth*(t.width/n.offsetWidth||1),top:t.top,bottom:t.top+n.clientHeight*(t.height/n.offsetHeight||1)}}function JP(n,t,e){let i=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=e||n.dom;s;s=uh(s)){if(1!=s.nodeType)continue;let a=s,l=a==o.body,c=l?w7(o):D7(a),u=0,d=0;if(t.topc.bottom-Vs(i,"bottom")&&(d=t.bottom-c.bottom+Vs(r,"bottom")),t.leftc.right-Vs(i,"right")&&(u=t.right-c.right+Vs(r,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;t={left:t.left-f,top:t.top-g,right:t.right-f,bottom:t.bottom-g}}if(l)break}}function KP(n){let t=[],e=n.ownerDocument;for(let i=n;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=e);i=uh(i));return t}function $P(n,t){for(let e=0;e=a){s=Math.max(h.bottom,s),a=Math.min(h.top,a);let p=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!e&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=c+1)}}return e&&3==e.nodeType?function T7(n,t){let e=n.nodeValue.length,i=document.createRange();for(let r=0;r=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}(e,r):!e||i&&1==e.nodeType?{node:n,offset:o}:qP(e,r)}function rv(n,t){return n.left>=t.left-1&&n.left<=t.right+1&&n.top>=t.top-1&&n.top<=t.bottom+1}function XP(n,t,e){let i=n.childNodes.length;if(i&&e.topt.top&&r++}i==n.dom&&r==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?s=n.state.doc.content.size:(0==r||1!=i.nodeType||"BR"!=i.childNodes[r-1].nodeName)&&(s=function k7(n,t,e,i){let r=-1;for(let o=t;o!=n.dom;){let s=n.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){let a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right-1?r:n.docView.posFromDOM(t,e,1)}(n,i,r,t))}null==s&&(s=function O7(n,t,e){let{node:i,offset:r}=qP(t,e),o=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();o=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,r,o)}(n,o,t));let a=n.docView.nearestDesc(o,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function Gs(n,t){let e=n.getClientRects();return e.length?e[t<0?0:e.length-1]:n.getBoundingClientRect()}const F7=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ZP(n,t,e){let{node:i,offset:r,atom:o}=n.docView.domFromPos(t,e<0?-1:1),s=um||kr;if(3==i.nodeType){if(!s||!F7.test(i.nodeValue)&&(e<0?r:r!=i.nodeValue.length)){let l=r,c=r,u=e<0?1:-1;return e<0&&!r?(c++,u=-1):e>=0&&r==i.nodeValue.length?(l--,u=1):e<0?l--:c++,dh(Gs(Ko(i,l,c),1),u<0)}{let l=Gs(Ko(i,r,r),e);if(kr&&r&&/\s/.test(i.nodeValue[r-1])&&r=0)}if(null==o&&r&&(e<0||r==uo(i))){let l=i.childNodes[r-1],c=3==l.nodeType?Ko(l,uo(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return dh(Gs(c,1),!1)}if(null==o&&r=0)}function dh(n,t){if(0==n.width)return n;let e=t?n.left:n.right;return{top:n.top,bottom:n.bottom,left:e,right:e}}function ov(n,t){if(0==n.height)return n;let e=t?n.top:n.bottom;return{top:e,bottom:e,left:n.left,right:n.right}}function eF(n,t,e){let i=n.state,r=n.root.activeElement;i!=t&&n.updateState(t),r!=n.dom&&n.focus();try{return e()}finally{i!=t&&n.updateState(i),r!=n.dom&&r&&r.focus()}}const N7=/[\u0590-\u08ac]/;let tF=null,nF=null,iF=!1;class hh{constructor(t,e,i,r){this.parent=t,this.children=e,this.dom=i,this.contentDOM=r,this.dirty=0,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;eUi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let i=!0,r=t;r;r=r.parentNode){let s,o=this.getDesc(r);if(o&&(!e||o.node)){if(!i||!(s=o.nodeDOM)||(1==s.nodeType?s.contains(1==t.nodeType?t:t.parentNode):s==t))return o;i=!1}}}getDesc(t){let e=t.pmViewDesc;for(let i=e;i;i=i.parent)if(i==this)return e}posFromDOM(t,e,i){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,i)}return-1}descAt(t){for(let e=0,i=0;et||s instanceof aF){r=t-o;break}o=a}if(r)return this.children[i].domFromPos(r-this.children[i].border,e);for(;i&&!(o=this.children[i-1]).size&&o instanceof oF&&o.side>=0;i--);if(e<=0){let o,s=!0;for(;o=i?this.children[i-1]:null,o&&o.dom.parentNode!=this.contentDOM;i--,s=!1);return o&&e&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,e):{node:this.contentDOM,offset:o?Ui(o.dom)+1:0}}{let o,s=!0;for(;o=i=u&&e<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,e,u);t=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=Ui(h.dom)+1;break}t-=h.size}-1==r&&(r=0)}if(r>-1&&(c>e||a==this.children.length-1)){e=c;for(let u=a+1;up&&se){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let i=0,r=0;r=i:ti){let a=i+o.border,l=s-o.border;if(t>=a&&e<=l)return this.dirty=t==i||e==s?2:1,void(t!=a||e!=l||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-a,e-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let i=1==t?2:1;e.dirtyo?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class U7 extends hh{constructor(t,e,i,r){super(t,[],e,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class Za extends hh{constructor(t,e,i,r){super(t,[],i,r),this.mark=e}static create(t,e,i,r){let o=r.nodeViews[e.type.name],s=o&&o(e,r,i);return(!s||!s.dom)&&(s=oo.renderSpec(document,e.type.spec.toDOM(e,i))),new Za(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(o=lv(o,0,t,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,r),u=c&&c.dom,d=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else u||({dom:u,contentDOM:d}=oo.renderSpec(document,e.type.spec.toDOM(e)));!d&&!e.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let h=u;return u=uF(u,i,e),c?l=new j7(t,e,i,r,u,d||null,h,c,o,s+1):e.isText?new dm(t,e,i,r,u,h,o):new el(t,e,i,r,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>L.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,i){return 0==this.dirty&&t.eq(this.node)&&av(e,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let i=this.node.inlineContent,r=e,o=t.composing?this.localCompositionInfo(t,e):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new H7(this,s&&s.node,t);(function Y7(n,t,e,i){let r=t.locals(n),o=0;if(0==r.length){for(let c=0;co;)a.push(r[s++]);let h=o+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),t.forChild(o,u),d),o=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Tt.none:this.node.child(u).marks,i,t),l.placeWidget(c,t,r)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,t),l.findNodeMatch(c,u,d,h)||a&&t.state.selection.from>r&&t.state.selection.to-1&&l.updateNodeAt(c,u,d,p,t)||l.updateNextNode(c,u,d,t,h)||l.addNode(c,u,d,t,r),r+=c.nodeSize}),l.syncToMarks([],i,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),lF(this.contentDOM,this.children,t),jc&&function W7(n){if("UL"==n.nodeName||"OL"==n.nodeName){let t=n.style.cssText;n.style.cssText=t+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=t}}(this.dom))}localCompositionInfo(t,e){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ee)||ie+this.node.content.size)return null;let o=t.domSelectionRange(),s=function J7(n,t){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&t>0){if(n.childNodes.length>t&&3==n.childNodes[t].nodeType)return n.childNodes[t];t=uo(n=n.childNodes[t-1])}else{if(!(1==n.nodeType&&t=e){let c=a=0&&c+t.length+a>=e)return a+c;if(e==i&&l.length>=i+t.length-a&&l.slice(i-a,i-a+t.length)==t)return i}}return-1}(this.node.content,a,i-e,r-e);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:i,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new U7(this,o,e,r);t.input.compositionNodes.push(s),this.children=lv(this.children,i,i+r.length,t,s)}update(t,e,i,r){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,i,r),0))}updateInner(t,e,i,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(av(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=cF(this.dom,this.nodeDOM,sv(this.outerDeco,this.node,e),sv(t,this.node,e)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function sF(n,t,e,i,r){return uF(i,t,n),new el(void 0,n,t,e,i,i,i,r,0)}class dm extends el{constructor(t,e,i,r,o,s,a){super(t,e,i,r,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,i,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,i){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,i)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,i){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new dm(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class aF extends hh{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class j7 extends el{constructor(t,e,i,r,o,s,a,l,c,u){super(t,e,i,r,o,s,a,c,u),this.spec=l}update(t,e,i,r){if(3==this.dirty)return!1;if(this.spec.update){let o=this.spec.update(t,e,i);return o&&this.updateInner(t,e,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,i,r){this.spec.setSelection?this.spec.setSelection(t,e,i):super.setSelection(t,e,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function lF(n,t,e){let i=n.firstChild,r=!1;for(let o=0;o0;){let a;for(;;)if(i){let c=e.children[i-1];if(!(c instanceof Za)){a=c,i--;break}e=c,i=c.children.length}else{if(e==t)break e;i=e.parent.children.indexOf(e),e=e.parent}let l=a.node;if(l){if(l!=n.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let i=t;i>1,s=Math.min(o,t.length);for(;r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Za.create(this.top,t[o],e,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,e,i,r){let s,o=-1;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(t,e,i))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=e||u<=t?o.push(l):(ce&&o.push(l.slice(e-c,l.size,i)))}return o}function cv(n,t=null){let e=n.domSelectionRange(),i=n.state.doc;if(!e.focusNode)return null;let r=n.docView.nearestDesc(e.focusNode),o=r&&0==r.size,s=n.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(cm(e)){for(l=a;r&&!r.node;)r=r.parent;let u=r.node;if(r&&u.isAtom&&ce.isSelectable(u)&&r.parent&&(!u.isInline||!function _7(n,t,e){for(let i=0==t,r=t==uo(n);i||r;){if(n==e)return!0;let o=Ui(n);if(!(n=n.parentNode))return!1;i=i&&0==o,r=r&&o==uo(n)}}(e.focusNode,e.focusOffset,r.dom))){let d=r.posBefore;c=new ce(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=dv(n,l,a,"pointer"==t||n.state.selection.head{(e.anchorNode!=i||e.anchorOffset!=r)&&(t.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!hF(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const pF=ai||Mi&&v7<63;function fF(n,t){let{node:e,offset:i}=n.docView.domFromPos(t,0),r=ir(n,t,e))||Ee.between(t,e,i)}function bF(n){return!(n.editable&&!n.hasFocus())&&yF(n)}function yF(n){let t=n.domSelectionRange();if(!t.anchorNode)return!1;try{return n.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(n.editable||n.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function hv(n,t){let{$anchor:e,$head:i}=n.selection,r=t>0?e.max(i):e.min(i),o=r.parent.inlineContent?r.depth?n.doc.resolve(t>0?r.after():r.before()):null:r;return o&&_e.findFrom(o,t)}function nl(n,t){return n.dispatch(n.state.tr.setSelection(t).scrollIntoView()),!0}function _F(n,t,e){let i=n.state.selection;if(!(i instanceof Ee)){if(i instanceof ce&&i.node.isInline)return nl(n,new Ee(t>0?i.$to:i.$from));{let r=hv(n.state,t);return!!r&&nl(n,r)}}if(!i.empty||e.indexOf("s")>-1)return!1;if(n.endOfTextblock(t>0?"right":"left")){let r=hv(n.state,t);return!!(r&&r instanceof ce)&&nl(n,r)}if(!(ur&&e.indexOf("m")>-1)){let s,r=i.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText)return!1;let a=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ce.isSelectable(o)?nl(n,new ce(t<0?n.state.doc.resolve(r.pos-o.nodeSize):r)):!!um&&nl(n,new Ee(n.state.doc.resolve(t<0?a:a+o.nodeSize))))}}function hm(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function fh(n){let t=n.pmViewDesc;return t&&0==t.size&&(n.nextSibling||"BR"!=n.nodeName)}function pv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r,o,s=!1;for(kr&&1==e.nodeType&&i0){if(1!=e.nodeType)break;{let a=e.childNodes[i-1];if(fh(a))r=e,o=--i;else{if(3!=a.nodeType)break;e=a,i=e.nodeValue.length}}}else{if(EF(e))break;{let a=e.previousSibling;for(;a&&fh(a);)r=e.parentNode,o=Ui(a),a=a.previousSibling;if(a)e=a,i=hm(e);else{if(e=e.parentNode,e==n.dom)break;i=0}}}s?gv(n,e,i):r&&gv(n,r,o)}function fv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let o,s,r=hm(e);for(;;)if(i{n.state==r&&$o(n)},50)}function CF(n,t,e){let i=n.state.selection;if(i instanceof Ee&&!i.empty||e.indexOf("s")>-1||ur&&e.indexOf("m")>-1)return!1;let{$from:r,$to:o}=i;if(!r.parent.inlineContent||n.endOfTextblock(t<0?"up":"down")){let s=hv(n.state,t);if(s&&s instanceof ce)return nl(n,s)}if(!r.parent.inlineContent){let s=t<0?r:o,a=i instanceof Qi?_e.near(s,t):_e.findFrom(s,t);return!!a&&nl(n,a)}return!1}function vF(n,t){if(!(n.state.selection instanceof Ee))return!0;let{$head:e,$anchor:i,empty:r}=n.state.selection;if(!e.sameParent(i))return!0;if(!r)return!1;if(n.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(o&&!o.isText){let s=n.state.tr;return t<0?s.delete(e.pos-o.nodeSize,e.pos):s.delete(e.pos,e.pos+o.nodeSize),n.dispatch(s),!0}return!1}function MF(n,t,e){n.domObserver.stop(),t.contentEditable=e,n.domObserver.start()}function wF(n,t){n.someProp("transformCopied",p=>{t=p(t,n)});let e=[],{content:i,openStart:r,openEnd:o}=t;for(;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;let p=i.firstChild;e.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||oo.fromSchema(n.state.schema),a=kF(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=BF[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${r} ${o}${d?` -${d}`:""} ${JSON.stringify(e)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(t,n))||t.content.textBetween(0,t.content.size,"\n\n")}}function DF(n,t,e,i,r){let s,a,o=r.parent.type.spec.code;if(!e&&!t)return null;let l=t&&(i||o||!e);if(l){if(n.someProp("transformPastedText",h=>{t=h(t,o||i,n)}),o)return t?new G(L.from(n.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):G.empty;let d=n.someProp("clipboardTextParser",h=>h(t,r,i,n));if(d)a=d;else{let h=r.marks(),{schema:p}=n.state,f=oo.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{e=d(e,n)}),s=function rX(n){let t=/^(\s*]*>)*/.exec(n);t&&(n=n.slice(t[0].length));let r,e=kF().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((r=i&&BF[i[1].toLowerCase()])&&(n=r.map(o=>"<"+o+">").join("")+n+r.map(o=>"").reverse().join("")),e.innerHTML=n,r)for(let o=0;o0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||Ic.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:r,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||nX.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function sX(n,t){if(!n.size)return n;let i,e=n.content.firstChild.type.schema;try{i=JSON.parse(t)}catch{return n}let{content:r,openStart:o,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=e.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;r=L.from(l.create(i[a+1],r)),o++,s++}return new G(r,o,s)}(TF(a,+u[1],+u[2]),u[4]);else if(a=G.maxOpen(function iX(n,t){if(n.childCount<2)return n;for(let e=t.depth;e>=0;e--){let o,r=t.node(e).contentMatchAt(t.index(e)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=r.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&o.length&&SF(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=xF(s[s.length-1],o.length));let u=IF(a,l);s.push(u),r=r.matchType(u.type),o=l}}),s)return L.from(s)}return n}(a.content,r),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const nX=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function IF(n,t,e=0){for(let i=t.length-1;i>=e;i--)n=t[i].create(null,L.from(n));return n}function SF(n,t,e,i,r){if(r=e&&(a=t<0?s.contentMatchAt(0).fillBefore(a,n.childCount>1||o<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(L.empty,!0))),n.replaceChild(t<0?0:n.childCount-1,s.copy(a))}function TF(n,t,e){return t{for(let e in t)n.input.eventHandlers[e]||n.dom.addEventListener(e,n.input.eventHandlers[e]=i=>bv(n,i))})}function bv(n,t){return n.someProp("handleDOMEvents",e=>{let i=e[t.type];return!!i&&(i(n,t)||t.defaultPrevented)})}function dX(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=n.dom;e=e.parentNode)if(!e||11==e.nodeType||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function pm(n){return{left:n.clientX,top:n.clientY}}function yv(n,t,e,i,r){if(-1==i)return!1;let o=n.state.doc.resolve(i);for(let s=o.depth+1;s>0;s--)if(n.someProp(t,a=>s>o.depth?a(n,e,o.nodeAfter,o.before(s),r,!0):a(n,e,o.node(s),o.before(s),r,!1)))return!0;return!1}function Vc(n,t,e){n.focused||n.focus();let i=n.state.tr.setSelection(t);"pointer"==e&&i.setMeta("pointer",!0),n.dispatch(i)}function AX(n,t,e,i){return yv(n,"handleDoubleClickOn",t,e,i)||n.someProp("handleDoubleClick",r=>r(n,t,i))}function bX(n,t,e,i){return yv(n,"handleTripleClickOn",t,e,i)||n.someProp("handleTripleClick",r=>r(n,t,i))||function yX(n,t,e){if(0!=e.button)return!1;let i=n.state.doc;if(-1==t)return!!i.inlineContent&&(Vc(n,Ee.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(t);for(let o=r.depth+1;o>0;o--){let s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)Vc(n,Ee.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ce.isSelectable(s))continue;Vc(n,ce.create(i,a),"pointer")}return!0}}(n,e,i)}function _v(n){return fm(n)}ci.keydown=(n,t)=>{let e=t;if(n.input.shiftKey=16==e.keyCode||e.shiftKey,!FF(n,e)&&(n.input.lastKeyCode=e.keyCode,n.input.lastKeyCodeTime=Date.now(),!ho||!Mi||13!=e.keyCode))if(229!=e.keyCode&&n.domObserver.forceFlush(),!jc||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)n.someProp("handleKeyDown",i=>i(n,e))||function tX(n,t){let e=t.keyCode,i=function eX(n){let t="";return n.ctrlKey&&(t+="c"),n.metaKey&&(t+="m"),n.altKey&&(t+="a"),n.shiftKey&&(t+="s"),t}(t);return 8==e||ur&&72==e&&"c"==i?vF(n,-1)||pv(n):46==e||ur&&68==e&&"c"==i?vF(n,1)||fv(n):13==e||27==e||(37==e||ur&&66==e&&"c"==i?_F(n,-1,i)||pv(n):39==e||ur&&70==e&&"c"==i?_F(n,1,i)||fv(n):38==e||ur&&80==e&&"c"==i?CF(n,-1,i)||pv(n):40==e||ur&&78==e&&"c"==i?function Z7(n){if(!ai||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=n.domSelectionRange();if(t&&1==t.nodeType&&0==e&&t.firstChild&&"false"==t.firstChild.contentEditable){let i=t.firstChild;MF(n,i,"true"),setTimeout(()=>MF(n,i,"false"),20)}return!1}(n)||CF(n,1,i)||fv(n):i==(ur?"m":"c")&&(66==e||73==e||89==e||90==e))}(n,e)?e.preventDefault():Ys(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",r=>r(n,Uc(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},ci.keyup=(n,t)=>{16==t.keyCode&&(n.input.shiftKey=!1)},ci.keypress=(n,t)=>{let e=t;if(FF(n,e)||!e.charCode||e.ctrlKey&&!e.altKey||ur&&e.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,e)))return void e.preventDefault();let i=n.state.selection;if(!(i instanceof Ee&&i.$from.sameParent(i.$to))){let r=String.fromCharCode(e.charCode);n.someProp("handleTextInput",o=>o(n,i.$from.pos,i.$to.pos,r))||n.dispatch(n.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}};const PF=ur?"metaKey":"ctrlKey";li.mousedown=(n,t)=>{let e=t;n.input.shiftKey=e.shiftKey;let i=_v(n),r=Date.now(),o="singleClick";r-n.input.lastClick.time<500&&function pX(n,t){let e=t.x-n.clientX,i=t.y-n.clientY;return e*e+i*i<100}(e,n.input.lastClick)&&!e[PF]&&("singleClick"==n.input.lastClick.type?o="doubleClick":"doubleClick"==n.input.lastClick.type&&(o="tripleClick")),n.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};let s=n.posAtCoords(pm(e));!s||("singleClick"==o?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new _X(n,s,e,!!i)):("doubleClick"==o?AX:bX)(n,s.pos,s.inside,e)?e.preventDefault():Ys(n,"pointer"))};class _X{constructor(t,e,i,r){let o,s;if(this.view=t,this.pos=e,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[PF],this.allowDefault=i.shiftKey,e.inside>-1)o=t.state.doc.nodeAt(e.inside),s=e.inside;else{let u=t.state.doc.resolve(e.pos);o=u.parent,s=u.depth?u.before():0}const a=r?null:i.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==i.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ce&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!kr||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ys(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>$o(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(pm(t))),this.updateAllowDefault(t),this.allowDefault||!e?Ys(this.view,"pointer"):function mX(n,t,e,i,r){return yv(n,"handleClickOn",t,e,i)||n.someProp("handleClick",o=>o(n,t,i))||(r?function gX(n,t){if(-1==t)return!1;let i,r,e=n.state.selection;e instanceof ce&&(i=e.node);let o=n.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(ce.isSelectable(a)){r=i&&e.$from.depth>0&&s>=e.$from.depth&&o.before(e.$from.depth+1)==e.$from.pos?o.before(e.$from.depth):o.before(s);break}}return null!=r&&(Vc(n,ce.create(n.state.doc,r),"pointer"),!0)}(n,e):function fX(n,t){if(-1==t)return!1;let e=n.state.doc.resolve(t),i=e.nodeAfter;return!!(i&&i.isAtom&&ce.isSelectable(i))&&(Vc(n,new ce(e),"pointer"),!0)}(n,e))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||ai&&this.mightDrag&&!this.mightDrag.node.isAtom||Mi&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(Vc(this.view,_e.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):Ys(this.view,"pointer")}move(t){this.updateAllowDefault(t),Ys(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function FF(n,t){return!!n.composing||!!(ai&&Math.abs(t.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}li.touchstart=n=>{n.input.lastTouch=Date.now(),_v(n),Ys(n,"pointer")},li.touchmove=n=>{n.input.lastTouch=Date.now(),Ys(n,"pointer")},li.contextmenu=n=>_v(n);const EX=ho?5e3:-1;function RF(n,t){clearTimeout(n.input.composingTimeout),t>-1&&(n.input.composingTimeout=setTimeout(()=>fm(n),t))}function NF(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function CX(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function fm(n,t=!1){if(!(ho&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),NF(n),t||n.docView&&n.docView.dirty){let e=cv(n);return e&&!e.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(e)):n.updateState(n.state),!0}return!1}}ci.compositionstart=ci.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:t}=n,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||e.marks(),fm(n,!0),n.markCursor=null;else if(fm(n),kr&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let i=n.domSelectionRange();for(let r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){let s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}r=s,o=-1}}n.input.composing=!0}RF(n,EX)},ci.compositionend=(n,t)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=t.timeStamp,RF(n,20))};const Gc=vi&&Hs<15||jc&&M7<604;function Ev(n,t,e,i){let r=DF(n,t,e,n.input.shiftKey,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,i,r||G.empty)))return!0;if(!r)return!1;let o=function MX(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),s=o?n.state.tr.replaceSelectionWith(o,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}li.copy=ci.cut=(n,t)=>{let e=t,i=n.state.selection,r="cut"==e.type;if(i.empty)return;let o=Gc?null:e.clipboardData,s=i.content(),{dom:a,text:l}=wF(n,s);o?(e.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function vX(n,t){if(!n.dom.parentNode)return;let e=n.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),n.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),n.focus()},50)}(n,a),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ci.paste=(n,t)=>{let e=t;if(n.composing&&!ho)return;let i=Gc?null:e.clipboardData;i&&Ev(n,i.getData("text/plain"),i.getData("text/html"),e)?e.preventDefault():function wX(n,t){if(!n.dom.parentNode)return;let e=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),e?Ev(n,i.value,null,t):Ev(n,i.textContent,i.innerHTML,t)},50)}(n,e)};class DX{constructor(t,e){this.slice=t,this.move=e}}const LF=ur?"altKey":"ctrlKey";li.dragstart=(n,t)=>{let e=t,i=n.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let r=n.state.selection,o=r.empty?null:n.posAtCoords(pm(e));if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof ce?r.to-1:r.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,i.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){let c=n.docView.nearestDesc(e.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=wF(n,s);e.dataTransfer.clearData(),e.dataTransfer.setData(Gc?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",Gc||e.dataTransfer.setData("text/plain",l),n.dragging=new DX(s,!e[LF])},li.dragend=n=>{let t=n.dragging;window.setTimeout(()=>{n.dragging==t&&(n.dragging=null)},50)},ci.dragover=ci.dragenter=(n,t)=>t.preventDefault(),ci.drop=(n,t)=>{let e=t,i=n.dragging;if(n.dragging=null,!e.dataTransfer)return;let r=n.posAtCoords(pm(e));if(!r)return;let o=n.state.doc.resolve(r.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=DF(n,e.dataTransfer.getData(Gc?"Text":"text/plain"),Gc?null:e.dataTransfer.getData("text/html"),!1,o);let a=!(!i||e[LF]);if(n.someProp("handleDrop",f=>f(n,e,s||G.empty,a)))return void e.preventDefault();if(!s)return;e.preventDefault();let l=s?Lk(n.state.doc,o.pos,s):o.pos;null==l&&(l=o.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ce.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ce(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,y)=>f=y),c.setSelection(dv(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},li.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&$o(n)},20))},li.blur=(n,t)=>{let e=t;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),e.relatedTarget&&n.dom.contains(e.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},li.beforeinput=(n,t)=>{if(Mi&&ho&&"deleteContentBackward"==t.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",o=>o(n,Uc(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in ci)li[n]=ci[n];function gh(n,t){if(n==t)return!0;for(let e in n)if(n[e]!==t[e])return!1;for(let e in t)if(!(e in n))return!1;return!0}class Cv{constructor(t,e){this.toDOM=t,this.spec=e||il,this.side=this.spec.side||0}map(t,e,i,r){let{pos:o,deleted:s}=t.mapResult(e.from+r,this.side<0?-1:1);return s?null:new vn(o-i,o-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Cv&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&gh(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ws{constructor(t,e){this.attrs=t,this.spec=e||il}map(t,e,i,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-i,s=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-i;return o>=s?null:new vn(o,s,this)}valid(t,e){return e.from=t&&(!o||o(a.spec))&&i.push(a.copy(a.from+r,a.to+r))}for(let s=0;st){let a=this.children[s]+1;this.children[s+2].findInner(t-a,e-a,i,r+a,o)}}map(t,e,i){return this==Kn||0==t.maps.length?this:this.mapInner(t,e,0,0,i||il)}mapInner(t,e,i,r,o){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;Ay+u-d)continue;let E=a[A]+u-d;p>=E?a[A+1]=h<=E?-2:-1:f>=r&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=e.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=e.map(n[c+1]+o,-1)-r,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(e,m,u+1,n[c]+o+1,s);A!=Kn?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function SX(n,t,e,i,r,o,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=UF(e,a,c)){for(r||(r=this.children.slice());oa&&d.to=t){this.children[a]==t&&(i=this.children[a+2]);break}let o=t+1,s=o+e.content.size;for(let a=0;ao&&l.type instanceof Ws){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;cr.map(t,e,il));return Js.from(i)}forChild(t,e){if(e.isLeaf)return kt.empty;let i=[];for(let r=0;re instanceof kt)?t:t.reduce((e,i)=>e.concat(i instanceof kt?i:i.members),[]))}}}function QF(n,t){if(!t||!n.length)return n;let e=[];for(let i=0;ie&&s.to{let c=UF(n,a,l+e);if(c){o=!0;let u=gm(c,a,e+l+1,i);u!=Kn&&r.push(l,l+a.nodeSize,u)}});let s=QF(o?jF(n):n,-e).sort(rl);for(let a=0;a0;)t++;n.splice(t,0,e)}function wv(n){let t=[];return n.someProp("decorations",e=>{let i=e(n.state);i&&i!=Kn&&t.push(i)}),n.cursorWrapper&&t.push(kt.create(n.state.doc,[n.cursorWrapper.deco])),Js.from(t)}const xX={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},TX=vi&&Hs<=11;class BX{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class OX{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new BX,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r"childList"==r.type&&r.removedNodes.length||"characterData"==r.type&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),TX&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,xX)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(bF(this.view)){if(this.suppressingSelectionUpdates)return $o(this.view);if(vi&&Hs<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Xa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let i,e=new Set;for(let o=t.focusNode;o;o=uh(o))e.add(o);for(let o=t.anchorNode;o;o=uh(o))if(e.has(o)){i=o;break}let r=i&&this.view.docView.nearestDesc(i);return r&&r.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&bF(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;o<0&&r&&t.input.lastFocus>Date.now()-200&&t.input.lastTouch-1||r)&&(o>-1&&(t.docView.markDirty(o,s),function kX(n){if(!HF.has(n)&&(HF.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=kr,VF)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),VF=!0}}(t)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||$o(t),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(i==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if("childList"==t.type){for(let u=0;ut.content.size?null:dv(n,t.resolve(e.anchor),t.resolve(e.head))}function Dv(n,t,e){let i=n.depth,r=t?n.end():n.pos;for(;i>0&&(t||n.indexAfter(i)==n.node(i).childCount);)i--,r++,t=!1;if(e){let o=n.node(i).maybeChild(n.indexAfter(i));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}class jX{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new lX,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach($F),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=JF(this),WF(this),this.nodeViews=KF(this),this.docView=sF(this.state.doc,YF(this),wv(this),this.dom,this),this.domObserver=new OX(this,(i,r,o,s)=>function NX(n,t,e,i,r){if(t<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,q=cv(n,O);if(q&&!n.state.selection.eq(q)){let le=n.state.tr.setSelection(q);"pointer"==O?le.setMeta("pointer",!0):"key"==O&&le.scrollIntoView(),n.dispatch(le)}return}let o=n.state.doc.resolve(t),s=o.sharedDepth(e);t=o.before(s+1),e=n.state.doc.resolve(e).after(s+1);let d,h,a=n.state.selection,l=function FX(n,t,e){let c,{node:i,fromOffset:r,toOffset:o,from:s,to:a}=n.docView.parseRange(t,e),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],cm(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Mi&&8===n.input.lastKeyCode)for(let m=o;m>r;m--){let A=i.childNodes[m-1],y=A.pmViewDesc;if("BR"==A.nodeName&&!y){o=m;break}if(!y||y.size)break}let d=n.state.doc,h=n.someProp("domParser")||Ic.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:o,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:RX,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,t,e),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?o-i:0,a=o+(a-s),s=o):a=a?o-i:0,s=o+(s-a),a=o),{start:o,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((jc&&n.input.lastIOSEnter>Date.now()-225||ho)&&r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName||"LI"==O.nodeName)&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Uc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ee&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let O=GF(n,n.state.doc,l.sel);O&&!O.eq(n.state.selection)&&n.dispatch(n.state.tr.setSelection(O))}return}p={start:a.from,endA:a.to,endB:a.to}}if(Mi&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),vi&&Hs<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let y,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((jc&&n.input.lastIOSEnter>Date.now()-225&&(!A||r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName))||!A&&f.posO(n,Uc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function QX(n,t,e,i,r){if(!i.parent.isTextblock||e-t<=r.pos-i.pos||Dv(i,!0,!1)e||Dv(s,!0,!1)O(n,Uc(8,"Backspace"))))return void(ho&&Mi&&n.domObserver.suppressSelectionUpdates());Mi&&ho&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),ho&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Uc(13,"Enter"))})},20));let D,I,Q,E=p.start,b=p.endA;if(A)if(f.pos==g.pos)vi&&Hs<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>$o(n),20)),D=n.state.tr.delete(E,b),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(Q=function LX(n,t){let s,a,l,e=n.firstChild.marks,i=t.firstChild.marks,r=e,o=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=r.length||1!=o.length)return null;a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;uq(n,E,b,O)))return;D=n.state.tr.insertText(O,E,b)}if(D||(D=n.state.tr.replace(E,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=GF(n,D.doc,l.sel);O&&!(Mi&&ho&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{dX(n,i)&&!bv(n,i)&&(n.editable||!(i.type in ci))&&e(n,i)},aX[t]?{passive:!0}:void 0)}ai&&n.dom.addEventListener("input",()=>null),Av(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Av(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach($F),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let i in this._props)e[i]=this._props[i];e.state=this.state;for(let i in t)e[i]=t[i];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let i=this.state,r=!1,o=!1;t.storedMarks&&this.composing&&(NF(this),o=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let h=KF(this);(function HX(n,t){let e=0,i=0;for(let r in n){if(n[r]!=t[r])return!0;e++}for(let r in t)i++;return e!=i})(h,this.nodeViews)&&(this.nodeViews=h,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&Av(this),this.editable=JF(this),WF(this);let a=wv(this),l=YF(this),c=i.plugins==t.plugins||i.doc.eq(t.doc)?t.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=r||!this.docView.matchesNode(t.doc,l,a);(u||!t.selection.eq(i.selection))&&(o=!0);let d="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function I7(n){let i,r,t=n.dom.getBoundingClientRect(),e=Math.max(0,t.top);for(let o=(t.left+t.right)/2,s=e+1;s=e-20){i=a,r=l.top;break}}return{refDOM:i,refTop:r,stack:KP(n.dom)}}(this);if(o){this.domObserver.stop();let h=u&&(vi||Mi)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&function zX(n,t){let e=Math.min(n.$anchor.sharedDepth(n.head),t.$anchor.sharedDepth(t.head));return n.$anchor.start(e)!=t.$anchor.start(e)}(i.selection,t.selection);if(u){let p=Mi?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(t.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=sF(t.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function X7(n){let t=n.docView.domFromPos(n.state.selection.anchor,0),e=n.domSelectionRange();return Xa(t.node,t.offset,e.anchorNode,e.anchorOffset)}(this))?$o(this,h):(mF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function S7({refDOM:n,refTop:t,stack:e}){let i=n?n.getBoundingClientRect().top:0;$P(e,0==i?0:i-t)}(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof ce){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&JP(this,e.getBoundingClientRect(),t)}else JP(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;ee.ownerDocument.getSelection()),this._root=e;return t||document}posAtCoords(t){return P7(this,t)}coordsAtPos(t,e=1){return ZP(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,i=-1){let r=this.docView.posFromDOM(t,e,i);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return function Q7(n,t,e){return tF==t&&nF==e?iF:(tF=t,nF=e,iF="up"==e||"down"==e?function R7(n,t,e){let i=t.selection,r="up"==e?i.$from:i.$to;return eF(n,t,()=>{let{node:o}=n.docView.domFromPos(r.pos,"up"==e?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.dom;break}o=a.dom.parentNode}let s=ZP(n,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=Ko(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==e?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,t,e):function L7(n,t,e){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=n.domSelection();return N7.test(i.parent.textContent)&&a.modify?eF(n,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",e,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==e||"backward"==e?o:s}(n,t,e))}(this,e||this.state,t)}destroy(){!this.docView||(function uX(n){n.domObserver.stop();for(let t in n.input.eventHandlers)n.dom.removeEventListener(t,n.input.eventHandlers[t]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],wv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function hX(n,t){!bv(n,t)&&li[t.type]&&(n.editable||!(t.type in ci))&&li[t.type](n,t)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ai&&11===this.root.nodeType&&function C7(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function PX(n){let t;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",e,!0);let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=n.domAtPos(n.state.selection.anchor);return Xa(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function YF(n){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(n.editable),t.translate="no",n.someProp("attributes",e=>{if("function"==typeof e&&(e=e(n.state)),e)for(let i in e)"class"==i&&(t.class+=" "+e[i]),"style"==i?t.style=(t.style?t.style+";":"")+e[i]:!t[i]&&"contenteditable"!=i&&"nodeName"!=i&&(t[i]=String(e[i]))}),[vn.node(0,n.state.doc.content.size,t)]}function WF(n){if(n.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),n.cursorWrapper={dom:t,deco:vn.widget(n.state.selection.head,t,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function JF(n){return!n.someProp("editable",t=>!1===t(n.state))}function KF(n){let t=Object.create(null);function e(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return n.someProp("nodeViews",e),n.someProp("markViews",e),t}function $F(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ks={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},qF=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),VX=(typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),typeof navigator<"u"&&/Mac/.test(navigator.platform)),GX=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),YX=VX||qF&&+qF[1]<57,xn=0;xn<10;xn++)Ks[48+xn]=Ks[96+xn]=String(xn);for(xn=1;xn<=24;xn++)Ks[xn+111]="F"+xn;for(xn=65;xn<=90;xn++)Ks[xn]=String.fromCharCode(xn+32),mm[xn]=String.fromCharCode(xn);for(var Iv in Ks)mm.hasOwnProperty(Iv)||(mm[Iv]=Ks[Iv]);const JX=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function KX(n){let i,r,o,s,t=n.split(/-(?!$)/),e=t[t.length-1];"Space"==e&&(e=" ");for(let a=0;a127)&&(s=Ks[i.keyCode])&&s!=r){let l=t[Sv(s,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}else if(o&&i.shiftKey){let l=t[Sv(r,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}const Tv=(n,t)=>!n.selection.empty&&(t&&t(n.tr.deleteSelection().scrollIntoView()),!0);const ZF=(n,t,e)=>{let i=function XF(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("backward",n):e.parentOffset>0)?null:e}(n,e);if(!i)return!1;let r=Bv(i);if(!r){let s=i.blockRange(),a=s&&Tc(s);return null!=a&&(t&&t(n.tr.lift(s,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(!o.type.spec.isolating&&uR(n,r,t))return!0;if(0==i.parent.content.size&&(Wc(o,"end")||ce.isSelectable(o))){let s=TC(n.doc,i.before(),i.after(),G.empty);if(s&&s.slice.size{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("backward",n):i.parentOffset>0)return!1;o=Bv(i)}let s=o&&o.nodeBefore;return!(!s||!ce.isSelectable(s)||(t&&t(n.tr.setSelection(ce.create(n.doc,o.pos-s.nodeSize)).scrollIntoView()),0))};function Bv(n){if(!n.parent.type.spec.isolating)for(let t=n.depth-1;t>=0;t--){if(n.index(t)>0)return n.doc.resolve(n.before(t+1));if(n.node(t).type.spec.isolating)break}return null}const iR=(n,t,e)=>{let i=function nR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("forward",n):e.parentOffset{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("forward",n):i.parentOffset=0;t--){let e=n.node(t);if(n.index(t)+1{let{$head:e,$anchor:i}=n.selection;return!(!e.parent.type.spec.code||!e.sameParent(i)||(t&&t(n.tr.insertText("\n").scrollIntoView()),0))};function kv(n){for(let t=0;t{let{$head:e,$anchor:i}=n.selection;if(!e.parent.type.spec.code||!e.sameParent(i))return!1;let r=e.node(-1),o=e.indexAfter(-1),s=kv(r.contentMatchAt(o));if(!s||!r.canReplaceWith(o,o,s))return!1;if(t){let a=e.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(_e.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},aR=(n,t)=>{let e=n.selection,{$from:i,$to:r}=e;if(e instanceof Qi||i.parent.inlineContent||r.parent.inlineContent)return!1;let o=kv(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!i.parentOffset&&r.index(){let{$cursor:e}=n.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let o=e.before();if(Yo(n.doc,o))return t&&t(n.tr.split(o).scrollIntoView()),!0}let i=e.blockRange(),r=i&&Tc(i);return null!=r&&(t&&t(n.tr.lift(i,r).scrollIntoView()),!0)},cR=function tZ(n){return(t,e)=>{let{$from:i,$to:r}=t.selection;if(t.selection instanceof ce&&t.selection.node.isBlock)return!(!i.parentOffset||!Yo(t.doc,i.pos)||(e&&e(t.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(e){let o=r.parentOffset==r.parent.content.size,s=t.tr;(t.selection instanceof Ee||t.selection instanceof Qi)&&s.deleteSelection();let a=0==i.depth?null:kv(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(r.parent,o),c=l?[l]:o&&a?[{type:a}]:void 0,u=Yo(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&Yo(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!o&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}e(s.scrollIntoView())}return!0}}();function uR(n,t,e){let o,s,i=t.nodeBefore,r=t.nodeAfter;if(i.type.spec.isolating||r.type.spec.isolating)return!1;if(function rZ(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!(!(i&&r&&i.type.compatibleContent(r.type))||(!i.content.size&&t.parent.canReplace(o-1,o)?(e&&e(n.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Rs(n.doc,t.pos)||(e&&e(n.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(n,t,e))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(r.type))&&s.matchType(o[0]||r.type).validEnd){if(e){let d=t.pos+r.nodeSize,h=L.empty;for(let g=o.length-1;g>=0;g--)h=L.from(o[g].create(null,h));h=L.from(i.copy(h));let p=n.tr.step(new Cn(t.pos-1,d,t.pos,d,new G(h,1,0),o.length,!0)),f=d+2*o.length;Rs(p.doc,f)&&p.join(f),e(p.scrollIntoView())}return!0}let l=_e.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Tc(c);if(null!=u&&u>=t.depth)return e&&e(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&Wc(r,"start",!0)&&Wc(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=r,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(e){let g=L.empty;for(let A=h.length-1;A>=0;A--)g=L.from(h[A].copy(g));e(n.tr.step(new Cn(t.pos-h.length,t.pos+r.nodeSize,t.pos+f,t.pos+r.nodeSize-f,new G(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function dR(n){return function(t,e){let i=t.selection,r=n<0?i.$from:i.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(e&&e(t.tr.setSelection(Ee.create(t.doc,n<0?r.start(o):r.end(o)))),!0)}}const hR=dR(-1),pR=dR(1);function fR(n,t=null){return function(e,i){let r=!1;for(let o=0;o{if(r)return!1;if(l.isTextblock&&!l.hasMarkup(n,t))if(l.type==n)r=!0;else{let u=e.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,n)}})}if(!r)return!1;if(i){let o=e.tr;for(let s=0;s(t&&t(n.tr.setSelection(new Qi(n.doc))),!0)},lZ={"Ctrl-h":$s.Backspace,"Alt-Backspace":$s["Mod-Backspace"],"Ctrl-d":$s.Delete,"Ctrl-Alt-Backspace":$s["Mod-Delete"],"Alt-Delete":$s["Mod-Delete"],"Alt-d":$s["Mod-Delete"],"Ctrl-a":hR,"Ctrl-e":pR};for(let n in $s)lZ[n]=$s[n];function Am(n){const{state:t,transaction:e}=n;let{selection:i}=e,{doc:r}=e,{storedMarks:o}=e;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return r},get tr(){return i=e.selection,r=e.doc,o=e.storedMarks,e}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class bm{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:i}=this,{view:r}=e,{tr:o}=i,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r,a=[],l=!!t,c=t||o.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,e),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&e&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(t){const{rawCommands:e,state:i}=this,o=t||i.tr,s=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r;o.storedMarks&&t.setStoredMarks(o.storedMarks);const a={tr:t,editor:r,view:s,state:Am({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}function ne(n,t,e){return void 0===n.config[t]&&n.parent?ne(n.parent,t,e):"function"==typeof n.config[t]?n.config[t].bind({...e,parent:n.parent?ne(n.parent,t,e):null}):n.config[t]}function ym(n){return{baseExtensions:n.filter(r=>"extension"===r.type),nodeExtensions:n.filter(r=>"node"===r.type),markExtensions:n.filter(r=>"mark"===r.type)}}function mR(n){const t=[],{nodeExtensions:e,markExtensions:i}=ym(n),r=[...e,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ne(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{t.push({type:d,name:h,attribute:{...o,...p}})})})})}),r.forEach(s=>{const l=ne(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...o,...d};d?.isRequired&&void 0===d?.default&&delete h.default,t.push({type:s.name,name:u,attribute:h})})}),t}function Mn(n,t){if("string"==typeof n){if(!t.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return t.nodes[n]}return n}function Et(...n){return n.filter(t=>!!t).reduce((t,e)=>{const i={...t};return Object.entries(e).forEach(([r,o])=>{i[r]=i[r]?"class"===r?[i[r],o].join(" "):"style"===r?[i[r],o].join("; "):o:o}),i},{})}function Nv(n,t){return t.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(n.attrs)||{}:{[e.name]:n.attrs[e.name]}).reduce((e,i)=>Et(e,i),{})}function AR(n){return"function"==typeof n}function Be(n,t,...e){return AR(n)?t?n.bind(t)(...e):n(...e):n}function bR(n,t){return n.style?n:{...n,getAttrs:e=>{const i=n.getAttrs?n.getAttrs(e):n.attrs;if(!1===i)return!1;const r=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):function vZ(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(e.getAttribute(s.name));return null==a?o:{...o,[s.name]:a}},{});return{...i,...r}}}}function yR(n){return Object.fromEntries(Object.entries(n).filter(([t,e])=>("attrs"!==t||!function CZ(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(e))&&null!=e))}function Lv(n,t){return t.nodes[n]||t.marks[n]||null}function ER(n,t){return Array.isArray(t)?t.some(e=>("string"==typeof e?e:e.name)===n.name):t}function Qv(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class mh{constructor(t){this.find=t.find,this.handler=t.handler}}function Uv(n){var t;const{editor:e,from:i,to:r,text:o,rules:s,plugin:a}=n,{view:l}=e;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(t=c.nodeBefore||c.nodeAfter)&&void 0!==t&&t.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,t=500)=>{let e="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-t),i,(r,o,s,a)=>{var l,c;e+=((null===(c=(l=r.type.spec).toText)||void 0===c?void 0:c.call(l,{node:r,pos:o,parent:s,index:a}))||r.textContent||"%leaf%").slice(0,Math.max(0,i-o))}),e})(c)+o;return s.forEach(h=>{if(u)return;const p=((n,t)=>{if(Qv(t))return t.exec(n);const e=t(n);if(!e)return null;const i=[];return i.push(e.text),i.index=e.index,i.input=n,i.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(e.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Am({state:l.state,transaction:f}),m={from:i-(p[0].length-o.length),to:r},{commands:A,chain:y,can:E}=new bm({editor:e,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:y,can:E})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:r,text:o}),l.dispatch(f),u=!0)}),u}function DZ(n){const{editor:t,rules:e}=n,i=new it({state:{init:()=>null,apply:(r,o)=>r.getMeta(i)||(r.selectionSet||r.docChanged?null:o)},props:{handleTextInput:(r,o,s,a)=>Uv({editor:t,from:o,to:s,text:a,rules:e,plugin:i}),handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Uv({editor:t,from:o.pos,to:o.pos,text:"",rules:e,plugin:i})}),!1)},handleKeyDown(r,o){if("Enter"!==o.key)return!1;const{$cursor:s}=r.state.selection;return!!s&&Uv({editor:t,from:s.pos,to:s.pos,text:"\n",rules:e,plugin:i})}},isInputRules:!0});return i}class jv{constructor(t){this.find=t.find,this.handler=t.handler}}function TZ(n){const{editor:t,rules:e}=n;let i=null,r=!1,o=!1;return e.map(a=>new it({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(o=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return r=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!r,p="drop"===d.getMeta("uiEvent")&&!o;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function IZ(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Am({state:u,transaction:m});return function xZ(n){const{editor:t,state:e,from:i,to:r,rule:o}=n,{commands:s,chain:a,can:l}=new bm({editor:t,state:e}),c=[];return e.doc.nodesBetween(i,r,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(r,h+d.content.size);((n,t)=>{if(Qv(t))return[...n.matchAll(t)];const e=t(n);return e?e.map(i=>{const r=[];return r.push(i.text),r.index=i.index,r.input=n,r.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(i.replaceWith)),r}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),o.find).forEach(A=>{if(void 0===A.index)return;const y=p+A.index+1,E=y+A[0].length,b={from:e.tr.mapping.map(y),to:e.tr.mapping.map(E)},D=o.handler({state:e,range:b,match:A,commands:s,chain:a,can:l});c.push(D)})}),c.every(d=>null!==d)}({editor:t,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class ol{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=ol.resolve(t),this.schema=function _R(n){var t;const e=mR(n),{nodeExtensions:i,markExtensions:r}=ym(n),o=null===(t=i.find(l=>ne(l,"topNode")))||void 0===t?void 0:t.name,s=Object.fromEntries(i.map(l=>{const c=e.filter(m=>m.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=yR({...n.reduce((m,A)=>{const y=ne(A,"extendNodeSchema",u);return{...m,...y?y(l):{}}},{}),content:Be(ne(l,"content",u)),marks:Be(ne(l,"marks",u)),group:Be(ne(l,"group",u)),inline:Be(ne(l,"inline",u)),atom:Be(ne(l,"atom",u)),selectable:Be(ne(l,"selectable",u)),draggable:Be(ne(l,"draggable",u)),code:Be(ne(l,"code",u)),defining:Be(ne(l,"defining",u)),isolating:Be(ne(l,"isolating",u)),attrs:Object.fromEntries(c.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(m=>bR(m,c)));const f=ne(l,"renderHTML",u);f&&(h.toDOM=m=>f({node:m,HTMLAttributes:Nv(m,c)}));const g=ne(l,"renderText",u);return g&&(h.toText=g),[l.name,h]})),a=Object.fromEntries(r.map(l=>{const c=e.filter(g=>g.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=yR({...n.reduce((g,m)=>{const A=ne(m,"extendMarkSchema",u);return{...g,...A?A(l):{}}},{}),inclusive:Be(ne(l,"inclusive",u)),excludes:Be(ne(l,"excludes",u)),group:Be(ne(l,"group",u)),spanning:Be(ne(l,"spanning",u)),code:Be(ne(l,"code",u)),attrs:Object.fromEntries(c.map(g=>{var m;return[g.name,{default:null===(m=g?.attribute)||void 0===m?void 0:m.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(g=>bR(g,c)));const f=ne(l,"renderHTML",u);return f&&(h.toDOM=g=>f({mark:g,HTMLAttributes:Nv(g,c)})),[l.name,h]}));return new a6({topNode:o,nodes:s,marks:a})}(this.extensions),this.extensions.forEach(i=>{var r;this.editor.extensionStorage[i.name]=i.storage;const o={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:Lv(i.name,this.schema)};"mark"===i.type&&(null===(r=Be(ne(i,"keepOnSplit",o)))||void 0===r||r)&&this.splittableMarks.push(i.name);const s=ne(i,"onBeforeCreate",o);s&&this.editor.on("beforeCreate",s);const a=ne(i,"onCreate",o);a&&this.editor.on("create",a);const l=ne(i,"onUpdate",o);l&&this.editor.on("update",l);const c=ne(i,"onSelectionUpdate",o);c&&this.editor.on("selectionUpdate",c);const u=ne(i,"onTransaction",o);u&&this.editor.on("transaction",u);const d=ne(i,"onFocus",o);d&&this.editor.on("focus",d);const h=ne(i,"onBlur",o);h&&this.editor.on("blur",h);const p=ne(i,"onDestroy",o);p&&this.editor.on("destroy",p)})}static resolve(t){const e=ol.sort(ol.flatten(t)),i=function BZ(n){const t=n.filter((e,i)=>n.indexOf(e)!==i);return[...new Set(t)]}(e.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(e=>{const r=ne(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(t){return t.sort((i,r)=>{const o=ne(i,"priority")||100,s=ne(r,"priority")||100;return o>s?-1:o{const r=ne(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Lv(e.name,this.schema)});return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,e=ol.sort([...this.extensions].reverse()),i=[],r=[],o=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:t,type:Lv(s.name,this.schema)},l=[],c=ne(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Fr.handleExit({editor:t,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:t})]));u={...u,...g}}const d=function qX(n){return new it({props:{handleKeyDown:xv(n)}})}(u);l.push(d);const h=ne(s,"addInputRules",a);ER(s,t.options.enableInputRules)&&h&&i.push(...h());const p=ne(s,"addPasteRules",a);ER(s,t.options.enablePasteRules)&&p&&r.push(...p());const f=ne(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[DZ({editor:t,rules:i}),...TZ({editor:t,rules:r}),...o]}get attributes(){return mR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ym(this.extensions);return Object.fromEntries(e.filter(i=>!!ne(i,"addNodeView")).map(i=>{const r=this.attributes.filter(l=>l.type===i.name),o={name:i.name,options:i.options,storage:i.storage,editor:t,type:Mn(i.name,this.schema)},s=ne(i,"addNodeView",o);return s?[i.name,(l,c,u,d)=>{const h=Nv(l,r);return s()({editor:t,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function zv(n){return"Object"===function OZ(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function _m(n,t){const e={...n};return zv(n)&&zv(t)&&Object.keys(t).forEach(i=>{zv(t[i])?i in n?e[i]=_m(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Ft{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ft(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ft(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function CR(n,t,e){const{from:i,to:r}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=e||{};let a="",l=!0;return n.nodesBetween(i,r,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=o,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:t}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,r-u),l=!1):c.isBlock&&!l&&(a+=o,l=!0)}),a}function Hv(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const kZ=Ft.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new it({key:new _t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:t,schema:e}=n,{doc:i,selection:r}=t,{ranges:o}=r;return CR(i,{from:Math.min(...o.map(u=>u.$from.pos)),to:Math.max(...o.map(u=>u.$to.pos))},{textSerializers:Hv(e)})}}})]}});function Em(n,t,e={strict:!0}){const i=Object.keys(t);return!i.length||i.every(r=>e.strict?t[r]===n[r]:Qv(t[r])?t[r].test(n[r]):t[r]===n[r])}function Vv(n,t,e={}){return n.find(i=>i.type===t&&Em(i.attrs,e))}function GZ(n,t,e={}){return!!Vv(n,t,e)}function Gv(n,t,e={}){if(!n||!t)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const r=Vv([...i.node.marks],t,e);if(!r)return;let o=i.index,s=n.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(Vv([...i.node.marks],t,e);o>0&&r.isInSet(n.parent.child(o-1).marks);)o-=1,s-=n.parent.child(o).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(t,"text/html").body}function Mm(n,t,e){if(e={slice:!0,parseOptions:{},...e},"object"==typeof n&&null!==n)try{return Array.isArray(n)?L.fromArray(n.map(i=>t.nodeFromJSON(i))):t.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),Mm("",t,e)}if("string"==typeof n){const i=Ic.fromSchema(t);return e.slice?i.parseSlice(Yv(n),e.parseOptions).content:i.parse(Yv(n),e.parseOptions)}return Mm("",t,e)}function MR(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function Ah(n,t,e={}){const{from:i,to:r,empty:o}=n.selection,s=t?Mn(t,n.schema):null,a=[];n.doc.nodesBetween(i,r,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(r,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=r-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Em(d.node.attrs,e,{strict:!1}));return o?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function wm(n,t){return t.nodes[n]?"node":t.marks[n]?"mark":null}function wR(n,t){const e="string"==typeof t?[t]:t;return Object.keys(n).reduce((i,r)=>(e.includes(r)||(i[r]=n[r]),i),{})}function DR(n,t,e={}){return Mm(n,t,{slice:!1,parseOptions:e})}function IR(n,t){for(let e=n.depth;e>0;e-=1){const i=n.node(e);if(t(i))return{pos:e>0?n.before(e):0,start:n.start(e),depth:e,node:i}}}function Wv(n){return t=>IR(t.$from,n)}function TR(n,t){const e=qs(t,n.schema),{from:i,to:r,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===e.name);return a?{...a.attrs}:{}}function BR(n,t){const e=wm("string"==typeof t?t:t.name,n.schema);return"node"===e?function Cee(n,t){const e=Mn(t,n.schema),{from:i,to:r}=n.selection,o=[];n.doc.nodesBetween(i,r,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===e.name);return s?{...s.attrs}:{}}(n,t):"mark"===e?TR(n,t):{}}function Dm(n,t,e){const i=[];return n===t?e.resolve(n).marks().forEach(r=>{const s=Gv(e.resolve(n-1),r.type);!s||i.push({mark:r,...s})}):e.nodesBetween(n,t,(r,o)=>{i.push(...r.marks.map(s=>({from:o,to:o+r.nodeSize,mark:s})))}),i}function Kv(n,t,e={}){const{empty:i,ranges:r}=n.selection,o=t?qs(t,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!o||o.name===d.type.name).find(d=>Em(d.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),y=Math.min(f,m+g.nodeSize);s+=y-A,a.push(...g.marks.map(b=>({mark:b,from:A,to:y})))})}),0===s)return!1;const l=a.filter(d=>!o||o.name===d.mark.type.name).filter(d=>Em(d.mark.attrs,e,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!o||d.mark.type!==o&&d.mark.type.excludes(o)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function OR(n,t){const{nodeExtensions:e}=ym(t),i=e.find(s=>s.name===n);if(!i)return!1;const o=Be(ne(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function sl(n,t,e){const r=n.state.doc.content.size,o=qo(t,0,r),s=qo(e,0,r),a=n.coordsAtPos(o),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function Im(n,t,e){return Object.fromEntries(Object.entries(e).filter(([i])=>{const r=n.find(o=>o.type===t&&o.name===i);return!!r&&r.attribute.keepOnSplit}))}function kR(n,t){const e=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(e){const i=e.filter(r=>t?.includes(r.type.name));n.tr.ensureMarks(i)}}const PR=(n,t)=>{const e=Wv(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Rs(n.doc,e.pos)&&n.join(e.pos),!0},FR=(n,t)=>{const e=Wv(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(e.start).after(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Rs(n.doc,i)&&n.join(i),!0};var Qee=Object.freeze({__proto__:null,blur:()=>({editor:n,view:t})=>(requestAnimationFrame(()=>{var e;n.isDestroyed||(t.dom.blur(),null===(e=window?.getSelection())||void 0===e||e.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:t})=>t.setContent("",n),clearNodes:()=>({state:n,tr:t,dispatch:e})=>{const{selection:i}=t,{ranges:r}=i;return e&&r.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=Tc(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,g)}(f||0===f)&&t.lift(p,f)})}),!0},command:n=>t=>n(t),createParagraphNear:()=>({state:n,dispatch:t})=>aR(n,t),deleteCurrentNode:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,i=e.$anchor.node();if(i.content.size>0)return!1;const r=n.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===i.type){if(t){const a=r.before(o),l=r.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:t,state:e,dispatch:i})=>{const r=Mn(n,e.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r){if(i){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:t,dispatch:e})=>{const{from:i,to:r}=n;return e&&t.delete(i,r),!0},deleteSelection:()=>({state:n,dispatch:t})=>Tv(n,t),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:t})=>sR(n,t),extendMarkRange:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const o=qs(n,i.schema),{doc:s,selection:a}=e,{$from:l,from:c,to:u}=a;if(r){const d=Gv(l,o,t);if(d&&d.from<=c&&d.to>=u){const h=Ee.create(s,d.from,d.to);e.setSelection(h)}}return!0},first:n=>t=>{const e="function"==typeof n?n(t):n;for(let i=0;i({editor:e,view:i,tr:r,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{vm()&&i.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(i.focus(),t?.scrollIntoView&&e.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(o&&null===n&&!Cm(e.state.selection))return s(),!0;const a=vR(r.doc,n)||e.state.selection,l=e.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},forEach:(n,t)=>e=>n.every((i,r)=>t(i,{...e,index:r})),insertContent:(n,t)=>({tr:e,commands:i})=>i.insertContentAt({from:e.selection.from,to:e.selection.to},n,t),insertContentAt:(n,t,e)=>({tr:i,dispatch:r,editor:o})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=Mm(t,o.schema,{parseOptions:{preserveWhitespace:"full",...e.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?i.insertText(t,a,l):i.replaceWith(a,l,s),e.updateSelection&&function qZ(n,t,e){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:t})=>((n,t)=>{let r,e=n.selection,i=e instanceof ce;if(i){if(e.node.isTextblock||!Rs(n.doc,e.from))return!1;r=e.from}else if(r=Nk(n.doc,e.from,-1),null==r)return!1;if(t){let o=n.tr.join(r);i&&o.setSelection(ce.create(o.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0})(n,t),joinDown:()=>({state:n,dispatch:t})=>((n,t)=>{let i,e=n.selection;if(e instanceof ce){if(e.node.isTextblock||!Rs(n.doc,e.to))return!1;i=e.to}else if(i=Nk(n.doc,e.to,1),null==i)return!1;return t&&t(n.tr.join(i).scrollIntoView()),!0})(n,t),joinBackward:()=>({state:n,dispatch:t})=>ZF(n,t),joinForward:()=>({state:n,dispatch:t})=>iR(n,t),keyboardShortcut:n=>({editor:t,view:e,tr:i,dispatch:r})=>{const o=function ree(n){const t=n.split(/-(?!$)/);let i,r,o,s,e=t[t.length-1];"Space"===e&&(e=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{e.someProp("handleKeyDown",c=>c(e,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&r&&i.maybeStep(u)}),!0},lift:(n,t={})=>({state:e,dispatch:i})=>!!Ah(e,Mn(n,e.schema),t)&&((n,t)=>{let{$from:e,$to:i}=n.selection,r=e.blockRange(i),o=r&&Tc(r);return null!=o&&(t&&t(n.tr.lift(r,o).scrollIntoView()),!0)})(e,i),liftEmptyBlock:()=>({state:n,dispatch:t})=>lR(n,t),liftListItem:n=>({state:t,dispatch:e})=>function AZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,s=>s.childCount>0&&s.firstChild.type==n);return!!o&&(!e||(i.node(o.depth-1).type==n?function bZ(n,t,e,i){let r=n.tr,o=i.end,s=i.$to.end(i.depth);og;f--)p-=r.child(f).nodeSize,i.delete(p-1,p+1);let o=i.doc.resolve(e.start),s=o.nodeAfter;if(i.mapping.map(e.end)!=e.start+o.nodeAfter.nodeSize)return!1;let a=0==e.startIndex,l=e.endIndex==r.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?L.empty:L.from(r))))return!1;let d=o.pos,h=d+s.nodeSize;return i.step(new Cn(d-(a?1:0),h+(l?1:0),d+1,h-1,new G((a?L.empty:L.from(r.copy(L.empty))).append(l?L.empty:L.from(r.copy(L.empty))),a?0:1,l?0:1),a?0:1)),t(i.scrollIntoView()),!0}(t,e,o)))}}(Mn(n,t.schema))(t,e),newlineInCode:()=>({state:n,dispatch:t})=>oR(n,t),resetAttributes:(n,t)=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=wm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Mn(n,i.schema)),"mark"===a&&(s=qs(n,i.schema)),r&&e.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&e.setNodeMarkup(u,void 0,wR(c.attrs,t)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&e.addMark(u,u+c.nodeSize,s.create(wR(d.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:t})=>(t&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:t})=>t.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:t})=>tR(n,t),selectNodeForward:()=>({state:n,dispatch:t})=>rR(n,t),selectParentNode:()=>({state:n,dispatch:t})=>((n,t)=>{let r,{$from:e,to:i}=n.selection,o=e.sharedDepth(i);return 0!=o&&(r=e.before(o),t&&t(n.tr.setSelection(ce.create(n.doc,r))),!0)})(n,t),selectTextblockEnd:()=>({state:n,dispatch:t})=>pR(n,t),selectTextblockStart:()=>({state:n,dispatch:t})=>hR(n,t),setContent:(n,t=!1,e={})=>({tr:i,editor:r,dispatch:o})=>{const{doc:s}=i,a=DR(n,r.schema,e);return o&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const{selection:o}=e,{empty:s,ranges:a}=o,l=qs(n,i.schema);if(r)if(s){const c=TR(i,l);e.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&e.addMark(f,g,l.create({...A.attrs,...t}))}):e.addMark(f,g,l.create(t))})});return function Tee(n,t,e){var i;const{selection:r}=t;let o=null;if(Cm(r)&&(o=r.$cursor),o){const a=null!==(i=n.storedMarks)&&void 0!==i?i:o.marks();return!!e.isInSet(a)||!a.some(l=>l.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(e);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(e),f=!!e.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(e));c=p&&f}return!c}),c})}(i,e,l)},setMeta:(n,t)=>({tr:e})=>(e.setMeta(n,t),!0),setNode:(n,t={})=>({state:e,dispatch:i,chain:r})=>{const o=Mn(n,e.schema);return o.isTextblock?r().command(({commands:s})=>!!fR(o,t)(e)||s.clearNodes()).command(({state:s})=>fR(o,t)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,r=qo(n,0,i.content.size),o=ce.create(i,r);t.setSelection(o)}return!0},setTextSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,{from:r,to:o}="number"==typeof n?{from:n,to:n}:n,s=Ee.atStart(i).from,a=Ee.atEnd(i).to,l=qo(r,s,a),c=qo(o,s,a),u=Ee.create(i,l,c);t.setSelection(u)}return!0},sinkListItem:n=>({state:t,dispatch:e})=>function _Z(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==n);if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=n)return!1;if(e){let c=l.lastChild&&l.lastChild.type==a.type,u=L.from(c?n.create():null),d=new G(L.from(n.create(null,L.from(a.type.create(null,u)))),c?3:1,0),h=o.start,p=o.end;e(t.tr.step(new Cn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Mn(n,t.schema))(t,e),splitBlock:({keepMarks:n=!0}={})=>({tr:t,state:e,dispatch:i,editor:r})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,u=Im(r.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof ce&&o.node.isBlock)return!(!a.parentOffset||!Yo(s,a.pos)||(i&&(n&&kR(e,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;o instanceof Ee&&t.deleteSelection();const h=0===a.depth?void 0:function _ee(n){for(let t=0;t({tr:t,state:e,dispatch:i,editor:r})=>{var o;const s=Mn(n,e.schema),{$from:a,$to:l}=e.selection,c=e.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=r.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=L.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let Q=a.depth-A;Q>=a.depth-3;Q-=1)m=L.from(a.node(Q).copy(m));const y=a.indexAfter(-1){if(I>-1)return!1;Q.isTextblock&&0===Q.content.size&&(I=O+1)}),I>-1&&t.setSelection(Ee.near(t.doc.resolve(I))),t.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=Im(d,u.type.name,u.attrs),f=Im(d,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];return!!Yo(t.doc,a.pos,2)&&(i&&t.split(a.pos,2,g).scrollIntoView(),!0)},toggleList:(n,t)=>({editor:e,tr:i,state:r,dispatch:o,chain:s,commands:a,can:l})=>{const{extensions:c}=e.extensionManager,u=Mn(n,r.schema),d=Mn(t,r.schema),{selection:h}=r,{$from:p,$to:f}=h,g=p.blockRange(f);if(!g)return!1;const m=Wv(A=>OR(A.type.name,c))(h);if(g.depth>=1&&m&&g.depth-m.depth<=1){if(m.node.type===u)return a.liftListItem(d);if(OR(m.node.type.name,c)&&u.validContent(m.node.content)&&o)return s().command(()=>(i.setNodeMarkup(m.pos,u),!0)).command(()=>PR(i,u)).command(()=>FR(i,u)).run()}return s().command(()=>!!l().wrapInList(u)||a.clearNodes()).wrapInList(u).command(()=>PR(i,u)).command(()=>FR(i,u)).run()},toggleMark:(n,t={},e={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:o=!1}=e,s=qs(n,i.schema);return Kv(i,s,t)?r.unsetMark(s,{extendEmptyMarkRange:o}):r.setMark(s,t)},toggleNode:(n,t,e={})=>({state:i,commands:r})=>{const o=Mn(n,i.schema),s=Mn(t,i.schema);return Ah(i,o,e)?r.setNode(s):r.setNode(o,e)},toggleWrap:(n,t={})=>({state:e,commands:i})=>{const r=Mn(n,e.schema);return Ah(e,r,t)?i.lift(r):i.wrapIn(r,t)},undoInputRule:()=>({state:n,dispatch:t})=>{const e=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,{empty:i,ranges:r}=e;return i||t&&r.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=e,l=qs(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(o=c.marks().find(m=>m.type===l))||void 0===o?void 0:o.attrs,g=Gv(c,l,f);g&&(h=g.from,p=g.to),e.removeMark(h,p,l)}else d.forEach(h=>{e.removeMark(h.$from.pos,h.$to.pos,l)});return e.removeStoredMark(l),!0},updateAttributes:(n,t={})=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=wm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Mn(n,i.schema)),"mark"===a&&(s=qs(n,i.schema)),r&&e.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{o&&o===d.type&&e.setNodeMarkup(h,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);e.addMark(f,g,s.create({...p.attrs,...t}))}})})}),!0)},wrapIn:(n,t={})=>({state:e,dispatch:i})=>function oZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=s&&xC(s,n,t);return!!a&&(i&&i(e.tr.wrap(s,a).scrollIntoView()),!0)}}(Mn(n,e.schema),t)(e,i),wrapInList:(n,t={})=>({state:e,dispatch:i})=>function gZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==r.index(s.depth-1))return!1;let u=e.doc.resolve(s.start-2);l=new Vg(u,u,s.depth),s.endIndex=0;u--)o=L.from(e[u].type.create(e[u].attrs,o));n.step(new Cn(t.start-(i?2:0),t.end,t.start,t.end,new G(o,0,0),e.length,!0));let s=0;for(let u=0;u({...Qee})}),jee=Ft.create({name:"editable",addProseMirrorPlugins(){return[new it({key:new _t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),zee=Ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new it({key:new _t("focusEvents"),props:{handleDOMEvents:{focus:(t,e)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,e)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),Hee=Ft.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=_e.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},o={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return vm()||MR()?o:r},addProseMirrorPlugins(){return[new it({key:new _t("clearDocument"),appendTransaction:(n,t,e)=>{if(!n.some(f=>f.docChanged)||t.doc.eq(e.doc))return;const{empty:r,from:o,to:s}=t.selection,a=_e.atStart(t.doc).from,l=_e.atEnd(t.doc).to,c=o===a&&s===l,u=0===e.doc.textBetween(0,e.doc.content.size," "," ").length;if(r||!c||!u)return;const d=e.tr,h=Am({state:e,transaction:d}),{commands:p}=new bm({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),Vee=Ft.create({name:"tabindex",addProseMirrorPlugins(){return[new it({key:new _t("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Gee=Object.freeze({__proto__:null,ClipboardTextSerializer:kZ,Commands:Uee,Editable:jee,FocusEvents:zee,Keymap:Hee,Tabindex:Vee});class Jee extends class EZ{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,e)),this}off(t,e){const i=this.callbacks[t];return i&&(e?this.callbacks[t]=i.filter(r=>r!==e):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function Wee(n,t){const e=document.querySelector("style[data-tiptap-style]");if(null!==e)return e;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t){this.setOptions({editable:t}),this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const i=AR(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});this.view.updateState(r)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(i)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(Gee):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new ol(e,this)}createCommandManager(){this.commandManager=new bm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=DR(this.options.content,this.schema,this.options.parseOptions),e=vR(t,this.options.autofocus);this.view=new jX(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Pc.create({doc:t,selection:e||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=t);const e=this.state.apply(t),i=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return BR(this.state,t)}isActive(t,e){return function Iee(n,t,e={}){if(!t)return Ah(n,null,e)||Kv(n,null,e);const i=wm(t,n.schema);return"node"===i?Ah(n,t,e):"mark"===i&&Kv(n,t,e)}(this.state,"string"==typeof t?t:null,"string"==typeof t?e:t)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function SR(n,t){const e=oo.fromSchema(t).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:i={}}=t||{};return function xR(n,t){return CR(n,{from:0,to:n.content.size},t)}(this.state.doc,{blockSeparator:e,textSerializers:{...i,...Hv(this.schema)}})}get isEmpty(){return function See(n){var t;const e=null===(t=n.type.createAndFill())||void 0===t?void 0:t.toJSON(),i=n.toJSON();return JSON.stringify(e)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null!==(t=this.view)&&void 0!==t&&t.docView)}}function al(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Dm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function RR(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},{tr:o}=t,s=e.from;let a=e.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,o.insertText(i[0][i[0].length-1],s+i[0].length-1),o.replaceWith(c,a,n.type.create(r))}else i[0]&&o.replaceWith(s,a,n.type.create(r))}})}function $v(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=t.doc.resolve(e.from),o=Be(n.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),n.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,n.type,o)}})}function qv(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},o=t.tr.delete(e.from,e.to),a=o.doc.resolve(e.from).blockRange(),l=a&&xC(a,n.type,r);if(!l)return null;o.wrap(a,l);const c=o.doc.resolve(e.from-1).nodeBefore;c&&c.type===n.type&&Rs(o.doc,e.from-1)&&(!n.joinPredicate||n.joinPredicate(i,c))&&o.join(e.from-1)}})}class Fr{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Fr(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Fr(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!s.find(c=>c?.type.name===e.name))return!1;const l=s.find(c=>c?.type.name===e.name);return l&&i.removeStoredMark(l),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}class tn{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new tn(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new tn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function Xs(n){return new jv({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Dm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function NR(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function bh(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){NR(o,i,r,s,a,"next",l)}function a(l){NR(o,i,r,s,a,"throw",l)}s(void 0)})}}const Xee=new _t("suggestion");function Zee({pluginKey:n=Xee,editor:t,char:e="@",allowSpaces:i=!1,allowedPrefixes:r=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new it({key:n,view(){var m,g=this;return{update:(m=bh(function*(A,y){var E,b,D,I,Q,O,q;const le=null===(E=g.key)||void 0===E?void 0:E.getState(y),xe=null===(b=g.key)||void 0===b?void 0:b.getState(A.state),ke=le.active&&xe.active&&le.range.from!==xe.range.from,Ae=!le.active&&xe.active,dt=le.active&&!xe.active,U=Ae||ke,V=!Ae&&!dt&&le.query!==xe.query&&!ke,W=dt||ke;if(!U&&!V&&!W)return;const X=W&&!U?le:xe,Ce=A.dom.querySelector(`[data-decoration-id="${X.decorationId}"]`);h={editor:t,range:X.range,query:X.query,text:X.text,items:[],command:ft=>{l({editor:t,range:X.range,props:ft})},decorationNode:Ce,clientRect:Ce?()=>{var ft;const{decorationId:Bt}=null===(ft=g.key)||void 0===ft?void 0:ft.getState(t.state);return A.dom.querySelector(`[data-decoration-id="${Bt}"]`)?.getBoundingClientRect()||null}:null},U&&(null===(D=p?.onBeforeStart)||void 0===D||D.call(p,h)),V&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(V||U)&&(h.items=yield c({editor:t,query:X.query})),W&&(null===(Q=p?.onExit)||void 0===Q||Q.call(p,h)),V&&(null===(O=p?.onUpdate)||void 0===O||O.call(p,h)),U&&(null===(q=p?.onStart)||void 0===q||q.call(p,h))}),function(y,E){return m.apply(this,arguments)}),destroy:()=>{var m;!h||null===(m=p?.onExit)||void 0===m||m.call(p,h)}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,y){const{isEditable:E}=t,{composing:b}=t.view,{selection:D}=g,{empty:I,from:Q}=D,O={...m};if(O.composing=b,E&&(I||t.view.composing)){(Qm.range.to)&&!b&&!m.composing&&(O.active=!1);const q=function qee(n){var t;const{char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:s}=n,a=function $ee(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(e),l=new RegExp(`\\s${a}$`),c=o?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${r?.join("")}\0]?$`).test(f);if(null!==r&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(e.length),text:p[0]}:null}({char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:D.$from}),le=`id_${Math.floor(4294967295*Math.random())}`;q&&d({editor:t,state:y,range:q.range})?(O.active=!0,O.decorationId=m.decorationId?m.decorationId:le,O.range=q.range,O.query=q.query,O.text=q.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,m){var A;const{active:y,range:E}=f.getState(g.state);return y&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:E}))||!1},decorations(g){const{active:m,range:A,decorationId:y}=f.getState(g);return m?kt.create(g.doc,[vn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":y})]):null}}});return f}let ete=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-action-button"]],decls:3,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"button")(1,"i",0),de(2,"add"),B()())},styles:["[_nghost-%COMP%]{display:block}button[_ngcontent-%COMP%]{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}"]}),n})();const tte=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function nte(n,t){if(1&n){const e=Re();x(0,"button",2),K("mousedown",function(){return re(e),oe(w().back.emit())}),B()}2&n&&mn(Zr(2,tte))}let LR=(()=>{class n{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new te}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,i){1&e&&(ie(0,"p",0),S(1,nte,1,3,"button",1)),2&e&&(C("innerHTML",i.title,zp),v(1),C("ngIf",i.showBackBtn))},dependencies:[Pt,Bs],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]}),n})();function ite(n,t){if(1&n&&(x(0,"i",7),de(1),B()),2&n){const e=w();v(1),pt(e.url)}}function rte(n,t){1&n&&ie(0,"dot-contentlet-thumbnail",9),2&n&&C("contentlet",w(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function ote(n,t){if(1&n&&S(0,rte,1,4,"dot-contentlet-thumbnail",8),2&n){const e=w(),i=Qt(10);C("ngIf",null==e.data?null:e.data.contentlet)("ngIfElse",i)}}function ste(n,t){if(1&n&&(x(0,"span",10),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentlet.url)}}function ate(n,t){if(1&n&&(x(0,"div",11),ie(1,"dot-state-icon",12),x(2,"dot-badge",13),de(3),Pa(4,"lowercase"),B()()),2&n){const e=w();v(1),C("state",e.data.contentlet),v(2),pt(Fa(4,2,e.data.contentlet.language))}}function lte(n,t){1&n&&ie(0,"img",14),2&n&&C("src",w().url,ko)}let Xv=(()=>{class n{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,i=e.parentElement,{top:r,top:o,height:s}=i.getBoundingClientRect(),{top:a,bottom:l}=e.getBoundingClientRect(),c=a-r,u=l-o;i.scrollTop+=this.alignToTop()?c:u-s}}isIntoView(){const{bottom:e,top:i}=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.parentElement.getBoundingClientRect();return i>=r.top&&e<=r.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:i}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#b3b1b8;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]}),n})();const cte=["*"];let QR=(()=>{class n{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new Me,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const i=e.target,r=i.dataset?.index;if(isNaN(r)||!this.mouseMove)return;const o=Number(i?.dataset.index);i.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new kO(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(Vn(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new kO(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-list"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,Xv,4),2&e){let o;He(o=Ve())&&(i.items=o)}},hostVars:1,hostBindings:function(e,i){1&e&&K("mousemove",function(o){return i.onMouseMove(o)})("mouseover",function(o){return i.onMouseOver(o)})("mousedown",function(o){return i.onMouseDownHandler(o)}),2&e&&Ot("id",i.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:cte,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]}),n})();function Jc(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>fe(function ute(n,t){return i=>{let r=i;for(let o=0;o{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Br;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?ae(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(Jc("entity"),fe(e=>{const i=this.getDotLanguageObject(e);return this.languages=i,i}))}getDotLanguageObject(e){return e.reduce((i,r)=>Object.assign(i,{[r.id]:r}),{})}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Sm=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Sm||(Sm={})),Sm))();let dte=(()=>{class n{constructor(e){this.http=e}get({query:e,limit:i=0,offset:r=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:i,offset:r}).pipe(Jc("entity"))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eM=(()=>{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Br;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",i=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:i,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(Jc("entity"))}getContentlets({contentType:e,filter:i,currentLanguage:r}){return this.http.post("/api/content/_search",{query:`+contentType:${e} +languageId:${r} +deleted:false +working:true +catchall:*${i}* `,sort:"modDate desc",offset:0,limit:40}).pipe(Jc("entity","jsonObjectView","contentlets"))}getContentletsUrlMap({filter:e,currentLanguage:i=Bm}){return this.http.post("/api/content/_search",{query:`+languageId:${i} +deleted:false +working:true +(urlmap:*${e}* OR +(basetype:5 AND path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(Jc("entity","jsonObjectView","contentlets"))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const hte={SHOW_VIDEO_THUMBNAIL:!0};let UR=(()=>{class n{constructor(){this.config=hte}get configObject(){return this.config}setProperty(e,i){this.config={...this.config,[e]:i}}getProperty(e){return this.config[e]||!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pte=["list"];function fte(n,t){if(1&n&&(x(0,"h3"),de(1),B()),2&n){const e=w(2);v(1),pt(e.title)}}function gte(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",7),2&n){const e=w(),i=e.$implicit,r=e.index;C("command",i.command)("index",i.tabindex||r)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function mte(n,t){1&n&&ie(0,"div",8)}function Ate(n,t){if(1&n&&(ct(0),S(1,gte,1,6,"dot-suggestions-list-item",5),S(2,mte,1,0,"ng-template",null,6,on),ut()),2&n){const e=t.$implicit,i=Qt(3);v(1),C("ngIf","divider"!==e.id)("ngIfElse",i)}}function bte(n,t){if(1&n&&(x(0,"div"),S(1,fte,2,1,"h3",2),x(2,"dot-suggestion-list",null,3),S(4,Ate,4,2,"ng-container",4),B()()),2&n){const e=w();v(1),C("ngIf",!!e.title),v(3),C("ngForOf",e.items)}}function yte(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",9),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}if(2&n){const e=w();C("title",e.noResultsMessage)("showBackBtn",!e.isFilterActive)}}var $n=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}($n||($n={})),$n))();let xm=(()=>{class n{constructor(e,i,r){this.suggestionsService=e,this.dotLanguageService=i,this.cd=r,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=Bm,this.allowedContentTypes="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=$n.BLOCK,this.dotLanguageService.getLanguages().pipe(Jn(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===$n.CONTENT?$n.CONTENTTYPE:$n.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case $n.BLOCK:this.items=this.initialItems.filter(i=>i.label.toLowerCase().includes(e.trim().toLowerCase()));break;case $n.CONTENTTYPE:this.loadContentTypes(e);break;case $n.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe(fe(i=>i.map(r=>({label:r.name,icon:r.icon,command:()=>{this.selectedContentType=r,this.itemsLoaded=$n.CONTENT,this.loadContentlets(r)}}))),Jn(1)).subscribe(i=>{this.items=i,this.itemsLoaded=$n.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,i=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:i,currentLanguage:this.currentLanguage}).pipe(Jn(1)).subscribe(r=>{this.items=r.map(o=>{const{languageId:s}=o;return o.language=this.getContentletLanguage(s),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(eM),T(Zv),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestions"]],viewQuery:function(e,i){if(1&e&&Zt(pte,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,bte,5,2,"div",0),S(1,yte,1,2,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.items.length)("ngIfElse",r)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#b3b1b8 solid 1px;margin:.5rem 0}']}),n})();const jR={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"},tM="menuFloating";class Cte{constructor({editor:t,element:e,view:i,tippyOptions:r,render:o,command:s,key:a}){this.invalidNodes=["codeBlock","blockquote"],this.mousedownHandler=l=>{l.preventDefault(),this.editor.chain().insertContent("/").run()},this.editor=t,this.element=e,this.view=i,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",()=>{this.tippy.unmount(),this.update(this.editor.view)}),this.element.style.visibility="visible",this.render=o,this.command=s,this.key=a,this.createTooltip(r)}createTooltip(t={}){this.tippy=Jo(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"left",hideOnClick:"toggle",...t})}update(t,e){const{selection:i}=t.state,{$anchor:r,empty:o,from:s,to:a}=i,u=1===r.depth&&!i.$anchor.parent.isLeaf&&!i.$anchor.parent.textContent,d=r.parent.type.name,h=this.key?.getState(t.state),p=e?this.key?.getState(e):null;if(p?.open||o&&u)if(p?.open||!this.invalidNodes.includes(d))if(this.tippy.setProps({getReferenceClientRect:()=>sl(t,s,a)}),this.show(),h.open){const{from:f,to:g}=this.editor.state.selection,m=sl(this.view,f,g);this.render().onStart({clientRect:()=>m,range:{from:f,to:g},editor:this.editor,command:this.command})}else p&&p.open&&this.render().onExit(null);else this.hide();else this.hide()}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler)}}const zR=new _t(tM),vte=n=>new it({key:zR,view:t=>new Cte({key:zR,view:t,...n}),state:{init:()=>({open:!1}),apply(t){const e=t.getMeta(tM);return e?.open?{open:e?.open}:{open:!1}}},props:{handleKeyDown(t,e){const{open:i,range:r}=this.getState(t.state);return!!i&&n.render().onKeyDown({event:e,range:r,view:t})}}}),Ste={paragrah:!0,text:!0,doc:!0},HR={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0}},xte=(n,t)=>{const{type:e,attrs:i}=n;return"heading"===e&&t[e+i.level]},VR=(n,t)=>{if(!n?.length)return n;const e=[];for(const i in n){const r=n[i];(t[r.type]||xte(r,t))&&e.push({...r,content:VR(r.content,t)})}return e},Ote=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),nM=new RegExp(/]*src="[^"]*"[^>]*>/gm),Kc=(n,t)=>{let i,e=n.depth;do{if(i=n.node(e),i){if(Array.isArray(t)&&t.includes(i.type.name))break;e--}}while(e>0&&i);return i},Tm=n=>{const t=n.match(nM)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(nM,"")+t.join(""):t.join("")},GR=n=>{const{state:t}=n,{doc:e}=t.tr,i=t.selection.to,r=Ee.create(e,i,i);n.dispatch(t.tr.setSelection(r))};class ll extends Yn{constructor(t,e){super(),this.STEP_TYPE="setDocAttr",this.key=t,this.value=e}get stepType(){return this.STEP_TYPE}static fromJSON(t,e){return new ll(e.key,e.value)}static register(){try{Yn.jsonID(this.prototype.STEP_TYPE,ll)}catch(t){if(t.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw t}return!0}apply(t){return this.prevValue=t.attrs[this.key],t.attrs===t.type.defaultAttrs&&(t.attrs=Object.assign({},t.attrs)),t.attrs[this.key]=this.value,ln.ok(t)}invert(){return new ll(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}const Bm=1;var dr=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(dr||(dr={})),dr))();const jte=[dr.DOT_IMAGE,dr.DOT_CONTENT];function YR({editor:n,range:t,props:e,customBlocks:i}){const{type:r,payload:o}=e,s={dotContent:()=>{n.chain().addContentletBlock({range:t,payload:o}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:t,type:r}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe(Jn(1),Zi(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(t).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(t).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(t).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(t).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(t).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),video:()=>n.commands.openAssetForm({type:"video"})};WR(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[e.type.name]?s[e.type.name]():n.chain().setTextSelection(t).focus().run()}function WR(n){return n.extensions.map(t=>function Hte(n){return n.map(t=>({icon:t.icon,label:t.menuLabel,commandKey:t.command,id:t.name}))}(t.actions)).flat()}const Vte=(n,t)=>{let e,i;const r=new _t("suggestionPlugin"),o=new Me;let s=!0;function a({editor:g,range:m,clientRect:A}){s&&(function c(g,m){const{allowedBlocks:A,allowedContentTypes:y,lang:E}=g.storage.dotConfig,D=function u({allowedBlocks:g=[],editor:m,range:A}){const E=[...g.length?Lg.filter(b=>this.allowedBlocks.includes(b.id)):Lg,...WR(t)];return E.forEach(b=>b.command=()=>function d({item:g,editor:m,range:A}){const{id:y,attributes:E}=g,b={type:{name:y.includes("heading")?"heading":y,...E}};ek({type:$n.BLOCK,editor:m,range:A,suggestionKey:r,ItemsType:$n}),h({editor:m,range:A,props:b})}({item:b,editor:m,range:A})),E}({allowedBlocks:A.length>1?A:[],editor:g,range:m});i=n.createComponent(xm),i.instance.items=D,i.instance.currentLanguage=E,i.instance.allowedContentTypes=y,i.instance.onSelectContentlet=I=>{ek({type:$n.CONTENT,editor:g,range:m,suggestionKey:r,ItemsType:$n}),h({editor:g,range:m,props:I})},i.changeDetectorRef.detectChanges(),(A.length<=1||A.includes("dotContent"))&&i.instance.addContentletItem()}(g,m),e=function zte({element:n,content:t,rect:e,onHide:i}){return Jo(n,{content:t,placement:"bottom",popperOptions:{modifiers:k9},getReferenceClientRect:e,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:g.options.element.parentElement,content:i.location.nativeElement,rect:A,onHide:()=>{const y=g.state.tr.setMeta(tM,{open:!1});g.view.dispatch(y),g.commands.freezeScroll(!1)}}))}function l({editor:g}){g.commands.freezeScroll(!0),s=!(Kc(g.view.state.selection.$from,[dr.TABLE_CELL])?.type.name===dr.TABLE_CELL)}function h({editor:g,range:m,props:A}){const y=r.getState(g.view.state).query?.length||0;m.to=m.to+y,YR({editor:g,range:m,props:A,customBlocks:t})}function p({event:g}){const{key:m}=g;return"Escape"===m?(g.stopImmediatePropagation(),e.hide(),!0):"Enter"===m?(i.instance.execCommand(),!0):("ArrowDown"===m||"ArrowUp"===m)&&(i.instance.updateSelection(g),!0)}function f({editor:g}){e?.destroy(),g.commands.freezeScroll(!1),i?.destroy(),i=null,o.next(!0),o.complete()}return Ft.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:r,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:p,onExit:f}),items:({query:g})=>(i&&i.instance.filterItems(g),[])}}),addCommands:()=>({addHeading:({range:g,type:m})=>({chain:A})=>A().focus().deleteRange(g).toggleHeading({level:m.level}).focus().run(),addContentletBlock:({range:g,payload:m})=>({chain:A})=>A().deleteRange(g).command(y=>{const E=y.editor.schema.nodes.dotContent.create({data:m});return y.tr.replaceSelectionWith(E),!0}).run(),addNextLine:()=>({chain:g})=>g().command(m=>{const{selection:A}=m.state;return m.commands.insertContentAt(A.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){const g=n.createComponent(ete);return[vte({command:YR,editor:this.editor,element:g.location.nativeElement,render:()=>({onStart:a,onKeyDown:p,onExit:f})}),Zee({editor:this.editor,...this.options.suggestion})]}})};var Om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JR=function Gte(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},Kte="object"==typeof self&&self&&self.Object===Object&&self,$te="object"==typeof Om&&Om&&Om.Object===Object&&Om||Kte||Function("return this")(),qte=$te,ene=/\s/,ine=function tne(n){for(var t=n.length;t--&&ene.test(n.charAt(t)););return t},rne=/^\s+/,lne=$te.Symbol,XR=Object.prototype,cne=XR.hasOwnProperty,une=XR.toString,_h=lne?lne.toStringTag:void 0,fne=Object.prototype.toString,Ane=function dne(n){var t=cne.call(n,_h),e=n[_h];try{n[_h]=void 0;var i=!0}catch{}var r=une.call(n);return i&&(t?n[_h]=e:delete n[_h]),r},bne=function gne(n){return fne.call(n)},eN=lne?lne.toStringTag:void 0,wne=function Ene(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":eN&&eN in Object(n)?Ane(n):bne(n)},Dne=function vne(n){return null!=n&&"object"==typeof n},Tne=function one(n){return n&&n.slice(0,ine(n)+1).replace(rne,"")},tN=JR,Bne=function Sne(n){return"symbol"==typeof n||Dne(n)&&"[object Symbol]"==wne(n)},One=/^[-+]0x[0-9a-f]+$/i,kne=/^0b[01]+$/i,Pne=/^0o[0-7]+$/i,Fne=parseInt,Lne=JR,iM=function(){return qte.Date.now()},iN=function Rne(n){if("number"==typeof n)return n;if(Bne(n))return NaN;if(tN(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=tN(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Tne(n);var e=kne.test(n);return e||Pne.test(n)?Fne(n.slice(2),e?2:8):One.test(n)?NaN:+n},Une=Math.max,jne=Math.min;class rM{constructor({editor:t,element:e,view:i,tippyOptions:r={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&Cm(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&(null===(l=this.element.parentNode)||void 0===l?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.updateHandler=(a,l)=>{var c,u,d;const{state:h,composing:p}=a,{doc:f,selection:g}=h,m=l&&l.doc.eq(f)&&l.selection.eq(g);if(p||m)return;this.createTooltip();const{ranges:A}=g,y=Math.min(...A.map(D=>D.$from.pos)),E=Math.max(...A.map(D=>D.$to.pos));(null===(c=this.shouldShow)||void 0===c?void 0:c.call(this,{editor:this.editor,view:a,state:h,oldState:l,from:y,to:E}))?(null===(u=this.tippy)||void 0===u||u.setProps({getReferenceClientRect:(null===(d=this.tippyOptions)||void 0===d?void 0:d.getReferenceClientRect)||(()=>{if(function xee(n){return n instanceof ce}(h.selection)){const D=a.nodeDOM(y);if(D)return D.getBoundingClientRect()}return sl(a,y,E)})}),this.show()):this.hide()},this.editor=t,this.element=e,this.view=i,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){const{state:i}=t;this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos?function zne(n,t,e){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(I){var Q=i,O=r;return i=r=void 0,c=I,s=n.apply(O,Q)}function f(I){return c=I,a=setTimeout(A,t),u?p(I):s}function m(I){var Q=I-l;return void 0===l||Q>=t||Q<0||d&&I-c>=o}function A(){var I=iM();if(m(I))return y(I);a=setTimeout(A,function g(I){var q=t-(I-l);return d?jne(q,o-(I-c)):q}(I))}function y(I){return a=void 0,h&&i?p(I):(i=r=void 0,s)}function D(){var I=iM(),Q=m(I);if(i=arguments,r=this,l=I,Q){if(void 0===a)return f(l);if(d)return clearTimeout(a),a=setTimeout(A,t),p(l)}return void 0===a&&(a=setTimeout(A,t)),s}return t=iN(t)||0,Lne(e)&&(u=!!e.leading,o=(d="maxWait"in e)?Une(iN(e.maxWait)||0,t):o,h="trailing"in e?!!e.trailing:h),D.cancel=function E(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},D.flush=function b(){return void 0===a?s:y(iM())},D}(this.updateHandler,this.updateDelay)(t,e):this.updateHandler(t,e)}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;!(null===(t=this.tippy)||void 0===t)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Vne=n=>new it({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:t=>new rM({view:t,...n})}),oM=Ft.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[Vne({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),Gne=["cb"],Yne=function(n,t,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function Wne(n,t){if(1&n){const e=Re();x(0,"label",7),K("click",function(r){re(e);const o=w(),s=Qt(3);return oe(o.onClick(r,s,!0))}),de(1),B()}if(2&n){const e=w();Gt(e.labelStyleClass),C("ngClass",ka(5,Yne,e.checked(),e.disabled,e.focused)),Ot("for",e.inputId),v(1),pt(e.label)}}const Jne=function(n,t,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":t,"p-checkbox-focused":e}},Kne=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},$ne={provide:Ri,useExisting:Je(()=>sM),multi:!0};let sM=(()=>{class n{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!wt.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:wt.contains(this.value,this.model)}}return n.\u0275fac=function(e){return new(e||n)(T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&Zt(Gne,5),2&e){let r;He(r=Ve())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([$ne])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Re();x(0,"div",0)(1,"div",1)(2,"input",2,3),K("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),B()(),x(4,"div",4),K("click",function(s){re(r);const a=Qt(3);return oe(i.onClick(s,a,!0))}),ie(5,"span",5),B()(),S(6,Wne,2,9,"label",6)}2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",ka(18,Jne,i.checked(),i.disabled,i.focused)),v(2),C("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Ot("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),v(2),C("ngClass",ka(22,Kne,i.checked(),i.disabled,i.focused)),v(1),C("ngClass",i.checked()?i.checkboxIcon:null),v(1),C("ngIf",i.label))},dependencies:[Un,Pt,Xi],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),rN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),km=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(lg,8),T(oi))},n.\u0275dir=ue({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&K("input",function(o){return i.onInput(o)}),2&e&&_s("p-filled",i.filled)}}),n})(),oN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const qne=["group"];function Xne(n,t){if(1&n&&(ct(0),ie(1,"p-checkbox",11),x(2,"label",12),de(3),Pa(4,"titlecase"),B(),ut()),2&n){const e=w().$implicit;v(1),C("formControlName",e.key)("binary",!0)("id",e.key),v(1),C("for",e.key),v(1),pt(Fa(4,5,e.label))}}const Zne=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function eie(n,t){if(1&n&&ie(0,"input",14,15),2&n){const e=w(2).$implicit;mn(Zr(6,Zne)),C("formControlName",e.key)("id",e.key)("type",e.type)("min",e.min)}}function tie(n,t){if(1&n&&(ct(0),x(1,"label",12),de(2),Pa(3,"titlecase"),B(),S(4,eie,2,7,"input",13),ut()),2&n){const e=w().$implicit;v(1),C("for",e.key),v(1),pt(Fa(3,2,e.label))}}function nie(n,t){1&n&&(x(0,"span",16),de(1,"This field is required"),B())}function iie(n,t){if(1&n&&(x(0,"div",6),ct(1,7),S(2,Xne,5,7,"ng-container",8),S(3,tie,5,4,"ng-container",9),ut(),S(4,nie,2,0,"span",10),B()),2&n){const e=t.$implicit,i=w(2);C("ngClass",e.type),v(1),C("ngSwitch",e.type),v(1),C("ngSwitchCase","checkbox"),v(2),C("ngIf",i.form.controls[e.key].invalid&&i.form.controls[e.key].dirty)}}const rie=function(){return{width:"120px"}},oie=function(){return{padding:"11.5px 24px"}};function sie(n,t){if(1&n){const e=Re();x(0,"form",1),K("ngSubmit",function(){return re(e),oe(w().onSubmit())}),S(1,iie,5,4,"div",2),x(2,"div",3)(3,"button",4),K("click",function(){return re(e),oe(w().hide.emit(!0))}),B(),ie(4,"button",5),B()()}if(2&n){const e=w();C("ngClass",null==e.options?null:e.options.customClass)("formGroup",e.form),v(1),C("ngForOf",e.dynamicControls),v(2),mn(Zr(8,rie)),v(1),mn(Zr(9,oie)),C("disabled",e.form.invalid)}}let aie=(()=>{class n{constructor(e){this.fb=e,this.formValues=new te,this.hide=new te,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(i=>{this.form.addControl(i.key,this.fb.control(i.value||null,i.required?fE.required:[]))})}cleanForm(){this.form=null}}return n.\u0275fac=function(e){return new(e||n)(T(kE))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-form"]],viewQuery:function(e,i){if(1&e&&Zt(qne,5),2&e){let r;He(r=Ve())&&(i.inputs=r)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],[3,"for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,i){1&e&&S(0,sie,5,10,"form",0),2&e&&C("ngIf",i.form)},dependencies:[Un,qi,Pt,vd,V_,G_,cg,yc,Sd,Zf,Ec,Fd,sM,Bs,km,RT],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.75rem;text-align:left}"]}),n})();class lie{constructor(t,e,i){this.applicationRef=e.get(Ra);const o=e.get(As).resolveComponentFactory(t);this.componentRef=o.create(e,[]),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(St)}get dom(){return this.elementRef.nativeElement}updateProps(t){Object.entries(t).forEach(([e,i])=>{this.instance[e]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}let sN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class cie extends class Kee{constructor(t,e,i){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,i,r,o,s,a,l;const{view:c}=this.editor,u=t.target,d=3===u.nodeType?null===(e=u.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(i=this.contentDOM)||void 0===i?void 0:i.contains(u))||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),y=null!==(r=t.offsetX)&&void 0!==r?r:null===(o=t.nativeEvent)||void 0===o?void 0:o.offsetX,E=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+y,p=A.y-m.y+E}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ce.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const i=t.target;if(!this.dom.contains(i)||null!==(e=this.contentDOM)&&void 0!==e&&e.contains(i))return!1;const o="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!o)return!0;const{isEditable:a}=this.editor,{isDragging:l}=this,c=!!this.node.type.spec.draggable,u=ce.isSelectable(this.node),d="copy"===t.type,h="paste"===t.type,p="cut"===t.type,f="mousedown"===t.type,g=t.type.startsWith("drag");if(!c&&u&&g&&t.preventDefault(),c&&g&&!l)return t.preventDefault(),!1;if(c&&a&&!l&&f){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||d||h||p||f&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&vm()&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const i=this.getPos();return e.setNodeMarkup(i,void 0,{...this.node.attrs,...t}),!0})}deleteNode(){const t=this.getPos();this.editor.commands.deleteRange({from:t,to:t+this.node.nodeSize})}}{mount(){this.renderer=new lie(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function die(n,t){1&n&&Mt(0)}function hie(n,t){if(1&n&&(x(0,"div",8),ki(1,1),S(2,die,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}function pie(n,t){1&n&&Mt(0)}function fie(n,t){if(1&n&&(x(0,"div",9),de(1),S(2,pie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),Xr(" ",e.header," "),v(1),C("ngTemplateOutlet",e.titleTemplate)}}function gie(n,t){1&n&&Mt(0)}function mie(n,t){if(1&n&&(x(0,"div",10),de(1),S(2,gie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),Xr(" ",e.subheader," "),v(1),C("ngTemplateOutlet",e.subtitleTemplate)}}function Aie(n,t){1&n&&Mt(0)}function bie(n,t){1&n&&Mt(0)}function yie(n,t){if(1&n&&(x(0,"div",11),ki(1,2),S(2,bie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const _ie=["*",[["p-header"]],[["p-footer"]]],Eie=["*","p-header","p-footer"];let aM=(()=>{class n{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275cmp=ve({type:n,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(Qn(r,yO,5),Qn(r,_O,5),Qn(r,ir,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:Eie,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,i){1&e&&($r(_ie),x(0,"div",0),S(1,hie,3,1,"div",1),x(2,"div",2),S(3,fie,3,2,"div",3),S(4,mie,3,2,"div",4),x(5,"div",5),ki(6),S(7,Aie,1,0,"ng-container",6),B(),S(8,yie,3,1,"div",7),B()()),2&e&&(Gt(i.styleClass),C("ngClass","p-card p-component")("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(2),C("ngIf",i.header||i.titleTemplate),v(1),C("ngIf",i.subheader||i.subtitleTemplate),v(3),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Un,Pt,zo,Xi],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),aN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go]}),n})(),Cie=(()=>{class n{transform({live:e,working:i,deleted:r,hasLiveVersion:o}){return{live:e,working:i,deleted:r,hasLiveVersion:o}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"contentletState",type:n,pure:!0}),n})();function vie(n,t){if(1&n&&ie(0,"dot-contentlet-thumbnail",4),2&n){const e=w();C("width",94)("height",94)("iconSize","72px")("contentlet",e.data)}}function Mie(n,t){if(1&n&&(x(0,"h3",5),de(1),B()),2&n){const e=w();v(1),pt(e.data.title)}}function wie(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentType)}}function Die(n,t){if(1&n&&(x(0,"div",6),ie(1,"dot-state-icon",7),Pa(2,"contentletState"),x(3,"dot-badge",8),de(4),Pa(5,"lowercase"),B()()),2&n){const e=w();v(1),C("state",Fa(2,3,e.data)),v(2),C("bordered",!0),v(1),pt(Fa(5,5,e.data.language))}}let Iie=(()=>{class n extends sN{ngOnInit(){this.data=this.node.attrs.data}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-contentlet-block"]],features:[lt],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,vie,1,4,"ng-template",0),S(2,Mie,2,1,"h3",1),S(3,wie,2,1,"span",2),S(4,Die,6,7,"ng-template",3),B()),2&e&&(v(2),C("pTemplate","title"),v(1),C("pTemplate","subtitle"))},dependencies:[aM,ir,Y_,Cie],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #b3b1b8;color:#11152e;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1rem 1.5rem 1rem 1rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#7e7a86;font-size:.85rem;font-weight:regular;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),n})();const Sie=n=>tn.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:t=>({data:t.getAttribute("data")}),renderHTML:t=>({data:t.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML:({HTMLAttributes:t})=>["dotcms-contentlet-block",Et(t)],addNodeView:()=>((n,t)=>e=>new cie(n,e,t))(Iie,{injector:n})}),xie=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Tie=tn.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:t})=>t.insertContent({type:this.name,attrs:n})}},addInputRules(){return[RR({find:xie,type:this.type,getAttributes:n=>{const[,,t,e,i]=n;return{src:e,alt:t,title:i}}})]}}),Bie=(n,t)=>{const{href:e=null}=t;return["a",{href:e},lN(n,t)]},lN=(n,t)=>["img",Et(n,t)],Oie=n=>{if("string"==typeof n)return{src:n};const{fileAsset:t,asset:e,title:i}=n;return{data:n,src:t||e,title:i,alt:i}},ui=Tie.extend({name:"dotImage",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src||n.data?.asset})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},style:{default:null,parseHTML:n=>n.getAttribute("style"),renderHTML:n=>({style:n.style})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>({data:n.getAttribute("data")}),renderHTML:n=>({data:n.data})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:t})=>t.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),addDotImage:n=>({chain:t,state:e})=>{const{selection:i}=e,r={attrs:Oie(n),type:ui.name};return t().insertContentAt(i.head,r).run()}}},renderHTML({HTMLAttributes:n}){const{style:t="",href:e=null}=n||{};return["div",{style:t,class:"node-container"},e?Bie(this.options.HTMLAttributes,n):lN(this.options.HTMLAttributes,n)]}}),kie=tn.create({name:"video",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mineType:{default:null,parseHTML:n=>n.getAttribute("mineType"),renderHTML:n=>({mineType:n.mineType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:n.data})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),setVideo:n=>({commands:t})=>t.insertContent({type:this.name,attrs:Pie(n)})}},renderHTML:({HTMLAttributes:n})=>["div",{class:"node-container"},["video",Et(n,{controls:!0})]]}),Pie=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:t,asset:e,assetVersion:i,mimeType:r}=n,{width:o="auto",height:s="auto"}=t||{};return{src:i||e,data:n,width:o,height:s,mimeType:r}},Fie=["list"];function Rie(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",5),2&n){const e=t.$implicit,i=t.index;C("command",e.command)("index",i)("label",e.label)("url",e.icon)("data",e.data)("page",!0)}}function Nie(n,t){if(1&n&&(x(0,"div")(1,"dot-suggestion-list",null,3),S(3,Rie,1,6,"dot-suggestions-list-item",4),B()()),2&n){const e=w();v(3),C("ngForOf",e.items)}}function Lie(n,t){1&n&&ie(0,"dot-suggestion-loading-list")}function Qie(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",6),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}2&n&&C("title",w().title)("showBackBtn",!0)}let cN=(()=>{class n{constructor(){this.items=[],this.loading=!1,this.back=new te}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-page"]],viewQuery:function(e,i){if(1&e&&Zt(Fie,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,Nie,4,1,"div",0),S(1,Lie,1,0,"ng-template",null,1,on),S(3,Qie,1,2,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",i.items.length)("ngIfElse",i.loading?r:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]}),n})();const Uie=["input"],jie=["suggestions"];function zie(n,t){1&n&&ie(0,"hr",11)}const Hie=function(){return{fontSize:"32px"}};function Vie(n,t){if(1&n&&(x(0,"div",12)(1,"a",13)(2,"span",14),de(3,"language"),B(),x(4,"span",15),de(5),B()(),x(6,"div",16)(7,"div",17),ie(8,"p-checkbox",18),B(),x(9,"label",19),de(10,"Open link in new window"),B()()()),2&n){const e=w();v(1),C("href",e.currentLink,ko),v(1),mn(Zr(5,Hie)),v(3),pt(e.currentLink),v(3),C("binary",!0)}}function Gie(n,t){if(1&n){const e=Re();x(0,"dot-suggestion-page",20,21),K("back",function(){return re(e),oe(w().resetForm())}),B()}if(2&n){const e=w();C("items",e.items)("loading",e.loading)("title",e.noResultsTitle)}}function Yie(n,t){if(1&n){const e=Re();x(0,"dot-form-actions",22),K("hide",function(r){return re(e),oe(w().hide.emit(r))})("remove",function(r){return re(e),oe(w().removeLink.emit(r))}),B()}2&n&&C("link",w().currentLink)}const Wie=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};let uN=(()=>{class n{constructor(e,i,r){this.fb=e,this.suggestionsService=i,this.dotLanguageService=r,this.hide=new te(!1),this.removeLink=new te(!1),this.isSuggestionOpen=new te(!1),this.setNodeProps=new te,this.showSuggestions=!1,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:i}=e;i!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No resutls for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(kg(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe(Jn(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!Pm(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:i=!0}){this.form.setValue({link:e,blank:i},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const i=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!i?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsUrlMap({filter:e}).pipe(Jn(1)).subscribe(i=>{this.items=i.map(r=>{const{languageId:o}=r;return r.language=this.getContentletLanguage(o),{label:r.title,icon:"contentlet/image",data:{contentlet:r},command:()=>{this.onSelection({payload:r,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(kE),T(eM),T(Zv))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,i){if(1&e&&(Zt(Uie,5),Zt(jie,5)),2&e){let r;He(r=Ve())&&(i.input=r.first),He(r=Ve())&&(i.suggestionsComponent=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"form",1),K("keydown",function(o){return i.onKeyDownEvent(o)})("ngSubmit",function(){return i.submitForm()}),x(2,"div",2)(3,"div",3)(4,"input",4,5),K("input",function(){return i.setLoading()}),B(),ie(6,"button",6),B()(),S(7,zie,1,0,"hr",7),S(8,Vie,11,6,"div",8),B(),S(9,Gie,2,3,"dot-suggestion-page",9),S(10,Yie,1,1,"dot-form-actions",10),B()),2&e&&(v(1),C("formGroup",i.form),v(5),mn(Zr(7,Wie)),v(1),C("ngIf",i.showSuggestions||i.currentLink),v(1),C("ngIf",i.currentLink&&!i.showSuggestions),v(1),C("ngIf",i.showSuggestions),v(1),C("ngIf",!i.showSuggestions&&i.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #b3b1b8}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#11152e}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #e2e2e2;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var Jie=pu(222),Kie=pu.n(Jie);const dN=({editor:n,view:t,pos:e})=>{const i=t.state.doc?.resolve(e),r=((n,t)=>{const e=t-n?.textOffset;return{to:e,from:n.index(){const{state:a}=this.editor,{to:l}=a.selection,{openOnClick:c}=Xo.getState(a);!this.pluginKey.getState(a).isOpen||(c?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(l))):this.editor.commands.closeLinkForm())},this.editor=t,this.element=e,this.view=i,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=o,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey.getState(t.state),r=this.pluginKey.getState(e);i.isOpen!==r.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t.parentElement,{...this.tippyOptions,...tk,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:t}=this.editor,{state:e}=t,{doc:i,selection:r}=e,{ranges:o}=r,s=Math.min(...o.map(g=>g.$from.pos)),l=sl(t,s,Math.max(...o.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottom0){const i=this.formatLink(t);this.isImageNode()?this.editor.commands.setImageLink({href:i}):this.editor.commands.setLink({href:i,target:e?"_blank":"_top"})}}removeLink(){this.isImageNode()?this.editor.commands.unsetImageLink():this.editor.commands.unsetLink(),this.hide()}formatLink(t){return Pm(t)?new RegExp("^(http|https)","i").test(t)?t:`http://${t}`:t}setInputValues(){const t=this.getLinkProps();this.component.instance.initialValues=t,this.component.instance.setFormValue(t.link?t:{link:this.getLinkSelect()})}setComponentEvents(){this.component.instance.hide.pipe(Vn(this.$destroy)).subscribe(()=>this.hide()),this.component.instance.removeLink.pipe(Vn(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(Vn(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(Vn(this.$destroy)).subscribe(t=>this.setLinkValues(t))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:t="",target:e}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes(ui.name);return{link:t,blank:!e||"_blank"===e}}getLinkSelect(){const{state:t}=this.editor,{from:e,to:i}=t.selection,r=t.doc.textBetween(e,i," ");return Pm(r)?r:""}isImageNode(){const{type:t}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return t?.name===ui.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(t){if(!this.tippy?.state.isMounted)return;const e=t.target,i=e?.parentElement?.parentElement;this.scrollElementMap[e.id]||this.scrollElementMap[i.id]||this.hide()}}const qie=n=>{let t;return new it({key:n.pluginKey,view:e=>new $ie({view:e,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(e,i,r){const{isOpen:o,openOnClick:s}=e.getMeta(Xo)||{},a=Xo.getState(r);return"boolean"==typeof o?{isOpen:o,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(e,i){const r=n.editor,o=((n,t)=>{const{clientX:e,clientY:i}=t,{pos:r}=n.posAtCoords({left:e,top:i});return r})(e,i),{isOpen:s,openOnClick:a}=Xo.getState(r.state);s&&a&&r.chain().unsetHighlight().setTextSelection(o).run()}},handleClickOn(e,i,r){const o=n.editor;if(o.isActive("link")&&i){if(!Kie()(t,r))return dN({editor:o,view:e,pos:i}),t=r,!0;o.chain().setTextSelection(i).closeLinkForm().run()}else t=r},handleDoubleClickOn(e,i){const r=n.editor;if(r.isActive("link"))return dN({editor:r,view:e,pos:i}),!0}}})},Xo=new _t("addLink"),Xie=n=>Ft.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Xo}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:e})=>e().setMeta("preventAutolink",!0).setHighlight().command(({tr:i})=>(i.setMeta(Xo,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:e})=>(e.setMeta(Xo,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(uN);return t.changeDetectorRef.detectChanges(),[qie({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t})]}}),hN={tableCell:!0,table:!0,video:!0},Zie=({editor:n,state:t,from:e,to:i})=>{const{doc:r,selection:o}=t,{view:s}=n,{empty:a}=o,{isOpen:l,openOnClick:c}=Xo.getState(t),u=n.state.doc.nodeAt(n.state.selection.from),d=Kc(n.state.selection.$from),h=!r.textBetween(e,i).length&&Cm(t.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||hN[d?.type.name]||hN[u?.type.name])||l&&c)},Pm=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),pN=(n,t)=>t===ui.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),fN=n=>n.isActive("bulletList")||n.isActive("orderedList"),gN=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1,divider:!0}],lM=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],nre=[...gN,...lM,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],ire=[...lM,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1}],rre=[...gN,...lM,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],ore=[{icon:"delete",markAction:"deleteNode",active:!1}],mN=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],are=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class lre extends rM{constructor(t){const{editor:e,element:i,view:r,tippyOptions:o={},pluginKey:s,component:a}=t;super(t),this.$destroy=new Me,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=e,this.element=i,this.view=r,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(are),this.component.instance.formValues.pipe(Vn(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(Vn(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{doc:s,selection:a}=o,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==r?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ce){const d=t.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return sl(t,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t.parentElement,{...this.tippyOptions,...tk,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(t){if(!this.shouldHideOnScroll(t.target))return!0;this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))}tippyRect(t,e){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,t)=>t===ui.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(t,e)}shouldHideOnScroll(t){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(t)}}const cre=n=>new it({key:n.pluginKey,view:t=>new lre({view:t,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(t,e,i){const{open:r,form:o,options:s}=t.getMeta(cl)||{},a=cl?.getState(i);return"boolean"==typeof r?{open:r,form:o,options:s}:a||e}}}),cl=new _t("bubble-form"),ure={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},dre=n=>{const t=new Me;return oM.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:cl,shouldShow:()=>!0}),addCommands:()=>({openForm:(e,i)=>({chain:r})=>(r().command(({tr:o})=>(o.setMeta(cl,{form:e,options:i,open:!0}),!0)).freezeScroll(!0).run(),t),closeForm:()=>({chain:e})=>(t.next(null),e().command(({tr:i})=>(i.setMeta(cl,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:e=>({editor:i})=>{t.next(e),i.commands.closeForm()}}),addProseMirrorPlugins(){const e=n.createComponent(aie),i=e.location.nativeElement;return e.changeDetectorRef.detectChanges(),[cre({pluginKey:cl,editor:this.editor,element:i,tippyOptions:ure,component:e,form$:t})]}})},AN=function(){return{width:"50%"}};function hre(n,t){if(1&n){const e=Re();x(0,"div")(1,"div",1)(2,"button",2),K("click",function(){return re(e),oe(w().copy())}),B(),x(3,"button",3),K("click",function(){return re(e),oe(w().remove.emit(!0))}),B()()()}2&n&&(v(2),mn(Zr(4,AN)),v(1),mn(Zr(5,AN)))}let pre=(()=>{class n{constructor(){this.remove=new te(!1),this.hide=new te(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,i){1&e&&S(0,hre,4,6,"div",0),2&e&&C("ngIf",i.link.length)},dependencies:[Pt,Bs],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;gap:.5rem}"]}),n})();function fre(n,t){if(1&n){const e=Re();ct(0),x(1,"button",3),K("click",function(){return re(e),oe(w().toggleChangeTo.emit())}),de(2),B(),ie(3,"div",4),ut()}if(2&n){const e=w();v(2),pt(e.selected)}}function gre(n,t){1&n&&ie(0,"div",4)}function mre(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-bubble-menu-button",5),K("click",function(){const o=re(e).$implicit;return oe(w().command.emit(o))}),B(),S(2,gre,1,0,"div",6),ut()}if(2&n){const e=t.$implicit;v(1),C("active",e.active)("item",e),v(1),C("ngIf",e.divider)}}let bN=(()=>{class n{constructor(){this.items=[],this.command=new te,this.toggleChangeTo=new te}preventDeSelection(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,i){1&e&&(x(0,"div",0),K("mousedown",function(o){return i.preventDeSelection(o)}),S(1,fre,4,1,"ng-container",1),S(2,mre,3,3,"ng-container",2),B()),2&e&&(v(1),C("ngIf",i.selected),v(1),C("ngForOf",i.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:2px;box-shadow:0 10px 24px #0003;display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f1f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #11152e;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f1f3f4;height:100%;margin:0 8px}']}),n})();const Are=function(n,t){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":t}},bre=function(n){return{"material-icons":n}};let yre=(()=>{class n{constructor(){this.active=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"button",0)(1,"span",0),de(2),B()()),2&e&&(C("ngClass",Ji(3,Are,i.item.icon,i.active)),v(1),C("ngClass",Wt(6,bre,i.item.icon)),v(1),pt(i.item.icon||i.item.text))},dependencies:[Un],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#11152e;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:2px}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f1f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f1f3f4;color:#11152e;border:1px solid #b3b1b8}.btn-icon[_ngcontent-%COMP%]{width:32px}"]}),n})();const _re=n=>{const t=n.component.instance,e=n.changeToComponent.instance;return new it({key:n.pluginKey,view:i=>new Ere({view:i,...n}),props:{handleKeyDown(i,r){const{key:o}=r,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===o)return t.toggleChangeTo.emit(),!0;if("Enter"===o)return e.execCommand(),!0;if("ArrowDown"===o||"ArrowUp"===o)return e.updateSelection(r),!0}return!1}}})};class Ere extends rM{constructor(t){super(t),this.shouldShowProp=!1,this.updateActiveItems=(r=[],o)=>r.map(s=>(s.active=o.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(r=[])=>[...this.enabledMarks().filter(o=>this.editor.isActive(o)),...r.filter(o=>this.editor.isActive({textAlign:o}))];const{component:e,changeToComponent:i}=t;this.component=e,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,a=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,o.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:t,state:i,oldState:e,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=t.nodeDOM(c),h=o.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:t,padding:e})=>{const{top:i,bottom:r}=t,{top:o,bottom:s}=n,a=Math.ceil(i-o){this.changeTo.instance.list.updateActiveItem(t),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(t,e){const i=t.nodeAt(e),o="table"===Kc(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return ire;case"dotContent":return ore;case"table":return rre;default:return nre}})(o)}openImageProperties(){const{open:t}=cl.getState(this.editor.state),{alt:e,src:i,title:r,data:o}=this.editor.getAttributes(ui.name),{title:s="",asset:a}=o||{};t?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:e||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:r||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe(Jn(1),Zi(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.setImage({...l}),this.editor.commands.closeForm()})})}exeCommand(t){const{markAction:e,active:i}=t;switch(e){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(e,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":fN(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":fN(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:r}=Xo.getState(this.editor.state);r?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,t)=>{const e=t.$from.pos,i=t.$to.pos+1;this.editor.chain().deleteRange({from:e,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:t,selectionRange:e})=>{jte.includes(t)?((n,t)=>{const e=t.$from.pos,i=e+1;n.chain().deleteRange({from:e,to:i}).blur().run()})(n,e):((n,t)=>{const e=Kc(t.$from),i=e.type.name,r=Kc(t.$from,[dr.ORDERED_LIST,dr.BULLET_LIST]),{childCount:o}=r;switch(i){case dr.ORDERED_LIST:case dr.BULLET_LIST:o>1?n.chain().deleteNode(dr.LIST_ITEM).blur().run():n.chain().deleteNode(r.type).blur().run();break;default:n.chain().deleteNode(e.type).blur().run()}})(n,e)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}}toggleTextAlign(t,e){e?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(t)}changeToItems(){const t=this.editor.storage.dotConfig.allowedBlocks;let i="table"===Kc(this.editor.state.selection.$from).type.name?O9:R9;t.length>1&&(i=i.filter(o=>t.includes(o.id)));const r={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(o=>{o.isActive=()=>o.id.includes("heading")?this.editor.isActive("heading",o.attributes):this.editor.isActive(o.id),o.command=()=>{r[o.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const t=this.changeToItems(),e=t.filter(o=>o?.isActive()),i=e.length>1?e[1]:e[0],r=t.findIndex(o=>o===i);return{activeItem:i,index:r}}createChangeToTooltip(){const{element:t}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=Jo(t,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:mN},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:t}=this.editor?.storage.bubbleMenu||{};t?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const Cre={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},vre=new _t("bubble-menu");function Mre(n){const t=n.createComponent(bN),e=t.location.nativeElement,i=n.createComponent(xm),r=i.location.nativeElement;return oM.extend({addOptions:()=>({element:null,tippyOptions:Cre,pluginKey:"bubbleMenu",shouldShow:Zie}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return e?[_re({...this.options,component:t,changeToComponent:i,pluginKey:vre,editor:this.editor,element:e,changeToElement:r})]:[]}})}const wre=n=>Ft.create({name:"dotConfig",addStorage:()=>({...n})}),Dre=tn.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",Et(this.options.HTMLAttributes,n),0]}});class Sre{constructor(t,e){this.tippy=e}init(){}update(){}destroy(){this.tippy.destroy()}}const xre=n=>{let t;function e(s){return vn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),t?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),t.show()}function o(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new it({key:new _t("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(xm),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;t=Jo(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:mN},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,t)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),t.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),t.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),t.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),t.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),t.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),t.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),t.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),t.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),t.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),t.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),t.hide()},tabindex:"10"}])(n.editor,t),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Sre(s,t),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?kt.create(s.doc,[e(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{o(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function r(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&o(l)&&a.preventDefault():i(a)}}}})};function Tre(n){return Dre.extend({renderHTML({HTMLAttributes:t}){return["td",Et(this.options.HTMLAttributes,t),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[xre({editor:this.editor,viewContainerRef:n})]}})}const Bre=tn.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),0]}});let cM,uM;if(typeof WeakMap<"u"){let n=new WeakMap;cM=t=>n.get(t),uM=(t,e)=>(n.set(t,e),e)}else{let n=[],t=10,e=0;cM=i=>{for(let r=0;r(e==t&&(e=0),n[e++]=i,n[e++]=r)}class $c{constructor(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}}class Nt{constructor(t,e,i,r){this.width=t,this.height=e,this.map=i,this.problems=r}findCell(t){for(let e=0;ei&&(o+=c.attrs.colspan)}}for(let s=0;s1&&(e=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(n),e=n.childCount,i=[],r=0,o=null,s=[];for(let c=0,u=t*e;c=e){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:A-E});break}let b=r+E*t;for(let D=0;D0;t--)if("row"==n.node(t).type.spec.tableRole)return n.node(0).resolve(n.before(t+1));return null}function Rr(n){let t=n.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function Fm(n){let t=n.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:qc(t.$head)||function Lre(n){for(let t=n.nodeAfter,e=n.pos;t;t=t.firstChild,e++){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e)}for(let t=n.nodeBefore,e=n.pos;t;t=t.lastChild,e--){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e-t.nodeSize)}}(t.$head)}function dM(n){return"row"==n.parent.type.spec.tableRole&&n.nodeAfter}function hM(n,t){return n.depth==t.depth&&n.pos>=t.start(-1)&&n.pos<=t.end(-1)}function EN(n,t,e){let i=n.start(-1),o=Nt.get(n.node(-1)).nextCell(n.pos-i,t,e);return null==o?null:n.node(0).resolve(i+o)}function wn(n,t,e){let i={};for(let r in n)i[r]=n[r];return i[t]=e,i}function ul(n,t,e=1){let i=wn(n,"colspan",n.colspan-e);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,e),i.colwidth.some(r=>r>0)||(i.colwidth=null)),i}function CN(n,t,e=1){let i=wn(n,"colspan",n.colspan+e);if(i.colwidth){i.colwidth=i.colwidth.slice();for(let r=0;ru!=e.pos-o);l.unshift(e.pos-o);let c=l.map(u=>{let d=i.nodeAt(u),h=u+o+1;return new Hk(a.resolve(h),a.resolve(h+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){let i=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(dM(i)&&dM(r)&&hM(i,r)){let o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?Ye.rowSelection(i,r):o&&this.isColSelection()?Ye.colSelection(i,r):new Ye(i,r)}return Ee.between(i,r)}content(){let t=this.$anchorCell.node(-1),e=Nt.get(t),i=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},s=[];for(let l=r.top;l0||m>0){let A=f.attrs;g>0&&(A=ul(A,0,g)),m>0&&(A=ul(A,A.colspan-m,m)),f=p.leftr.bottom){let A=wn(f.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));f=p.top0)&&Math.max(t+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.top<=s.top?(o.top>0&&(t=a.resolve(r+i.map[o.left])),s.bottom0&&(e=a.resolve(r+i.map[s.left])),o.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,r+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof Ye&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.left<=s.left?(o.left>0&&(t=a.resolve(r+i.map[o.top*i.width])),s.right0&&(e=a.resolve(r+i.map[s.top*i.width])),o.right{t.push(vn.node(i,i+e.nodeSize,{class:"selectedCell"}))}),kt.create(n.doc,t)}function fM(n,t){let e=n.createAndFill();return new kC(e).replace(0,e.content.size,t).doc}function vN(n,t,e,i,r,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=r;ct.width)for(let d=0,h=0;dt.height){let d=[];for(let f=0,g=(t.height-1)*t.width;f=t.width)&&e.nodeAt(t.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let h=l.row.create(null,L.from(d)),p=[];for(let f=t.height;f{let o=e.selection;if(o instanceof Ye)return Rm(e,i,_e.near(o.$headCell,t));if("horiz"!=n&&!o.empty)return!1;let s=DN(r,n,t);if(null==s)return!1;if("horiz"==n)return Rm(e,i,_e.near(e.doc.resolve(o.head+t),t));{let c,a=e.doc.resolve(s),l=EN(a,n,t);return c=l?_e.near(l,1):t<0?_e.near(e.doc.resolve(a.before(-1)),-1):_e.near(e.doc.resolve(a.after(-1)),1),Rm(e,i,c)}}}function Lm(n,t){return(e,i,r)=>{let o=e.selection;if(!(o instanceof Ye)){let a=DN(r,n,t);if(null==a)return!1;o=new Ye(e.doc.resolve(a))}let s=EN(o.$headCell,n,t);return!!s&&Rm(e,i,new Ye(o.$anchorCell,s))}}function Qm(n,t){let e=n.selection;if(!(e instanceof Ye))return!1;if(t){let i=n.tr,r=qn(n.schema).cell.createAndFill().content;e.forEachCell((o,s)=>{o.content.eq(r)||i.replace(i.mapping.map(s+1),i.mapping.map(s+o.nodeSize-1),new G(r,0,0))}),i.docChanged&&t(i)}return!0}function $re(n,t){let i=qc(n.state.doc.resolve(t));return!!i&&(n.dispatch(n.state.tr.setSelection(new Ye(i))),!0)}function qre(n,t,e){if(!Rr(n.state))return!1;let i=function Gre(n){if(!n.size)return null;let{content:t,openStart:e,openEnd:i}=n;for(;1==t.childCount&&(e>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)e--,i--,t=t.firstChild.content;let r=t.firstChild,o=r.type.spec.tableRole,s=r.type.schema,a=[];if("row"==o)for(let l=0;l=0;s--){let{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=r;c=t.length&&t.push(L.empty),e[r]i&&(h=h.type.create(ul(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;pr&&(d=d.type.create(wn(d.attrs,"rowspan",Math.max(1,r-d.attrs.rowspan)),d.content)),l.push(d)}o.push(L.from(l))}e=o,t=r}return{width:n,height:t,rows:e}}(i,a.right-a.left,a.bottom-a.top),wN(n.state,n.dispatch,s,a,i),!0}if(i){let o=Fm(n.state),s=o.start(-1);return wN(n.state,n.dispatch,s,Nt.get(o.node(-1)).findCell(o.pos-s),i),!0}return!1}function Xre(n,t){if(t.ctrlKey||t.metaKey)return;let i,e=IN(n,t.target);if(t.shiftKey&&n.state.selection instanceof Ye)r(n.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&e&&null!=(i=qc(n.state.selection.$anchor))&&gM(n,t).pos!=i.pos)r(i,t),t.preventDefault();else if(!e)return;function r(a,l){let c=gM(n,l),u=null==Zs.getState(n.state);if(!c||!hM(a,c)){if(!u)return;c=a}let d=new Ye(a,c);if(u||!n.state.selection.eq(d)){let h=n.state.tr.setSelection(d);u&&h.setMeta(Zs,a.pos),n.dispatch(h)}}function o(){n.root.removeEventListener("mouseup",o),n.root.removeEventListener("dragstart",o),n.root.removeEventListener("mousemove",s),null!=Zs.getState(n.state)&&n.dispatch(n.state.tr.setMeta(Zs,-1))}function s(a){let c,l=Zs.getState(n.state);if(null!=l)c=n.state.doc.resolve(l);else if(IN(n,a.target)!=e&&(c=gM(n,t),!c))return o();c&&r(c,a)}n.root.addEventListener("mouseup",o),n.root.addEventListener("dragstart",o),n.root.addEventListener("mousemove",s)}function DN(n,t,e){if(!(n.state.selection instanceof Ee))return null;let{$head:i}=n.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r);if((e<0?i.index(r):i.indexAfter(r))!=(e<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let a=i.before(r);return n.endOfTextblock("vert"==t?e>0?"down":"up":e>0?"right":"left")?a:null}}return null}function IN(n,t){for(;t&&t!=n.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function gM(n,t){let e=n.posAtCoords({left:t.clientX,top:t.clientY});return e&&e?qc(n.state.doc.resolve(e.pos)):null}const Zre=new _t("fix-tables");function SN(n,t,e,i){let r=n.childCount,o=t.childCount;e:for(let s=0,a=0;s{"table"==r.type.spec.tableRole&&(e=function eoe(n,t,e,i){let r=Nt.get(t);if(!r.problems)return i;i||(i=n.tr);let s,a,o=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);let f=[];for(let m=0;m0?-1:0;(function Ure(n,t,e){let i=qn(t.type.schema).header_cell;for(let r=0;r0&&r0&&t.map[a-1]==l||r0?-1:0;(function ooe(n,t,e){let i=qn(t.type.schema).header_cell;for(let r=0;r0&&r0&&u==t.map[c-t.width]){let d=e.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,wn(d,"rowspan",d.rowspan-1)),l+=d.colspan-1}else if(r0&&e[o]==e[o-1]||i.right0&&e[r]==e[r-n]||i.bottom{let r,o,i=t.selection;if(i instanceof Ye){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=function Nre(n){for(let t=n.depth;t>0;t--){const e=n.node(t).type.spec.tableRole;if("cell"===e||"header_cell"===e)return n.node(t)}return null}(i.$from),!r)return!1;o=qc(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let s=r.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=wn(s,"rowspan",1)),s.colspan>1&&(s=wn(s,"colspan",1));let d,c=fo(t),u=t.tr;for(let h=0;he[i.type.spec.tableRole])(n,t)}function FN(n,t,e){const i=t.map.cellsInRect({left:0,top:0,right:"row"==n?t.map.width:1,bottom:"column"==n?t.map.height:1});for(let r=0;rr.table.nodeAt(l));for(let l=0;l{const f=p+o.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}Eh("row",{useDeprecatedLogic:!0}),Eh("column",{useDeprecatedLogic:!0});let foe=Eh("cell",{useDeprecatedLogic:!0});function RN(n){return function(t,e){if(!Rr(t))return!1;let i=function goe(n,t){if(t<0){let e=n.nodeBefore;if(e)return n.pos-e.nodeSize;for(let i=n.index(-1)-1,r=n.before();i>=0;i--){let o=n.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(n.index()new e(a,t,l),new Ch(-1,!1)},apply:(o,s)=>s.apply(o)},props:{attributes:o=>hr.getState(o).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(o,s){!function yoe(n,t,e,i,r){let o=hr.getState(n.state);if(!o.dragging){let s=function voe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList.contains("ProseMirror")?null:n.parentNode;return n}(t.target),a=-1;if(s){let{left:l,right:c}=s.getBoundingClientRect();t.clientX-l<=e?a=NN(n,t,"left"):c-t.clientX<=e&&(a=NN(n,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){let l=n.state.doc.resolve(a),c=l.node(-1),u=Nt.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}QN(n,a)}}}(o,s,n,0,i)},mouseleave(o){!function _oe(n){let t=hr.getState(n.state);t.activeHandle>-1&&!t.dragging&&QN(n,-1)}(o)},mousedown(o,s){!function Eoe(n,t,e){let i=hr.getState(n.state);if(-1==i.activeHandle||i.dragging)return!1;let r=n.state.doc.nodeAt(i.activeHandle),o=function Coe(n,t,{colspan:e,colwidth:i}){let r=i&&i[i.length-1];if(r)return r;let o=n.domAtPos(t),a=o.node.childNodes[o.offset].offsetWidth,l=e;if(i)for(let c=0;c-1)return function Ioe(n,t){let e=[],i=n.doc.resolve(t),r=i.node(-1),o=Nt.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);dM(t.doc.resolve(r))||(r=null),e=new Ch(r,e.dragging)}return e}}function NN(n,t,e){let i=n.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;let{pos:r}=i,o=qc(n.state.doc.resolve(r));if(!o)return-1;if("right"==e)return o.pos;let s=Nt.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function LN(n,t,e){return Math.max(e,n.startWidth+(t.clientX-n.startX))}function QN(n,t){n.dispatch(n.state.tr.setMeta(hr,{setHandle:t}))}function Doe(n){let t=[];for(let e=0;enull,apply(t,e){let i=t.getMeta(Zs);if(null!=i)return-1==i?null:i;if(null==e||!t.docChanged)return e;let{deleted:r,pos:o}=t.mapping.mapResult(e);return r?null:o}},props:{decorations:jre,handleDOMEvents:{mousedown:Xre},createSelectionBetween(t){if(null!=Zs.getState(t.state))return t.state.selection},handleTripleClick:$re,handleKeyDown:Kre,handlePaste:qre},appendTransaction:(t,e,i)=>function Vre(n,t,e){let o,s,i=(t||n).selection,r=(t||n).doc;if(i instanceof ce&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)o=Ye.create(r,i.from);else if("row"==s){let a=r.resolve(i.from+1);o=Ye.rowSelection(a,a)}else if(!e){let a=Nt.get(i.node),l=i.from+1;o=Ye.create(r,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ee&&function zre({$from:n,$to:t}){if(n.pos==t.pos||n.pos=0&&!(n.after(r+1)=0&&!(t.before(o+1)>t.start(o));o--,i--);return e==i&&/row|table/.test(n.node(r).type.spec.tableRole)}(i)?o=Ee.create(r,i.from):i instanceof Ee&&function Hre({$from:n,$to:t}){let e,i;for(let r=n.depth;r>0;r--){let o=n.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){e=o;break}}for(let r=t.depth;r>0;r--){let o=t.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){i=o;break}}return e!==i&&0===t.parentOffset}(i)&&(o=Ee.create(r,i.$from.start(),i.$from.end()));return o&&(t||(t=n.tr)).setSelection(o),t}(i,xN(i,e),n)})}function UN(n,t,e,i,r,o){let s=0,a=!0,l=t.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:t}=n.state;if(!function Ooe(n){return n instanceof Ye}(t))return!1;let e=0;return IR(t.ranges[0].$from,o=>"table"===o.type.name)?.node.descendants(o=>{if("table"===o.type.name)return!1;["tableCell","tableHeader"].includes(o.type.name)&&(e+=1)}),e===t.ranges.length&&(n.commands.deleteTable(),!0)},koe=tn.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:xoe,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",Et(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:t=3,withHeaderRow:e=!0}={})=>({tr:i,dispatch:r,editor:o})=>{const s=function Boe(n,t,e,i,r){const o=function Toe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const t={};return Object.keys(n.nodes).forEach(e=>{const i=n.nodes[e];i.spec.tableRole&&(t[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=t,t}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:t})=>function toe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(TN(n.tr,e,e.left))}return!0}(n,t),addColumnAfter:()=>({state:n,dispatch:t})=>function noe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(TN(n.tr,e,e.right))}return!0}(n,t),deleteColumn:()=>({state:n,dispatch:t})=>function roe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n),i=n.tr;if(0==e.left&&e.right==e.map.width)return!1;for(let r=e.right-1;ioe(i,e,r),r!=e.left;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),addRowBefore:()=>({state:n,dispatch:t})=>function soe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(BN(n.tr,e,e.top))}return!0}(n,t),addRowAfter:()=>({state:n,dispatch:t})=>function aoe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(BN(n.tr,e,e.bottom))}return!0}(n,t),deleteRow:()=>({state:n,dispatch:t})=>function coe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n),i=n.tr;if(0==e.top&&e.bottom==e.map.height)return!1;for(let r=e.bottom-1;loe(i,e,r),r!=e.top;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),deleteTable:()=>({state:n,dispatch:t})=>function moe(n,t){let e=n.selection.$anchor;for(let i=e.depth;i>0;i--)if("table"==e.node(i).type.spec.tableRole)return t&&t(n.tr.delete(e.before(i),e.after(i)).scrollIntoView()),!0;return!1}(n,t),mergeCells:()=>({state:n,dispatch:t})=>kN(n,t),splitCell:()=>({state:n,dispatch:t})=>PN(n,t),toggleHeaderColumn:()=>({state:n,dispatch:t})=>Eh("column")(n,t),toggleHeaderRow:()=>({state:n,dispatch:t})=>Eh("row")(n,t),toggleHeaderCell:()=>({state:n,dispatch:t})=>foe(n,t),mergeOrSplit:()=>({state:n,dispatch:t})=>!!kN(n,t)||PN(n,t),setCellAttribute:(n,t)=>({state:e,dispatch:i})=>function hoe(n,t){return function(e,i){if(!Rr(e))return!1;let r=Fm(e);if(r.nodeAfter.attrs[n]===t)return!1;if(i){let o=e.tr;e.selection instanceof Ye?e.selection.forEachCell((s,a)=>{s.attrs[n]!==t&&o.setNodeMarkup(a,null,wn(s.attrs,n,t))}):o.setNodeMarkup(r.pos,null,wn(r.nodeAfter.attrs,n,t)),i(o)}return!0}}(n,t)(e,i),goToNextCell:()=>({state:n,dispatch:t})=>RN(1)(n,t),goToPreviousCell:()=>({state:n,dispatch:t})=>RN(-1)(n,t),fixTables:()=>({state:n,dispatch:t})=>(t&&xN(n),!0),setCellSelection:n=>({tr:t,dispatch:e})=>{if(e){const i=Ye.create(t.doc,n.anchorCell,n.headCell);t.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Um,"Mod-Backspace":Um,Delete:Um,"Mod-Delete":Um}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[boe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Soe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Be(ne(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});let Foe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"i",0),de(1,"drag_indicator"),B())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-background);transition:opacity .25s,top .15s}.visible[_nghost-%COMP%]{opacity:1}"]}),n})();const Roe=n=>Ft.create({name:"dragHandler",addProseMirrorPlugins(){let t=null;const r=n.createComponent(Foe).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){r.classList.remove("visible")}return[new it({key:new _t("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){r.setAttribute("draggable","true"),r.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const y=function a(g,m){const A=m.posAtCoords(g);if(A){const y=c(m.nodeDOM(A.inside));if(y&&1===y.nodeType){const E=m.docView.nearestDesc(y,!0);if(E&&E!==m.docView)return E.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=y){m.dispatch(m.state.tr.setSelection(ce.create(m.state.doc,y)));const E=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(t,10,10),m.dragging={slice:E,move:!0}}}(m,g)),r.classList.remove("visible"),g.dom.parentElement.appendChild(r)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(r),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),r.classList.remove("visible")})(),GR(g),"TABLE"===t.nodeName&&s(t)}),!1),mousemove(g,m){const y=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(y&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,y.inside))if(t=c(g.nodeDOM(y.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(t)){const{top:E,left:b}=function o(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,t);r.style.left=b-25+"px",r.style.top=E<0?0:E+"px",r.classList.add("visible")}else r.classList.remove("visible");else t=null,r.classList.remove("visible");return!1}}}})]}});function ea(n){return function(e){const i=new Noe(n),r=e.lift(i);return i.caught=r}}class Noe{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Loe(t,this.selector,this.caught))}}class Loe extends Aa{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ma(this);this.add(i);const r=ba(e,i);r!==i&&this.add(r)}}}const zN={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"},HN="/api/v1/temp";function VN(n,t){let e="";try{e=n.message||zN[t]}catch{e=zN[t||500]}return{message:e,status:500|t}}var ta=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(ta||(ta={})),ta))();let vh=(()=>{class n{constructor(e){this.http=e}publishContent({data:e,maxSize:i,statusCallback:r=(o=>{})}){return r(ta.DOWNLOAD),this.setTempResource(e,i).pipe(Fi(o=>{const s=Array.isArray(o)?o:[o],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),r(ta.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(Jc("entity","results"))}),ea(o=>Ms(o)))}setTempResource(e,i){return Lt(function Qoe({file:n,progressCallBack:t,maxSize:e}){return"string"==typeof n?function Uoe(n){return fetch(`${HN}/byUrl`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:n})}).then(function(){var e=bh(function*(i){if(200===i.status)return(yield i.json()).tempFiles[0];throw VN(yield i.json(),i.status)});return function(i){return e.apply(this,arguments)}}())}(n):function joe({file:n,progressCallBack:t,maxSize:e}){let i=HN;i+=e?`?maxFileLength=${e}`:"";const r=new FormData;return(Array.isArray(n)?n:[n]).forEach(s=>r.append("files",s)),function zoe(n,t,e){return new Promise((i,r)=>{const o=new XMLHttpRequest;o.open(t.method||"get",n);for(const s in t.headers||{})o.setRequestHeader(s,t.headers[s]);o.onload=()=>i(o),o.onerror=r,o.upload&&e&&(o.upload.onprogress=s=>{e(s.loaded/s.total*100)}),o.send(t.body)})}(i,{method:"POST",headers:{},body:r},t).then(s=>{if(200===s.status){const a=JSON.parse(s.response).tempFiles;return a.length>1?a:a[0]}throw s}).catch(s=>{throw VN(JSON.parse(s.response),s.status)})}({file:n,progressCallBack:t,maxSize:e})}({file:e,progressCallBack:()=>{},maxSize:i}))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Voe=function(n){return{completed:n}};function Goe(n,t){if(1&n){const e=Re();x(0,"button",2),K("click",function(){return re(e),oe(w().byClick.emit())}),B()}if(2&n){const e=w();C("disabled",e.isCompleted||e.isLoading)("icon",e.isCompleted?"pi pi-check":null)("label",e.title)("loading",e.isLoading)("ngClass",Wt(5,Voe,e.isCompleted))}}function Yoe(n,t){1&n&&(x(0,"div",3),ie(1,"i",4),x(2,"span"),de(3,"Something went wrong, please try again later or "),x(4,"a",5),de(5," contact support "),B()()())}let Woe=(()=>{class n{constructor(){this.label="",this.isLoading=!1,this.byClick=new te,this.status=ta}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,i){if(1&e&&(S(0,Goe,1,7,"button",0),S(1,Yoe,6,0,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.label!==i.status.ERROR)("ngIfElse",r)}},dependencies:[Un,Pt,Bs],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgb(var(--color-main_rgb))}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:rgb(var(--color-main_rgb))!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d0021b;border:1px solid #d0021b;border-radius:2px;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();const Koe=n=>new it({key:n.pluginKey,view:t=>new $oe({view:t,...n})});class $oe{constructor({dotImageService:t,editor:e,component:i,element:r,view:o}){this.preventHide=!1,this.$destroy=new Me,this.editor=e,this.element=r,this.view=o,this.component=i,this.dotImageService=t,this.component.instance.byClick.pipe(Vn(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,{empty:a,ranges:l}=s,c=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(p=>p.$from.pos)),d=o.nodeAt(u)?.type.name,h=this.editor.getAttributes(ui.name);a||d!=ui.name||h?.data?this.hide():(this.imageUrl=h?.src,this.updateButtonLabel("Import to dotCMS"),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{const p=t.nodeDOM(u);return(({viewCoords:n,nodeCoords:t})=>{const{bottom:i,left:r,top:o}=t,{bottom:s}=n,l=Math.ceil(s-i)<0?s:o-65,c=othis.updateButtonLabel(t)}).pipe(Jn(1),bn(()=>this.updateButtonLoading(!1))).subscribe(t=>{const e=t[0];this.updateButtonLabel(ta.COMPLETED),this.updateImageNode(e[Object.keys(e)[0]])},()=>{this.updateButtonLabel(ta.ERROR),this.setPreventHide()})}updateButtonLabel(t){this.component.instance.label=t,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(t){this.component.instance.isLoading=t,this.component.changeDetectorRef.detectChanges()}}const qoe=new _t("floating-button");function Xoe(n,t){const e=t.createComponent(Woe),i=e.location.nativeElement,r=n.get(vh);return Ft.create({addProseMirrorPlugins(){return i?[Koe({...this.options,dotImageService:r,component:e,pluginKey:qoe,editor:this.editor,element:i})]:[]}})}function Zoe(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-asset-search",6),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)("languageId",e.languageId)}}function ese(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-upload-asset",7),K("uploadedFile",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}function tse(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-external-asset",8),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}let GN=(()=>{class n{constructor(){this.languageId=Bm}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset"},decls:8,vars:5,consts:[[1,"tabview-container"],["header","dotCMS","leftIcon","pi pi-images",3,"cache"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header"],["leftIcon","pi pi-link",3,"cache","header"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile"],[3,"type","addAsset"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),S(3,Zoe,2,2,"ng-template",2),B(),x(4,"p-tabPanel",3),S(5,ese,2,1,"ng-template",2),B(),x(6,"p-tabPanel",4),S(7,tse,2,1,"ng-template",2),B()()()),2&e&&(v(2),C("cache",!1),v(2),C("cache",!1)("header","Upload "+i.type),v(2),C("cache",!1)("header",i.type+" URL"))},styles:["[_nghost-%COMP%]{border:1px solid #b3b1b8;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25rem;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2rem}"],changeDetection:0}),n})();class nse{constructor({editor:t,view:e,pluginKey:i,render:r}){this.editor=t,this.view=e,this.pluginKey=i,this.render=r,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{selection:s}=o;i?.open!==r?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return sl(t,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const ise=n=>new it({key:n.pluginKey,view:t=>new nse({view:t,...n}),state:{init:()=>({open:!1,type:null}),apply(t,e,i){const{open:r,type:o}=t.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof r?{open:r,type:o}:s||e}}}),jm=new _t("bubble-image-form"),rse={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},ose=n=>{let t,e,i;function r({editor:c,type:u,getPosition:d}){(function a(c){const{element:u}=c.options;t||!!!u.parentElement||(t=Jo(u.parentElement,rse))})(c),function l(c,u){e=n.createComponent(GN),e.instance.languageId=c.storage.dotConfig.lang,e.instance.type=u,e.instance.onSelectAsset=d=>{c.chain().insertAsset({type:u,payload:d}).addNextLine().closeAssetForm().run()},i=e.location.nativeElement,e.changeDetectorRef.detectChanges()}(c,u),t.setProps({content:i,getReferenceClientRect:d,onClickOutside:()=>o(c)}),t.show()}function o(c){c.commands.closeAssetForm(),t?.hide(),e?.destroy()}function s(){t?.destroy(),e?.destroy()}return oM.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:jm}),addCommands:()=>({openAssetForm:({type:c})=>({chain:u})=>u().command(({tr:d})=>(d.setMeta(jm,{open:!0,type:c}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:c})=>c().command(({tr:u})=>(u.setMeta(jm,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:c,payload:u})=>({chain:d})=>{switch(c){case"video":return d().setVideo(u).run();case"image":return d().addDotImage(u).run()}}}),addProseMirrorPlugins(){return[ise({pluginKey:jm,editor:this.editor,render:()=>({onStart:r,onHide:o,onDestroy:s})})]}})};let sse=(()=>{class n extends sN{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-message"]],features:[lt],decls:2,vars:2,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"span",0),de(1),B()),2&e&&(C("ngClass",i.data.type),v(1),pt(i.data.message))},dependencies:[Un],styles:["dotcms-message{background-color:#b3b1b8;display:block;padding:16px}\n"],encapsulation:2}),n})();const AM=new it({state:{init:()=>kt.empty,apply(n,t){t=t.map(n.mapping,n.doc);const e=n.getMeta(this);if(e&&e.add){const r=vn.widget(e.add.pos,e.add.element,{key:e.add.id});t=t.add(n.doc,[r])}else e&&e.remove&&(t=t.remove(t.find(null,null,i=>i.key==e.remove.id)));return t}},props:{decorations(n){return this.getState(n)}}}),lse=(n,t)=>Ft.create({name:"imageUpload",addProseMirrorPlugins(){const e=n.get(vh),i=this.editor;function r(u){let d;if(d="drop"===u.type?u.dataTransfer.files:u.clipboardData.files,d.length>0)for(let h=0;h1)||u.includes("image")}function a(u,d,h){const p=d[0].name;(function s(u,d,h){const p=t.createComponent(sse),f=u.state.tr;p.instance.data={message:"Uploading...",type:"info"},p.changeDetectorRef.detectChanges(),f.setMeta(AM,{add:{id:h,pos:d,element:p.location.nativeElement}}),u.dispatch(f)})(u,h,p),e.publishContent({data:d}).pipe(Jn(1)).subscribe(f=>{const g=f[0][Object.keys(f[0])[0]],{asset:m,name:A}=g;i.commands.insertContentAt(h,{attrs:{data:g,src:m,title:A,alt:A},type:ui.name})},f=>alert(f.message),()=>function l(u){const{view:d}=i,{state:h}=d;d.dispatch(h.tr.setMeta(AM,{remove:{id:u}})),GR(d)}(p))}return[AM,new it({key:new _t("imageUpload"),props:{handleDOMEvents:{click(u,d){const{doc:h,selection:p}=u.state,{ranges:f}=p,g=Math.min(...f.map(y=>y.$from.pos)),m=h.nodeAt(g);return d.target?.closest("a")&&m.type.name===ui.name&&d.preventDefault(),!0},paste(u,d){if(!o())return!0;const h=d.clipboardData.getData("Text"),{from:p}=function c(u){const{state:d}=u,{selection:h}=d,{ranges:p}=h;return{from:Math.min(...p.map(m=>m.$from.pos)),to:Math.max(...p.map(m=>m.$to.pos))}}(u);if(r(d)){if(d.preventDefault(),1!==d.clipboardData.files.length)return alert("Can paste just one image at a time"),!0;a(u,Array.from(d.clipboardData.files),p)}else(function ase(n){return null!=n.match(/\.(jpeg|jpg|gif|png)$/)})(h)&&i.commands.insertContentAt(p,{attrs:{src:h},type:ui.name})},drop(u,d){if(o()&&r(d)){if(d.preventDefault(),1!==d.dataTransfer.files.length)return alert("Can drop just one image at a time"),!1;const{pos:h}=u.posAtCoords({left:d.clientX,top:d.clientY});a(u,Array.from(d.dataTransfer.files),h)}return!1}}}})]}}),Mh=new _t("freeze-scroll"),cse=Ft.create({addCommands:()=>({freezeScroll:n=>({chain:t})=>t().command(({tr:e})=>(e.setMeta(Mh,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[use]}),use=new it({key:Mh,state:{init:()=>({freezeScroll:!1}),apply(n,t,e){const{freezeScroll:i}=n.getMeta(Mh)||{},r=Mh?.getState(e);return"boolean"==typeof i?{freezeScroll:i}:r||t}}});let dse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();class pr extends Me{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new br;return this._value}next(t){super.next(this._value=t)}}function YN(n,t,e,i){return Eo(e)&&(i=e,e=void 0),i?YN(n,t,e).pipe(fe(r=>Ar(r)?i(...r):i(r))):new et(r=>{WN(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function WN(n,t,e,i,r){let o;if(function fse(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function pse(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function hse(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;sthis.total&&this.destination.next(t)}}const JN={leading:!0,trailing:!1};class Ese{constructor(t,e,i,r){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=r}call(t,e){return e.subscribe(new Cse(t,this.duration,this.scheduler,this.leading,this.trailing))}}class Cse extends Ge{constructor(t,e,i,r,o){super(t),this.duration=e,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(vse,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function vse(n){const{subscriber:t}=n;t.clearThrottle()}function KN(n){return!!n&&(n instanceof et||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class $N extends Ge{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Mse extends Ge{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qN(n,t,e,i,r=new Mse(n,e,i)){if(!r.closed)return t instanceof et?t.subscribe(r):Di(t)(r)}const XN={};function bM(...n){let t,e;return as(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Ar(n[0])&&(n=n[0]),cs(n,e).lift(new wse(t))}class wse{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Dse(t,this.resultSelector))}}class Dse extends $N{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(XN),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new Ise(n,e))}}class Ise{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Sse(t,this.observables,this.project))}}class Sse extends $N{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Tse{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Bse(t,this.compare,this.keySelector))}}class Bse extends Ge{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function ZN(){return n=>new et(t=>{let e,i;const r=new We;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=DO.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}function _M(n){return"function"==typeof n.ngrxOnStoreInit}function EM(n){return"function"==typeof n.ngrxOnStateInit}const Pse=new $("@ngrx/component-store Initial State");let Fse=(()=>{class n{constructor(e){this.destroySubject$=new Jf(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new Jf(1),this.isInitialized=!1,this.notInitializedErrorMessage=`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let r;const s=(KN(i)?i:ae(i)).pipe(Ho(a=>this.isInitialized?yu([a],hE).pipe(yM(this.stateSubject$)):Ms(()=>new Error(this.notInitializedErrorMessage))),Vn(this.destroy$)).subscribe({next:([a,l])=>{this.stateSubject$.next(e(l,a))},error:a=>{r=a,this.stateSubject$.error(a)}});if(r)throw r;return s}}initState(e){yu([e],hE).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){if(!this.isInitialized)throw new Error(this.notInitializedErrorMessage);let i;return this.stateSubject$.pipe(Jn(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observables:i,projector:r,config:o}=function Rse(n){const t=Array.from(n);let i,e={debounce:!1};const r=t.pop();return"function"!=typeof r?(e={...e,...r},i=t.pop()):i=r,{observables:t,projector:i,config:e}}(e);let s;return s=0===i.length?this.stateSubject$.pipe(o.debounce?ZN():a=>a,fe(a=>r(a))):bM(i).pipe(o.debounce?ZN():a=>a,fe(a=>r(...a))),s.pipe(function xse(n,t){return e=>e.lift(new Tse(n,t))}(),function Ose(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function kse({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new Jf(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Vn(this.destroy$))}effect(e){const i=new Me;return e(i).pipe(Vn(this.destroy$)).subscribe(),r=>(KN(r)?r:ae(r)).pipe(Vn(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){IO.schedule(()=>{if(function BG(){return oT=!0,rT}()&&(_M(this)||EM(this))&&!this.\u0275hasProvider){const e=[_M(this)?"OnStoreInit":"",EM(this)?"OnStateInit":""].filter(i=>i);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${e.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}}return n.\u0275fac=function(e){return new(e||n)(j(Pse,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Nse={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};let eL=(()=>{class n extends Fse{constructor(e,i){super(Nse),this.searchService=e,this.dotLanguageService=i,this.vm$=this.select(({contentlets:r,loading:o,preventScroll:s})=>({contentlets:r,loading:o,preventScroll:s})),this.updateContentlets=this.updater((r,o)=>({...r,contentlets:o})),this.updateAssetType=this.updater((r,o)=>({...r,assetType:o})),this.updatelanguageId=this.updater((r,o)=>({...r,languageId:o})),this.updateLoading=this.updater((r,o)=>({...r,loading:o})),this.updatePreventScroll=this.updater((r,o)=>({...r,preventScroll:o})),this.updateSearch=this.updater((r,o)=>({...r,search:o})),this.searchContentlet=this.effect(r=>r.pipe(bn(o=>{this.updateLoading(!0),this.updateSearch(o)}),yM(this.state$),fe(([o,s])=>({...s,search:o})),nn(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(r=>r.pipe(yM(this.state$),fe(([o,s])=>({...s,offset:o})),nn(({contentlets:o,...s})=>this.searchContentletsRequest(this.params(s),o)))),this.dotLanguageService.getLanguages().subscribe(r=>{this.languages=r})}searchContentletsRequest(e,i){return this.searchService.get(e).pipe(fe(({jsonObjectView:{contentlets:r}})=>{const o=this.setContentletLanguage(r);return this.updateLoading(!1),this.updatePreventScroll(!r?.length),this.updateContentlets([...i,...o])}))}params({search:e,assetType:i,offset:r=0,languageId:o}){return{query:` +catchall:${e}* title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${i||""}/* +deleted:false +working:true`,sortOrder:Sm.ASC,limit:20,offset:r}}setContentletLanguage(e){return e.map(i=>({...i,language:this.getLanguage(i.languageId)}))}getLanguage(e){const{languageCode:i,countryCode:r}=this.languages[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(j(dte),j(Zv))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Lse=["element"],Qse=["content"];function Use(n,t){1&n&&Mt(0)}const CM=function(n,t){return{$implicit:n,options:t}};function jse(n,t){if(1&n&&(ct(0),S(1,Use,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ji(2,CM,e.loadedItems,e.getContentOptions()))}}function zse(n,t){1&n&&Mt(0)}function Hse(n,t){if(1&n&&(ct(0),S(1,zse,1,0,"ng-container",7),ut()),2&n){const e=t.$implicit,i=t.index,r=w(3);v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ji(2,CM,e,r.getOptions(i)))}}const Vse=function(n){return{"p-scroller-loading":n}};function Gse(n,t){if(1&n&&(x(0,"div",8,9),S(2,Hse,2,5,"ng-container",10),B()),2&n){const e=w(2);C("ngClass",Wt(4,Vse,e.d_loading))("ngStyle",e.contentStyle),v(2),C("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function Yse(n,t){1&n&&ie(0,"div",11),2&n&&C("ngStyle",w(2).spacerStyle)}function Wse(n,t){1&n&&Mt(0)}const Jse=function(n){return{numCols:n}},tL=function(n){return{options:n}};function Kse(n,t){if(1&n&&(ct(0),S(1,Wse,1,0,"ng-container",7),ut()),2&n){const e=t.index,i=w(4);v(1),C("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Wt(4,tL,i.getLoaderOptions(e,i.both&&Wt(2,Jse,i._numItemsInViewport.cols))))}}function $se(n,t){if(1&n&&(ct(0),S(1,Kse,2,6,"ng-container",14),ut()),2&n){const e=w(3);v(1),C("ngForOf",e.loaderArr)}}function qse(n,t){1&n&&Mt(0)}const Xse=function(){return{styleClass:"p-scroller-loading-icon"}};function Zse(n,t){if(1&n&&(ct(0),S(1,qse,1,0,"ng-container",7),ut()),2&n){const e=w(4);v(1),C("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Wt(3,tL,Zr(2,Xse)))}}function eae(n,t){1&n&&ie(0,"i",16)}function tae(n,t){if(1&n&&(S(0,Zse,2,5,"ng-container",0),S(1,eae,1,0,"ng-template",null,15,on)),2&n){const e=Qt(2);C("ngIf",w(3).loaderIconTemplate)("ngIfElse",e)}}const nae=function(n){return{"p-component-overlay":n}};function iae(n,t){if(1&n&&(x(0,"div",12),S(1,$se,2,1,"ng-container",0),S(2,tae,3,2,"ng-template",null,13,on),B()),2&n){const e=Qt(3),i=w(2);C("ngClass",Wt(3,nae,!i.loaderTemplate)),v(1),C("ngIf",i.loaderTemplate)("ngIfElse",e)}}const rae=function(n,t,e){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":t,"p-horizontal-scroll":e}};function oae(n,t){if(1&n){const e=Re();ct(0),x(1,"div",2,3),K("scroll",function(r){return re(e),oe(w().onContainerScroll(r))}),S(3,jse,2,5,"ng-container",0),S(4,Gse,3,6,"ng-template",null,4,on),S(6,Yse,1,1,"div",5),S(7,iae,4,5,"div",6),B(),ut()}if(2&n){const e=Qt(5),i=w();v(1),Gt(i._styleClass),C("ngStyle",i._style)("ngClass",ka(10,rae,i.inline,i.both,i.horizontal)),Ot("id",i._id)("tabindex",i.tabindex),v(2),C("ngIf",i.contentTemplate)("ngIfElse",e),v(3),C("ngIf",i._showSpacer),v(1),C("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function sae(n,t){1&n&&Mt(0)}const aae=function(n,t){return{rows:n,columns:t}};function lae(n,t){if(1&n&&(ct(0),S(1,sae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ji(5,CM,e.items,Ji(2,aae,e._items,e.loadedColumns)))}}function cae(n,t){if(1&n&&(ki(0),S(1,lae,2,8,"ng-container",17)),2&n){const e=w();v(1),C("ngIf",e.contentTemplate)}}const uae=["*"];let dae=(()=>{class n{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new te,this.onScroll=new te,this.onScrollIndexChange=new te,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit(),this.calculateAutoSize()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Z.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Z.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Z.getHeight(this.elementViewChild.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Z.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(c=0,u)=>c<=u?0:c,a=(c,u,d)=>c*u+d,l=(c=0,u=0)=>this.scrollTo({left:c,top:u,behavior:i});this.both?(this.first={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(this.first.cols,this._itemSize[1],o.left),a(this.first.rows,this._itemSize[0],o.top))):(this.first=s(e,r),this.horizontal?l(a(this.first,this._itemSize,o.left),0):l(0,a(this.first,this._itemSize,o.top)))}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(ethis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,y,E,b,D)=>m<=b?b:D?y-E-b:A+b-1,l=(m,A,y,E,b,D,I)=>m<=D?0:Math.max(0,I?mA?y:m-2*D),c=(m,A,y,E,b,D=!1)=>{let I=A+E+2*b;return m>=b&&(I+=b+1),this.getLast(I,D)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const y={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},E={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(y.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(y.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(y.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(y.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const y=s(m,this._itemSize);h=l(y,a(y,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(y,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Z.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[Z.getWidth(this.elementViewChild.nativeElement),Z.getHeight(this.elementViewChild.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return n.\u0275fac=function(e){return new(e||n)(T(oi),T(At))},n.\u0275cmp=ve({type:n,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Lse,5),Zt(Qse,5)),2&e){let r;He(r=Ve())&&(i.elementViewChild=r.first),He(r=Ve())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ai],ngContentSelectors:uae,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&($r(),S(0,oae,8,14,"ng-container",0),S(1,cae,2,1,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[Un,qi,Pt,zo,Xi],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),nL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();var wh=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(wh||(wh={})),wh))();function hae(n,t){if(1&n&&(x(0,"div",3),ie(1,"dot-contentlet-thumbnail",4),B()),2&n){const e=w();v(1),C("contentlet",e.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",e.showVideoThumbnail)}}function pae(n,t){if(1&n&&(x(0,"h2",5),de(1),B()),2&n){const e=w();v(1),pt((null==e.contentlet?null:e.contentlet.fileName)||(null==e.contentlet?null:e.contentlet.title))}}function fae(n,t){if(1&n&&(x(0,"div",6)(1,"span",7),de(2),B(),ie(3,"dot-state-icon",8),B()),2&n){const e=w();v(2),pt(e.contentlet.language),v(1),C("state",e.contentlet)}}let gae=(()=>{class n{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(wh.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/20q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}return n.\u0275fac=function(e){return new(e||n)(T(UR))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,hae,2,4,"ng-template",0),S(2,pae,2,1,"h2",1),S(3,fae,4,2,"ng-template",2),B()),2&e&&(v(2),C("pTemplate","title"))},dependencies:[aM,ir],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:1rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:4px 0 0 4px}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f1f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.75rem .75rem .75rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}[_nghost-%COMP%] .badge{background:#e0e9f6;border-radius:2px;color:#11152e;font-size:12px;line-height:140%;padding:.2rem .5rem;display:flex;align-items:center}"],changeDetection:0}),n})(),mae=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&(Gt(i.styleClass),C("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[Un,Xi],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),iL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();function Aae(n,t){1&n&&ie(0,"p-skeleton",3)}function bae(n,t){1&n&&(x(0,"div",4),ie(1,"p-skeleton",5)(2,"p-skeleton",6),B())}let yae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Aae,1,0,"ng-template",0),ie(2,"p-skeleton",1),S(3,bae,3,0,"ng-template",2),B())},dependencies:[aM,ir,mae],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:.5rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.75rem .5rem .75rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}"],changeDetection:0}),n})();function _ae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[0]))}),B()}2&n&&C("contentlet",w().$implicit[0])}function Eae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[1]))}),B()}2&n&&C("contentlet",w().$implicit[1])}function Cae(n,t){if(1&n&&(x(0,"div",5),S(1,_ae,1,1,"dot-asset-card",6),S(2,Eae,1,1,"dot-asset-card",6),B()),2&n){const e=t.$implicit;v(1),C("ngIf",e[0]),v(1),C("ngIf",e[1])}}function vae(n,t){if(1&n){const e=Re();x(0,"p-scroller",3),K("onScrollIndexChange",function(r){return re(e),oe(w().onScrollIndexChange(r))}),S(1,Cae,3,2,"ng-template",4),B()}if(2&n){const e=w();C("itemSize",110)("items",e.rows)("lazy",!0)}}function Mae(n,t){1&n&&(x(0,"div",5),ie(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),B())}function wae(n,t){if(1&n&&(x(0,"div",8),S(1,Mae,3,0,"div",9),B()),2&n){const e=w();v(1),C("ngForOf",e.loadingItems)}}function Dae(n,t){if(1&n&&(x(0,"div",10),ie(1,"img",11),x(2,"p"),de(3,"No results found, try searching again"),B()()),2&n){const e=w();v(1),C("src",e.icon,ko)}}let Iae=(()=>{class n{constructor(){this.nextBatch=new te,this.selectedItem=new te,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const i=[];return e.forEach(r=>{const o=i.length-1;i[o]?.length<2?i[o].push(r):i.push([r])}),i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,i){if(1&e&&(S(0,vae,2,3,"p-scroller",0),S(1,wae,2,1,"ng-template",null,1,on),S(3,Dae,4,1,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",(null==i.rows?null:i.rows.length)&&!i.loading)("ngIfElse",i.loading?r:o)}},dependencies:[qi,Pt,ir,dae,gae,yae],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1rem}"],changeDetection:0}),n})();const Sae=["input"];function xae(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-asset-card-list",6),K("selectedItem",function(r){return re(e),oe(w().addAsset.emit(r))})("nextBatch",function(r){return re(e),oe(w().offset$.next(r))}),B(),ut()}if(2&n){const e=t.ngIf;v(1),C("contentlets",e.contentlets)("done",e.preventScroll)("loading",e.loading)}}let Tae=(()=>{class n{constructor(e){this.store=e,this.addAsset=new te,this.vm$=this.store.vm$,this.offset$=new pr(0),this.destroy$=new Me}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(Vn(this.destroy$),function gse(n){return t=>t.lift(new mse(n))}(1),function _se(n,t=Mc,e=JN){return i=>i.lift(new Ese(n,t,e.leading,e.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){YN(this.input.nativeElement,"input").pipe(Vn(this.destroy$),kg(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(T(eL))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-search"]],viewQuery:function(e,i){if(1&e&&Zt(Sae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[yt([eL])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,i){1&e&&(ct(0),x(1,"div",0)(2,"span",1),ie(3,"input",2,3)(5,"i",4),B()(),ut(),S(6,xae,2,3,"ng-container",5),Pa(7,"async")),2&e&&(v(6),C("ngIf",Fa(7,1,i.vm$)))},dependencies:[Pt,km,Iae,FT],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),n})();const Bae=["input"];let kae=(()=>{class n{constructor(e){this.fb=e,this.addAsset=new te,this.form=this.fb.group({url:["",[fE.required,fE.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}onSubmit({url:e}){this.addAsset.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(T(kE))},n.\u0275cmp=ve({type:n,selectors:[["dot-external-asset"]],viewQuery:function(e,i){if(1&e&&Zt(Bae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:11,vars:6,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message"],["type","submit","pButton","",3,"disabled"]],template:function(e,i){1&e&&(x(0,"form",0),K("ngSubmit",function(){return i.onSubmit(i.form.value)}),x(1,"div",1)(2,"label",2),de(3),B(),ie(4,"input",3,4),B(),x(6,"div",5)(7,"span",6),de(8,"Enter a valid url"),B(),x(9,"button",7),de(10,"Insert"),B()()()),2&e&&(C("formGroup",i.form),v(3),Xr("Insert ",i.type," URL"),v(1),C("placeholder",i.placerHolder),v(3),_s("hide",!i.form.controls.url.invalid||i.form.pristine),v(2),C("disabled",i.form.invalid))},dependencies:[cg,yc,Sd,Zf,Ec,Fd,Bs,km],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2rem;gap:1rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.75rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.85rem;text-align:left}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0}),n})();const Pae=function(n,t,e){return{"border-width":n,width:t,height:e}};let Fae=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&C("ngStyle",ka(1,Pae,i.borderSize,i.size,i.size))},dependencies:[Xi],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:36px;height:36px;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:7.2px solid rgba(var(--color-main_rgb),.2);border-left-color:var(--color-main);transform:translateZ(0);animation:load8 1.1s infinite linear;overflow:hidden}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();function Rae(n,t){1&n&&ie(0,"span",11),2&n&&C("innerHTML",w(2).$implicit.summary,zp)}function Nae(n,t){1&n&&ie(0,"span",12),2&n&&C("innerHTML",w(2).$implicit.detail,zp)}function Lae(n,t){if(1&n&&(ct(0),S(1,Rae,1,1,"span",9),S(2,Nae,1,1,"span",10),ut()),2&n){const e=w().$implicit;v(1),C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function Qae(n,t){if(1&n&&(x(0,"span",15),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.summary)}}function Uae(n,t){if(1&n&&(x(0,"span",16),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.detail)}}function jae(n,t){if(1&n&&(S(0,Qae,2,1,"span",13),S(1,Uae,2,1,"span",14)),2&n){const e=w().$implicit;C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function zae(n,t){if(1&n){const e=Re();x(0,"button",17),K("click",function(){re(e);const r=w().index;return oe(w(2).removeMessage(r))}),ie(1,"i",18),B()}}const Hae=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},Vae=function(n){return{value:"visible",params:n}},Gae=function(n,t,e,i){return{"pi-info-circle":n,"pi-check":t,"pi-exclamation-triangle":e,"pi-times-circle":i}};function Yae(n,t){if(1&n&&(x(0,"div",4)(1,"div",5),ie(2,"span",6),S(3,Lae,3,2,"ng-container",1),S(4,jae,2,2,"ng-template",null,7,on),S(6,zae,2,0,"button",8),B()()),2&n){const e=t.$implicit,i=Qt(5),r=w(2);Gt("p-message p-message-"+e.severity),C("@messageAnimation",Wt(12,Vae,Ji(9,Hae,r.showTransitionOptions,r.hideTransitionOptions))),v(2),Gt("p-message-icon pi"+(e.icon?" "+e.icon:"")),C("ngClass",gf(14,Gae,"info"===e.severity,"success"===e.severity,"warn"===e.severity,"error"===e.severity)),v(1),C("ngIf",!r.escape)("ngIfElse",i),v(3),C("ngIf",r.closable)}}function Wae(n,t){if(1&n&&(ct(0),S(1,Yae,7,19,"div",3),ut()),2&n){const e=w();v(1),C("ngForOf",e.messages)}}function Jae(n,t){1&n&&Mt(0)}function Kae(n,t){if(1&n&&(x(0,"div",19)(1,"div",5),S(2,Jae,1,0,"ng-container",20),B()()),2&n){const e=w();C("ngClass","p-message p-message-"+e.severity),v(2),C("ngTemplateOutlet",e.contentTemplate)}}let $ae=(()=>{class n{constructor(e,i,r){this.messageService=e,this.el=i,this.cd=r,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new te,this.timerSubscriptions=[]}set value(e){this.messages=e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){e instanceof Array||(e=[e]);const i=e.filter(r=>this.key===r.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return!(!e||!e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){this.messages=this.messages.filter((i,r)=>r!==e),this.valueChange.emit(this.messages)}get icon(){const e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(e){const i=SO(e.life).subscribe(()=>{this.messages=this.messages?.filter(r=>r!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(r=>r!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(e){return new(e||n)(T($J,8),T(St),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-messages"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,i){if(1&e&&(x(0,"div",0),S(1,Wae,2,1,"ng-container",1),S(2,Kae,3,2,"ng-template",null,2,on),B()),2&e){const r=Qt(3);Gt(i.styleClass),C("ngStyle",i.style),v(1),C("ngIf",!i.contentTemplate)("ngIfElse",r)}},dependencies:[Un,qi,Pt,zo,Xi,zd],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[J8("messageAnimation",[BB(":enter",[dg({opacity:0,transform:"translateY(-25%)"}),xB("{{showTransitionParams}}")]),BB(":leave",[xB("{{hideTransitionParams}}",dg({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),rL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Va]}),n})();function qae(n,t){if(1&n&&(x(0,"div",5),de(1),B()),2&n){const e=w(2);af("display",null!=e.value&&0!==e.value?"flex":"none"),v(1),cf("",e.value,"",e.unit,"")}}function Xae(n,t){if(1&n&&(x(0,"div",3),S(1,qae,2,4,"div",4),B()),2&n){const e=w();af("width",e.value+"%"),v(1),C("ngIf",e.showValue)}}function Zae(n,t){1&n&&(x(0,"div",6),ie(1,"div",7),B())}const ele=function(n,t){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":t}};let tle=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,i){1&e&&(x(0,"div",0),S(1,Xae,2,3,"div",1),S(2,Zae,2,0,"div",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Ji(7,ele,"determinate"===i.mode,"indeterminate"===i.mode)),Ot("aria-valuenow",i.value),v(1),C("ngIf","determinate"===i.mode),v(1),C("ngIf","indeterminate"===i.mode))},dependencies:[Un,Pt,Xi],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),oL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const nle=["advancedfileinput"],ile=["basicfileinput"],rle=["content"];function ole(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).upload())}),B()}if(2&n){const e=w(2);C("label",e.uploadButtonLabel)("icon",e.uploadIcon)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass)}}function sle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).clear())}),B()}if(2&n){const e=w(2);C("label",e.cancelButtonLabel)("icon",e.cancelIcon)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass)}}function ale(n,t){1&n&&Mt(0)}function lle(n,t){1&n&&ie(0,"p-progressBar",18),2&n&&C("value",w(2).progress)("showValue",!1)}function cle(n,t){if(1&n){const e=Re();x(0,"img",26),K("error",function(r){return re(e),oe(w(5).imageError(r))}),B()}if(2&n){const e=w().$implicit,i=w(4);C("src",e.objectURL,ko)("width",i.previewWidth)}}function ule(n,t){if(1&n){const e=Re();x(0,"div",22)(1,"div"),S(2,cle,1,2,"img",23),B(),x(3,"div",24),de(4),B(),x(5,"div"),de(6),B(),x(7,"div")(8,"button",25),K("click",function(r){const s=re(e).index;return oe(w(4).remove(r,s))}),B()()()}if(2&n){const e=t.$implicit,i=w(4);v(2),C("ngIf",i.isImage(e)),v(2),pt(e.name),v(2),pt(i.formatSize(e.size)),v(2),Gt(i.removeStyleClass),C("disabled",i.uploading)}}function dle(n,t){if(1&n&&(x(0,"div"),S(1,ule,9,6,"div",21),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)}}function hle(n,t){}function ple(n,t){if(1&n&&(x(0,"div"),S(1,hle,0,0,"ng-template",27),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function fle(n,t){if(1&n&&(x(0,"div",19),S(1,dle,2,1,"div",20),S(2,ple,2,2,"div",20),B()),2&n){const e=w(2);v(1),C("ngIf",!e.fileTemplate),v(1),C("ngIf",e.fileTemplate)}}function gle(n,t){1&n&&Mt(0)}const mle=function(n,t){return{"p-focus":n,"p-disabled":t}},Ale=function(n){return{$implicit:n}};function ble(n,t){if(1&n){const e=Re();x(0,"div",2)(1,"div",3)(2,"span",4),K("focus",function(){return re(e),oe(w().onFocus())})("blur",function(){return re(e),oe(w().onBlur())})("click",function(){return re(e),oe(w().choose())})("keydown.enter",function(){return re(e),oe(w().choose())}),x(3,"input",5,6),K("change",function(r){return re(e),oe(w().onFileSelect(r))}),B(),ie(5,"span",7),x(6,"span",8),de(7),B()(),S(8,ole,1,4,"p-button",9),S(9,sle,1,4,"p-button",9),S(10,ale,1,0,"ng-container",10),B(),x(11,"div",11,12),K("dragenter",function(r){return re(e),oe(w().onDragEnter(r))})("dragleave",function(r){return re(e),oe(w().onDragLeave(r))})("drop",function(r){return re(e),oe(w().onDrop(r))}),S(13,lle,1,2,"p-progressBar",13),ie(14,"p-messages",14),S(15,fle,3,2,"div",15),S(16,gle,1,0,"ng-container",16),B()()}if(2&n){const e=w();Gt(e.styleClass),C("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),v(2),Gt(e.chooseStyleClass),C("ngClass",Ji(24,mle,e.focus,e.disabled||e.isChooseDisabled())),v(1),C("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),Ot("title",""),v(2),Gt(e.chooseIcon),C("ngClass","p-button-icon p-button-icon-left"),v(2),pt(e.chooseButtonLabel),v(1),C("ngIf",!e.auto&&e.showUploadButton),v(1),C("ngIf",!e.auto&&e.showCancelButton),v(1),C("ngTemplateOutlet",e.toolbarTemplate),v(3),C("ngIf",e.hasFiles()),v(1),C("value",e.msgs)("enableService",!1),v(1),C("ngIf",e.hasFiles()),v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Wt(27,Ale,e.files))}}function yle(n,t){if(1&n){const e=Re();x(0,"input",32,33),K("change",function(r){return re(e),oe(w(2).onFileSelect(r))})("focus",function(){return re(e),oe(w(2).onFocus())})("blur",function(){return re(e),oe(w(2).onBlur())}),B()}if(2&n){const e=w(2);C("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled)}}const _le=function(n,t,e,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":t,"p-focus":e,"p-disabled":i}};function Ele(n,t){if(1&n){const e=Re();x(0,"div",28),ie(1,"p-messages",14),x(2,"span",29),K("mouseup",function(){return re(e),oe(w().onBasicUploaderClick())})("keydown",function(r){return re(e),oe(w().onBasicKeydown(r))}),ie(3,"span",30),x(4,"span",8),de(5),B(),S(6,yle,2,3,"input",31),B()()}if(2&n){const e=w();v(1),C("value",e.msgs)("enableService",!1),v(1),Gt(e.styleClass),C("ngClass",gf(9,_le,!e.chooseLabel,e.hasFiles(),e.focus,e.disabled))("ngStyle",e.style),v(1),C("ngClass",e.hasFiles()&&!e.auto?e.uploadIcon:e.chooseIcon),v(2),pt(e.basicButtonLabel),v(1),C("ngIf",!e.hasFiles())}}let Cle=(()=>{class n{constructor(e,i,r,o,s,a){this.el=e,this.sanitizer=i,this.zone=r,this.http=o,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new te,this.onSend=new te,this.onUpload=new te,this.onError=new te,this.onClear=new te,this.onRemove=new te,this.onSelect=new te,this.onProgress=new te,this.uploadHandler=new te,this.onImageError=new te,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(e){this._files=[];for(let i=0;i{switch(e.getType()){case"file":default:this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let r=0;rthis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(e){let i=this.accept.split(",").map(r=>r.trim());for(let r of i)if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i{switch(i.type){case jt.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case jt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case jt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(Z.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||Z.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){Z.removeClass(this.content.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){if(0==e)return"0 B";let s=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(jd.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(jd.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(jd.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(iE),T(At),T(Ac),T(oi),T(xg))},n.\u0275cmp=ve({type:n,selectors:[["p-fileUpload"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(nle,5),Zt(ile,5),Zt(rle,5)),2&e){let r;He(r=Ve())&&(i.advancedFileInput=r.first),He(r=Ve())&&(i.basicFileInput=r.first),He(r=Ve())&&(i.content=r.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(e,i){1&e&&(S(0,ble,17,29,"div",0),S(1,Ele,7,14,"div",1)),2&e&&(C("ngIf","advanced"===i.mode),v(1),C("ngIf","basic"===i.mode))},dependencies:[Un,qi,Pt,zo,Xi,Bs,GK,tle,$ae,zd],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),sL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,vc,oL,rL,Va,Go,vc,oL,rL]}),n})();function vle(n,t){if(1&n&&(ct(0),ie(1,"img",3),ut()),2&n){const e=w();v(1),C("src",e.src||e.file.objectURL,ko)("alt",e.file.name)}}function Mle(n,t){if(1&n&&(ct(0),x(1,"video",4),ie(2,"source",5),B(),ut()),2&n){const e=w();v(2),C("src",e.src||e.file.objectURL,ko)("type",e.file.type)}}function wle(n,t){1&n&&(x(0,"p"),de(1,"Select an accepted asset type"),B())}let Dle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src","type"]],template:function(e,i){1&e&&(ct(0,0),S(1,vle,2,2,"ng-container",1),S(2,Mle,3,2,"ng-container",1),S(3,wle,2,0,"p",2),ut()),2&e&&(C("ngSwitch",i.type),v(1),C("ngSwitchCase","image"),v(1),C("ngSwitchCase","video"))},dependencies:[vd,V_,G_],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0}),n})();function Ile(n,t){if(1&n){const e=Re();x(0,"p-fileUpload",2),K("onSelect",function(r){return re(e),oe(w().onSelectFile(r.files))}),B()}2&n&&C("accept",w().type+"/*")("customUpload",!0)}function Sle(n,t){if(1&n&&ie(0,"dot-asset-preview",9),2&n){const e=w(2);C("type",e.type)("file",e.file)("src",e.src)}}function xle(n,t){1&n&&ie(0,"dot-spinner")}function Tle(n,t){if(1&n){const e=Re();x(0,"div",3),S(1,Sle,1,3,"dot-asset-preview",4),S(2,xle,1,0,"ng-template",null,5,on),B(),x(4,"div",6)(5,"button",7),K("click",function(){return re(e),oe(w().removeFile())}),de(6," Back "),B(),x(7,"button",8),K("click",function(){return re(e),oe(w().uploadFile())}),de(8," Insert "),B()()}if(2&n){const e=Qt(3),i=w();v(1),C("ngIf","PREVIEW"===i.status)("ngIfElse",e),v(4),C("disabled","UPLOAD"===i.status),v(2),C("disabled","UPLOAD"===i.status)}}var na=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD"}(na||(na={})),na))();let Ble=(()=>{class n{constructor(e,i,r){this.sanitizer=e,this.imageService=i,this.cd=r,this.uploadedFile=new te,this.status=na.SELECT}onSelectFile(e){const i=e[0],r=new FileReader;r.onload=o=>this.setFile(i,o.target.result),r.readAsDataURL(i)}removeFile(){this.file=null,this.status=na.SELECT}uploadFile(){this.status=na.UPLOAD,this.imageService.publishContent({data:this.file}).subscribe(e=>{const i=e[0];this.uploadedFile.emit(i[Object.keys(i)[0]]),this.status=na.SELECT})}setFile(e,i){this.file=e,this.src=i,this.status=na.PREVIEW,this.cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(T(iE),T(vh),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["dot-upload-asset"]],inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf","ngIfElse"],["loading",""],[1,"btn-container"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"disabled","click"],["data-test-id","upload-btn","pButton","",3,"disabled","click"],[3,"type","file","src"]],template:function(e,i){if(1&e&&(S(0,Ile,1,2,"p-fileUpload",0),S(1,Tle,9,4,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf","SELECT"===i.status)("ngIfElse",r)}},dependencies:[Pt,Fae,Bs,Cle,Dle],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1rem;gap:1rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .btn-container[_ngcontent-%COMP%]{display:flex;gap:1rem;height:-moz-fit-content;height:fit-content;justify-content:end;width:100%}"],changeDetection:0}),n})();const Vm=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function vM(...n){return function Ole(){return ls(1)}()(ae(...n))}function aL(n){return new et(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Lt(e):Yf()).subscribe(t)})}function Gm(n=null){return t=>t.lift(new Ple(n))}class Ple{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Fle(t,this.defaultValue))}}class Fle extends Ge{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function lL(n=Lle){return t=>t.lift(new Rle(n))}class Rle{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Nle(t,this.errorFactory))}}class Nle extends Ge{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Lle(){return new Vm}function ia(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Zi((r,o)=>n(r,o,i)):Cl,Jn(1),e?Gm(t):lL(()=>new Vm))}function cL(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Qle(n,t,e))}}class Qle{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Ule(t,this.accumulator,this.seed,this.hasSeed))}}class Ule extends Ge{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function MM(n){return function(e){return 0===n?Yf():e.lift(new jle(n))}}class jle{constructor(t){if(this.total=t,this.total<0)throw new HP}call(t,e){return e.subscribe(new zle(t,this.total))}}class zle extends Ge{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?Zi((r,o)=>n(r,o,i)):Cl,MM(1),e?Gm(t):lL(()=>new Vm))}class Vle{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Gle(t,this.predicate,this.inclusive))}}class Gle extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}class Wle{constructor(t){this.value=t}call(t,e){return e.subscribe(new Jle(t,this.value))}}class Jle extends Ge{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function wM(n){return t=>t.lift(new Kle(n))}class Kle{constructor(t){this.callback=t}call(t,e){return e.subscribe(new $le(t,this.callback))}}class $le extends Ge{constructor(t,e){super(t),this.add(new We(e))}}const Ne="primary",Dh=Symbol("RouteTitle");class qle{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xc(n){return new qle(n)}function Xle(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function hL(n){return Array.prototype.concat.apply([],n)}function pL(n){return n.length>0?n[n.length-1]:null}function Tn(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function ra(n){return Ky(n)?n:cd(n)?Lt(Promise.resolve(n)):ae(n)}const tce={exact:function mL(n,t,e){if(!hl(n.segments,t.segments)||!Ym(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!mL(n.children[i],t.children[i],e))return!1;return!0},subset:AL},fL={exact:function nce(n,t){return mo(n,t)},subset:function ice(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>dL(n[e],t[e]))},ignored:()=>!0};function gL(n,t,e){return tce[e.paths](n.root,t.root,e.matrixParams)&&fL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function AL(n,t,e){return bL(n,t,t.segments,e)}function bL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!hl(r,e)||t.hasChildren()||!Ym(r,e,i))}if(n.segments.length===e.length){if(!hl(n.segments,e)||!Ym(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!AL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(hl(n.segments,r)&&Ym(n.segments,r,i)&&n.children[Ne])&&bL(n.children[Ne],t,o,i)}}function Ym(n,t,e){return t.every((i,r)=>fL[e](n[r].parameters,i.parameters))}class dl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xc(this.queryParams)),this._queryParamMap}toString(){return sce.serialize(this)}}class Ue{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Tn(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wm(this)}}class Ih{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xc(this.parameters)),this._parameterMap}toString(){return CL(this)}}function hl(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let yL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return new IM},providedIn:"root"}),n})();class IM{parse(t){const e=new gce(t);return new dl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Sh(t.root,!0)}`,i=function cce(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Jm(e)}=${Jm(r)}`).join("&"):`${Jm(e)}=${Jm(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function ace(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const sce=new IM;function Wm(n){return n.segments.map(t=>CL(t)).join("/")}function Sh(n,t){if(!n.hasChildren())return Wm(n);if(t){const e=n.children[Ne]?Sh(n.children[Ne],!1):"",i=[];return Tn(n.children,(r,o)=>{o!==Ne&&i.push(`${o}:${Sh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function oce(n,t){let e=[];return Tn(n.children,(i,r)=>{r===Ne&&(e=e.concat(t(i,r)))}),Tn(n.children,(i,r)=>{r!==Ne&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Ne?[Sh(n.children[Ne],!1)]:[`${r}:${Sh(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ne]?`${Wm(n)}/${e[0]}`:`${Wm(n)}/(${e.join("//")})`}}function _L(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jm(n){return _L(n).replace(/%3B/gi,";")}function SM(n){return _L(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Km(n){return decodeURIComponent(n)}function EL(n){return Km(n.replace(/\+/g,"%20"))}function CL(n){return`${SM(n.path)}${function lce(n){return Object.keys(n).map(t=>`;${SM(t)}=${SM(n[t])}`).join("")}(n.parameters)}`}const uce=/^[^\/()?;=#]+/;function $m(n){const t=n.match(uce);return t?t[0]:""}const dce=/^[^=?&#]+/,pce=/^[^&#]+/;class gce{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ue([],{}):new Ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ne]=new Ue(t,e)),i}parseSegment(){const t=$m(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(t),new Ih(Km(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=$m(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=$m(this.remaining);r&&(i=r,this.capture(i))}t[Km(e)]=Km(i)}parseQueryParam(t){const e=function hce(n){const t=n.match(dce);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function fce(n){const t=n.match(pce);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=EL(e),o=EL(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=$m(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ne);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ne]:new Ue([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new P(4011,!1)}}function xM(n){return n.segments.length>0?new Ue([],{[Ne]:n}):n}function qm(n){const t={};for(const i of Object.keys(n.children)){const o=qm(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function mce(n){if(1===n.numberOfChildren&&n.children[Ne]){const t=n.children[Ne];return new Ue(n.segments.concat(t.segments),t.children)}return n}(new Ue(n.segments,t))}function pl(n){return n instanceof dl}function yce(n,t,e,i,r){if(0===e.length)return Zc(t.root,t.root,t.root,i,r);const o=function wL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ML(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Tn(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ML(e,t,i)}(e);return o.toRoot()?Zc(t.root,t.root,new Ue([],{}),i,r):function s(l){const c=function Ece(n,t,e,i){if(n.isAbsolute)return new eu(t.root,!0,0);if(-1===i)return new eu(e,e===t.root,0);return function DL(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new eu(i,!1,r-o)}(e,i+(xh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Bh(c.segmentGroup,c.index,o.commands):BM(c.segmentGroup,c.index,o.commands);return Zc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function xh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Th(n){return"object"==typeof n&&null!=n&&n.outlets}function Zc(n,t,e,i,r){let s,o={};i&&Tn(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:vL(n,t,e);const a=xM(qm(s));return new dl(a,o,r)}function vL(n,t,e){const i={};return Tn(n.children,(r,o)=>{i[o]=r===t?e:vL(r,t,e)}),new Ue(n.segments,i)}class ML{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&xh(i[0]))throw new P(4003,!1);const r=i.find(Th);if(r&&r!==pL(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class eu{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function BM(n,t,e){if(n||(n=new Ue([],{})),0===n.segments.length&&n.hasChildren())return Bh(n,t,e);const i=function vce(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Th(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!SL(l,c,s))return o;i+=2}else{if(!SL(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=BM(n.children[s],t,o))}),Tn(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Ue(n.segments,r)}}function OM(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=OM(new Ue([],{}),0,e))}),t}function IL(n){const t={};return Tn(n,(e,i)=>t[i]=`${e}`),t}function SL(n,t,e){return n==e.path&&mo(t,e.parameters)}class Zo{constructor(t,e){this.id=t,this.url=e}}class kM extends Zo{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fl extends Zo{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xm extends Zo{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xL extends Zo{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ice extends Zo{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tce{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bce{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oce{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kce{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pce{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fce{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class BL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=PM(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=PM(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=FM(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return FM(t,this._root).map(e=>e.value)}}function PM(n,t){if(n===t.value)return t;for(const e of t.children){const i=PM(n,e);if(i)return i}return null}function FM(n,t){if(n===t.value)return[t];for(const e of t.children){const i=FM(n,e);if(i.length)return i.unshift(t),i}return[]}class es{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function tu(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class OL extends BL{constructor(t,e){super(t),this.snapshot=e,RM(this,t)}toString(){return this.snapshot.toString()}}function kL(n,t){const e=function Nce(n,t){const s=new Zm([],{},{},"",{},Ne,t,null,n.root,-1,{});return new FL("",new es(s,[]))}(n,t),i=new pr([new Ih("",{})]),r=new pr({}),o=new pr({}),s=new pr({}),a=new pr(""),l=new gl(i,r,s,a,o,Ne,t,e.root);return l.snapshot=e.root,new OL(new es(l,[]),e)}class gl{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(fe(c=>c[Dh]))??ae(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(fe(t=>Xc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(t=>Xc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function PL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function Lce(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Zm{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Dh],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class FL extends BL{constructor(t,e){super(e),this.url=t,RM(this,e)}toString(){return RL(this._root)}}function RM(n,t){t.value._routerState=n,t.children.forEach(e=>RM(n,e))}function RL(n){const t=n.children.length>0?` { ${n.children.map(RL).join(", ")} } `:"";return`${n.value}${t}`}function NM(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,mo(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),mo(t.params,e.params)||n.params.next(e.params),function Zle(n,t){if(n.length!==t.length)return!1;for(let e=0;emo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||LM(n.parent,t.parent))}function Oh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function Uce(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Oh(n,i,r);return Oh(n,i)})}(n,t,e);return new es(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Oh(n,a)),s}}const i=function jce(n){return new gl(new pr(n.url),new pr(n.params),new pr(n.queryParams),new pr(n.fragment),new pr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Oh(n,o));return new es(i,r)}}const QM="ngNavigationCancelingError";function NL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=pl(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=LL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function LL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[QM]=!0,i.cancellationCode=t,e&&(i.url=e),i}function QL(n){return UL(n)&&pl(n.url)}function UL(n){return n&&n[QM]}class zce{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new kh,this.attachRef=null}}let kh=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new zce,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eA=!1;let jL=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new te,this.deactivateEvents=new te,this.attachEvents=new te,this.detachEvents=new te,this.name=r||Ne,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,eA);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,eA);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,eA);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new P(4013,eA);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Hce(e,a,r.injector);if(i&&function Vce(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(T(kh),T(Pi),function Uu(n){return function k2(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],standalone:!0,features:[ZS],decls:1,vars:0,template:function(e,i){1&e&&ie(0,"router-outlet")},dependencies:[jL],encapsulation:2}),n})();function zL(n,t){return n.providers&&!n._injector&&(n._injector=ff(n.providers,t,`Route: ${n.path}`)),n._injector??t}function zM(n){const t=n.children&&n.children.map(zM),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ne&&(e.component=UM),e}function fr(n){return n.outlet||Ne}function HL(n,t){const e=n.filter(i=>fr(i)===t);return e.push(...n.filter(i=>fr(i)!==t)),e}function Ph(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Kce{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),NM(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=tu(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Tn(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=tu(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=tu(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=tu(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Fce(o.value.snapshot))}),t.children.length&&this.forwardEvent(new kce(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(NM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),NM(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Ph(r.snapshot),l=a?.get(As)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class VL{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tA{constructor(t,e){this.component=t,this.route=e}}function $ce(n,t,e){const i=n._root;return Fh(i,t?t._root:null,e,[i.value])}function nu(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function ob(n){return null!==Sl(n)}(n)?t.get(n):n:i}function Fh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=tu(t);return n.children.forEach(s=>{(function Xce(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Zce(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!hl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!hl(n.url,t.url)||!mo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!LM(n,t)||!mo(n.queryParams,t.queryParams);default:return!LM(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new VL(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Fh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new tA(a.outlet.component,s))}else s&&Rh(t,a,r),r.canActivateChecks.push(new VL(i)),Fh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Tn(o,(s,a)=>Rh(s,e.getContext(a),r)),r}function Rh(n,t,e){const i=tu(n),r=n.value;Tn(i,(o,s)=>{Rh(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new tA(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Nh(n){return"function"==typeof n}function HM(n){return n instanceof Vm||"EmptyError"===n?.name}const nA=Symbol("INITIAL_VALUE");function iu(){return Fi(n=>bM(n.map(t=>t.pipe(Jn(1),function kle(...n){const t=n[n.length-1];return as(t)?(n.pop(),e=>vM(n,e,t)):e=>vM(n,e)}(nA)))).pipe(fe(t=>{for(const e of t)if(!0!==e){if(e===nA)return nA;if(!1===e||e instanceof dl)return e}return!0}),Zi(t=>t!==nA),Jn(1)))}function GL(n){return function Zh(...n){return fa(n)}(bn(t=>{if(pl(t))throw NL(0,t)}),fe(t=>!0===t))}const VM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YL(n,t,e,i,r){const o=GM(n,t,e);return o.matched?function mue(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const a=nu(s,n);return ra(function oue(n){return n&&Nh(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(iu(),GL()):ae(!0)}(i=zL(t,i),t,e).pipe(fe(s=>!0===s?o:{...VM})):ae(o)}function GM(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...VM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||Xle)(e,n,t);if(!r)return{...VM};const o={};Tn(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function iA(n,t,e,i,r="corrected"){if(e.length>0&&function yue(n,t,e){return e.some(i=>rA(n,t,i)&&fr(i)!==Ne)}(n,e,i)){const s=new Ue(t,function bue(n,t,e,i){const r={};r[Ne]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&fr(o)!==Ne){const s=new Ue([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[fr(o)]=s}return r}(n,t,i,new Ue(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function _ue(n,t,e){return e.some(i=>rA(n,t,i))}(n,e,i)){const s=new Ue(n.segments,function Aue(n,t,e,i,r,o){const s={};for(const a of i)if(rA(n,e,a)&&!r[fr(a)]){const l=new Ue([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[fr(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Ue(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function rA(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function WL(n,t,e,i){return!!(fr(n)===i||i!==Ne&&rA(t,e,n))&&("**"===n.path||GM(t,n,e).matched)}function JL(n,t,e){return 0===t.length&&!n.children[e]}const oA=!1;class sA{constructor(t){this.segmentGroup=t||null}}class KL{constructor(t){this.urlTree=t}}function Lh(n){return Ms(new sA(n))}function $L(n){return Ms(new KL(n))}class Mue{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=iA(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ue(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ne).pipe(fe(o=>this.createUrlTree(qm(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ea(o=>{if(o instanceof KL)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof sA?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ne).pipe(fe(r=>this.createUrlTree(qm(r),t.queryParams,t.fragment))).pipe(ea(r=>{throw r instanceof sA?this.noMatchError(r):r}))}noMatchError(t){return new P(4002,oA)}createUrlTree(t,e,i){const r=xM(t);return new dl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(fe(o=>new Ue([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Lt(r).pipe(Ho(o=>{const s=i.children[o],a=HL(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(fe(l=>({segment:l,outlet:o})))}),cL((o,s)=>(o[s.outlet]=s.segment,o),{}),uL())}expandSegment(t,e,i,r,o,s){return Lt(i).pipe(Ho(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(ea(c=>{if(c instanceof sA)return ae(null);throw c}))),ia(a=>!!a),ea((a,l)=>{if(HM(a))return JL(e,r,o)?ae(new Ue([],{})):Lh(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return WL(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Lh(e):Lh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?$L(o):this.lineralizeSegments(i,o).pipe(nn(s=>{const a=new Ue(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=GM(e,r,o);if(!a)return Lh(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?$L(d):this.lineralizeSegments(r,d).pipe(nn(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=zL(i,t),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(fe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Ue(r,{})))):ae(new Ue(r,{}))):YL(e,i,r,t).pipe(Fi(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(nn(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:p,slicedSegments:f}=iA(e,a,l,h),g=new Ue(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(fe(E=>new Ue(a,E)));if(0===h.length&&0===f.length)return ae(new Ue(a,{}));const m=fr(i)===o;return this.expandSegment(d,g,h,f,m?Ne:o,!0).pipe(fe(y=>new Ue(a.concat(y.segments),y.children)))})):Lh(e)))}getChildConfig(t,e,i){return e.children?ae({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):function gue(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const a=nu(s,n);return ra(function tue(n){return n&&Nh(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(iu(),GL())}(t,e,i).pipe(nn(r=>r?this.configLoader.loadChildren(t,e).pipe(bn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Cue(n){return Ms(LL(oA,3))}())):ae({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ae(i);if(r.numberOfChildren>1||!r.children[Ne])return Ms(new P(4e3,oA));r=r.children[Ne]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new dl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Tn(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return Tn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Ue(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new P(4001,oA);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Due{}class xue{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=iA(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ne).pipe(fe(e=>{if(null===e)return null;const i=new Zm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new es(i,e),o=new FL(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=PL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Lt(Object.keys(i.children)).pipe(Ho(r=>{const o=i.children[r],s=HL(e,r);return this.processSegmentGroup(t,s,o,r)}),cL((r,o)=>r&&o?(r.push(...o),r):null),function Hle(n,t=!1){return e=>e.lift(new Vle(n,t))}(r=>null!==r),Gm(null),uL(),fe(r=>{if(null===r)return null;const o=qL(r);return function Tue(n){n.sort((t,e)=>t.value.outlet===Ne?-1:e.value.outlet===Ne?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Lt(e).pipe(Ho(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),ia(s=>!!s),ea(s=>{if(HM(s))return JL(i,r,o)?ae([]):ae(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!WL(e,i,r,o))return ae(null);let s;if("**"===e.path){const a=r.length>0?pL(r).parameters:{},l=ZL(i)+r.length;s=ae({snapshot:new Zm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tQ(e),fr(e),e.component??e._loadedComponent??null,e,XL(i),l,nQ(e),l),consumedSegments:[],remainingSegments:[]})}else s=YL(i,e,r,t).pipe(fe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=ZL(i)+l.length;return{snapshot:new Zm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tQ(e),fr(e),e.component??e._loadedComponent??null,e,XL(i),d,nQ(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Fi(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function Bue(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:f}=iA(i,c,u,h.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(fe(m=>null===m?null:[new es(l,m)]));if(0===h.length&&0===f.length)return ae([new es(l,[])]);const g=fr(e)===o;return this.processSegment(d,h,p,f,g?Ne:o).pipe(fe(m=>null===m?null:[new es(l,m)]))}))}}function Oue(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function qL(n){const t=[],e=new Set;for(const i of n){if(!Oue(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=qL(i.children);t.push(new es(i.value,r))}return t.filter(i=>!e.has(i))}function XL(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ZL(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function tQ(n){return n.data||{}}function nQ(n){return n.resolve||{}}function iQ(n){return"string"==typeof n.title||null===n.title}function YM(n){return Fi(t=>{const e=n(t);return e?Lt(e).pipe(fe(()=>t)):ae(t)})}let rQ=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ne);return i}getResolvedTitleForRoute(e){return e.data[Dh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(oQ)},providedIn:"root"}),n})(),oQ=(()=>{class n extends rQ{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(j(a1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Uue{}class zue extends class jue{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const lA=new $("",{providedIn:"root",factory:()=>({})}),WM=new $("ROUTES");let JM=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=ra(e.loadComponent()).pipe(bn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),wM(()=>{this.componentLoaders.delete(e)})),r=new wl(i,()=>new Me).pipe(_a());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(fe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=hL(l.get(WM,[],pe.Self|pe.Optional)));return{routes:c.map(zM),injector:l}}),wM(()=>{this.childrenLoaders.delete(i)})),s=new wl(o,()=>new Me).pipe(_a());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return ra(e()).pipe(nn(i=>i instanceof qS||Array.isArray(i)?ae(i):Lt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(j(Sn),j(b_))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Vue{}class Gue{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Yue(n){throw n}function Wue(n,t,e){return t.parse("/")}const Jue={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Kue={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function aQ(){const n=Xt(yL),t=Xt(kh),e=Xt(k_),i=Xt(Sn),r=Xt(b_),o=Xt(WM,{optional:!0})??[],s=Xt(lA,{optional:!0})??{},a=Xt(oQ),l=Xt(rQ,{optional:!0}),c=Xt(Vue,{optional:!0}),u=Xt(Uue,{optional:!0}),d=new Bn(null,n,t,e,i,r,hL(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function $ue(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Bn=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me,this.errorHandler=Yue,this.malformedUriErrorHandler=Wue,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ae(void 0),this.urlHandlingStrategy=new Gue,this.routeReuseStrategy=new zue,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(JM),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new Bce(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Tce(h)),this.ngModule=s.get(Oa),this.console=s.get(hG);const d=s.get(At);this.isNgZoneEnabled=d instanceof At&&At.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function ece(){return new dl(new Ue([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=kL(this.currentUrlTree,this.rootComponentType),this.transitions=new pr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Zi(r=>0!==r.id),fe(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Fi(r=>{let o=!1,s=!1;return ae(r).pipe(bn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Fi(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return lQ(a.source)&&(this.browserUrlTree=a.extractedUrl),ae(a).pipe(Fi(d=>{const h=this.transitions.getValue();return i.next(new kM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?bc:Promise.resolve(d)}),function wue(n,t,e,i){return Fi(r=>function vue(n,t,e,i,r){return new Mue(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(fe(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),bn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function Pue(n,t,e,i,r,o){return nn(s=>function Sue(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new xue(n,t,e,i,r,s,a,o).recognize().pipe(Fi(l=>null===l?function Iue(n){return new et(t=>t.error(n))}(new Due):ae(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(fe(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),bn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new wce(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:f,restoredState:g,extras:m}=a,A=new kM(h,this.serializeUrl(p),f,g);i.next(A);const y=kL(p,this.rootComponentType).snapshot;return ae(r={...a,targetSnapshot:y,urlAfterRedirects:p,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),bc}),bn(a=>{const l=new Dce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),fe(a=>r={...a,guards:$ce(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function aue(n,t){return nn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?ae({...e,guardsResult:!0}):function lue(n,t,e,i){return Lt(n).pipe(nn(r=>function fue(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ae(o.map(a=>{const l=Ph(t)??r,c=nu(a,l);return ra(function rue(n){return n&&Nh(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(ia())})).pipe(iu()):ae(!0)}(r.component,r.route,e,t,i)),ia(r=>!0!==r,!0))}(s,i,r,n).pipe(nn(a=>a&&function eue(n){return"boolean"==typeof n}(a)?function cue(n,t,e,i){return Lt(t).pipe(Ho(r=>vM(function due(n,t){return null!==n&&t&&t(new Oce(n)),ae(!0)}(r.route.parent,i),function uue(n,t){return null!==n&&t&&t(new Pce(n)),ae(!0)}(r.route,i),function pue(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function qce(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>aL(()=>ae(s.guards.map(l=>{const c=Ph(s.node)??e,u=nu(l,c);return ra(function iue(n){return n&&Nh(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(ia())})).pipe(iu())));return ae(o).pipe(iu())}(n,r.path,e),function hue(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const r=i.map(o=>aL(()=>{const s=Ph(t)??e,a=nu(o,s);return ra(function nue(n){return n&&Nh(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(ia())}));return ae(r).pipe(iu())}(n,r.route,e))),ia(r=>!0!==r,!0))}(i,o,n,t):ae(a)),fe(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),bn(a=>{if(r.guardsResult=a.guardsResult,pl(a.guardsResult))throw NL(0,a.guardsResult);const l=new Ice(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Zi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),YM(a=>{if(a.guards.canActivateChecks.length)return ae(a).pipe(bn(l=>{const c=new Sce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Fi(l=>{let c=!1;return ae(l).pipe(function Fue(n,t){return nn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ae(e);let o=0;return Lt(r).pipe(Ho(s=>function Rue(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!iQ(r)&&(o[Dh]=r.title),function Nue(n,t,e,i){const r=function Lue(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ae({});const o={};return Lt(r).pipe(nn(s=>function Que(n,t,e,i){const r=Ph(t)??i,o=nu(n,r);return ra(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(ia(),bn(a=>{o[s]=a}))),MM(1),function Yle(n){return t=>t.lift(new Wle(n))}(o),ea(s=>HM(s)?bc:Ms(s)))}(o,n,t,i).pipe(fe(s=>(n._resolvedData=s,n.data=PL(n,e).resolve,r&&iQ(r)&&(n.data[Dh]=r.title),null)))}(s.route,i,n,t)),bn(()=>o++),MM(1),nn(s=>o===r.length?ae(e):bc))})}(this.paramsInheritanceStrategy,this.ngModule.injector),bn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),bn(l=>{const c=new xce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),YM(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(bn(d=>{c.component=d}),fe(()=>{})));for(const d of c.children)u.push(...l(d));return u};return bM(l(a.targetSnapshot.root)).pipe(Gm(),Jn(1))}),YM(()=>this.afterPreactivation()),fe(a=>{const l=function Qce(n,t,e){const i=Oh(n,t._root,e?e._root:void 0);return new OL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),bn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>fe(i=>(new Kce(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),bn({next(){o=!0},complete(){o=!0}}),wM(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ea(a=>{if(s=!0,UL(a)){QL(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Xm(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),QL(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lQ(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new xL(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return bc}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(zM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),yce(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=pl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function que(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new fl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,p)=>{a=h,l=p});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new Xm(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){vy()},n.\u0275prov=Y({token:n,factory:function(){return aQ()},providedIn:"root"}),n})();function lQ(n){return"imperative"!==n}class cQ{}let ede=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Zi(e=>e instanceof fl),Ho(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=ff(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Lt(r).pipe(ls())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):ae(null);const o=r.pipe(nn(s=>null===s?ae(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Lt([o,this.loader.loadComponent(i)]).pipe(ls()):o})}}return n.\u0275fac=function(e){return new(e||n)(j(Bn),j(b_),j(ms),j(cQ),j(JM))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qM=new $("");let uQ=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof kM?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof TL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new TL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){vy()},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function ru(n,t){return{\u0275kind:n,\u0275providers:t}}function XM(n){return[{provide:WM,multi:!0,useValue:n}]}function hQ(){const n=Xt(Sn);return t=>{const e=n.get(Ra);if(t!==e.components[0])return;const i=n.get(Bn),r=n.get(pQ);1===n.get(ZM)&&i.initialNavigation(),n.get(fQ,null,pe.Optional)?.setUpPreloading(),n.get(qM,null,pe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const pQ=new $("",{factory:()=>new Me}),ZM=new $("",{providedIn:"root",factory:()=>1});const fQ=new $("");function rde(n){return ru(0,[{provide:fQ,useExisting:ede},{provide:cQ,useExisting:n}])}const gQ=new $("ROUTER_FORROOT_GUARD"),ode=[k_,{provide:yL,useClass:IM},{provide:Bn,useFactory:aQ},kh,{provide:gl,useFactory:function dQ(n){return n.routerState.root},deps:[Bn]},JM];function sde(){return new Jx("Router",Bn)}let mQ=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[ode,[],XM(e),{provide:gQ,useFactory:ude,deps:[[Bn,new Wu,new Ju]]},{provide:lA,useValue:i||{}},i?.useHash?{provide:La,useClass:tY}:{provide:La,useClass:yT},{provide:qM,useFactory:()=>{const n=Xt(Bn),t=Xt(f3),e=Xt(lA);return e.scrollOffset&&t.setOffset(e.scrollOffset),new uQ(n,t,e)}},i?.preloadingStrategy?rde(i.preloadingStrategy).\u0275providers:[],{provide:Jx,multi:!0,useFactory:sde},i?.initialNavigation?dde(i):[],[{provide:AQ,useFactory:hQ},{provide:Ux,multi:!0,useExisting:AQ}]]}}static forChild(e){return{ngModule:n,providers:[XM(e)]}}}return n.\u0275fac=function(e){return new(e||n)(j(gQ,8))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[UM]}),n})();function ude(n){return"guarded"}function dde(n){return["disabled"===n.initialNavigation?ru(3,[{provide:yf,multi:!0,useFactory:()=>{const t=Xt(Bn);return()=>{t.setUpLocationChangeListener()}}},{provide:ZM,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ru(2,[{provide:ZM,useValue:0},{provide:yf,multi:!0,deps:[Sn],useFactory:t=>{const e=t.get(ZG,Promise.resolve(null));let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(Bn),a=t.get(pQ);(function r(o){t.get(Bn).events.pipe(Zi(a=>a instanceof fl||a instanceof Xm||a instanceof xL),fe(a=>a instanceof fl||a instanceof Xm&&(0===a.code||1===a.code)&&null),Zi(a=>null!==a),Jn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?ae(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const AQ=new $("");let pde=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Z.appendChild(this.container,this.el.nativeElement):Z.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Z.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?sC.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&sC.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+Z.getWindowScrollLeft(),top:e.top+Z.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+Z.getOuterWidth(this.el.nativeElement),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-Z.getOuterWidth(this.container),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top-Z.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top+Z.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Z.hasClass(e,"p-inputwrapper")?Z.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=Z.getOuterWidth(this.container),s=Z.getOuterHeight(this.container),a=Z.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new qJ(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Z.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&sC.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(At),T(xg))},n.\u0275dir=ue({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Ai]}),n})(),ew=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),yQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,mQ,Va,ew,mQ,ew]}),n})();function Ude(n,t){1&n&&Mt(0)}function jde(n,t){if(1&n&&(ct(0),S(1,Ude,1,0,"ng-container",3),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)}}function zde(n,t){if(1&n&&(x(0,"div",1),ki(1),S(2,jde,2,1,"ng-container",2),B()),2&n){const e=w();C("hidden",!e.selected),Ot("id",e.id)("aria-hidden",!e.selected)("aria-labelledby",e.id+"-label"),v(2),C("ngIf",e.contentTemplate&&(e.cache?e.loaded:e.selected))}}const _Q=["*"],Hde=["content"],Vde=["navbar"],Gde=["prevBtn"],Yde=["nextBtn"],Wde=["inkbar"];function Jde(n,t){if(1&n){const e=Re();x(0,"button",12,13),K("click",function(){return re(e),oe(w().navBackward())}),ie(2,"span",14),B()}}function Kde(n,t){1&n&&ie(0,"span",24),2&n&&C("ngClass",w(3).$implicit.leftIcon)}function $de(n,t){1&n&&ie(0,"span",25),2&n&&C("ngClass",w(3).$implicit.rightIcon)}function qde(n,t){if(1&n&&(ct(0),S(1,Kde,1,1,"span",21),x(2,"span",22),de(3),B(),S(4,$de,1,1,"span",23),ut()),2&n){const e=w(2).$implicit;v(1),C("ngIf",e.leftIcon),v(2),pt(e.header),v(1),C("ngIf",e.rightIcon)}}function Xde(n,t){1&n&&Mt(0)}function Zde(n,t){if(1&n){const e=Re();x(0,"span",26),K("click",function(r){re(e);const o=w(2).$implicit;return oe(w().close(r,o))}),B()}}const ehe=function(n,t){return{"p-highlight":n,"p-disabled":t}};function the(n,t){if(1&n){const e=Re();x(0,"li",16)(1,"a",17),K("click",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))})("keydown.enter",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))}),S(2,qde,5,3,"ng-container",18),S(3,Xde,1,0,"ng-container",19),S(4,Zde,1,0,"span",20),B()()}if(2&n){const e=w().$implicit;Gt(e.headerStyleClass),C("ngClass",Ji(16,ehe,e.selected,e.disabled))("ngStyle",e.headerStyle),v(1),C("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Ot("id",e.id+"-label")("aria-selected",e.selected)("aria-controls",e.id)("aria-selected",e.selected)("tabindex",e.disabled?null:"0"),v(1),C("ngIf",!e.headerTemplate),v(1),C("ngTemplateOutlet",e.headerTemplate),v(1),C("ngIf",e.closable)}}function nhe(n,t){1&n&&S(0,the,5,19,"li",15),2&n&&C("ngIf",!t.$implicit.closed)}function ihe(n,t){if(1&n){const e=Re();x(0,"button",27,28),K("click",function(){return re(e),oe(w().navForward())}),ie(2,"span",29),B()}}const rhe=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let ohe=0,EQ=(()=>{class n{constructor(e,i,r){this.viewContainer=i,this.cd=r,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+ohe++,this.tabView=e}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()?this.headerTemplate=e.template:this.contentTemplate=e.template})}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(e){return new(e||n)(T(Je(()=>CQ)),T(Pi),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-tabPanel"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:_Q,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&($r(),S(0,zde,3,5,"div",0)),2&e&&C("ngIf",!i.closed)},dependencies:[Pt,zo],encapsulation:2}),n})(),CQ=(()=>{class n{constructor(e,i){this.el=e,this.cd=i,this.orientation="top",this.onChange=new te,this.onClose=new te,this.activeIndexChange=new te,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let r=this.findSelectedTab();r&&(r.selected=!1),this.tabChanged=!0,i.selected=!0;let o=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(o),this.onChange.emit({originalEvent:e,index:o}),this.updateScrollBar(o)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}updateInkBar(){if(this.navbar){const e=Z.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!e)return;this.inkbar.nativeElement.style.width=Z.getWidth(e)+"px",this.inkbar.nativeElement.style.left=Z.getOffset(e).left-Z.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:r}=e,o=Z.getWidth(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===r-o}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+Z.getWidth(i):e,0)}navBackward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft-i;e.scrollLeft=r<=0?0:r}navForward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft+i,o=e.scrollWidth-i;e.scrollLeft=r>=o?o:r}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-tabView"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,EQ,4),2&e){let o;He(o=Ve())&&(i.tabPanels=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Hde,5),Zt(Vde,5),Zt(Gde,5),Zt(Yde,5),Zt(Wde,5)),2&e){let r;He(r=Ve())&&(i.content=r.first),He(r=Ve())&&(i.navbar=r.first),He(r=Ve())&&(i.prevBtn=r.first),He(r=Ve())&&(i.nextBtn=r.first),He(r=Ve())&&(i.inkbar=r.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:_Q,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,i){1&e&&($r(),x(0,"div",0)(1,"div",1),S(2,Jde,3,0,"button",2),x(3,"div",3,4),K("scroll",function(o){return i.onScroll(o)}),x(5,"ul",5,6),S(7,nhe,1,1,"ng-template",7),ie(8,"li",8,9),B()(),S(10,ihe,3,0,"button",10),B(),x(11,"div",11),ki(12),B()()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(7,rhe,i.scrollable))("ngStyle",i.style),v(2),C("ngIf",i.scrollable&&!i.backwardIsDisabled),v(5),C("ngForOf",i.tabs),v(3),C("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[Un,qi,Pt,zo,Xi,pde,zd],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),vQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,ew,Va,Go]}),n})(),MQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[yQ,rN,vc,oN,aN,AC,lC,vQ,iL,nL,sL,dE,yQ,rN,vc,oN,aN,AC,lC,vQ,iL,nL,sL,dE]}),n})(),she=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vh],imports:[Kt,ug,Rd,dse,MQ]}),n})();hs(GN,[ir,CQ,EQ,kae,Tae,Ble],[]);let wQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[eM],imports:[Kt,ug,Rd,vc]}),n})();function ahe(n,t){1&n&&(x(0,"div",1),ie(1,"div",2),x(2,"div",3)(3,"div",4)(4,"div"),ie(5,"span",5)(6,"span",6),B(),x(7,"div",7),ie(8,"span",8)(9,"span",9),B()()()())}hs(xm,[qi,Pt,QR,Xv,LR],[]);let lhe=(()=>{class n{constructor(){this.items=Array(4).fill(0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,i){1&e&&S(0,ahe,10,0,"div",0),2&e&&C("ngForOf",i.items)},dependencies:[qi],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#11152e}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#11152e;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]}),n})(),che=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vh,U9,nk],imports:[Kt,ug,Rd,wQ,MQ,she,Rd,wQ]}),n})();hs(bN,[qi,Pt,yre],[]),hs(uN,[Pt,cg,yc,Sd,Zf,Ec,Fd,sM,Bs,km,pre,cN],[]),hs(cN,[qi,Pt,QR,Xv,lhe,LR],[]);const uhe=Ft.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const t=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?t.textBetween(0,t.content.size,void 0," ").length:t.nodeSize},this.storage.words=n=>{const t=n?.node||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter(r=>""!==r).length}},addProseMirrorPlugins(){return[new it({key:new _t("characterCount"),filterTransaction:(n,t)=>{const e=this.options.limit;if(!n.docChanged||0===e||null==e)return!0;const i=this.storage.characters({node:t.doc}),r=this.storage.characters({node:n.doc});if(r<=e||i>e&&r>e&&r<=i)return!0;if(i>e&&r>e&&r>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(r-e),s),!(this.storage.characters({node:n.doc})>e)}})]}}),dhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,hhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,phe=Fr.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[al({find:dhe,type:this.type})]},addPasteRules(){return[Xs({find:hhe,type:this.type})]}});function tw(n){this.j={},this.jr=[],this.jd=null,this.t=n}tw.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var i=e,r=this.j[t];if(r)return i&&(r.t=i),r;r=Ct();var o=hA(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=i||o.t):r.t=i,this.j[t]=r,r}};var Ct=function(){return new tw},me=function(t){return new tw(t)},H=function(t,e,i){t.j[e]||(t.j[e]=i)},Dn=function(t,e,i){t.jr.push([e,i])},hA=function(t,e){var i=t.j[e];if(i)return i;for(var r=0;r=s)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:[],t=Ct(),e=me(gr),i=me(Nr),r=Ct(),o=me("WS"),s=[[Wh,i],[Vh,i],[Gh,i],[Yh,i]],a=function(){var b=me(Nr);return b.j={"-":r},b.jr=[].concat(s),b},l=function(b){var D=a();return D.t=b,D};fhe(t,[["'",me(fA)],["{",me(su)],["[",me(Uh)],["<",me(jh)],["(",me(zh)],["}",me(Al)],["]",me(au)],[">",me(lu)],[")",me(cu)],["&",me(pA)],["*",me(gA)],["@",me(uu)],["`",me(AA)],["^",me(bA)],[":",me(Hh)],[",",me(rw)],["$",me(yA)],[".",me(oa)],["=",me(_A)],["!",me(ow)],["-",me(EA)],["%",me(CA)],["|",me(vA)],["+",me(MA)],["#",me(wA)],["?",me(DA)],['"',me(sw)],["/",me(ns)],[";",me(aw)],["~",me(IA)],["_",me(SA)],["\\",me(mA)]]),H(t,"\n",me("NL")),Dn(t,SQ,o),H(o,"\n",Ct()),Dn(o,SQ,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(n.prototype);for(var r in e)i[r]=e[r];i.constructor=t,t.prototype=i}(BA,e,t),e}BA.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:On.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var BQ=bl("email",{isLink:!0}),lw=bl("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),cw=bl("text"),OQ=bl("nl"),sa=bl("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:On.defaultProtocol,e=this.tk,i=!1,r=!1,o=[],s=0;e[s].t===ou;)i=!0,o.push(e[s].v),s++;for(;e[s].t===ns;)r=!0,o.push(e[s].v),s++;for(;s=0&&h++,r++,u++;if(h<0)for(var p=r-u;p0&&(o.push(uw(cw,t,s)),s=[]);var f=d.t,g=e.slice((r-=h)-(u-=h),r);o.push(uw(f,t,g))}}return s.length>0&&o.push(uw(cw,t,s)),o}(zt.parser.start,n,function Ahe(n,t){for(var e=function bhe(n){for(var t=[],e=n.length,i=0;i56319||i+1===e||(o=n.charCodeAt(i+1))<56320||o>57343?n[i]:n.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,function(p){return p.toLowerCase()})),i=e.length,r=[],o=0,s=0;s=0&&(d+=e[s].length,h++),c+=e[s].length,o+=e[s].length,s++;s-=h,r.push({t:u.t,v:t.substr((o-=d)-(c-=d),c),s:o-c,e:o})}return r}(zt.scanner.start,n))}function hw(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=kQ(n),i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:null,e=kQ(n);return 1===e.length&&e[0].isLink&&(!t||e[0].t===t)}function Dhe(n){return new it({key:new _t("autolink"),appendTransaction:(t,e,i)=>{const r=t.some(u=>u.docChanged)&&!e.doc.eq(i.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:s}=i,a=function yee(n,t){const e=new kC(n);return t.forEach(i=>{i.steps.forEach(r=>{e.step(r)})}),e}(e.doc,[...t]),{mapping:l}=a;return function wee(n){const{mapping:t,steps:e}=n,i=[];return t.maps.forEach((r,o)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=e[o];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),h=t.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function Mee(n){const t=function vee(n,t=JSON.stringify){const e={};return n.filter(i=>{const r=t(i);return!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=!0)})}(n);return 1===t.length?t:t.filter((e,i)=>!t.filter((o,s)=>s!==i).some(o=>e.oldRange.from>=o.oldRange.from&&e.oldRange.to<=o.oldRange.to&&e.newRange.from>=o.newRange.from&&e.newRange.to<=o.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Dm(u.from,u.to,e.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const y=Dm(l.map(g.from),l.map(g.to),i.doc).filter(O=>O.mark.type===n.type);if(!y.length)return;const E=y[0],b=e.doc.textBetween(g.from,g.to,void 0," "),D=i.doc.textBetween(E.from,E.to,void 0," "),I=PQ(b),Q=PQ(D);I&&!Q&&s.removeMark(E.from,E.to,n.type)});const h=function Eee(n,t,e){const i=[];return n.nodesBetween(t.from,t.to,(r,o)=>{e(r)&&i.push({node:r,pos:o})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(y=>""!==y);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;hw(m).filter(y=>y.isLink).filter(y=>!n.validate||n.validate(y.value)).map(y=>({...y,from:A+y.start+1,to:A+y.end+1})).forEach(y=>{s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),s.steps.length?s:void 0}})}const xhe=Fr.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(Mhe)},onDestroy(){!function vhe(){zt.scanner=null,zt.parser=null,zt.pluginQueue=[],zt.customProtocols=[],zt.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:t})=>t().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:t})=>t().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Xs({find:n=>hw(n).filter(t=>!this.options.validate||this.options.validate(t.value)).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:n=>{var t;return{href:null===(t=n.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(Dhe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function Ihe(n){return new it({key:new _t("handleClickLink"),props:{handleClick:(t,e,i)=>{var r;const o=BR(t.state,n.type.name);return!(!(null===(r=i.target)||void 0===r?void 0:r.closest("a"))||!o.href||(window.open(o.href,o.target),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function She(n){return new it({key:new _t("handlePasteLink"),props:{handlePaste:(t,e,i)=>{const{state:r}=t,{selection:o}=r,{empty:s}=o;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=hw(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),The=Ft.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new it({props:{decorations:({doc:n,selection:t})=>{const e=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!e)return null;const o=n.type.createAndFill(),s=o?.sameMarkup(n)&&null===o.content.findDiffStart(n.content);return n.descendants((a,l)=>{const c=i>=l&&i<=l+a.nodeSize;if((c||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=vn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:c}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),kt.create(n,r)}}})]}}),Bhe=tn.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",Et(this.options.HTMLAttributes,n),0]}}),Ohe=Ft.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>!!this.options.alignments.includes(n)&&this.options.types.every(e=>t.updateAttributes(e,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(t=>n.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),khe=Fr.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Phe=/^\s*>\s$/,Fhe=tn.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[qv({find:Phe,type:this.type})]}}),Rhe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Nhe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Lhe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Qhe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Uhe=Fr.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[al({find:Rhe,type:this.type}),al({find:Lhe,type:this.type})]},addPasteRules(){return[Xs({find:Nhe,type:this.type}),Xs({find:Qhe,type:this.type})]}}),jhe=/^\s*([-+*])\s$/,zhe=tn.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){return[qv({find:jhe,type:this.type})]}}),Hhe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Vhe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Ghe=Fr.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[al({find:Hhe,type:this.type})]},addPasteRules(){return[Xs({find:Vhe,type:this.type})]}}),Yhe=/^```([a-z]+)?[\s\n]$/,Whe=/^~~~([a-z]+)?[\s\n]$/,Jhe=tn.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var t;const{languageClassPrefix:e}=this.options;return[...(null===(t=n.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:t}){return["pre",Et(this.options.HTMLAttributes,t),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:t})=>t.setNode(this.name,n),toggleCodeBlock:n=>({commands:t})=>t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:t}=this.editor.state.selection;return!(!n||t.parent.type.name!==this.name)&&!(1!==t.pos&&t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=n,{selection:e}=t,{$from:i,empty:r}=e;if(!r||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!o||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=n,{selection:e,doc:i}=t,{$from:r,empty:o}=e;if(!o||r.parent.type!==this.type||r.parentOffset!==r.parent.nodeSize-2)return!1;const a=r.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[$v({find:Yhe,type:this.type,getAttributes:n=>({language:n[1]})}),$v({find:Whe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new it({key:new _t("codeBlockVSCodeHandler"),props:{handlePaste:(n,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const e=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),o=(i?JSON.parse(i):void 0)?.mode;if(!e||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(Ee.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),Khe=tn.create({name:"doc",topNode:!0,content:"block+"});function $he(n={}){return new it({view:t=>new qhe(t,n)})}class qhe{constructor(t,e){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=e.width||1,this.color=e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let r=o=>{this[i](o)};return t.dom.addEventListener(i,r),{name:i,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){let s=t.nodeBefore,a=t.nodeAfter;if(s||a){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0)).getBoundingClientRect(),c=s?l.bottom:l.top;s&&a&&(c=(c+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:l.left,right:l.right,top:c-this.width/2,bottom:c+this.width/2}}}if(!e){let s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();r=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=i&&i.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e):r;if(e&&!o){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(s=Lk(this.editorView.state.doc,s,this.editorView.dragging.slice),null==s))return this.setCursor(null);this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const Xhe=Ft.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[$he(this.options)]}});class $t extends _e{constructor(t){super(t,t)}map(t,e){let i=t.resolve(e.map(this.head));return $t.valid(i)?new $t(i):_e.near(i)}content(){return G.empty}eq(t){return t instanceof $t&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $t(t.resolve(e.pos))}getBookmark(){return new pw(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function Zhe(n){for(let t=n.depth;t>=0;t--){let e=n.index(t),i=n.node(t);if(0!=e)for(let r=i.child(e-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t)||!function epe(n){for(let t=n.depth;t>=0;t--){let e=n.indexAfter(t),i=n.node(t);if(e!=i.childCount)for(let r=i.child(e);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t))return!1;let i=e.type.spec.allowGapCursor;if(null!=i)return i;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,i=!1){e:for(;;){if(!i&&$t.valid(t))return t;let r=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(e>0?t.indexAfter(s)0){o=a.child(e>0?t.indexAfter(s):t.index(s)-1);break}if(0==s)return null;r+=e;let l=t.doc.resolve(r);if($t.valid(l))return l}for(;;){let s=e>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!ce.isSelectable(o)){t=t.doc.resolve(r+o.nodeSize*e),i=!1;continue e}break}o=s,r+=e;let a=t.doc.resolve(r);if($t.valid(a))return a}return null}}}$t.prototype.visible=!1,$t.findFrom=$t.findGapCursorFrom,_e.jsonID("gapcursor",$t);class pw{constructor(t){this.pos=t}map(t){return new pw(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return $t.valid(e)?new $t(e):_e.near(e)}}const npe=xv({ArrowLeft:OA("horiz",-1),ArrowRight:OA("horiz",1),ArrowUp:OA("vert",-1),ArrowDown:OA("vert",1)});function OA(n,t){const e="vert"==n?t>0?"down":"up":t>0?"right":"left";return function(i,r,o){let s=i.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof Ee){if(!o.endOfTextblock(e)||0==a.depth)return!1;l=!1,a=i.doc.resolve(t>0?a.after():a.before())}let c=$t.findGapCursorFrom(a,t,l);return!!c&&(r&&r(i.tr.setSelection(new $t(c))),!0)}}function ipe(n,t,e){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(t);if(!$t.valid(i))return!1;let r=n.posAtCoords({left:e.clientX,top:e.clientY});return!(r&&r.inside>-1&&ce.isSelectable(n.state.doc.nodeAt(r.inside))||(n.dispatch(n.state.tr.setSelection(new $t(i))),0))}function rpe(n,t){if("insertCompositionText"!=t.inputType||!(n.state.selection instanceof $t))return!1;let{$from:e}=n.state.selection,i=e.parent.contentMatchAt(e.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let r=L.empty;for(let s=i.length-1;s>=0;s--)r=L.from(i[s].createAndFill(null,r));let o=n.state.tr.replace(e.pos,e.pos,new G(r,0,0));return o.setSelection(Ee.near(o.doc.resolve(e.pos+1))),n.dispatch(o),!1}function ope(n){if(!(n.selection instanceof $t))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",kt.create(n.doc,[vn.widget(n.selection.head,t,{key:"gapcursor"})])}const spe=Ft.create({name:"gapCursor",addProseMirrorPlugins:()=>[new it({props:{decorations:ope,createSelectionBetween:(n,t,e)=>t.pos==e.pos&&$t.valid(e)?new $t(e):null,handleClick:ipe,handleKeyDown:npe,handleDOMEvents:{beforeinput:rpe}}})],extendNodeSchema(n){var t;return{allowGapCursor:null!==(t=Be(ne(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==t?t:null}}}),ape=tn.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",Et(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:r,storedMarks:o}=e;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lpe=tn.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Et(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.setNode(this.name,n),toggleHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>$v({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var kn=function(){};kn.prototype.append=function(t){return t.length?(t=kn.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},kn.prototype.prepend=function(t){return t.length?kn.from(t).append(this):this},kn.prototype.appendInner=function(t){return new cpe(this,t)},kn.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?kn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},kn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},kn.prototype.forEach=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length),e<=i?this.forEachInner(t,e,i,0):this.forEachInvertedInner(t,e,i,0)},kn.prototype.map=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length);var r=[];return this.forEach(function(o,s){return r.push(t(o,s))},e,i),r},kn.from=function(t){return t instanceof kn?t:t&&t.length?new FQ(t):kn.empty};var FQ=function(n){function t(i){n.call(this),this.values=i}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,o){return 0==r&&o==this.length?this:new t(this.values.slice(r,o))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,o,s,a){for(var l=o;l=s;l--)if(!1===r(this.values[l],a+l))return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=200)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=200)return new t(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(kn);kn.empty=new FQ([]);var cpe=function(n){function t(e,i){n.call(this),this.left=e,this.right=i,this.length=e.length+i.length,this.depth=Math.max(e.depth,i.depth)+1}return n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(r-a,0),Math.min(this.length,o)-a,s+a))return!1},t.prototype.forEachInvertedInner=function(i,r,o,s){var a=this.left.length;if(r>a&&!1===this.right.forEachInvertedInner(i,r-a,Math.max(o,a)-a,s+a)||o=o?this.right.slice(i-o,r-o):this.left.slice(i,o).append(this.right.slice(0,r-o))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(kn);const RQ=kn;class Lr{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let r,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(r=this.remapping(i,this.items.length),o=r.maps.length);let a,l,s=t.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return r||(r=this.remapping(i,h+1),o=r.maps.length),o--,void u.push(d);if(r){u.push(new bo(d.map));let f,p=d.step.map(r.slice(o));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new bo(f,void 0,void 0,c.length+u.length))),o--,f&&r.appendMap(f,o)}else s.maybeStep(d.step);return d.selection?(a=r?d.selection.map(r.slice(o)):d.selection,l=new Lr(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(t,e,i,r){let o=[],s=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let u=0;uppe&&(a=function hpe(n,t){let e;return n.forEach((i,r)=>{if(i.selection&&0==t--)return e=r,!1}),n.slice(e)}(a,c),s-=c),new Lr(a.append(o),s)}remapping(t,e){let i=new Sc;return this.items.forEach((r,o)=>{i.appendMap(r.map,null!=r.mirrorOffset&&o-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0)},t,e),i}addMaps(t){return 0==this.eventCount?this:new Lr(this.items.append(t.map(e=>new bo(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-e),o=t.mapping,s=t.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},r);let l=e;this.items.forEach(h=>{let p=o.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=o.maps[p];if(h.step){let g=t.steps[p].invert(t.docs[p]),m=h.selection&&h.selection.map(o.slice(l+1,p));m&&a++,i.push(new bo(f,g,m))}else i.push(new bo(f))},r);let c=[];for(let h=e;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),i=e.maps.length,r=[],o=0;return this.items.forEach((s,a)=>{if(a>=t)r.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(e.slice(i)),c=l&&l.getMap();if(i--,c&&e.appendMap(c,i),l){let u=s.selection&&s.selection.map(e.slice(i));u&&o++;let h,d=new bo(c.invert(),l,u),p=r.length-1;(h=r.length&&r[p].merge(d))?r[p]=h:r.push(d)}}else s.map&&i--},this.items.length,0),new Lr(RQ.from(r.reverse()),o)}}Lr.empty=new Lr(RQ.empty,0);class bo{constructor(t,e,i,r){this.map=t,this.step=e,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new bo(e.getMap().invert(),e,this.selection)}}}class aa{constructor(t,e,i,r){this.done=t,this.undone=e,this.prevRanges=i,this.prevTime=r}}const ppe=20;function NQ(n){let t=[];return n.forEach((e,i,r,o)=>t.push(r,o)),t}function fw(n,t){if(!n)return null;let e=[];for(let i=0;inew aa(Lr.empty,Lr.empty,null,0),apply:(t,e,i)=>function fpe(n,t,e,i){let o,r=e.getMeta(yo);if(r)return r.historyState;e.getMeta(UQ)&&(n=new aa(n.done,n.undone,null,0));let s=e.getMeta("appendedTransaction");if(0==e.steps.length)return n;if(s&&s.getMeta(yo))return s.getMeta(yo).redo?new aa(n.done.addTransform(e,void 0,i,PA(t)),n.undone,NQ(e.mapping.maps[e.steps.length-1]),n.prevTime):new aa(n.done,n.undone.addTransform(e,void 0,i,PA(t)),null,n.prevTime);if(!1===e.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=e.getMeta("rebased"))?new aa(n.done.rebased(e,o),n.undone.rebased(e,o),fw(n.prevRanges,e.mapping),n.prevTime):new aa(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),fw(n.prevRanges,e.mapping),n.prevTime);{let a=0==n.prevTime||!s&&(n.prevTime<(e.time||0)-i.newGroupDelay||!function gpe(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((i,r)=>{for(let o=0;o=t[o]&&(e=!0)}),e}(e,n.prevRanges)),l=s?fw(n.prevRanges,e.mapping):NQ(e.mapping.maps[e.steps.length-1]);return new aa(n.done.addTransform(e,a?t.selection.getBookmark():void 0,i,PA(t)),Lr.empty,l,e.time)}}(e,i,t,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(t,e){let i=e.inputType,r="historyUndo"==i?jQ:"historyRedo"==i?zQ:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const jQ=(n,t)=>{let e=yo.getState(n);return!(!e||0==e.done.eventCount||(t&&LQ(e,n,t,!1),0))},zQ=(n,t)=>{let e=yo.getState(n);return!(!e||0==e.undone.eventCount||(t&&LQ(e,n,t,!0),0))},Ape=Ft.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:t})=>jQ(n,t),redo:()=>({state:n,dispatch:t})=>zQ(n,t)}),addProseMirrorPlugins(){return[mpe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),bpe=tn.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{var i;if(e){const{$to:r}=t.selection,o=r.end();if(r.nodeAfter)t.setSelection(Ee.create(t.doc,r.pos));else{const s=null===(i=r.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(t.insert(o,s),t.setSelection(Ee.create(t.doc,o)))}t.scrollIntoView()}return!0}).run()}},addInputRules(){return[RR({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),ype=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,_pe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Epe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Cpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,vpe=Fr.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[al({find:ype,type:this.type}),al({find:Epe,type:this.type})]},addPasteRules(){return[Xs({find:_pe,type:this.type}),Xs({find:Cpe,type:this.type})]}}),Mpe=tn.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",Et(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wpe=/^(\d+)\.\s$/,Dpe=tn.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return 1===t?["ol",Et(this.options.HTMLAttributes,e),0]:["ol",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[qv({find:wpe,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:(n,t)=>t.childCount+t.attrs.start===+n[1]})]}}),Ipe=tn.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Spe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,xpe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Tpe=Fr.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[al({find:Spe,type:this.type})]},addPasteRules(){return[Xs({find:xpe,type:this.type})]}}),Bpe=tn.create({name:"text",group:"inline"}),HQ=Ft.create({name:"starterKit",addExtensions(){var n,t,e,i,r,o,s,a,l,c,u,d,h,p,f,g,m,A;const y=[];return!1!==this.options.blockquote&&y.push(Fhe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&y.push(Uhe.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(zhe.configure(null===(e=this.options)||void 0===e?void 0:e.bulletList)),!1!==this.options.code&&y.push(Ghe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&y.push(Jhe.configure(null===(r=this.options)||void 0===r?void 0:r.codeBlock)),!1!==this.options.document&&y.push(Khe.configure(null===(o=this.options)||void 0===o?void 0:o.document)),!1!==this.options.dropcursor&&y.push(Xhe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&y.push(spe.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&y.push(ape.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(lpe.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(Ape.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(bpe.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(vpe.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&y.push(Mpe.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&y.push(Dpe.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&y.push(Ipe.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&y.push(Tpe.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&y.push(Bpe.configure(null===(A=this.options)||void 0===A?void 0:A.text)),y}});let Ope=(()=>{class n{constructor(e,i){this.el=e,this._renderer=i,this.outputFormat="html",this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:r})=>{if(r.docChanged){if("html"===this.outputFormat)return void this.onChange(this.editor.getHTML());this.onChange(this.editor.getJSON())}}}writeValue(e){!e||(!this.outputFormat&&"string"==typeof e&&(this.outputFormat="html"),this.editor.chain().setContent(e,!1).run())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor",outputFormat:"outputFormat"},features:[yt([{provide:Ri,useExisting:Je(()=>n),multi:!0}])]}),n})(),kpe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,i){1&e&&(x(0,"span"),de(1),B(),x(2,"span"),de(3,"\u25cf"),B(),de(4),x(5,"span"),de(6,"\u25cf"),B(),de(7)),2&e&&(_s("error-message",i.charLimit&&i.characterCount.characters()>i.charLimit),v(1),cf(" ",i.characterCount.characters(),"",i.charLimit?"/"+i.charLimit:""," chars\n"),v(3),Xr("\n",i.characterCount.words()," words\n"),v(3),Xr("\n",i.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#b3b1b8;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();function Ppe(n,t){if(1&n&&ie(0,"dot-editor-count-bar",4),2&n){const e=w(2);C("characterCount",e.characterCount)("charLimit",e.charLimit)("readingTime",e.readingTime)}}const Fpe=function(n){return{"overflow-hidden":n}};function Rpe(n,t){if(1&n){const e=Re();ct(0),x(1,"div",1)(2,"tiptap-editor",2),K("ngModelChange",function(r){return re(e),oe(w().content=r)})("keyup",function(){return re(e),oe(w().subject.next())}),B()(),S(3,Ppe,1,3,"dot-editor-count-bar",3),ut()}if(2&n){const e=w();v(1),mn(e.customStyles),v(1),C("ngModel",e.content)("editor",e.editor)("ngClass",Wt(6,Fpe,e.freezeScroll)),v(1),C("ngIf",e.showCharData)}}let Lpe=(()=>{class n{constructor(e,i,r){this.injector=e,this.viewContainerRef=i,this.dotMarketingConfigService=r,this.lang=Bm,this.displayCountBar=!0,this.content="",this.valueChange=new te,this.subject=new Me,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Sie(this.injector)],["image",ui],["video",kie],["table",koe.extend({resizable:!0})]]),this.destroy$=new Me}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(wh.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const i=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...i]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const t=new RegExp(/]*)>(.|\n)*?<\/p>/gm),e=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),r=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Ote,o=>(n=>{const t=document.createElement("div");t.innerHTML=n;const e=t.querySelector("a").getAttribute("href"),i=t.querySelector("a").getAttribute("href"),r=t.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(nM,o=>o.replace(/img/gm,`img href="${e}" title="${i}" alt="${r}"`))})(o)).replace(t,o=>Tm(o)).replace(e,o=>Tm(o)).replace(i,o=>Tm(o)).replace(r,o=>Tm(o))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return bh(function*(){return Promise.all(e.map(function(){var i=bh(function*(r){return import(r)});return function(r){return i.apply(this,arguments)}}()))})()}ngOnInit(){Lt(this.getCustomRemoteExtensions()).pipe(Jn(1)).subscribe(e=>{this.editor=new Jee({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateChartCount()),this.subject.pipe(Vn(this.destroy$),kg(250)).subscribe(()=>this.updateChartCount()),this.editor.on("update",({editor:i})=>{this.valueChange.emit(JSON.stringify(i.getJSON()))}),this.editor.on("transaction",({editor:i})=>{this.freezeScroll=Mh.getState(i.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateChartCount(){const e=this.editor.state.tr.step(new ll("chartCount",this.characterCount.characters())).step(new ll("wordCount",this.characterCount.words())).step(new ll("readingTime",this.readingTime));this.editor.view.dispatch(e)}getParsedCustomBlocks(){try{return JSON.parse(this.customBlocks)}catch(e){return console.warn("JSON parse fails, please check the JSON format.",e),{extensions:[]}}}getCustomRemoteExtensions(){var e=this;return bh(function*(){const i=e.getParsedCustomBlocks(),r=i.extensions.map(l=>l.url),o=yield e.loadCustomBlocks(r),s=[];i.extensions.forEach(l=>{s.push(...l.actions.map(c=>c.name))});const a=o.reduce((l,c)=>({...l,...c}),{});return s.map(l=>a[l])})()}getEditorNodes(){return[this._allowedBlocks?.length>1?HQ.configure(this.starterConfig()):HQ,...this.getAllowedCustomNodes()]}starterConfig(){const r=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(s=>this._allowedBlocks?.includes(s)).map(s=>+s.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(s=>!this._allowedBlocks?.includes(s)).reduce((s,a)=>({...s,[a]:!1}),{});return{heading:!!r?.length&&{levels:r,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const i of this._allowedBlocks){const r=this._customNodes.get(i);r&&e.push(r)}return e}getEditorExtensions(){return[wre({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks}),The.configure({placeholder:this.placeholder}),Vte(this.viewContainerRef,this.getParsedCustomBlocks()),Roe(this.viewContainerRef),lse(this.injector,this.viewContainerRef),Xie(this.viewContainerRef),Mre(this.viewContainerRef),dre(this.viewContainerRef),Xoe(this.injector,this.viewContainerRef),Tre(this.viewContainerRef),ose(this.viewContainerRef),Bre.extend({renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),Bhe,cse,uhe]}getEditorMarks(){return[khe,Ohe.configure({types:["heading","paragraph","listItem","dotImage"]}),phe.configure({HTMLAttributes:{style:"background: #accef7;"}}),xhe.configure({autolink:!1,openOnClick:!1})]}placeholder({node:e}){return"heading"===e.type.name?`${function Npe(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(t){return t.charAt(0).toUpperCase()+t.slice(1)})}(e.type.name)} ${e.attrs.level}`:'Type "/" for commmands'}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,t)=>{const e=(n=>n.reduce((t,e)=>HR[e]?{...t,...HR[e]}:{...t,[e]:!0},Ste))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return VR(i,e)})(e):e}}return n.\u0275fac=function(e){return new(e||n)(T(Sn),T(Pi),T(UR))},n.\u0275cmp=ve({type:n,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,i){1&e&&S(0,Rpe,4,8,"ng-container",0),2&e&&C("ngIf",i.editor)},dependencies:[Un,Pt,Sd,lg,Ope,kpe],styles:['@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHFmNtYXAAAAFoAAAAVAAAAFQXVtN1Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAA+PAAAPjwt9TQjGhlYWQAAPq0AAAANgAAADYegaTEaGhlYQAA+uwAAAAkAAAAJAfqBMB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EECQADABQCKQADAAEECQAEABQCegADAAEECQAFABYCCQADAAEECQAGABQCRwADAAEECQAKAHwAmAADAAEECQALAFABPAADAAEECQANAAYBjwADAAEECQAOAEYBuHByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac1ByaW1lVGVrIEluZm9ybWF0aWNzAFAAcgBpAG0AZQBUAGUAawAgAEkAbgBmAG8AcgBtAGEAdABpAGMAc0ljb24gTGlicmFyeSBmb3IgUHJpbWUgVUkgTGlicmFyaWVzCkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEkAYwBvAG4AIABMAGkAYgByAGEAcgB5ACAAZgBvAHIAIABQAHIAaQBtAGUAIABVAEkAIABMAGkAYgByAGEAcgBpAGUAcwAKAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALmh0dHBzOi8vZ2l0aHViLmNvbS9wcmltZWZhY2VzL3ByaW1laWNvbnMAaAB0AHQAcABzADoALwAvAGcAaQB0AGgAdQBiAC4AYwBvAG0ALwBwAHIAaQBtAGUAZgBhAGMAZQBzAC8AcAByAGkAbQBlAGkAYwBvAG4Ac01JVABNAEkAVGh0dHBzOi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUAGgAdAB0AHAAcwA6AC8ALwBvAHAAZQBuAHMAbwB1AHIAYwBlAC4AbwByAGcALwBsAGkAYwBlAG4AcwBlAHMALwBNAEkAVFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac3ByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcnByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4AcwADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:4.5rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5rem}[_nghost-%COMP%] .form__group{margin:1rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:4.5rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.5rem;right:0;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#7e7a86;display:block;font-size:.85rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:#524e5c99;display:block;font-size:.85rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#7e7a86;cursor:pointer;margin-left:1rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff9;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:.38}[_nghost-%COMP%] .p-text-secondary{color:#11152e}[_nghost-%COMP%] .pi{font-size:1rem}[_nghost-%COMP%] .p-link{font-size:1rem;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;border-radius:2px}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.5rem}[_nghost-%COMP%] .p-field>label{font-size:.85rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox, [_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] .p-button.p-autocomplete-dropdown{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(63,81,181,.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-autocomplete-dropdown{background:#fff;border:1px solid #b3b1b8;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left:none;padding:0;min-width:3rem}[_nghost-%COMP%] .p-autocomplete-dropdown:enabled:hover, [_nghost-%COMP%] .p-autocomplete-dropdown:enabled:focus{background:#f1f1f1;border:1px solid #b3b1b8;border-left:none}[_nghost-%COMP%] .p-autocomplete-dropdown .p-button-icon:before{color:gray}[_nghost-%COMP%] .p-badge{background:var(--color-main);color:#fff;font-size:.75rem;font-weight:700;min-width:1.5rem;height:1.5rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-sec);border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.5rem;height:2.5rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3rem;height:3rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#b3b1b8}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.75rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#b3b1b8;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:2px}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-main);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#7e7a86}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5rem;color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-button{background:var(--color-main);border-radius:2px;border:0 none;border:solid 1px transparent;color:#fff;font-size:1rem;font-weight:500;line-height:normal;padding:.75rem 2rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgba(var(--color-main_rgb),.72);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-button.p-button-text:enabled:focus{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain{color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:hover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:active{background:rgba(0,0,0,.16);color:#11152e}[_nghost-%COMP%] .p-button.p-button-vertical{font-size:1rem;padding:.5rem .75rem;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical:enabled:hover, [_nghost-%COMP%] .p-button.p-button-vertical:enabled:focus{color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical .p-button-icon{margin:0 0 .25rem;font-size:1.5rem}[_nghost-%COMP%] .p-button:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-button .p-button-icon-left{margin-right:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-right{margin-left:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-bottom{margin-top:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-top{margin-bottom:.5rem}[_nghost-%COMP%] .p-button .p-badge{margin-left:.5rem;min-width:1rem;height:1rem;line-height:1rem;color:var(--color-main);background-color:#fff}[_nghost-%COMP%] .p-button.p-button-raised{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-rounded{border-radius:2rem}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only{color:#524e5c;padding:.571rem;min-width:auto}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:hover{color:#524e5c}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:active, [_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:focus{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-button.p-button-icon-only{padding-left:.75rem;padding-right:.75rem}[_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-left, [_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-right{margin:0}[_nghost-%COMP%] .p-button.p-button-icon-only.p-button-rounded{border-radius:50%;height:3rem;width:3rem}[_nghost-%COMP%] .p-button.p-button-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-button.p-button-sm .p-button-icon{font-size:.85rem}[_nghost-%COMP%] .p-button.p-button-lg{font-size:1.5rem;padding:.75rem 2rem}[_nghost-%COMP%] .p-button.p-button-lg .p-button-icon{font-size:1.5rem}[_nghost-%COMP%] .p-fluid .p-button-icon-only{width:3rem}[_nghost-%COMP%] .p-fluid .p-buttonset{display:flex}[_nghost-%COMP%] .p-fluid .p-buttonset .p-button{flex:1}[_nghost-%COMP%] .p-button.p-button-disabled, [_nghost-%COMP%] .p-buttonset.p-button-disabled>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-disabled>.p-button{color:#b3b1b8;background:rgba(0,0,0,.12);border:none}[_nghost-%COMP%] .p-button.p-button-secondary, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button{color:var(--color-sec);border-top:1px solid var(--color-sec);border-left:1px solid var(--color-sec);border-bottom:1px solid var(--color-sec);background:none}[_nghost-%COMP%] .p-button.p-button-secondary{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:hover{background:none;border-right:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary:disabled{border-color:transparent}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover{border-top:1px solid var(--color-main);border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton{border-left:1px solid var(--color-main)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject:hover{border-color:var(--color-main);background:none}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus{background:none;border-color:transparent;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-info, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button{color:#fff;background:#2196f3;border:0 none}[_nghost-%COMP%] .p-button.p-button-info:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:hover{background:rgba(33,150,243,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-info:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-info:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:active{background:rgba(33,150,243,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button{color:#fff;background:#d32f2f;border:0 none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:hover{background:rgba(211,47,47,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text{background-color:transparent;color:#d32f2f;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:hover{background:rgba(211,47,47,.04);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-link{color:var(--color-main);background:transparent;border:transparent;text-decoration:underline}[_nghost-%COMP%] .p-button-label{text-transform:uppercase;font-weight:500}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover{background:transparent;border-color:transparent;color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover .p-button-label{text-decoration:underline}[_nghost-%COMP%] .p-button.p-button-link:enabled:focus{background:transparent;box-shadow:none;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link:enabled:active{background:transparent;color:transparent;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link.p-button-sm{padding:0 .75rem}[_nghost-%COMP%] .p-button .p-ink{background-color:rgba(var(--color-white_rgb),.32)}[_nghost-%COMP%] .p-button:disabled{background-color:#0000001f!important;color:#b3b1b8!important;opacity:1}[_nghost-%COMP%] .p-button:disabled.p-button-link{background-color:transparent!important}[_nghost-%COMP%] .p-button:disabled.p-button-text{background-color:transparent!important;color:#b3b1b8!important}[_nghost-%COMP%] .p-button:disabled.p-button-outlined{background-color:transparent!important;border-color:#b3b1b8;color:#b3b1b8}[_nghost-%COMP%] .p-button.p-button-raised:enabled:focus{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:focus{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:focus{background:rgba(255,64,129,.12)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:active{background:rgba(255,64,129,.16)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text .p-ink{background-color:#ff408129}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{background:rgba(211,47,47,.76)}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:focus{background:rgba(211,47,47,.12)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text .p-ink{background-color:#d32f2f29}[_nghost-%COMP%] .p-button.p-button-outlined{background-color:transparent;color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:hover{background:rgba(33,150,243,.04);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:active{background:rgba(33,150,243,.16);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain{color:#6c757d;border-color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:hover{background:#e9ecef;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:active{background:#dee2e6;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined{background-color:transparent;color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:hover{background:rgba(96,125,139,.04);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:active{background:rgba(96,125,139,.16);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined{background-color:transparent;color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:hover{background:rgba(2,136,209,.04);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:active{background:rgba(2,136,209,.16);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined{background-color:transparent;color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:hover{background:rgba(104,159,56,.04);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:active{background:rgba(104,159,56,.16);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined{background-color:transparent;color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:hover{background:rgba(251,192,45,.04);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:active{background:rgba(251,192,45,.16);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined{background-color:transparent;color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:hover{background:rgba(156,39,176,.04);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:active{background:rgba(156,39,176,.16);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined{background-color:transparent;color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:hover{background:rgba(211,47,47,.04);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:active{background:rgba(211,47,47,.16);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #b3b1b8;background:#ffffff;border-radius:2px}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background-image:none;background:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#b3b1b8;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-datepicker{padding:.5rem;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5rem;color:#11152e;background:#ffffff;font-weight:500;margin:0;border-bottom:1px solid #e2e2e2;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{line-height:2rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3rem;height:3rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3rem;height:3rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#11152e;border-color:#b3b1b8}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.75rem 0;border-top:1px solid #e2e2e2}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #e2e2e2;padding:.5rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5rem;transition:none;border-radius:2px}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #e2e2e2;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{border-bottom:0 none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table th{border-bottom:1px solid #e2e2e2;color:#b3b1b8;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d0021b}@keyframes checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #7e7a86;background:#ffffff;width:18px;height:18px;color:#11152e;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-main);background:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:var(--color-main);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d0021b}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5rem}[_nghost-%COMP%] .p-checkbox{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px #3f51b50a}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-contextmenu{padding:.5rem 0;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #e2e2e2;border-width:0 0 1px 0;color:#7e7a86;font-size:.85rem;font-weight:500;padding:.75rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.75rem;border:1px solid #b3b1b8;border-width:0 0 1px 0;font-weight:500;color:#11152e;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline-color:transparent}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#7e7a86;margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-main);background:rgba(var(--color-sec_rgb),.12);margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#11152e;height:4rem;transition:none;outline-color:transparent;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #e2e2e2;border-width:0 0 1px 0;padding:.5rem .75rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f1f3f4;color:#7e7a86;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f1f3f4;color:#7e7a86}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-sec)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:rgba(var(--color-sec_rgb),.05);color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{outline:0 none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border:0 none}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#11152e;padding:2.5rem;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem;font-size:1.7rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#11152e;padding:0 2.5rem 2.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#11152e;padding:1.5rem;text-align:right;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:3rem}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:#11152ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] .p-dropdown{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px}[_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown.p-dropdown-clearable .p-dropdown-label{padding-right:2.5rem}[_nghost-%COMP%] .p-dropdown .p-dropdown-label{background:transparent;border:0 none}[_nghost-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-dropdown .p-dropdown-label:enabled:focus{outline:0 none;box-shadow:none}[_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:transparent;color:#1b3359;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:#11152e;right:2.357rem}[_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:3rem}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#d0021b}[_nghost-%COMP%] .p-dropdown .p-inputtext, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-dropdown .p-inputtext{border:0 none}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-dropdown-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-dropdown-sm .p-dropdown .p-dropdown-label{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-float-label>label{left:.75rem;color:#11152e;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1rem;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputgroup-addon{background:#ffffff;color:#11152e;border-top:1px solid #b3b1b8;border-left:1px solid #b3b1b8;border-bottom:1px solid #b3b1b8;padding:.75rem;min-width:2.357rem}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:1px solid #b3b1b8}[_nghost-%COMP%] .p-inputgroup>.p-component, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component{border-radius:0;margin:0}[_nghost-%COMP%] .p-inputgroup>.p-component+.p-inputgroup-addon, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component+.p-inputgroup-addon{border-left:0 none}[_nghost-%COMP%] .p-inputgroup>.p-component:focus, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus{z-index:1}[_nghost-%COMP%] .p-inputgroup>.p-component:focus~label, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus~label{z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup button:first-child, [_nghost-%COMP%] .p-inputgroup input:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:first-child input{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup button:last-child, [_nghost-%COMP%] .p-inputgroup input:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:last-child input{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputswitch{width:2.75rem;height:1rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.5rem;height:1.5rem;left:-1px;margin-top:-.75rem;border-radius:50%;transition-duration:.2s}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.5rem)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#b3b1b8}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{background:var(--color-main)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{transition-property:box-shadow transform;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f,0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #0000001f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #p-inputtext-extend, [_nghost-%COMP%] .p-inputtext{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;background:#ffffff;padding:.75rem;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);-webkit-appearance:none;appearance:none;border-radius:2px}[_nghost-%COMP%] #p-inputtext-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover{border-color:var(--color-main)}[_nghost-%COMP%] #p-inputtext-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-inputtext.p-inputtext-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-inputtext.p-inputtext-lg{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-input-icon-left>i:first-of-type{left:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-left>.p-inputtext{padding-left:2.5rem}[_nghost-%COMP%] .p-input-icon-right>i:last-of-type{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-right>.p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] ::-webkit-input-placeholder{color:#7e7a86}[_nghost-%COMP%] :-moz-placeholder{color:#11152e}[_nghost-%COMP%] ::-moz-placeholder{color:#11152e}[_nghost-%COMP%] :-ms-input-placeholder{color:#11152e}[_nghost-%COMP%] .p-input-filled .p-inputtext{background-color:#f5f5f5}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:hover{background-color:#ececec}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:focus{background-color:#dcdcdc}[_nghost-%COMP%] .p-inputtext-sm .p-inputtext{font-size:.875rem;padding:.65625rem}[_nghost-%COMP%] .p-inputtext-lg .p-inputtext{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.75rem;border:0 none;color:#11152e;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu{padding:.5rem 0;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-inline-message{padding:.75rem;margin:0;border-radius:2px}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.75rem 0;border-radius:2px}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1rem 1.5rem}[_nghost-%COMP%] .p-message .p-message-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5rem}[_nghost-%COMP%] .p-multiselect{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px;min-width:13rem}[_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{padding:.75rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:transparent;color:#11152e;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-open{border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus{outline:0 none;outline-offset:0;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{border:0 none}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#524e5c}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.5rem;padding:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label.p-placeholder{padding:1rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{align-items:center;background:rgba(var(--color-main_rgb),.1);border-radius:4px;color:rgb(var(--color-main_rgb));display:flex;gap:.5rem;justify-content:center;margin-right:.5rem;padding:.5rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:.75rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-main);color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:rgba(var(--color-sec_rgb),.12);color:#fff}[_nghost-%COMP%] .p-overlaypanel:after{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel:before{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:after{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:before{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.5rem}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#11152e;border:solid #e2e2e2;border-width:0;padding:.375rem .75rem;border-radius:2px;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5rem;height:3rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;padding:0 .5rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f1f3f4;border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:rgba(var(--color-sec_rgb),.12);border-radius:2px}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-main)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#11152e;line-height:4px}[_nghost-%COMP%] .p-progressbar{border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{display:none}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #7e7a86;background:#ffffff;width:20px;height:20px;color:#11152e;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-main);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:#ffffff;color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5rem}[_nghost-%COMP%] .p-radiobutton{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{border:2px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #b3b1b8;color:#7e7a86;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:rgba(var(--color-sec_rgb),.12);color:#524e5c}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#7e7a86}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:rgba(var(--color-sec_rgb),.12);border-color:#b3b1b8;color:#524e5c}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #b3b1b8;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1rem 2rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#524e5c;box-shadow:0 -4px 0 0 var(--color-main) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-splitbutton>.p-button:disabled{border-color:#00000003}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled){border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled):hover{border-right:1px solid var(--color-main)}[_nghost-%COMP%] .p-splitbutton-menubutton.p-button{min-width:unset}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);color:var(--color-main);border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);border-right:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton{padding:0 1rem}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton:disabled{border-left:1px solid #b3b1b8}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;color:#11152e;padding:1.2rem 2.5rem 1.35rem;font-weight:500;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:rgba(var(--color-sec_rgb),.12);color:#11152e;background-clip:padding-box;border-bottom:4px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-sec)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#11152e;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-tabview .p-tabview-nav{position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border-radius:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1rem;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;border-radius:2px}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.5rem;border-width:0 0 0 0;align-items:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 0 0 1rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toast .p-toast-message{border:solid transparent;border-width:0 0 0 0;color:#11152e}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-icon{color:#fff;background:var(--color-sec);border-radius:50%;display:flex;justify-content:center;align-items:center;padding:.5rem;align-self:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{color:#524e5c;position:absolute;top:.75rem;right:.75rem}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #b3b1b8;display:flex;padding:1rem 1.5rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:rgba(97,97,97,.9);color:#fff;padding:.75rem 1rem;font-size:1rem;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#616161e6}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{box-shadow:none}[_nghost-%COMP%] .p-tree{border:1px solid #b3b1b8;background:#ffffff;color:#11152e;padding:.75rem;border-radius:2px}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:2px;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:2px;border:1px solid #b3b1b8;background-color:#fff;color:#11152e;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-skeleton{background-color:#e9ecef;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0))}[_nghost-%COMP%] .p-tieredmenu{padding:.5rem 0;background:#ffffff;border:0 none;border-radius:2px;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.75rem;color:var(--color-background);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px #0003}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.5rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2rem;height:2rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:p-component-overlay-leave-animation .15s forwards}@keyframes p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:#11152ecc}}@keyframes p-component-overlay-leave-animation{0%{background-color:#11152ecc}to{background-color:transparent}}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.75rem;top:0;left:0;background:#ffffff;color:#524e5c;border:0 none;border-radius:2px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-message{margin-left:1rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:.75rem 1.5rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.75rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.5rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-content{display:flex;align-items:center;padding:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-card{background:#ffffff;color:#524e5c;border:1px solid #e2e2e2;border-radius:4px}[_nghost-%COMP%] .p-card .p-card-header{padding:1rem 1rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5rem;color:#7e7a86}[_nghost-%COMP%] .p-card .p-card-body{padding:1.5rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5rem .75rem;width:100%}[_nghost-%COMP%] .p-slider{background:#e2e2e2;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-main);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-main_mod)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-main)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-main);border-color:var(--color-main)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-main);color:#fff;font-size:1rem;font-weight:400;padding:.5rem 1rem;border-radius:7px}[_nghost-%COMP%] .p-tag.p-tag-success{background-color:#f5fdf8;color:#3ed97a}[_nghost-%COMP%] .p-tag.p-tag-info{background-color:#f7f9fe;color:var(--color-main)}[_nghost-%COMP%] .p-tag.p-tag-warning{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] .p-tag.p-tag-danger{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5rem;font-size:.75rem}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#d0021b}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#d0021b}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#d0021b}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#d0021b}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#d0021b}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#d0021b}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#d0021b}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#d0021b}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#d0021b}[_nghost-%COMP%] .p-password-panel{padding:.75rem;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5rem}[_nghost-%COMP%] :root{--color-background: #3a3847;--color-main: #6b4de2;--color-main_mod: #8674c0;--color-main_rgb: 107, 77, 226;--color-sec: #6f5fa3;--color-sec_rgb: 111, 95, 163;--color-white: #fff;--color-white_rgb: 255, 255, 255;--empty-message: ""}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff) format("woff");}}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{color:#11152e;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14px;height:100%;margin:0;padding:0}[_nghost-%COMP%] html{-ms-overflow-style:-ms-autohiding-scrollbar}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-main)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-sec)}[_nghost-%COMP%] a[actionlink]{color:var(--color-sec);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:fa-spin 2s infinite linear}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Roboto,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:4px;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#b3b1b8 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-main)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f1f3f4;border-radius:3px;border:1px solid #b3b1b8;color:#7e7a86;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px;line-height:41.2128px;padding-top:6.88px;margin-bottom:13.76px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px;line-height:41.12px;padding-top:10.4px;margin-bottom:10.4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px;line-height:41.2px;padding-top:41.2px;margin-bottom:8px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px;line-height:41.28px;padding-top:13.76px;margin-bottom:6.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid rgba(17,21,46,.1);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#11152e;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#b3b1b8;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #b3b1b8;box-sizing:border-box;min-width:1rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f1f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#e2e2e2}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-container{margin-bottom:1rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']}),n})(),Qpe=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function q5(n,t){const e=function V5(n,t){return t.get(As).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new J5(n,t.injector),r=function H5(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function L5(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends $5{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(Lpe,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}return n.\u0275fac=function(e){return new(e||n)(j(Sn))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[s1,WJ,Kt,ug,che,AC,lC,dE]}),n})();(function OG(){if(oT)throw new Error("Cannot enable prod mode after platform setup.");rT=!1})(),t5().bootstrapModule(Qpe).catch(n=>console.error(n))},222:(Ur,El,pu)=>{Ur=pu.nmd(Ur);var ca="__lodash_hash_undefined__",ua=9007199254740991,Ar="[object Arguments]",da="[object Array]",ha="[object Boolean]",We="[object Date]",fu="[object Error]",pa="[object Function]",Ge="[object Map]",gu="[object Number]",rs="[object Object]",ss="[object Promise]",Zh="[object RegExp]",fa="[object Set]",et="[object String]",br="[object WeakMap]",mu="[object ArrayBuffer]",ga="[object DataView]",Ew=/^\[object .+?Constructor\]$/,qA=/^(?:0|[1-9]\d*)$/,vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt[Ar]=vt[da]=vt[mu]=vt[ha]=vt[ga]=vt[We]=vt[fu]=vt[pa]=vt[Ge]=vt[gu]=vt[rs]=vt[Zh]=vt[fa]=vt[et]=vt[br]=!1;var Au="object"==typeof global&&global&&global.Object===Object&&global,ip="object"==typeof self&&self&&self.Object===Object&&self,Di=Au||ip||Function("return this")(),rp=El&&!El.nodeType&&El,op=rp&&Ur&&!Ur.nodeType&&Ur,Ml=op&&op.exports===rp,bu=Ml&&Au.process,sp=function(){try{return bu&&bu.binding&&bu.binding("util")}catch{}}(),ap=sp&&sp.isTypedArray;function ma(_,M){for(var R=-1,z=null==_?0:_.length;++RTe))return!1;var at=F.get(_);if(at&&F.get(M))return at==M;var nt=-1,dn=!0,Qe=2&R?new vu:void 0;for(F.set(_,M),F.set(M,_);++nt-1},un.prototype.set=function ib(_,M){var R=this.__data__,z=Ea(R,_);return z<0?(++this.size,R.push([_,M])):R[z][1]=M,this},us.prototype.clear=function rb(){this.size=0,this.__data__={hash:new Do,map:new(Mo||un),string:new Do}},us.prototype.delete=function Ow(_){var M=Iu(this,_).delete(_);return this.size-=M?1:0,M},us.prototype.get=function Zn(_){return Iu(this,_).get(_)},us.prototype.has=function tt(_){return Iu(this,_).has(_)},us.prototype.set=function kw(_,M){var R=Iu(this,_),z=R.size;return R.set(_,M),this.size+=R.size==z?0:1,this},vu.prototype.add=vu.prototype.push=function Pw(_){return this.__data__.set(_,ca),this},vu.prototype.has=function Y(_){return this.__data__.has(_)},Io.prototype.clear=function Pe(){this.__data__=new un,this.size=0},Io.prototype.delete=function Sl(_){var M=this.__data__,R=M.delete(_);return this.size=M.size,R},Io.prototype.get=function ob(_){return this.__data__.get(_)},Io.prototype.has=function gp(_){return this.__data__.has(_)},Io.prototype.set=function sb(_,M){var R=this.__data__;if(R instanceof un){var z=R.__data__;if(!Mo||z.length<199)return z.push([_,M]),this.size=++R.size,this;R=this.__data__=new us(z)}return R.set(_,M),this.size=R.size,this};var mt=hp?function(_){return null==_?[]:(_=Object(_),function yu(_,M){for(var R=-1,z=null==_?0:_.length,Le=0,F=[];++R-1&&_%1==0&&_-1&&_%1==0&&_<=ua}function Fe(_){var M=typeof _;return null!=_&&("object"==M||"function"==M)}function va(_){return null!=_&&"object"==typeof _}var Ou=ap?function Aa(_){return function(M){return _(M)}}(ap):function lb(_){return va(_)&&Bu(_.length)&&!!vt[So(_)]};function ue(_){return function cb(_){return null!=_&&Bu(_.length)&&!Tu(_)}(_)?function ab(_,M){var R=zr(_),z=!R&&_r(_),Le=!R&&!z&&ve(_),F=!R&&!z&&!Le&&Ou(_),ee=R||z||Le||F,Te=ee?function Cw(_,M){for(var R=-1,z=Array(_);++R<_;)z[R]=M(R);return z}(_.length,String):[],st=Te.length;for(var at in _)(M||Hi.call(_,at))&&(!ee||!("length"==at||Le&&("offset"==at||"parent"==at)||F&&("buffer"==at||"byteLength"==at||"byteOffset"==at)||Rw(at,st)))&&Te.push(at);return Te}(_):function hi(_){if(!function Tl(_){var M=_&&_.constructor;return _===("function"==typeof M&&M.prototype||cs)}(_))return Eu(_);var M=[];for(var R in Object(_))Hi.call(_,R)&&"constructor"!=R&&M.push(R);return M}(_)}Ur.exports=function hs(_,M){return mp(_,M)}}},Ur=>{Ur(Ur.s=203)}]); \ No newline at end of file +var runtime=function(s){"use strict";var v,C=Object.prototype,p=C.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},w=G.iterator||"@@iterator",$=G.asyncIterator||"@@asyncIterator",_=G.toStringTag||"@@toStringTag";function h(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{h({},"")}catch{h=function(t,e,o){return t[e]=o}}function M(r,t,e,o){var i=Object.create((t&&t.prototype instanceof k?t:k).prototype),a=new I(o||[]);return i._invoke=function B(r,t,e){var o=R;return function(i,a){if(o===Y)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return W()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var c=D(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===R)throw o=L,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=Y;var f=O(r,t,e);if("normal"===f.type){if(o=e.done?L:z,f.arg===l)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=L,e.method="throw",e.arg=f.arg)}}}(r,e,a),i}function O(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}s.wrap=M;var R="suspendedStart",z="suspendedYield",Y="executing",L="completed",l={};function k(){}function b(){}function d(){}var T={};h(T,w,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==C&&p.call(S,w)&&(T=S);var g=d.prototype=k.prototype=Object.create(T);function q(r){["next","throw","return"].forEach(function(t){h(r,t,function(e){return this._invoke(t,e)})})}function E(r,t){function e(i,a,u,c){var f=O(r[i],r,a);if("throw"!==f.type){var A=f.arg,m=A.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,c)},function(y){e("throw",y,u,c)}):t.resolve(m).then(function(y){A.value=y,u(A)},function(y){return e("throw",y,u,c)})}c(f.arg)}var o;this._invoke=function n(i,a){function u(){return new t(function(c,f){e(i,a,c,f)})}return o=o?o.then(u,u):u()}}function D(r,t){var e=r.iterator[t.method];if(e===v){if(t.delegate=null,"throw"===t.method){if(r.iterator.return&&(t.method="return",t.arg=v,D(r,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var o=O(e,r.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var n=o.arg;return n?n.done?(t[r.resultName]=n.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,l):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function H(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function j(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(H,this),this.reset(!0)}function P(r){if(r){var t=r[w];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),j(e),l}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;j(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:P(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=v),l}},s}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;if(ht&&u===ke&&"error"===t.type){const m=t;f=c&&c.call(this,m.message,m.filename,m.lineno,m.colno,m.error),!0===f&&t.preventDefault()}else f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault();return f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{203:(Ur,El,pu)=>{"use strict";function Eo(n){return"function"==typeof n}let ca=!1;const Fn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else ca&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ca=n},get useDeprecatedSynchronousErrorHandling(){return ca}};function Co(n){setTimeout(()=>{throw n},0)}const ua={closed:!0,next(n){},error(n){if(Fn.useDeprecatedSynchronousErrorHandling)throw n;Co(n)},complete(){}},Ar=Array.isArray||(n=>n&&"number"==typeof n.length);function da(n){return null!==n&&"object"==typeof n}const ha=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class We{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof We)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof ha?e.errors:e),[])}We.EMPTY=((n=new We).closed=!0,n);const pa="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ge extends We{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ua;break;case 1:if(!t){this.destination=ua;break}if("object"==typeof t){t instanceof Ge?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new gu(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new gu(this,t,e,i)}}[pa](){return this}static create(t,e,i){const r=new Ge(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class gu extends Ge{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;Eo(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ua&&(s=Object.create(e),Eo(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Fn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Fn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Co(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Co(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Fn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Fn.useDeprecatedSynchronousErrorHandling)throw i;Co(i)}}__tryOrSetError(t,e,i){if(!Fn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Fn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Co(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ss="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cl(n){return n}function fa(n){return 0===n.length?Cl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let et=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function rs(n,t,e){if(n){if(n instanceof Ge)return n;if(n[pa])return n[pa]()}return n||t||e?new Ge(n,t,e):new Ge(ua)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Fn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Fn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Fn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function YA(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ge?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ep(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ss](){return this}pipe(...e){return 0===e.length?this:fa(e)(this)}toPromise(e){return new(e=ep(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function ep(n){if(n||(n=Fn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const br=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class mu extends We{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ga extends Ge{constructor(t){super(t),this.destination=t}}let Me=(()=>{class n extends et{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[pa](){return new ga(this)}lift(e){const i=new tp(this,this);return i.operator=e,i}next(e){if(this.closed)throw new br;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew tp(t,e),n})();class tp extends Me{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):We.EMPTY}}function as(n){return n&&"function"==typeof n.schedule}function fe(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new WA(n,t))}}class WA{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new JA(t,this.project,this.thisArg))}}class JA extends Ge{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const np=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function ip(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Di=n=>{if(n&&"function"==typeof n[ss])return(n=>t=>{const e=n[ss]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Au(n))return np(n);if(ip(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Co),t))(n);if(n&&"function"==typeof n[vl])return(n=>t=>{const e=n[vl]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${da(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ml(n,t){return new et(e=>{const i=new We;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function yu(n,t){if(null!=n){if(function sp(n){return n&&"function"==typeof n[ss]}(n))return function rp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>{const r=n[ss]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(ip(n))return function op(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Au(n))return Ml(n,t);if(function ap(n){return n&&"function"==typeof n[vl]}(n)||"string"==typeof n)return function bu(n,t){if(!n)throw new Error("Iterable cannot be null");return new et(e=>{const i=new We;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[vl](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Lt(n,t){return t?yu(n,t):n instanceof et?n:new et(Di(n))}class ma extends Ge{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Aa extends Ge{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ba(n,t){if(t.closed)return;if(n instanceof et)return n.subscribe(t);let e;try{e=Di(n)(t)}catch(i){t.error(i)}return e}function nn(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(nn((r,o)=>Lt(n(r,o)).pipe(fe((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new XA(n,e)))}class XA{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ZA(t,this.project,this.concurrent))}}class ZA extends Aa{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ls(n=Number.POSITIVE_INFINITY){return nn(Cl,n)}function cs(n,t){return t?Ml(n,t):new et(np(n))}function ya(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return as(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof et?n[0]:ls(t)(cs(n,e))}function _a(){return function(t){return t.lift(new Hi(t))}}class Hi{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new lp(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class lp extends Ge{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class wl extends et{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new We,t.add(this.source.subscribe(new cp(this.getSubject(),this))),t.closed&&(this._connection=null,t=We.EMPTY)),t}refCount(){return _a()(this)}}const eb=(()=>{const n=wl.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class cp extends ga{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class tb{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function vo(){return new Me}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Eu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function rt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(rt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Mo(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Cu=gt({__forward_ref__:gt});function Je(n){return n.__forward_ref__=Je,n.toString=function(){return rt(this())},n}function he(n){return wo(n)?n():n}function wo(n){return"function"==typeof n&&n.hasOwnProperty(Cu)&&n.__forward_ref__===Je}class P extends Error{constructor(t,e){super(function Dl(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function we(n){return"string"==typeof n?n:null==n?"":String(n)}function Il(n,t){throw new P(-201,!1)}function Zn(n,t){null==n&&function tt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Y(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Sl(n){return gp(n,xl)||gp(n,Mu)}function gp(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ea(n){return n&&(n.hasOwnProperty(So)||n.hasOwnProperty(mp))?n[So]:null}const xl=gt({\u0275prov:gt}),So=gt({\u0275inj:gt}),Mu=gt({ngInjectableDef:gt}),mp=gt({ngInjectorDef:gt});var pe=(()=>((pe=pe||{})[pe.Default=0]="Default",pe[pe.Host=1]="Host",pe[pe.Self=2]="Self",pe[pe.SkipSelf=4]="SkipSelf",pe[pe.Optional=8]="Optional",pe))();let wu;function hi(n){const t=wu;return wu=n,t}function Du(n,t,e){const i=Sl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&pe.Optional?null:void 0!==t?t:void Il(rt(n))}function jr(n){return{toString:n}.toString()}var pi=(()=>((pi=pi||{})[pi.OnPush=0]="OnPush",pi[pi.Default=1]="Default",pi))(),Ii=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ii||(Ii={})),Ii))();const mt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ds={},qe=[],Tl=gt({\u0275cmp:gt}),Su=gt({\u0275dir:gt}),yr=gt({\u0275pipe:gt}),xu=gt({\u0275mod:gt}),_r=gt({\u0275fac:gt}),zr=gt({__NG_ELEMENT_ID__:gt});let cb=0;function ve(n){return jr(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===pi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||qe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ii.Emulated,id:"c"+cb++,styles:n.styles||qe,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Ou(n.inputs,i),r.outputs=Ou(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Tu).filter(Bu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(M).filter(Bu):null,r})}function hs(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Tu),i.pipeDefs=()=>("function"==typeof e?e():e).map(M)}function Tu(n){return ot(n)||_(n)}function Bu(n){return null!==n}function Fe(n){return jr(()=>({type:n.type,bootstrap:n.bootstrap||qe,declarations:n.declarations||qe,imports:n.imports||qe,exports:n.exports||qe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Ou(n,t){if(null==n)return ds;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const ue=ve;function In(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Tl]||null}function _(n){return n[Su]||null}function M(n){return n[yr]||null}function z(n,t){const e=n[xu]||null;if(!e&&!0===t)throw new Error(`Type ${rt(n)} does not have '\u0275mod' property.`);return e}function mi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Cr(n){return Array.isArray(n)&&!0===n[1]}function db(n){return 0!=(8&n.flags)}function yp(n){return 2==(2&n.flags)}function _p(n){return 1==(1&n.flags)}function vr(n){return null!==n.template}function JQ(n){return 0!=(256&n[2])}function wa(n,t){return n.hasOwnProperty(_r)?n[_r]:null}class Qw{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ai(){return Uw}function Uw(n){return n.type.prototype.ngOnChanges&&(n.setInput=XQ),qQ}function qQ(){const n=zw(this),t=n?.current;if(t){const e=n.previous;if(e===ds)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function XQ(n,t,e,i){const r=zw(n)||function ZQ(n,t){return n[jw]=t}(n,{previous:ds,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Qw(l&&l.currentValue,t,s===ds),n[i]=t}Ai.ngInherit=!0;const jw="__ngSimpleChanges__";function zw(n){return n[jw]||null}function rn(n){for(;Array.isArray(n);)n=n[0];return n}function Ep(n,t){return rn(t[n])}function Yi(n,t){return rn(t[n.index])}function mb(n,t){return n.data[t]}function Pl(n,t){return n[t]}function Si(n,t){const e=t[n];return mi(e)?e:e[0]}function Hw(n){return 4==(4&n[2])}function Cp(n){return 64==(64&n[2])}function ps(n,t){return null==t?null:n[t]}function Vw(n){n[18]=0}function Ab(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Ie={lFrame:Zw(null),bindingsEnabled:!0};function Yw(){return Ie.bindingsEnabled}function N(){return Ie.lFrame.lView}function Ke(){return Ie.lFrame.tView}function re(n){return Ie.lFrame.contextLView=n,n[8]}function oe(n){return Ie.lFrame.contextLView=null,n}function pn(){let n=Ww();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ww(){return Ie.lFrame.currentTNode}function Hr(n,t){const e=Ie.lFrame;e.currentTNode=n,e.isParent=t}function bb(){return Ie.lFrame.isParent}function yb(){Ie.lFrame.isParent=!1}function ei(){const n=Ie.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Fl(){return Ie.lFrame.bindingIndex++}function Bo(n){const t=Ie.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function f2(n,t){const e=Ie.lFrame;e.bindingIndex=e.bindingRootIndex=n,_b(t)}function _b(n){Ie.lFrame.currentDirectiveIndex=n}function $w(){return Ie.lFrame.currentQueryIndex}function Cb(n){Ie.lFrame.currentQueryIndex=n}function m2(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function qw(n,t,e){if(e&pe.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&pe.Host||(r=m2(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Ie.lFrame=Xw();return i.currentTNode=t,i.lView=n,!0}function vb(n){const t=Xw(),e=n[1];Ie.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Xw(){const n=Ie.lFrame,t=null===n?null:n.child;return null===t?Zw(n):t}function Zw(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function e0(){const n=Ie.lFrame;return Ie.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const t0=e0;function Mb(){const n=e0();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ti(){return Ie.lFrame.selectedIndex}function fs(n){Ie.lFrame.selectedIndex=n}function Vt(){const n=Ie.lFrame;return mb(n.tView,n.selectedIndex)}function Mp(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Ru{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ip(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ib=!0;function xp(n){const t=Ib;return Ib=n,t}let B2=0;const Vr={};function Lu(n,t){const e=xb(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Sb(i.data,n),Sb(t,null),Sb(i.blueprint,null));const r=Tp(n,t),o=n.injectorIndex;if(a0(r)){const s=Rl(r),a=Nl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Sb(n,t){n.push(0,0,0,0,0,0,0,0,t)}function xb(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Tp(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=m0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Bp(n,t,e){!function O2(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(zr)&&(i=e[zr]),null==i&&(i=e[zr]=B2++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:R2:t}(e);if("function"==typeof o){if(!qw(t,n,i))return i&pe.Host?u0(r,0,i):d0(t,e,i,r);try{const s=o(i);if(null!=s||i&pe.Optional)return s;Il()}finally{t0()}}else if("number"==typeof o){let s=null,a=xb(n,t),l=-1,c=i&pe.Host?t[16][6]:null;for((-1===a||i&pe.SkipSelf)&&(l=-1===a?Tp(n,t):t[a+8],-1!==l&&g0(i,!1)?(s=t[1],a=Rl(l),t=Nl(l,t)):a=-1);-1!==a;){const u=t[1];if(f0(o,a,u.data)){const d=P2(a,t,e,s,i,c);if(d!==Vr)return d}l=t[a+8],-1!==l&&g0(i,t[1].data[a+8]===c)&&f0(o,a,t)?(s=u,a=Rl(l),t=Nl(l,t)):a=-1}}return r}function P2(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Op(a,s,e,null==i?yp(a)&&Ib:i!=s&&0!=(3&a.type),r&pe.Host&&o===a);return null!==u?Qu(t,s,u,a):Vr}function Op(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===e)return p}if(r){const p=s[l];if(p&&vr(p)&&p.type===e)return l}return null}function Qu(n,t,e,i){let r=n[e];const o=t.data;if(function D2(n){return n instanceof Ru}(r)){const s=r;s.resolving&&function pp(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new P(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():we(n)}(o[e]));const a=xp(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?hi(s.injectImpl):null;qw(n,i,pe.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function M2(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Uw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&hi(l),xp(a),s.resolving=!1,t0()}}return r}function f0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[_r]||Tb(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[_r]||Tb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Tb(n){return wo(n)?()=>{const t=Tb(he(n));return t&&t()}:wa(n)}function m0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const Ul="__parameters__";function zl(n,t,e){return jr(()=>{const i=function Bb(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ul)?l[Ul]:Object.defineProperty(l,Ul,{value:[]})[Ul];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ${constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xi(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Oo(e,t):t(e))}function b0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function kp(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Hu(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function j2(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function kb(n,t){const e=Hl(n,t);if(e>=0)return n[1|e]}function Hl(n,t){return function E0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Wu=Yu(zl("Optional"),8),Ju=Yu(zl("SkipSelf"),4);let Nb,Qp,Up;function Yl(n){return function Lb(){if(void 0===Qp&&(Qp=null,mt.trustedTypes))try{Qp=mt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Qp}()?.createHTML(n)||n}function O0(n){return function Qb(){if(void 0===Up&&(Up=null,mt.trustedTypes))try{Up=mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Up}()?.createHTML(n)||n}class Da{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class pU extends Da{getTypeName(){return"HTML"}}class fU extends Da{getTypeName(){return"Style"}}class gU extends Da{getTypeName(){return"Script"}}class mU extends Da{getTypeName(){return"URL"}}class AU extends Da{getTypeName(){return"ResourceURL"}}function Bi(n){return n instanceof Da?n.changingThisBreaksApplicationSecurity:n}function Gr(n,t){const e=function bU(n){return n instanceof Da&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class MU{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Yl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class wU{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Yl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Yl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0qu(t.trim())).join(", ")}function Yr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Xu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const N0=Yr("area,br,col,hr,img,wbr"),L0=Yr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q0=Yr("rp,rt"),Ub=Xu(N0,Xu(L0,Yr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xu(Q0,Yr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xu(Q0,L0)),jb=Yr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zb=Yr("srcset"),U0=Xu(jb,zb,Yr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),SU=Yr("script,style,template");class xU{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ub.hasOwnProperty(e))return this.sanitizedSomething=!0,!SU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ub.hasOwnProperty(e)&&!N0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(j0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const TU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BU=/([^\#-~ |!])/g;function j0(n){return n.replace(/&/g,"&").replace(TU,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(BU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jp;function z0(n,t){let e=null;try{jp=jp||function F0(n){const t=new wU(n);return function DU(){try{return!!(new window.DOMParser).parseFromString(Yl(""),"text/html")}catch{return!1}}()?new MU(t):t}(n);let i=t?String(t):"";e=jp.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=jp.getInertBodyElement(i)}while(i!==o);return Yl((new xU).sanitizeChildren(Hb(e)||e))}finally{if(e){const i=Hb(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Hb(n){return"content"in n&&function OU(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var It=(()=>((It=It||{})[It.NONE=0]="NONE",It[It.HTML=1]="HTML",It[It.STYLE=2]="STYLE",It[It.SCRIPT=3]="SCRIPT",It[It.URL=4]="URL",It[It.RESOURCE_URL=5]="RESOURCE_URL",It))();function zp(n){const t=Zu();return t?O0(t.sanitize(It.HTML,n)||""):Gr(n,"HTML")?O0(Bi(n)):z0(function B0(){return void 0!==Nb?Nb:typeof document<"u"?document:void 0}(),we(n))}function ko(n){const t=Zu();return t?t.sanitize(It.URL,n)||"":Gr(n,"URL")?Bi(n):qu(we(n))}function Zu(){const n=N();return n&&n[12]}const Vb=new $("ENVIRONMENT_INITIALIZER"),V0=new $("INJECTOR",-1),G0=new $("INJECTOR_DEF_TYPES");class Y0{get(t,e=Vu){if(e===Vu){const i=new Error(`NullInjectorError: No provider for ${rt(t)}!`);throw i.name="NullInjectorError",i}return e}}function QU(...n){return{\u0275providers:W0(0,n)}}function W0(n,...t){const e=[],i=new Set;let r;return Oo(t,o=>{const s=o;Gb(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&J0(r,e),e}function J0(n,t){for(let e=0;e{t.push(o)})}}function Gb(n,t,e,i){if(!(n=he(n)))return!1;let r=null,o=Ea(n);const s=!o&&ot(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ea(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Gb(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Oo(o.imports,u=>{Gb(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&J0(c,t)}if(!a){const c=wa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:qe},{provide:G0,useValue:r,multi:!0},{provide:Vb,useValue:()=>j(r),multi:!0})}const l=o.providers;null==l||a||Oo(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const UU=gt({provide:String,useValue:gt});function Yb(n){return null!==n&&"object"==typeof n&&UU in n}function Ia(n){return"function"==typeof n}const Wb=new $("Set Injector scope."),Hp={},zU={};let Jb;function Vp(){return void 0===Jb&&(Jb=new Y0),Jb}class ms{}class q0 extends ms{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,$b(t,s=>this.processProvider(s)),this.records.set(V0,Wl(void 0,this)),r.has("environment")&&this.records.set(ms,Wl(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(G0.multi,qe,pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Vl(this),i=hi(void 0);try{return t()}finally{Vl(e),hi(i)}}get(t,e=Vu,i=pe.Default){this.assertNotDestroyed();const r=Vl(this),o=hi(void 0);try{if(!(i&pe.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function WU(n){return"function"==typeof n||"object"==typeof n&&n instanceof $}(t)&&Sl(t);a=l&&this.injectableDefInScope(l)?Wl(Kb(t),Hp):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&pe.Self?Vp():this.parent).get(t,e=i&pe.Optional&&e===Vu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Fp]=s[Fp]||[]).unshift(rt(t)),r)throw s;return function Z2(n,t,e,i){const r=n[Fp];throw t[C0]&&r.unshift(t[C0]),n.message=function eU(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=rt(t);if(Array.isArray(t))r=t.map(rt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(K2,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Fp]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{hi(o),Vl(r)}}resolveInjectorInitializers(){const t=Vl(this),e=hi(void 0);try{const i=this.get(Vb.multi,qe,pe.Self);for(const r of i)r()}finally{Vl(t),hi(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(rt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(t){let e=Ia(t=he(t))?t:he(t&&t.provide);const i=function VU(n){return Yb(n)?Wl(void 0,n.useValue):Wl(X0(n),Hp)}(t);if(Ia(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Wl(void 0,Hp,!0),r.factory=()=>Rb(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Hp&&(e.value=zU,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YU(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=he(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Kb(n){const t=Sl(n),e=null!==t?t.factory:wa(n);if(null!==e)return e;if(n instanceof $)throw new P(204,!1);if(n instanceof Function)return function HU(n){const t=n.length;if(t>0)throw Hu(t,"?"),new P(204,!1);const e=function sb(n){const t=n&&(n[xl]||n[Mu]);if(t){const e=function ab(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new P(204,!1)}function X0(n,t,e){let i;if(Ia(n)){const r=he(n);return wa(r)||Kb(r)}if(Yb(n))i=()=>he(n.useValue);else if(function $0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Rb(n.deps||[]));else if(function K0(n){return!(!n||!n.useExisting)}(n))i=()=>j(he(n.useExisting));else{const r=he(n&&(n.useClass||n.provide));if(!function GU(n){return!!n.deps}(n))return wa(r)||Kb(r);i=()=>new r(...Rb(n.deps))}return i}function Wl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function JU(n){return!!n.\u0275providers}function $b(n,t){for(const e of n)Array.isArray(e)?$b(e,t):JU(e)?$b(e.\u0275providers,t):t(e)}class Z0{}class qU{resolveComponentFactory(t){throw function $U(n){const t=Error(`No component factory found for ${rt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let As=(()=>{class n{}return n.NULL=new qU,n})();function XU(){return Jl(pn(),N())}function Jl(n,t){return new St(Yi(n,t))}let St=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=XU,n})();function ZU(n){return n instanceof St?n.nativeElement:n}class ed{}let Wr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function ej(){const n=N(),e=Si(pn().index,n);return(mi(e)?e:n)[11]}(),n})(),tj=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>null}),n})();class Kl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nj=new Kl("14.2.0"),qb={};function ny(n){return n.ngOriginalError}class $l{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&ny(t);for(;e&&ny(e);)e=ny(e);return e||null}}const iy=new Map;let fj=0;const oy="__ngContext__";function Nn(n,t){mi(t)?(n[oy]=t[20],function mj(n){iy.set(n[20],n)}(t)):n[oy]=t}function td(n){const t=n[oy];return"number"==typeof t?function sD(n){return iy.get(n)||null}(t):t||null}function sy(n){const t=td(n);return t?mi(t)?t:t.lView:null}function Po(n){return n instanceof Function?n():n}var bi=(()=>((bi=bi||{})[bi.Important=1]="Important",bi[bi.DashCase=2]="DashCase",bi))();function ly(n,t){return undefined(n,t)}function nd(n){const t=n[3];return Cr(t)?t[3]:t}function cy(n){return pD(n[13])}function uy(n){return pD(n[4])}function pD(n){for(;null!==n&&!Cr(n);)n=n[4];return n}function Xl(n,t,e,i,r){if(null!=i){let o,s=!1;Cr(i)?o=i:mi(i)&&(s=!0,i=i[0]);const a=rn(i);0===n&&null!==e?null==r?yD(t,e,a):Sa(t,e,a,r||null,!0):1===n&&null!==e?Sa(t,e,a,r||null,!0):2===n?function DD(n,t,e){const i=Gp(n,t);i&&function Hj(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function Yj(n,t,e,i,r){const o=e[7];o!==rn(e)&&Xl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=kp(n,10+t);!function Fj(n,t){id(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function mD(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&id(n,t,e,3,null,null),function Lj(n){let t=n[13];if(!t)return fy(n[1],n);for(;t;){let e=null;if(mi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)mi(t)&&fy(t[1],t),t=t[3];null===t&&(t=n),mi(t)&&fy(t[1],t),e=t&&t[4]}t=e}}(t)}}function fy(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function zj(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==xD(p,c,0)||2&i&&c!==h){if(Mr(i))return!1;s=!0}}}}else{if(!s&&!Mr(i)&&!Mr(l))return!1;if(s&&Mr(l))continue;s=!1,i=l|1&i}}return Mr(i)||s}function Mr(n){return 0==(1&n)}function qj(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Mr(s)&&(t+=kD(o,r),r=""),i=s,o=o||!Mr(i);e++}return""!==r&&(t+=kD(o,r)),t}const Se={};function v(n){PD(Ke(),N(),ti()+n,!1)}function PD(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&wp(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Dp(t,o,0,e)}fs(e)}function LD(n,t=null,e=null,i){const r=QD(n,t,e,i);return r.resolveInjectorInitializers(),r}function QD(n,t=null,e=null,i,r=new Set){const o=[e||qe,QU(n)];return i=i||("object"==typeof n?void 0:rt(n)),new q0(o,t||Vp(),i||null,r)}let Sn=(()=>{class n{static create(e,i){if(Array.isArray(e))return LD({name:""},i,e,"");{const r=e.name??"";return LD({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Vu,n.NULL=new Y0,n.\u0275prov=Y({token:n,providedIn:"any",factory:()=>j(V0)}),n.__NG_ELEMENT_ID__=-1,n})();function T(n,t=pe.Default){const e=N();return null===e?j(n,t):h0(pn(),e,he(n),t)}function vy(){throw new Error("invalid")}function Kp(n,t){return n<<17|t<<2}function wr(n){return n>>17&32767}function My(n){return 2|n}function Fo(n){return(131068&n)>>2}function wy(n,t){return-131069&n|t<<2}function Dy(n){return 1|n}function nI(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&PD(n,t,22,!1),e(i,r)}finally{fs(o)}}function rI(n,t,e){if(db(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function dI(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function hI(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function Jz(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Uy(e)}}function Uy(n){for(let i=cy(n);null!==i;i=uy(i))for(let r=10;r0&&Uy(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Uy(r)}}function tH(n,t){const e=Si(t,n),i=e[1];(function nH(n,t){for(let e=t.length;e-1&&(py(t,i),kp(e,i))}this._attachedToViewContainer=!1}mD(this._lView[1],this._lView)}onDestroy(t){sI(this._lView[1],this._lView,null,t)}markForCheck(){jy(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function zy(n,t,e){const i=t[10];i.begin&&i.begin();try{rd(n,t,n.template,e)}catch(r){throw _I(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Nj(n,t){id(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t}}class rH extends od{constructor(t){super(t),this._view=t}detectChanges(){!function mI(n){!function iH(n){for(let t=0;t0&&by(c,d,b.join(" "))}if(A=mb(f,22),void 0!==e){const E=A.projection=[];for(let b=0;b=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Sp(r.hostAttrs,e=Sp(e,r.hostAttrs))}}(i)}function Yy(n){return n===ds?{}:n===qe?[]:n}function fH(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function gH(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function mH(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let rf=null;function xa(){if(!rf){const n=mt.Symbol;if(n&&n.iterator)rf=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(rn(D[i.index])):i.index;let b=null;if(!a&&l&&(b=function SH(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,p=!1;else{o=RI(i,t,d,o,!1);const D=e.listen(A,r,o);h.push(o,D),u&&u.push(r,E,y,y+1)}}else o=RI(i,t,d,o,!1);const f=i.outputs;let g;if(p&&null!==f&&(g=f[r])){const m=g.length;if(m)for(let A=0;A0;)t=t[15],n--;return t}(n,Ie.lFrame.contextLView))[8]}(n)}function xH(n,t){let e=null;const i=function Xj(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function WI(n){return n.substring(gn.key,gn.keyEnd)}function kH(n){return n.substring(gn.value,gn.valueEnd)}function JI(n,t){const e=gn.textEnd;return e===t?-1:(t=gn.keyEnd=function RH(n,t,e){for(;t32;)t++;return t}(n,gn.key=t,e),dc(n,t,e))}function KI(n,t){const e=gn.textEnd;let i=gn.key=dc(n,t,e);return e===i?-1:(i=gn.keyEnd=function NH(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=qI(n,i,e),i=gn.value=dc(n,i,e),i=gn.valueEnd=function LH(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),qI(n,i,e))}function $I(n){gn.key=0,gn.keyEnd=0,gn.value=0,gn.valueEnd=0,gn.textEnd=n.length}function dc(n,t,e){for(;t=0;e=KI(t,e))tS(n,WI(t),kH(t))}function Gt(n){Ir(Ti,qr,n,!0)}function qr(n,t){for(let e=function PH(n){return $I(n),JI(n,dc(n,0,gn.textEnd))}(t);e>=0;e=JI(t,e))Ti(n,WI(t),!0)}function Dr(n,t,e,i){const r=N(),o=Ke(),s=Bo(2);o.firstUpdatePass&&eS(o,n,s,i),t!==Se&&Ln(r,s,t)&&nS(o,o.data[ti()],r,r[11],n,r[s+1]=function YH(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=rt(Bi(n)))),n}(t,e),i,s)}function Ir(n,t,e,i){const r=Ke(),o=Bo(2);r.firstUpdatePass&&eS(r,null,o,i);const s=N();if(e!==Se&&Ln(s,o,e)){const a=r.data[ti()];if(rS(a,i)&&!ZI(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Mo(l,e||"")),Jy(r,a,s,e,i)}else!function GH(n,t,e,i,r,o,s,a){r===Se&&(r=qe);let l=0,c=0,u=0=n.expandoStartIndex}function eS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[ti()],s=ZI(n,e);rS(o,i)&&null===t&&!s&&(t=!1),t=function UH(n,t,e,i){const r=function Eb(n){const t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=ud(e=qy(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=qy(r,n,t,e,i),null===o){let l=function jH(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Fo(i))return n[wr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=qy(null,n,t,l[1],i),l=ud(l,t.attrs,i),function zH(n,t,e,i){n[wr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function HH(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=wr(n[a+1]);n[i+1]=Kp(h,a),0!==h&&(n[h+1]=wy(n[h+1],i)),n[a+1]=function vz(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Kp(a,0),0!==a&&(n[a+1]=wy(n[a+1],i)),a=i;else n[i+1]=Kp(l,0),0===a?a=i:n[l+1]=wy(n[l+1],i),l=i;c&&(n[i+1]=My(n[i+1])),YI(n,u,i,!0),YI(n,u,i,!1),function BH(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Hl(o,t)>=0&&(e[i+1]=Dy(e[i+1]))}(t,u,n,i,o),s=Kp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function qy(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Se&&(h=d?qe:void 0);let p=d?kb(h,i):u===i?h:void 0;if(c&&!lf(p)&&(p=kb(l,i)),lf(p)&&(a=p,s))return a;const f=n[r+1];r=s?wr(f):Fo(f)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=kb(l,i))}return a}function lf(n){return void 0!==n}function rS(n,t){return 0!=(n.flags&(t?16:32))}function de(n,t=""){const e=N(),i=Ke(),r=n+22,o=i.firstCreatePass?ec(i,r,1,t,null):i.data[r],s=e[r]=function dy(n,t){return n.createText(t)}(e[11],t);Yp(i,e,s,o),Hr(o,!1)}function pt(n){return Xr("",n,""),pt}function Xr(n,t,e){const i=N(),r=function ic(n,t,e,i){return Ln(n,Fl(),e)?t+we(e)+i:Se}(i,n,t,e);return r!==Se&&Ro(i,ti(),r),Xr}function cf(n,t,e,i,r){const o=N(),s=rc(o,n,t,e,i,r);return s!==Se&&Ro(o,ti(),s),cf}const pc="en-US";let wS=pc;function e_(n,t,e,i,r){if(n=he(n),Array.isArray(n))for(let o=0;o>20;if(Ia(n)||!n.multi){const p=new Ru(l,r,T),f=n_(a,t,r?u:u+h,d);-1===f?(Bp(Lu(c,s),o,a),t_(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[f]=p,s[f]=p)}else{const p=n_(a,t,u+h,d),f=n_(a,t,u,u+h),g=p>=0&&e[p],m=f>=0&&e[f];if(r&&!m||!r&&!g){Bp(Lu(c,s),o,a);const A=function d4(n,t,e,i,r){const o=new Ru(n,e,T);return o.multi=[],o.index=t,o.componentProviders=0,$S(o,r,i&&!e),o}(r?u4:c4,e.length,r,i,l);!r&&m&&(e[f].providerFactory=A),t_(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(A),s.push(A)}else t_(o,n,p>-1?p:f,$S(e[r?f:p],l,!r&&i));!r&&i&&m&&e[f].componentProviders++}}}function t_(n,t,e,i){const r=Ia(t),o=function jU(n){return!!n.useClass}(t);if(r||o){const l=(o?he(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function $S(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function n_(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function l4(n,t,e){const i=Ke();if(i.firstCreatePass){const r=vr(n);e_(e,i.data,i.blueprint,r,!0),e_(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Oa{}class qS{}class XS extends Oa{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Gy(this);const i=z(t);this._bootstrapComponents=Po(i.bootstrap),this._r3Injector=QD(t,e,[{provide:Oa,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],rt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class r_ extends qS{constructor(t){super(),this.moduleType=t}create(t){return new XS(this.moduleType,t)}}class p4 extends Oa{constructor(t,e,i){super(),this.componentFactoryResolver=new Gy(this),this.instance=null;const r=new q0([...t,{provide:Oa,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],e||Vp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ff(n,t,e=null){return new p4(n,t,e).injector}let f4=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=W0(0,e.type),r=i.length>0?ff([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Y({token:n,providedIn:"environment",factory:()=>new n(j(ms))}),n})();function ZS(n){n.getStandaloneInjector=t=>t.get(f4).getOrCreateStandaloneInjector(n)}function Zr(n,t,e){const i=ei()+n,r=N();return r[i]===Se?Kr(r,i,e?t.call(e):t()):ld(r,i)}function Wt(n,t,e,i){return ax(N(),ei(),n,t,e,i)}function Ji(n,t,e,i,r){return function lx(n,t,e,i,r,o,s){const a=t+e;return Ta(n,a,r,o)?Kr(n,a+2,s?i.call(s,r,o):i(r,o)):gd(n,a+2)}(N(),ei(),n,t,e,i,r)}function ka(n,t,e,i,r,o){return function cx(n,t,e,i,r,o,s,a){const l=t+e;return function sf(n,t,e,i,r){const o=Ta(n,t,e,i);return Ln(n,t+2,r)||o}(n,l,r,o,s)?Kr(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):gd(n,l+3)}(N(),ei(),n,t,e,i,r,o)}function gf(n,t,e,i,r,o,s){return function ux(n,t,e,i,r,o,s,a,l){const c=t+e;return Wi(n,c,r,o,s,a)?Kr(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):gd(n,c+4)}(N(),ei(),n,t,e,i,r,o,s)}function gd(n,t){const e=n[t];return e===Se?void 0:e}function ax(n,t,e,i,r,o){const s=t+e;return Ln(n,s,r)?Kr(n,s+1,o?i.call(o,r):i(r)):gd(n,s+1)}function Pa(n,t){const e=Ke();let i;const r=n+22;e.firstCreatePass?(i=function I4(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=wa(i.type)),s=hi(T);try{const a=xp(!1),l=o();return xp(a),function wH(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,N(),r,l),l}finally{hi(s)}}function Fa(n,t,e){const i=n+22,r=N(),o=Pl(r,i);return function md(n,t){return n[1].data[t].pure}(r,i)?ax(r,ei(),t,o.transform,e,o):o.transform(e)}function s_(n){return t=>{setTimeout(n,void 0,t)}}const te=class O4 extends Me{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=s_(o),r&&(r=s_(r)),s&&(s=s_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof We&&t.add(a),a}};function k4(){return this._results[xa()]()}class Ad{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xa(),i=Ad.prototype;i[e]||(i[e]=k4)}get changes(){return this._changes||(this._changes=new te)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=xi(t);(this._changesDetected=!function Q2(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=R4,n})();const P4=eo,F4=class extends P4{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Xp(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Zp(i,r,t),new od(r)}};function R4(){return mf(pn(),N())}function mf(n,t){return 4&n.type?new F4(t,n,Jl(n,t)):null}let Pi=(()=>{class n{}return n.__NG_ELEMENT_ID__=N4,n})();function N4(){return fx(pn(),N())}const L4=Pi,hx=class extends L4{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Jl(this._hostTNode,this._hostLView)}get injector(){return new Ll(this._hostTNode,this._hostLView)}get parentInjector(){const t=Tp(this._hostTNode,this._hostLView);if(a0(t)){const e=Nl(t,this._hostLView),i=Rl(t);return new Ll(e[1].data[i+8],e)}return new Ll(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=px(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function zu(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new sd(ot(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(ms,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function s2(n){return Cr(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new hx(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function Qj(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=bf,this.reject=bf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(j(yf,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yd=new $("AppId",{providedIn:"root",factory:function Lx(){return`${A_()}${A_()}${A_()}`}});function A_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qx=new $("Platform Initializer"),Ef=new $("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ux=new $("appBootstrapListener"),jx=new $("AnimationModuleType");let hG=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const No=new $("LocaleId",{providedIn:"root",factory:()=>Xt(No,pe.Optional|pe.SkipSelf)||function pG(){return typeof $localize<"u"&&$localize.locale||pc}()});class gG{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let b_=(()=>{class n{compileModuleSync(e){return new r_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Po(z(e).declarations).reduce((s,a)=>{const l=ot(a);return l&&s.push(new sd(l)),s},[]);return new gG(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bG=(()=>Promise.resolve(0))();function y_(n){typeof Zone>"u"?bG.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class At{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new te(!1),this.onMicrotaskEmpty=new te(!1),this.onStable=new te(!1),this.onError=new te(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function yG(){let n=mt.requestAnimationFrame,t=mt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function CG(n){const t=()=>{!function EG(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(mt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,E_(n),n.isCheckStableRunning=!0,__(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),E_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Vx(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Gx(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Vx(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Gx(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,E_(n),__(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!At.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(At.isInAngularZone())throw new P(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,_G,bf,bf);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _G={};function __(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function E_(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Vx(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Gx(n){n._nesting--,__(n)}class vG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new te,this.onMicrotaskEmpty=new te,this.onStable=new te,this.onError=new te}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const Yx=new $(""),Cf=new $("");let M_,C_=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,M_||(function MG(n){M_=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.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:()=>{At.assertNotInAngularZone(),y_(()=>{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())y_(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(v_),j(Cf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),v_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return M_?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Es=null;const Wx=new $("AllowMultipleToken"),w_=new $("PlatformDestroyListeners");class Jx{constructor(t,e){this.name=t,this.token=e}}function $x(n,t,e=[]){const i=`Platform: ${t}`,r=new $(i);return(o=[])=>{let s=D_();if(!s||s.injector.get(Wx,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function IG(n){if(Es&&!Es.get(Wx,!1))throw new P(400,!1);Es=n;const t=n.get(Xx);(function Kx(n){const t=n.get(Qx,null);t&&t.forEach(e=>e())})(n)}(function qx(n=[],t){return Sn.create({name:t,providers:[{provide:Wb,useValue:"platform"},{provide:w_,useValue:new Set([()=>Es=null])},...n]})}(a,i))}return function xG(n){const t=D_();if(!t)throw new P(401,!1);return t}()}}function D_(){return Es?.get(Xx)??null}let Xx=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function eT(n,t){let e;return e="noop"===n?new vG:("zone.js"===n?void 0:n)||new At(t),e}(i?.ngZone,function Zx(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:At,useValue:r}];return r.run(()=>{const s=Sn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get($l,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{vf(this._modules,a),c.unsubscribe()})}),function tT(n,t,e){try{const i=e();return cd(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_f);return c.runInitializers(),c.donePromise.then(()=>(function DS(n){Zn(n,"Expected localeId to be defined"),"string"==typeof n&&(wS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(No,pc)||pc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=nT({},i);return function wG(n,t,e){const i=new r_(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ra);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new P(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(w_,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(j(Sn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function nT(n,t){return Array.isArray(t)?t.reduce(nT,n):{...n,...t}}let Ra=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new et(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new et(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{At.assertNotInAngularZone(),y_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{At.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=ya(o,s.pipe(function hp(){return n=>_a()(function dp(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new tb(r,t));const o=Object.create(i,eb);return o.source=i,o.subjectFactory=r,o}}(vo)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Z0;if(!this._injector.get(_f).done)throw!r&&function R(n){const t=ot(n)||_(n)||M(n);return null!==t&&t.standalone}(e),new P(405,false);let s;s=r?e:this._injector.get(As).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function DG(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Oa),c=s.create(Sn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(Yx,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),vf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;vf(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ux,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>vf(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new P(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(ms),j($l))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vf(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let rT=!0,oT=!1,oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=kG,n})();function kG(n){return function PG(n,t,e){if(yp(n)&&!e){const i=Si(n.index,t);return new od(i,i)}return 47&n.type?new od(t[16],t):null}(pn(),N(),16==(16&n))}class cT{constructor(){}supports(t){return ad(t)}create(t){return new UG(t)}}const QG=(n,t)=>t;class UG{constructor(t){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=t||QG}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new jG(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new uT),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jG{constructor(t,e){this.item=t,this.trackById=e,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 zG{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class uT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new zG,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new VG(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class VG{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pT(){return new Df([new cT])}let Df=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||pT()),deps:[[n,new Ju,new Wu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:pT}),n})();function fT(){return new _d([new hT])}let _d=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||fT()),deps:[[n,new Ju,new Wu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:fT}),n})();const WG=$x(null,"core",[]);let JG=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(j(Ra))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();let If=null;function to(){return If}const Jt=new $("DocumentToken");let B_=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return function XG(){return j(gT)}()},providedIn:"platform"}),n})();const ZG=new $("Location Initialized");let gT=(()=>{class n extends B_{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return to().getBaseHref(this._doc)}onPopState(e){const i=to().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=to().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){mT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){mT()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(){return function eY(){return new gT(j(Jt))}()},providedIn:"platform"}),n})();function mT(){return!!window.history.pushState}function O_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function AT(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Uo(n){return n&&"?"!==n[0]?"?"+n:n}let La=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(yT)},providedIn:"root"}),n})();const bT=new $("appBaseHref");let yT=(()=>{class n extends La{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Xt(Jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return O_(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Uo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Uo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Uo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B_),j(bT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tY=(()=>{class n extends La{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=O_(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Uo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Uo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B_),j(bT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),k_=(()=>{class n{constructor(e){this._subject=new te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=AT(_T(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Uo(i))}normalize(e){return n.stripTrailingSlash(function iY(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,_T(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Uo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Uo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Uo,n.joinWithSlash=O_,n.stripTrailingSlash=AT,n.\u0275fac=function(e){return new(e||n)(j(La))},n.\u0275prov=Y({token:n,factory:function(){return function nY(){return new k_(j(La))}()},providedIn:"root"}),n})();function _T(n){return n.replace(/\/index.html$/,"")}function xT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Un=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ad(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${rt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(T(Df),T(_d),T(St),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class jY{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,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 qi=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new jY(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),OT(a,r)}});for(let r=0,o=i.length;r{OT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(Df))},n.\u0275dir=ue({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function OT(n,t){n.context.$implicit=t.item}let Pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new HY,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){kT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){kT("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo))},n.\u0275dir=ue({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class HY{constructor(){this.$implicit=null,this.ngIf=null}}function kT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${rt(t)}'.`)}class H_{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vd=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new H_(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(vd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),G_=(()=>{class n{constructor(e,i,r){r._addDefault(new H_(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Pi),T(eo),T(vd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Xi=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:bi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(_d),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),zo=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(T(Pi))},n.\u0275dir=ue({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ai]}),n})();function Tr(n,t){return new P(2100,!1)}class GY{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class YY{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const WY=new YY,JY=new GY;let FT=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(cd(e))return WY;if(OI(e))return JY;throw Tr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(T(oi,16))},n.\u0275pipe=In({name:"async",type:n,pure:!1,standalone:!0}),n})(),Y_=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Tr();return e.toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const KY=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5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E4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let RT=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Tr();return e.replace(KY,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),Kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const LT="browser";let f3=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>new g3(j(Jt),window)}),n})();class g3{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function m3(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=QT(this.window.history)||QT(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function QT(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class UT{}class q_ extends class P3 extends class qG{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function $G(n){If||(If=n)}(new q_)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function F3(){return wd=wd||document.querySelector("base"),wd?wd.getAttribute("href"):null}();return null==e?null:function R3(n){Lf=Lf||document.createElement("a"),Lf.setAttribute("href",n);const t=Lf.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){wd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xT(document.cookie,t)}}let Lf,wd=null;const VT=new $("TRANSITION_ID"),L3=[{provide:yf,useFactory:function N3(n,t,e){return()=>{e.get(_f).donePromise.then(()=>{const i=to(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Qf=new $("EventManagerPlugins");let Uf=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Dd=(()=>{class n extends YT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(WT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(WT))}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function WT(n){to().remove(n)}const X_={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/"},Z_=/%COMP%/g;function jf(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let zf=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new eE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ii.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Y3(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ii.ShadowDom:return new W3(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=jf(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(j(Uf),j(Dd),j(yd))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class eE{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(X_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(XT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(XT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=X_[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=X_[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(bi.DashCase|bi.Important)?t.style.setProperty(e,i,r&bi.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&bi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$T(i)):this.eventManager.addEventListener(t,e,$T(i))}}function XT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Y3 extends eE{constructor(t,e,i,r){super(t),this.component=i;const o=jf(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function H3(n){return"_ngcontent-%COMP%".replace(Z_,n)}(r+"-"+i.id),this.hostAttr=function V3(n){return"_nghost-%COMP%".replace(Z_,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class W3 extends eE{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=jf(r.id,r.styles,[]);for(let s=0;s{class n extends GT{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const ZT=["alt","control","meta","shift"],K3={"\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"},$3={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let q3=(()=>{class n extends GT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>to().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),ZT.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=K3[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),ZT.forEach(s=>{s!==r&&(0,$3[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const t1=[{provide:Ef,useValue:LT},{provide:Qx,useValue:function X3(){q_.makeCurrent()},multi:!0},{provide:Jt,useFactory:function e5(){return function uU(n){Nb=n}(document),document},deps:[]}],t5=$x(WG,"browser",t1),n1=new $(""),r1=[{provide:Cf,useClass:class Q3{addToWindow(t){mt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),mt.getAllAngularRootElements=()=>t.getAllRootElements(),mt.frameworkStabilizers||(mt.frameworkStabilizers=[]),mt.frameworkStabilizers.push(i=>{const r=mt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?to().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:Yx,useClass:C_,deps:[At,v_,Cf]},{provide:C_,useClass:C_,deps:[At,v_,Cf]}],o1=[{provide:Wb,useValue:"root"},{provide:$l,useFactory:function Z3(){return new $l},deps:[]},{provide:Qf,useClass:J3,multi:!0,deps:[Jt,At,Ef]},{provide:Qf,useClass:q3,multi:!0,deps:[Jt]},{provide:zf,useClass:zf,deps:[Uf,Dd,yd]},{provide:ed,useExisting:zf},{provide:YT,useExisting:Dd},{provide:Dd,useClass:Dd,deps:[Jt]},{provide:Uf,useClass:Uf,deps:[Qf,At]},{provide:UT,useClass:U3,deps:[]},[]];let s1=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:yd,useValue:e.appId},{provide:VT,useExisting:yd},L3]}}}return n.\u0275fac=function(e){return new(e||n)(j(n1,12))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[...o1,...r1],imports:[Kt,JG]}),n})(),a1=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function r5(){return new a1(j(Jt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let iE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new(e||n):j(rE),i},providedIn:"root"}),n})(),rE=(()=>{class n extends iE{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case It.NONE:return i;case It.HTML:return Gr(i,"HTML")?Bi(i):z0(this._doc,String(i)).toString();case It.STYLE:return Gr(i,"Style")?Bi(i):i;case It.SCRIPT:if(Gr(i,"Script"))return Bi(i);throw new Error("unsafe value used in a script context");case It.URL:return Gr(i,"URL")?Bi(i):qu(String(i));case It.RESOURCE_URL:if(Gr(i,"ResourceURL"))return Bi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function yU(n){return new pU(n)}(e)}bypassSecurityTrustStyle(e){return function _U(n){return new fU(n)}(e)}bypassSecurityTrustScript(e){return function EU(n){return new gU(n)}(e)}bypassSecurityTrustUrl(e){return function CU(n){return new mU(n)}(e)}bypassSecurityTrustResourceUrl(e){return function vU(n){return new AU(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function d5(n){return new rE(n.get(Jt))}(j(Sn)),i},providedIn:"root"}),n})();function ae(...n){let t=n[n.length-1];return as(t)?(n.pop(),Ml(n,t)):cs(n)}function Ho(n,t){return nn(n,t,1)}function Zi(n,t){return function(i){return i.lift(new h5(n,t))}}class h5{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new p5(t,this.predicate,this.thisArg))}}class p5 extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class u1{}class d1{}class Br{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Br?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Br;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Br?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f5{encodeKey(t){return h1(t)}encodeValue(t){return h1(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const m5=/%(\d[a-f0-9])/gi,A5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function h1(n){return encodeURIComponent(n).replace(m5,(t,e)=>A5[e]??t)}function Hf(n){return`${n}`}class vs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Hf):[Hf(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new vs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Hf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Hf(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function p1(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function f1(n){return typeof Blob<"u"&&n instanceof Blob}function g1(n){return typeof FormData<"u"&&n instanceof FormData}class Id{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function y5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Br),this.context||(this.context=new b5),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Id(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var jt=(()=>((jt=jt||{})[jt.Sent=0]="Sent",jt[jt.UploadProgress=1]="UploadProgress",jt[jt.ResponseHeader=2]="ResponseHeader",jt[jt.DownloadProgress=3]="DownloadProgress",jt[jt.Response=4]="Response",jt[jt.User=5]="User",jt))();class oE{constructor(t,e=200,i="OK"){this.headers=t.headers||new Br,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class sE extends oE{constructor(t={}){super(t),this.type=jt.ResponseHeader}clone(t={}){return new sE({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Vf extends oE{constructor(t={}){super(t),this.type=jt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Vf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class m1 extends oE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function aE(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ac=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Id)o=e;else{let l,c;l=r.headers instanceof Br?r.headers:new Br(r.headers),r.params&&(c=r.params instanceof vs?r.params:new vs({fromObject:r.params})),o=new Id(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=ae(o).pipe(Ho(l=>this.handler.handle(l)));if(e instanceof Id||"events"===r.observe)return s;const a=s.pipe(Zi(l=>l instanceof Vf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new vs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,aE(r,i))}post(e,i,r={}){return this.request("POST",e,aE(r,i))}put(e,i,r={}){return this.request("PUT",e,aE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(j(u1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class A1{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const b1=new $("HTTP_INTERCEPTORS");let E5=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const C5=/^\)\]\}',?\n/;let y1=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new et(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,f)=>r.setRequestHeader(p,f.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=r.statusText||"OK",f=new Br(r.getAllResponseHeaders()),g=function v5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new sE({headers:f,status:r.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof r.response>"u"?r.responseText:r.response),0===f&&(f=A?200:0);let y=f>=200&&f<300;if("json"===e.responseType&&"string"==typeof A){const E=A;A=A.replace(C5,"");try{A=""!==A?JSON.parse(A):null}catch(b){A=E,y&&(y=!1,A={error:b,text:A})}}y?(i.next(new Vf({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new m1({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new m1({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:jt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===e.responseType&&!!r.responseText&&(f.partialText=r.responseText),i.next(f)},h=p=>{let f={type:jt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:jt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(j(UT))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const lE=new $("XSRF_COOKIE_NAME"),cE=new $("XSRF_HEADER_NAME");class _1{}let M5=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(Ef),j(lE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),uE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(_1),j(cE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),w5=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(b1,[]);this.chain=i.reduceRight((r,o)=>new A1(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(d1),j(Sn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),D5=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:uE,useClass:E5}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:lE,useValue:e.cookieName}:[],e.headerName?{provide:cE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[uE,{provide:b1,useExisting:uE,multi:!0},{provide:_1,useClass:M5},{provide:lE,useValue:"XSRF-TOKEN"},{provide:cE,useValue:"X-XSRF-TOKEN"}]}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[Ac,{provide:u1,useClass:w5},y1,{provide:d1,useExisting:y1}],imports:[D5.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class I5 extends We{constructor(t,e){super()}schedule(t,e=0){return this}}class Gf extends I5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let E1=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Or extends E1{constructor(t,e=E1.now){super(t,()=>Or.delegate&&Or.delegate!==this?Or.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Or.delegate&&Or.delegate!==this?Or.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const hE=new class x5 extends Or{}(class S5 extends Gf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),T5=hE,bc=new et(n=>n.complete());function Yf(n){return n?function B5(n){return new et(t=>n.schedule(()=>t.complete()))}(n):bc}function Ms(n,t){return new et(t?e=>t.schedule(O5,0,{error:n,subscriber:e}):e=>e.error(n))}function O5({error:n,subscriber:t}){t.error(n)}class er{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ae(this.value);case"E":return Ms(this.error);case"C":return Yf()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new er("N",t):er.undefinedValueNotification}static createError(t){return new er("E",void 0,t)}static createComplete(){return er.completeNotification}}er.completeNotification=new er("C"),er.undefinedValueNotification=new er("N",void 0);class Wf extends Ge{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Wf.dispatch,this.delay,new P5(t,this.destination)))}_next(t){this.scheduleMessage(er.createNext(t))}_error(t){this.scheduleMessage(er.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(er.createComplete()),this.unsubscribe()}}class P5{constructor(t,e){this.notification=t,this.destination=e}}class Jf extends Me{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new F5(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new br;if(this.isStopped||this.hasError?s=We.EMPTY:(this.observers.push(t),s=new mu(this,t)),r&&t.add(t=new Wf(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class F5{constructor(t,e){this.time=t,this.value=e}}function Fi(n,t){return"function"==typeof t?e=>e.pipe(Fi((i,r)=>Lt(n(i,r)).pipe(fe((o,s)=>t(i,o,r,s))))):e=>e.lift(new R5(n))}class R5{constructor(t){this.project=t}call(t,e){return e.subscribe(new N5(t,this.project))}}class N5 extends Aa{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ma(this),r=this.destination;r.add(i),this.innerSubscription=ba(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Kf={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return Kf.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return Kf.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let pE;function Y5(n,t,e){let i=e;return function Q5(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function j5(n,t){if(!pE){const e=Element.prototype;pE=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&pE.call(n,t)}(n,r)||(i=o,0))),i}class J5{constructor(t,e){this.componentFactory=e.get(As).resolveComponentFactory(t)}create(t){return new K5(this.componentFactory,t)}}class K5{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Jf(1),this.events=this.eventEmitters.pipe(Fi(i=>ya(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(At),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Kf.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function z5(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Sn.create({providers:[],parent:this.injector}),i=function G5(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(fe(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Kf.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Qw(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class $5 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function $f(n,t){return new et(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let C1=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(T(Wr),T(St))},n.\u0275dir=ue({type:n}),n})(),Qa=(()=>{class n extends C1{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275dir=ue({type:n,features:[lt]}),n})();const Ri=new $("NgValueAccessor"),e8={provide:Ri,useExisting:Je(()=>yc),multi:!0},n8=new $("CompositionEventMode");let yc=(()=>{class n extends C1{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function t8(){const n=to()?to().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Wr),T(St),T(n8,8))},n.\u0275dir=ue({type:n,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(e,i){1&e&&K("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[yt([e8]),lt]}),n})();function ws(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function M1(n){return null!=n&&"number"==typeof n.length}const zn=new $("NgValidators"),Ds=new $("NgAsyncValidators"),r8=/^(?=.{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 fE{static min(t){return function w1(n){return t=>{if(ws(t.value)||ws(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(ws(t.value)||ws(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function I1(n){return ws(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function S1(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function x1(n){return ws(n.value)||r8.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function T1(n){return t=>ws(t.value)||!M1(t.value)?null:t.value.lengthM1(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function O1(n){if(!n)return qf;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ws(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return L1(t)}static composeAsync(t){return Q1(t)}}function qf(n){return null}function k1(n){return null!=n}function P1(n){return cd(n)?Lt(n):n}function F1(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function R1(n,t){return t.map(e=>e(n))}function N1(n){return n.map(t=>function o8(n){return!n.validate}(t)?t:e=>t.validate(e))}function L1(n){if(!n)return null;const t=n.filter(k1);return 0==t.length?null:function(e){return F1(R1(e,t))}}function gE(n){return null!=n?L1(N1(n)):null}function Q1(n){if(!n)return null;const t=n.filter(k1);return 0==t.length?null:function(e){return function X5(...n){if(1===n.length){const t=n[0];if(Ar(t))return $f(t,null);if(da(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return $f(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return $f(n=1===n.length&&Ar(n[0])?n[0]:n,null).pipe(fe(e=>t(...e)))}return $f(n,null)}(R1(e,t).map(P1)).pipe(fe(F1))}}function mE(n){return null!=n?Q1(N1(n)):null}function U1(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function j1(n){return n._rawValidators}function z1(n){return n._rawAsyncValidators}function AE(n){return n?Array.isArray(n)?n:[n]:[]}function Xf(n,t){return Array.isArray(n)?n.includes(t):n===t}function H1(n,t){const e=AE(t);return AE(n).forEach(r=>{Xf(e,r)||e.push(r)}),e}function V1(n,t){return AE(t).filter(e=>!Xf(n,e))}class G1{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(t){this._rawValidators=t||[],this._composedValidatorFn=gE(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class si extends G1{get formDirective(){return null}get path(){return null}}class Is extends G1{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Y1{constructor(t){this._cd=t}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 Sd=(()=>{class n extends Y1{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Is,2))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&_s("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[lt]}),n})(),Zf=(()=>{class n extends Y1{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(si,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&_s("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[lt]}),n})();const xd="VALID",tg="INVALID",_c="PENDING",Td="DISABLED";function EE(n){return(ng(n)?n.validators:n)||null}function J1(n){return Array.isArray(n)?gE(n):n||null}function CE(n,t){return(ng(t)?t.asyncValidators:n)||null}function K1(n){return Array.isArray(n)?mE(n):n||null}function ng(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function $1(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new P(1e3,"");if(!i[e])throw new P(1001,"")}function q1(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new P(1002,"")})}class ig{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=J1(this._rawValidators),this._composedAsyncValidatorFn=K1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===xd}get invalid(){return this.status===tg}get pending(){return this.status==_c}get disabled(){return this.status===Td}get enabled(){return this.status!==Td}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=J1(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=K1(t)}addValidators(t){this.setValidators(H1(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(H1(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(V1(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(V1(t,this._rawAsyncValidators))}hasValidator(t){return Xf(this._rawValidators,t)}hasAsyncValidator(t){return Xf(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=_c,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Td,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=xd,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xd||this.status===_c)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Td:xd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_c,this._hasOwnPendingAsyncValidator=!0;const e=P1(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new te,this.statusChanges=new te}_calculateStatus(){return this._allControlsDisabled()?Td:this.errors?tg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_c)?_c:this._anyControlsHaveStatus(tg)?tg:xd}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ng(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Bd extends ig{constructor(t,e,i){super(EE(e),CE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){q1(this,0,t),Object.keys(t).forEach(i=>{$1(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class X1 extends Bd{}function rg(n,t){return[...t.path,n]}function Od(n,t){vE(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function p8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Z1(n,t)})}(n,t),function g8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function f8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Z1(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function h8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function og(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),ag(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function sg(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function vE(n,t){const e=j1(n);null!==t.validator?n.setValidators(U1(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=z1(n);null!==t.asyncValidator?n.setAsyncValidators(U1(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();sg(t._rawValidators,r),sg(t._rawAsyncValidators,r)}function ag(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=j1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=z1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return sg(t._rawValidators,i),sg(t._rawAsyncValidators,i),e}function Z1(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function ME(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function wE(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===yc?e=o:function b8(n){return Object.getPrototypeOf(n.constructor)===Qa}(o)?i=o:r=o}),r||i||e||null}function iB(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function rB(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Pd=class extends ig{constructor(t=null,e,i){super(EE(e),CE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ng(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=rB(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){iB(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){iB(this._onDisabledChange,t)}_forEachChild(t){}_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(t){rB(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},v8={provide:Is,useExisting:Je(()=>lg)},aB=(()=>Promise.resolve(null))();let lg=(()=>{class n extends Is{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Pd,this._registered=!1,this.update=new te,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=wE(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ME(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Od(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){aB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Qo(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);aB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?rg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(T(si,9),T(zn,10),T(Ds,10),T(Ri,10),T(oi,8))},n.\u0275dir=ue({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([v8]),lt,Ai]}),n})(),cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ue({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),cB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const IE=new $("NgModelWithFormControlWarning"),x8={provide:si,useExisting:Je(()=>Ec)};let Ec=(()=>{class n extends si{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new te,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ag(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Od(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){og(e.control||null,e,!1),function y8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function nB(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(og(i||null,e),(n=>n instanceof Pd)(r)&&(Od(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function eB(n,t){vE(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function m8(n,t){return ag(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){vE(this.form,this),this._oldForm&&ag(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(T(zn,10),T(Ds,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&K("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yt([x8]),lt,Ai]}),n})();const O8={provide:Is,useExisting:Je(()=>Fd)};let Fd=(()=>{class n extends Is{constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new te,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=wE(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),ME(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return rg(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}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(T(si,13),T(zn,10),T(Ds,10),T(Ri,10),T(IE,8))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yt([O8]),lt,Ai]}),n})(),wB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[cB]}),n})(),ug=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[wB]}),n})(),Rd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:IE,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[wB]}),n})();class DB extends ig{constructor(t,e,i){super(EE(e),CE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){q1(this,0,t),t.forEach((i,r)=>{$1(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function IB(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let kE=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return IB(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Bd(r,o)}record(e,i=null){const r=this._reduceControls(e);return new X1(r,i)}control(e,i,r){let o={};return this.useNonNullable?(IB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Pd(e,{...o,nonNullable:!0})):new Pd(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new DB(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Pd||e instanceof ig?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:Rd}),n})();class SB{}const Vo="*";function J8(n,t){return{type:7,name:n,definitions:t,options:{}}}function xB(n,t=null){return{type:4,styles:t,timings:n}}function TB(n,t=null){return{type:2,steps:n,options:t}}function dg(n){return{type:6,styles:n,offset:null}}function BB(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function OB(n){Promise.resolve(null).then(n)}class Nd{constructor(t=0,e=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){OB(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class kB{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?OB(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function PB(n){return new P(3e3,!1)}function xW(){return typeof window<"u"&&typeof window.document<"u"}function FE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ss(n){switch(n.length){case 0:return new Nd;case 1:return n[0];default:return new kB(n)}}function FB(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=t.normalizePropertyName(m,s),A){case"!":A=r.get(g);break;case Vo:A=o.get(g);break;default:A=t.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function AW(n){return new P(3502,!1)}();return a}function RE(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&NE(e,"start",n)));break;case"done":n.onDone(()=>i(e&&NE(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&NE(e,"destroy",n)))}}function NE(n,t,e){const o=LE(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function LE(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ni(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function RB(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let QE=(n,t)=>!1,NB=(n,t,e)=>[],LB=null;function UE(n){const t=n.parentNode||n.host;return t===LB?null:t}(FE()||typeof Element<"u")&&(xW()?(LB=(()=>document.documentElement)(),QE=(n,t)=>{for(;t;){if(t===n)return!0;t=UE(t)}return!1}):QE=(n,t)=>n.contains(t),NB=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let ja=null,QB=!1;const UB=QE,jB=NB;let zB=(()=>{class n{validateStyleProperty(e){return function BW(n){ja||(ja=function OW(){return typeof document<"u"?document.body:null}()||{},QB=!!ja.style&&"WebkitAppearance"in ja.style);let t=!0;return ja.style&&!function TW(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ja.style,!t&&QB&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ja.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return UB(e,i)}getParentElement(e){return UE(e)}query(e,i,r){return jB(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Nd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),jE=(()=>{class n{}return n.NOOP=new zB,n})();const zE="ng-enter",hg="ng-leave",pg="ng-trigger",fg=".ng-trigger",VB="ng-animating",HE=".ng-animating";function xs(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:VE(parseFloat(t[1]),t[2])}function VE(n,t){return"s"===t?1e3*n:n}function gg(n,t,e){return n.hasOwnProperty("duration")?n:function FW(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(PB()),{duration:0,delay:0,easing:""};r=VE(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=VE(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function K8(){return new P(3100,!1)}()),a=!0),o<0&&(t.push(function $8(){return new P(3101,!1)}()),a=!0),a&&t.splice(l,0,PB())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Ld(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function GB(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ts(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function WB(n,t,e){return e?t+":"+e+";":""}function JB(n){let t="";for(let e=0;e{const o=YE(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),FE()&&JB(n))}function za(n,t){n.style&&(t.forEach((e,i)=>{const r=YE(i);n.style[r]=""}),FE()&&JB(n))}function Qd(n){return Array.isArray(n)?1==n.length?n[0]:TB(n):n}const GE=new RegExp("{{\\s*(.+?)\\s*}}","g");function KB(n){let t=[];if("string"==typeof n){let e;for(;e=GE.exec(n);)t.push(e[1]);GE.lastIndex=0}return t}function mg(n,t,e){const i=n.toString(),r=i.replace(GE,(o,s)=>{let a=t[s];return null==a&&(e.push(function X8(n){return new P(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Ag(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const LW=/-+([a-z0-9])/g;function YE(n){return n.replace(LW,(...t)=>t[1].toUpperCase())}function QW(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Li(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function Z8(n){return new P(3004,!1)}()}}function $B(n,t){return window.getComputedStyle(n)[t]}function GW(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function YW(n,t,e){if(":"==n[0]){const l=function WW(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function hW(n){return new P(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(qB(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(qB(s,r))}(i,e,t)):e.push(n),e}const Eg=new Set(["true","1"]),Cg=new Set(["false","0"]);function qB(n,t){const e=Eg.has(n)||Cg.has(n),i=Eg.has(t)||Cg.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Eg.has(n):Cg.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Eg.has(t):Cg.has(t)),s&&a}}const JW=new RegExp("s*:selfs*,?","g");function WE(n,t,e,i){return new KW(n).build(t,e,i)}class KW{constructor(t){this._driver=t}build(t,e,i){const r=new XW(e);return this._resetContextStyleTimingState(r),Li(this,Qd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function tW(){return new P(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function nW(){return new P(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{KB(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Ag(o.values()),e.errors.push(function iW(n,t){return new P(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Li(this,Qd(t.animation),e);return{type:1,matchers:GW(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ha(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Li(this,i,e)),options:Ha(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Li(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Ha(t.options)}}visitAnimate(t,e){const i=function eJ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return JE(gg(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=JE(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=gg(e,t);return JE(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:dg({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=dg(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Vo?i.push(a):e.errors.push(new P(3002,!1)):i.push(GB(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function oW(n,t,e,i,r){return new P(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function NW(n,t,e){const i=t.params||{},r=KB(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function q8(n){return new P(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sW(){return new P(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(A=>{const y=this._makeStyleAst(A,e);let E=null!=y.offset?y.offset:function ZW(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(y.styles),b=0;return null!=E&&(o++,b=y.offset=E),l=l||b<0||b>1,a=a||b0&&o{const E=h>0?y==p?1:h*y:s[y],b=E*m;e.currentTime=f+g.delay+b,g.duration=b,this._validateStyleAst(A,e),A.offset=E,i.styles.push(A)}),i}visitReference(t,e){return{type:8,animation:Li(this,Qd(t.animation),e),options:Ha(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ha(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ha(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function $W(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(JW,"")),n=n.replace(/@\*/g,fg).replace(/@\w+/g,e=>fg+"-"+e.slice(1)).replace(/:animating/g,HE),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ni(e.collectedStyles,e.currentQuerySelector,new Map);const a=Li(this,Qd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ha(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function uW(){return new P(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:gg(t.timings,e.errors,!0);return{type:12,animation:Li(this,Qd(t.animation),e),timings:i,options:null}}}class XW{constructor(t){this.errors=t,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 Ha(n){return n?(n=Ld(n)).params&&(n.params=function qW(n){return n?Ld(n):null}(n.params)):n={},n}function JE(n,t,e){return{duration:n,delay:t,easing:e}}function KE(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class vg{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const iJ=new RegExp(":enter","g"),oJ=new RegExp(":leave","g");function $E(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new sJ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class sJ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new vg;const d=new qE(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?xs(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Li(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[KE(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?xs(i.duration):null,a=null!=i.delay?xs(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Li(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Mg);const s=xs(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Li(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?xs(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Li(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return gg(e.params?mg(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?xs(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Mg);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Li(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Li(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Mg={};class qE{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new wg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=xs(i.duration)),null!=i.delay&&(r.delay=xs(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=mg(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new qE(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Mg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new aJ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(iJ,"."+this._enterClassName)).replace(oJ,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function dW(n){return new P(3014,!1)}()),a}}class wg{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wg(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vo),this._currentKeyframe.set(e,Vo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function lJ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Vo)}else Ts(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=mg(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vo),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ts(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Vo&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Ag(t.values()):[],s=e.size?Ag(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return KE(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class aJ extends wg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ts(t[0]);l.set("offset",0),o.push(l);const c=Ts(t[0]);c.set("offset",eO(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ts(t[d]);const p=h.get("offset");h.set("offset",eO((e+p*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return KE(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function eO(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class XE{}const cJ=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 uJ extends XE{normalizePropertyName(t,e){return YE(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(cJ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function eW(n,t){return new P(3005,!1)}())}return s+o}}function tO(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ZE={};class nO{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function dJ(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ZE,f=this.buildStyles(i,a&&a.params||ZE,d),g=l&&l.params||ZE,m=this.buildStyles(r,g,d),A=new Set,y=new Map,E=new Map,b="void"===r,D={params:hJ(g,h),delay:this.ast.options?.delay},I=u?[]:$E(t,e,this.ast.animation,o,s,f,m,D,c,d);let Q=0;if(I.forEach(q=>{Q=Math.max(q.duration+q.delay,Q)}),d.length)return tO(e,this._triggerName,i,r,b,f,m,[],[],y,E,Q,d);I.forEach(q=>{const le=q.element,xe=Ni(y,le,new Set);q.preStyleProps.forEach(Ae=>xe.add(Ae));const ke=Ni(E,le,new Set);q.postStyleProps.forEach(Ae=>ke.add(Ae)),le!==e&&A.add(le)});const O=Ag(A.values());return tO(e,this._triggerName,i,r,b,f,m,I,O,y,E,Q)}}function hJ(n,t){const e=Ld(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class pJ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Ld(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=mg(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class gJ{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new pJ(r.style,r.options&&r.options.params||{},i))}),iO(this.states,"true","1"),iO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new nO(t,r,this.states))}),this.fallbackTransition=function mJ(n,t,e){return new nO(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function iO(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const AJ=new vg;class bJ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=WE(this._driver,e,i,[]);if(i.length)throw function bW(n){return new P(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=FB(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=$E(this._driver,e,o,zE,hg,new Map,new Map,i,AJ,r),s.forEach(u=>{const d=Ni(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function yW(){return new P(3300,!1)}()),s=[]),r.length)throw function _W(n){return new P(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Vo))})});const c=Ss(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function EW(n){return new P(3301,!1)}();return e}listen(t,e,i,r){const o=LE(e,"","","");return RE(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);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(t)}}}const rO="ng-animate-queued",eC="ng-animate-disabled",vJ=[],oO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class tC{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function SJ(n){return n??null}(i?t.value:t),i){const o=Ld(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ud="void",nC=new tC(Ud);class wJ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function CW(n,t){return new P(3302,!1)}();if(null==i||0==i.length)throw function vW(n){return new P(3303,!1)}();if(!function xJ(n){return"start"==n||"done"==n}(i))throw function MW(n,t){return new P(3400,!1)}();const o=Ni(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Ni(this._engine.statesByElement,t,new Map);return a.has(e)||(nr(t,pg),nr(t,pg+"-"+e),a.set(e,nC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function wW(n){return new P(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new iC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(nr(t,pg),nr(t,pg+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new tC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=nC),c.value!==Ud&&l.value===c.value){if(!function OJ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{za(t,m),no(t,A)})}return}const h=Ni(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(nr(t,rO),s.onStart(()=>{Cc(t,rO)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(t);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,fg,!0);i.forEach(r=>{if(r[tr])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Ud,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Ss(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||nC,u=new tC(Ud),d=new iC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[tr];(!o||o===oO)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){nr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=LE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,RE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class DJ{constructor(t,e,i){this.bodyNode=t,this.driver=e,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new wJ(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Dg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Dg(e))return;const o=e[tr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),nr(t,eC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Cc(t,eC))}removeNode(t,e,i,r){if(Dg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[tr]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Dg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,fg,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,HE,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ss(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[tr];if(e&&e.setForRemoval){if(t[tr]=oO,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(eC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];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=[],e.length?Ss(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function DW(n){return new P(3402,!1)}()}_flushAnimations(t,e){const i=new vg,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(U=>{u.add(U);const V=this.driver.query(U,".ng-animate-queued",!0);for(let W=0;W{const W=zE+g++;f.set(V,W),U.forEach(X=>nr(X,W))});const m=[],A=new Set,y=new Set;for(let U=0;UA.add(X)):y.add(V))}const E=new Map,b=lO(h,Array.from(A));b.forEach((U,V)=>{const W=hg+g++;E.set(V,W),U.forEach(X=>nr(X,W))}),t.push(()=>{p.forEach((U,V)=>{const W=f.get(V);U.forEach(X=>Cc(X,W))}),b.forEach((U,V)=>{const W=E.get(V);U.forEach(X=>Cc(X,W))}),m.forEach(U=>{this.processLeaveNode(U)})});const D=[],I=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(W=>{const X=W.player,Ce=W.element;if(D.push(X),this.collectedEnterElements.length){const Ht=Ce[tr];if(Ht&&Ht.setForMove){if(Ht.previousTriggersValues&&Ht.previousTriggersValues.has(W.triggerName)){const Pn=Ht.previousTriggersValues.get(W.triggerName),yn=this.statesByElement.get(W.element);if(yn&&yn.has(W.triggerName)){const zi=yn.get(W.triggerName);zi.value=Pn,yn.set(W.triggerName,zi)}}return void X.destroy()}}const ft=!d||!this.driver.containsElement(d,Ce),Bt=E.get(Ce),cn=f.get(Ce),Xe=this._buildInstruction(W,i,cn,Bt,ft);if(Xe.errors&&Xe.errors.length)return void I.push(Xe);if(ft)return X.onStart(()=>za(Ce,Xe.fromStyles)),X.onDestroy(()=>no(Ce,Xe.toStyles)),void r.push(X);if(W.isFallbackTransition)return X.onStart(()=>za(Ce,Xe.fromStyles)),X.onDestroy(()=>no(Ce,Xe.toStyles)),void r.push(X);const wi=[];Xe.timelines.forEach(Ht=>{Ht.stretchStartingKeyframe=!0,this.disabledNodes.has(Ht.element)||wi.push(Ht)}),Xe.timelines=wi,i.append(Ce,Xe.timelines),s.push({instruction:Xe,player:X,element:Ce}),Xe.queriedElements.forEach(Ht=>Ni(a,Ht,[]).push(X)),Xe.preStyleProps.forEach((Ht,Pn)=>{if(Ht.size){let yn=l.get(Pn);yn||l.set(Pn,yn=new Set),Ht.forEach((zi,_o)=>yn.add(_o))}}),Xe.postStyleProps.forEach((Ht,Pn)=>{let yn=c.get(Pn);yn||c.set(Pn,yn=new Set),Ht.forEach((zi,_o)=>yn.add(_o))})});if(I.length){const U=[];I.forEach(V=>{U.push(function IW(n,t){return new P(3505,!1)}())}),D.forEach(V=>V.destroy()),this.reportError(U)}const Q=new Map,O=new Map;s.forEach(U=>{const V=U.element;i.has(V)&&(O.set(V,V),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,Q))}),r.forEach(U=>{const V=U.element;this._getPreviousPlayers(V,!1,U.namespaceId,U.triggerName,null).forEach(X=>{Ni(Q,V,[]).push(X),X.destroy()})});const q=m.filter(U=>uO(U,l,c)),le=new Map;aO(le,this.driver,y,c,Vo).forEach(U=>{uO(U,l,c)&&q.push(U)});const ke=new Map;p.forEach((U,V)=>{aO(ke,this.driver,new Set(U),l,"!")}),q.forEach(U=>{const V=le.get(U),W=ke.get(U);le.set(U,new Map([...Array.from(V?.entries()??[]),...Array.from(W?.entries()??[])]))});const Ae=[],dt=[],ht={};s.forEach(U=>{const{element:V,player:W,instruction:X}=U;if(i.has(V)){if(u.has(V))return W.onDestroy(()=>no(V,X.toStyles)),W.disabled=!0,W.overrideTotalTime(X.totalTime),void r.push(W);let Ce=ht;if(O.size>1){let Bt=V;const cn=[];for(;Bt=Bt.parentNode;){const Xe=O.get(Bt);if(Xe){Ce=Xe;break}cn.push(Bt)}cn.forEach(Xe=>O.set(Xe,Ce))}const ft=this._buildAnimation(W.namespaceId,X,Q,o,ke,le);if(W.setRealPlayer(ft),Ce===ht)Ae.push(W);else{const Bt=this.playersByElement.get(Ce);Bt&&Bt.length&&(W.parentPlayer=Ss(Bt)),r.push(W)}}else za(V,X.fromStyles),W.onDestroy(()=>no(V,X.toStyles)),dt.push(W),u.has(V)&&r.push(W)}),dt.forEach(U=>{const V=o.get(U.element);if(V&&V.length){const W=Ss(V);U.setRealPlayer(W)}}),r.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U!ft.destroyed);Ce.length?TJ(this,V,Ce):this.processLeaveNode(V)}return m.length=0,Ae.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const V=this.players.indexOf(U);this.players.splice(V,1)}),U.play()}),Ae}elementContainsData(t,e){let i=!1;const r=e[tr];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Ud;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Ni(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}za(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(f=>{const g=f.element;u.add(g);const m=g[tr];if(m&&m.removedBeforeQueried)return new Nd(f.duration,f.delay);const A=g!==l,y=function BJ(n){const t=[];return cO(n,t),t}((i.get(g)||vJ).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===g),E=o.get(g),b=s.get(g),D=FB(0,this._normalizer,0,f.keyframes,E,b),I=this._buildPlayer(f,D,y);if(f.subTimeline&&r&&d.add(g),A){const Q=new iC(t,a,g);Q.setRealPlayer(I),c.push(Q)}return I});c.forEach(f=>{Ni(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function IJ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>nr(f,VB));const p=Ss(h);return p.onDestroy(()=>{u.forEach(f=>Cc(f,VB)),no(l,e.toStyles)}),d.forEach(f=>{Ni(r,f,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Nd(t.duration,t.delay)}}class iC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Nd,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>RE(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ni(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Dg(n){return n&&1===n.nodeType}function sO(n,t){const e=n.style.display;return n.style.display=t??"none",e}function aO(n,t,e,i,r){const o=[];e.forEach(l=>o.push(sO(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[tr]=MJ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>sO(l,o[a++])),s}function lO(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function nr(n,t){n.classList?.add(t)}function Cc(n,t){n.classList?.remove(t)}function TJ(n,t,e){Ss(e).onDone(()=>n.processLeaveNode(t))}function cO(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Ig{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new DJ(t,e,i),this._timelineEngine=new bJ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=WE(this._driver,o,l,[]);if(l.length)throw function mW(n,t){return new P(3404,!1)}();a=function fJ(n,t,e){return new gJ(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=RB(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=RB(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let PJ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&no(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(no(this._element,this._initialStyles),this._endStyles&&(no(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(za(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(za(this._element,this._endStyles),this._endStyles=null),no(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function rC(n){let t=null;return n.forEach((e,i)=>{(function FJ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class dO{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:$B(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class RJ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return UB(t,e)}getParentElement(t){return UE(t)}query(t,e,i){return jB(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(p=>p instanceof dO);(function UW(n,t){return 0===n||0===t})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function RW(n){return n.length?n[0]instanceof Map?n:n.map(t=>GB(t)):[]}(e).map(p=>Ts(p));d=function jW(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,$B(n,a)))}}return t}(t,d,c);const h=function kJ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=rC(t[0]),t.length>1&&(i=rC(t[t.length-1]))):t instanceof Map&&(e=rC(t)),e||i?new PJ(n,e,i):null}(t,d);return new dO(t,d,l,h)}}let NJ=(()=>{class n extends SB{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ii.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?TB(e):e;return hO(this._renderer,null,i,"register",[r]),new LJ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(j(ed),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class LJ extends class W8{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new QJ(this._id,t,e||{},this._renderer)}}class QJ{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return hO(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function hO(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const pO="@.disabled";let UJ=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new fO("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new jJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),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()}}return n.\u0275fac=function(e){return new(e||n)(j(ed),j(Ig),j(At))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class fO{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==pO?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class jJ extends fO{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==pO?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function zJ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function HJ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let VJ=(()=>{class n extends Ig{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(jE),j(XE),j(Ra))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const gO=[{provide:SB,useClass:NJ},{provide:XE,useFactory:function GJ(){return new uJ}},{provide:Ig,useClass:VJ},{provide:ed,useFactory:function YJ(n,t,e){return new UJ(n,t,e)},deps:[zf,Ig,At]}],oC=[{provide:jE,useFactory:()=>new RJ},{provide:jx,useValue:"BrowserAnimations"},...gO],mO=[{provide:jE,useClass:zB},{provide:jx,useValue:"NoopAnimations"},...gO];let WJ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?mO:oC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:oC,imports:[s1]}),n})();class wt{static equals(t,e,i){return i?this.resolveFieldData(t,i)===this.resolveFieldData(e,i):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o,s,a,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if((s=t.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var h=Object.keys(t);if((s=h.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,h[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[a=h[o]],e[a]))return!1;return!0}return t!=t&&e!=e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(-1==e.indexOf("."))return t[e];{let i=e.split("."),r=t;for(let o=0,s=i.length;o=t.length&&(i%=t.length,e%=t.length),t.splice(i,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,t),o=!0;break}o||i.push(t)}else i.push(t)}static findIndexInList(t,e){let i=-1;if(e)for(let r=0;r-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t}static isEmpty(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,e,i,r=1){let o=-1;const s=this.isEmpty(t),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof t&&"string"==typeof e?t.localeCompare(e,i,{numeric:!0}):te?1:0,o}static sort(t,e,i=1,r,o=1){return(1===o?i:o)*wt.compare(t,e,r,i)}static merge(t,e){return null!=t&&"object"!=typeof t||null!=e&&"object"!=typeof e?null!=t&&"string"!=typeof t||null!=e&&"string"!=typeof e?e||t:[t||"",e||""].join(" "):{...t||{},...e||{}}}}var sC=function JJ(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const bO=["*"];let Hn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),KJ=(()=>{class n{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return wt.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r),s=wt.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=wt.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$J=(()=>{class n{constructor(){this.messageSource=new Me,this.clearSource=new Me,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),xg=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Hn.STARTS_WITH,Hn.CONTAINS,Hn.NOT_CONTAINS,Hn.ENDS_WITH,Hn.EQUALS,Hn.NOT_EQUALS],numeric:[Hn.EQUALS,Hn.NOT_EQUALS,Hn.LESS_THAN,Hn.LESS_THAN_OR_EQUAL_TO,Hn.GREATER_THAN,Hn.GREATER_THAN_OR_EQUAL_TO],date:[Hn.DATE_IS,Hn.DATE_IS_NOT,Hn.DATE_BEFORE,Hn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Me,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-header"]],ngContentSelectors:bO,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},encapsulation:2}),n})(),_O=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-footer"]],ngContentSelectors:bO,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},encapsulation:2}),n})(),ir=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(T(eo))},n.\u0275dir=ue({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),Go=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),jd=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Z=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+o.height>u.height?(p=a.top-h.top-o.height,e.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,e.style.transformOrigin="top"),f=o.width>u.width?-1*(a.left-h.left):a.left-h.left+o.width>u.width?-1*(a.left-h.left+o.width-u.width):a.left-h.left,e.style.top=p+"px",e.style.left=f+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+o>h.height?(p=c.top+u-o,e.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,e.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=p+"px",e.style.left=f+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,h=e.clientHeight,p=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+p>h&&(e.scrollTop=d+u-h+p)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&r.push(o);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class qJ{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=Z.getScrollableParents(this.element);for(let t=0;t{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Z.removeClass(i,"p-ink-active"),!Z.getHeight(i)&&!Z.getWidth(i)){let a=Math.max(Z.getOuterWidth(this.el.nativeElement),Z.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=Z.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-Z.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-Z.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",Z.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Z.removeClass(a,"p-ink-active")},401)}getInk(){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const XJ=["headerchkbox"],ZJ=["filter"];function eK(n,t){1&n&&Mt(0)}function tK(n,t){if(1&n&&(x(0,"div",7),ki(1),S(2,eK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}const EO=function(n){return{"p-checkbox-disabled":n}},nK=function(n,t,e){return{"p-highlight":n,"p-focus":t,"p-disabled":e}},CO=function(n){return{"pi pi-check":n}};function iK(n,t){if(1&n){const e=Re();x(0,"div",12)(1,"div",13)(2,"input",14),K("focus",function(){return re(e),oe(w(2).onHeaderCheckboxFocus())})("blur",function(){return re(e),oe(w(2).onHeaderCheckboxBlur())})("keydown.space",function(r){return re(e),oe(w(2).toggleAll(r))}),B()(),x(3,"div",15,16),K("click",function(r){return re(e),oe(w(2).toggleAll(r))}),ie(5,"span",17),B()()}if(2&n){const e=w(2);C("ngClass",Wt(5,EO,e.disabled||e.toggleAllDisabled)),v(2),C("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),v(1),C("ngClass",ka(7,nK,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),v(2),C("ngClass",Wt(11,CO,e.allChecked))}}function rK(n,t){1&n&&Mt(0)}const oK=function(n){return{options:n}};function sK(n,t){if(1&n&&(ct(0),S(1,rK,1,0,"ng-container",18),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Wt(2,oK,e.filterOptions))}}function aK(n,t){if(1&n){const e=Re();x(0,"div",20)(1,"input",21,22),K("input",function(r){return re(e),oe(w(3).onFilter(r))}),B(),ie(3,"span",23),B()}if(2&n){const e=w(3);v(1),C("value",e.filterValue||"")("disabled",e.disabled),Ot("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function lK(n,t){1&n&&S(0,aK,4,4,"div",19),2&n&&C("ngIf",w(2).filter)}function cK(n,t){if(1&n&&(x(0,"div",7),S(1,iK,6,13,"div",9),S(2,sK,2,4,"ng-container",10),S(3,lK,1,1,"ng-template",null,11,on),B()),2&n){const e=Qt(4),i=w();v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),v(1),C("ngIf",i.filterTemplate)("ngIfElse",e)}}function uK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionGroupLabel(e)||"empty")}}function dK(n,t){1&n&&Mt(0)}function hK(n,t){1&n&&Mt(0)}const aC=function(n){return{$implicit:n}};function pK(n,t){if(1&n&&(x(0,"li",25),S(1,uK,2,1,"span",3),S(2,dK,1,0,"ng-container",18),B(),S(3,hK,1,0,"ng-container",18)),2&n){const e=t.$implicit,i=w(2),r=Qt(8);v(1),C("ngIf",!i.groupTemplate),v(1),C("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",Wt(5,aC,e)),v(1),C("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(7,aC,i.getOptionGroupChildren(e)))}}function fK(n,t){if(1&n&&(ct(0),S(1,pK,4,9,"ng-template",24),ut()),2&n){const e=w();v(1),C("ngForOf",e.optionsToRender)}}function gK(n,t){1&n&&Mt(0)}function mK(n,t){if(1&n&&(ct(0),S(1,gK,1,0,"ng-container",18),ut()),2&n){const e=w(),i=Qt(8);v(1),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(2,aC,e.optionsToRender))}}const AK=function(n){return{"p-highlight":n}};function bK(n,t){if(1&n&&(x(0,"div",12)(1,"div",28),ie(2,"span",17),B()()),2&n){const e=w().$implicit,i=w(2);C("ngClass",Wt(3,EO,i.disabled||i.isOptionDisabled(e))),v(1),C("ngClass",Wt(5,AK,i.isSelected(e))),v(1),C("ngClass",Wt(7,CO,i.isSelected(e)))}}function yK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionLabel(e))}}function _K(n,t){1&n&&Mt(0)}const EK=function(n,t){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":t}},CK=function(n,t){return{$implicit:n,index:t}};function vK(n,t){if(1&n){const e=Re();x(0,"li",27),K("click",function(r){const s=re(e).$implicit;return oe(w(2).onOptionClick(r,s))})("dblclick",function(r){const s=re(e).$implicit;return oe(w(2).onOptionDoubleClick(r,s))})("touchend",function(){const o=re(e).$implicit;return oe(w(2).onOptionTouchEnd(o))})("keydown",function(r){const s=re(e).$implicit;return oe(w(2).onOptionKeyDown(r,s))}),S(1,bK,3,9,"div",9),S(2,yK,2,1,"span",3),S(3,_K,1,0,"ng-container",18),B()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);C("ngClass",Ji(8,EK,r.isSelected(e),r.isOptionDisabled(e))),Ot("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),v(1),C("ngIf",r.checkbox&&r.multiple),v(1),C("ngIf",!r.itemTemplate),v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ji(11,CK,e,i))}}function MK(n,t){1&n&&S(0,vK,4,14,"li",26),2&n&&C("ngForOf",t.$implicit)}function wK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),Xr(" ",e.emptyFilterMessageLabel," ")}}function DK(n,t){1&n&&Mt(0,null,30)}function IK(n,t){if(1&n&&(x(0,"li",29),S(1,wK,2,1,"ng-container",10),S(2,DK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),v(1),C("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function SK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),Xr(" ",e.emptyMessageLabel," ")}}function xK(n,t){1&n&&Mt(0,null,31)}function TK(n,t){if(1&n&&(x(0,"li",29),S(1,SK,2,1,"ng-container",10),S(2,xK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),v(1),C("ngTemplateOutlet",e.emptyTemplate)}}function BK(n,t){1&n&&Mt(0)}function OK(n,t){if(1&n&&(x(0,"div",32),ki(1,1),S(2,BK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const kK=[[["p-header"]],[["p-footer"]]],PK=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},FK=["p-header","p-footer"],RK={provide:Ri,useExisting:Je(()=>NK),multi:!0};let NK=(()=>{class n{constructor(e,i,r,o){this.el=e,this.cd=i,this.filterService=r,this.config=o,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new te,this.onClick=new te,this.onDblClick=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:e=>this.onFilter(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?wt.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?wt.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?wt.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?wt.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?wt.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,o=!0):(this.value=this.getOptionValue(i),o=!0)}else this.value=r?null:this.getOptionValue(i),o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],o=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],o=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!wt.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(wt.equals(o,r,this.dataKey)){i=!0;break}}else i=wt.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,o=0,s=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;o++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;o++}}return s===i||s===o||o&&s===o+r+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jd.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jd.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let r of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&i.push({...r,[this.optionGroupChildren]:o})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let o=this.getOptionGroupChildren(r);o&&o.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let o=this.isOptionDisabled(r);(!o||o&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)return;let r=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(r);o&&o.focus(),e.preventDefault();break;case 38:var s=this.findPrevItem(r);s&&s.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(oi),T(KJ),T(xg))},n.\u0275cmp=ve({type:n,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(Qn(r,yO,5),Qn(r,_O,5),Qn(r,ir,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(XJ,5),Zt(ZJ,5)),2&e){let r;He(r=Ve())&&(i.headerCheckboxViewChild=r.first),He(r=Ve())&&(i.filterViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[yt([RK])],ngContentSelectors:FK,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&($r(kK),x(0,"div",0),S(1,tK,3,1,"div",1),S(2,cK,5,3,"div",1),x(3,"div",0)(4,"ul",2),S(5,fK,2,1,"ng-container",3),S(6,mK,2,4,"ng-container",3),S(7,MK,1,1,"ng-template",null,4,on),S(9,IK,3,3,"li",5),S(10,TK,3,3,"li",5),B()(),S(11,OK,3,1,"div",6),B()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(16,PK,i.disabled))("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),v(1),Gt(i.listStyleClass),C("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),v(1),Ot("aria-multiselectable",i.multiple),v(1),C("ngIf",i.group),v(1),C("ngIf",!i.group),v(3),C("ngIf",i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",!i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Un,qi,Pt,zo,Xi,zd],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),lC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,Va,Go]}),n})();function LK(n,t){1&n&&Mt(0)}const QK=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function UK(n,t){if(1&n&&ie(0,"span",4),2&n){const e=w();Gt(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),C("ngClass",gf(4,QK,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ot("aria-hidden",!0)}}function jK(n,t){if(1&n&&(x(0,"span",5),de(1),B()),2&n){const e=w();Ot("aria-hidden",e.icon&&!e.label),v(1),pt(e.label)}}function zK(n,t){if(1&n&&(x(0,"span",4),de(1),B()),2&n){const e=w();Gt(e.badgeClass),C("ngClass",e.badgeStyleClass()),v(1),pt(e.badge)}}const HK=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},VK=["*"];let Bs=(()=>{class n{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,Z.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&wt.isEmpty(this.el.nativeElement.textContent)&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createLabel(){if(this.label){let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Z.addClass(e,i);let r=this.getIconClass();r&&Z.addMultipleClasses(e,r),this.el.nativeElement.insertBefore(e,this.el.nativeElement.firstChild)}}updateLabel(){let e=Z.findSingle(this.el.nativeElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.el.nativeElement.removeChild(e)}updateIcon(){let e=Z.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():e&&this.el.nativeElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275dir=ue({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),GK=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new te,this.onFocus=new te,this.onBlur=new te}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:VK,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&($r(),x(0,"button",0),K("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),ki(1),S(2,LK,1,0,"ng-container",1),S(3,UK,1,9,"span",2),S(4,jK,2,2,"span",3),S(5,zK,2,4,"span",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function sx(n,t,e,i,r,o,s,a){const l=ei()+n,c=N(),u=Wi(c,l,e,i,r,o);return Ln(c,l+4,s)||u?Kr(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):ld(c,l+5)}(11,HK,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ot("type",i.type)("aria-label",i.ariaLabel),v(2),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",!i.contentTemplate&&(i.icon||i.loading)),v(1),C("ngIf",!i.contentTemplate&&i.label),v(1),C("ngIf",!i.contentTemplate&&i.badge))},dependencies:[Un,Pt,zo,Xi,zd],encapsulation:2,changeDetection:0}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Va]}),n})();const vO=new class WK extends Or{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let JK=1;const KK=Promise.resolve(),Tg={};function MO(n){return n in Tg&&(delete Tg[n],!0)}const wO={setImmediate(n){const t=JK++;return Tg[t]=!0,KK.then(()=>MO(t)&&n()),t},clearImmediate(n){MO(n)}},DO=new class qK extends Or{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=wO.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(wO.clearImmediate(e),t.scheduled=void 0)}}),IO=new Or(Gf),Mc=IO;class ZK{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new e$(t,this.durationSelector))}}class e$ extends Aa{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ba(e,new ma(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function cC(n){return!Ar(n)&&n-parseFloat(n)+1>=0}function SO(n=0,t,e){let i=-1;return cC(t)?i=Number(t)<1?1:Number(t):as(t)&&(e=t),as(e)||(e=Mc),new et(r=>{const o=cC(n)?n:+n-e.now();return e.schedule(t$,o,{index:0,period:i,subscriber:r})})}function t$(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}let uC;try{uC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{uC=!1}let Hd,dC,i$=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function p3(n){return n===LT}(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&&!uC)&&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}}return n.\u0275fac=function(e){return new(e||n)(j(Ef))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vd(n){return function r$(){if(null==Hd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hd=!0}))}finally{Hd=Hd||!1}return Hd}()?n:!!n.capture}function TO(n){if(function o$(){if(null==dC){const n=typeof document<"u"?document.head:null;dC=!(!n||!n.createShadowRoot&&!n.attachShadow)}return dC}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Og(n){return n.composedPath?n.composedPath()[0]:n.target}let a$=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(function n$(n,t=Mc){return function XK(n){return function(e){return e.lift(new ZK(n))}}(()=>SO(n,t))}(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(j(i$),j(At),j(Jt,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),l$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();function rr(n){return n instanceof St?n.nativeElement:n}function Os(){}function bn(n,t,e){return function(r){return r.lift(new S$(n,t,e))}}class S${constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new x$(t,this.nextOrObserver,this.error,this.complete))}}class x$ extends Ge{constructor(t,e,i,r){super(t),this._tapNext=Os,this._tapError=Os,this._tapComplete=Os,this._tapError=i||Os,this._tapComplete=r||Os,Eo(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Os,this._tapError=e.error||Os,this._tapComplete=e.complete||Os)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function kg(n,t=Mc){return e=>e.lift(new T$(n,t))}class T${constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new B$(t,this.dueTime,this.scheduler))}}class B$ extends Ge{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O$,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function O$(n){n.debouncedNext()}class kO extends class F${constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=We.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,t instanceof Ad&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(bn(e=>this._pressedLetters.push(e)),kg(t),Zi(()=>this._pressedLetters.length>0),fe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){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;default:return void((r||function I$(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ad?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function G$(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function Vn(n){return t=>t.lift(new Y$(n))}class Y${constructor(t){this.notifier=t}call(t,e){const i=new W$(t),r=ba(this.notifier,new ma(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class W$ extends Aa{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function hC(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Dc(n,t){const e=t?"":"none";hC(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function FO(n,t,e){hC(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Pg(n,t){return t&&"none"!=t?n+" "+t:n}function RO(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function pC(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function fC(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function gC(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function Gd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function NO(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:fC(e)})})}handleScroll(t){const e=Og(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Gd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function QO(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new LO(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=function c$(n){return null!=n&&"false"!=`${n}`}(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Dc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>rr(i)),this._handles.forEach(i=>Dc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=rr(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Fg),e.addEventListener("touchstart",this._pointerDown,HO),e.addEventListener("dragstart",this._nativeDragStart,Fg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?rr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Dc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Dc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Yd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),FO(i,!1,mC),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Yd(e),o=!r&&0!==e.button,s=this._rootElement,a=Og(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?function z$(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e):function j$(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=fC(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){FO(this._rootElement,!0,mC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=GO(s,this._document),this._previewRef=s,t.matchSize?YO(r,o):r.style.transform=Rg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=QO(this._rootElement),YO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return hC(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},mC),Dc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function J$(n){const t=getComputedStyle(n),e=pC(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=pC(t,"transition-duration"),s=pC(t,"transition-delay");return RO(o[r])+RO(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Og(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=GO(this._placeholderRef,this._document)):i=QO(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Yd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Yd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=VO(i,a.left+o,a.right-(l-o)),r=VO(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Dc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Fg),t.removeEventListener("touchstart",this._pointerDown,HO),t.removeEventListener("dragstart",this._nativeDragStart,Fg)}_applyRootElementTransform(t,e){const i=Rg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Pg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Rg(t,e);this._preview.style.transform=Pg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Yd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Og(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Gd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=TO(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return rr(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Rg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function VO(n,t,e){return Math.max(t,Math.min(e,n))}function Yd(n){return"t"===n.type[0]}function GO(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function YO(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Rg(t.left,t.top)}function Wd(n,t){return Math.max(0,Math.min(t,n))}class Z${constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(m=>m.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(o[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,o,h),g=o.slice();return function X$(n,t,e){const i=Wd(t,n.length-1),r=Wd(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(g[A]===m)return;const y=m.drag===t,E=y?p:f,b=y?t.getPlaceholderElement():m.drag.getRootElement();m.offset+=E,a?(b.style.transform=Pg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),Gd(m.clientRect,0,E)):(b.style.transform=Pg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),Gd(m.clientRect,E,0))}),this._previousSwap.overlaps=gC(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else rr(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Gd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:fC(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=We.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function V$(n=0,t=Mc){return(!cC(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Mc),new et(e=>(e.add(t.schedule(G$,n,{subscriber:e,counter:0,period:n})),e))}(0,vO).pipe(Vn(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=rr(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LO(i),this._sortStrategy=new Z$(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=rr(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!NO(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||NO(s.clientRect,.05,t,e)&&([r,o]=function t9(n,t,e,i){const r=KO(t,i),o=$O(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=KO(l,e),o=$O(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=rr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=rr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=rr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&gC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!gC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=rr(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=TO(rr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function KO(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function $O(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Ng=Vd({passive:!1,capture:!0});let n9=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ng)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ng)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ng}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Ng}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new et(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),ya(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const i9={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let r9=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=i9){return new q$(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new e9(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(At),j(a$),j(n9))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[r9],imports:[l$]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,vc,Go,Va,qO,Go,qO]}),n})();const y9=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZm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MTY0MSAyNC43Nzg2IDE0LjYzMjggMjQuNDkyMiAxNS4xMDE2QzI0LjIxMDkgMTUuNTY1MSAyMy43ODY1IDE1LjkxOTMgMjMuMjE4OCAxNi4xNjQxQzIzLjkwMSAxNi4zODggMjQuMzgyOCAxNi43Mzk2IDI0LjY2NDEgMTcuMjE4OEMyNC45NTA1IDE3LjY5NzkgMjUuMDkzOCAxOC4yMzQ0IDI1LjA5MzggMTguODI4MUMyNS4wOTM4IDE5LjUyMDggMjQuOTM3NSAyMC4xMTcyIDI0LjYyNSAyMC42MTcyQzI0LjMxNzcgMjEuMTEyIDIzLjg5MDYgMjEuNDk0OCAyMy4zNDM4IDIxLjc2NTZDMjIuNzk2OSAyMi4wMzEyIDIyLjE3MTkgMjIuMTY0MSAyMS40Njg4IDIyLjE2NDFaIiBmaWxsPSIjMjIyMjIyIi8+Cjwvc3ZnPgo="],I9=new rE(document),XO=[...Array(3).keys()].map(n=>{const t=n+1;return{label:`Heading ${t}`,icon:ks(y9[n]),id:`heading${t}`,attributes:{level:t}}}),bC={label:"Paragraph",icon:ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDc0NjEgMTZWMTUuMjYxN0w3LjQyOTY5IDE1LjA5NzdWOC4zNzY5NUw2LjQ3NDYxIDguMjEyODlWNy40Njg3NUgxMC4zOTQ1QzExLjMwNDcgNy40Njg3NSAxMi4wMTE3IDcuNzAzMTIgMTIuNTE1NiA4LjE3MTg4QzEzLjAyMzQgOC42NDA2MiAxMy4yNzczIDkuMjU3ODEgMTMuMjc3MyAxMC4wMjM0QzEzLjI3NzMgMTAuNzk2OSAxMy4wMjM0IDExLjQxNiAxMi41MTU2IDExLjg4MDlDMTIuMDExNyAxMi4zNDU3IDExLjMwNDcg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IHdpZHRoPSIxMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMjIyMjIyIi8+CjxyZWN0IHg9IjYiIHk9IjE4IiB3aWR0aD0iMjAiIGhlaWdodD0iMSIgZmlsbD0iIzIyMjIyMiIvPgo8cmVjdCB4PSI2IiB5PSIyMiIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEiIGZpbGw9IiMyMjIyMjIiLz4KPC9zdmc+Cg=="),id:"blockquote"},{label:"Code Block",icon:ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQgMjAuNkw4LjggMTZMMTMuNCAxMS40TDEyIDEwTDYgMTZMMTIgMjJMMTMuNCAyMC42Wk0xOC42IDIwLjZMMjMuMiAxNkwxOC42IDExLjRMMjAgMTBMMjYgMTZMMjAgMjJMMTguNiAyMC42WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="),id:"codeBlock"},{label:"Horizontal Line",icon:ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function ks(n){return I9.bypassSecurityTrustUrl(n)}const Lg=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...XO,{label:"Table",icon:"table_view",id:"table"},...ZO,...B9,bC],O9=[...XO,bC,...ZO],k9=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],F9={horizontalRule:!0,table:!0,image:!0,video:!0},R9=[...Lg.filter(n=>!F9[n.id])],ek=function({type:n,editor:t,range:e,suggestionKey:i,ItemsType:r}){const o={to:e.to+i.getState(t.view.state).query?.length,from:n===r.BLOCK?e.from:e.from+1};t.chain().deleteRange(o).run()},tk={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class L9{getQueryParams(){const t=window.location.search.substring(1).split("&"),e=new Map;return t.forEach(i=>{const r=i.split("=");e.set(r[0],r[1])}),e}getQueryStringParam(t){let e=null;const r=new RegExp("[?&]"+t.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return r&&r[2]&&(e=decodeURIComponent(r[2].replace(/\+/g," "))),e}}let nk=(()=>{class n{getLine(e,i){let r=null;if(e){const o=e.split("\n");r=o&&o.length>i?o[i]:null}return r}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(i,r)=>0===r?i.toLowerCase():i.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),U9=(()=>{class n{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new L9,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...i){i&&i.length>0?console.info(this.wrapMessage(e),i):console.info(this.wrapMessage(e))}error(e,...i){i&&i.length>0?console.error(this.wrapMessage(e),i):console.error(this.wrapMessage(e))}warn(e,...i){i&&i.length>0?console.warn(this.wrapMessage(e),i):console.warn(this.wrapMessage(e))}debug(e,...i){i&&i.length>0?console.debug(this.wrapMessage(e),i):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(i){e=this.cleanCaller(this.stringUtils.getLine(i.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}return n.\u0275fac=function(e){return new(e||n)(j(nk))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Y9=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Jd=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};function Gn(n){this.content=n}Jd.\u0275prov=Y({token:Jd,factory:Jd.\u0275fac}),Jd=function z9(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Rp("config"),function H9(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[Y9])],Jd),Gn.prototype={constructor:Gn,find:function(n){for(var t=0;t>1}},Gn.from=function(n){if(n instanceof Gn)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new Gn(t)};const sk=Gn;function ak(n,t,e){for(let i=0;;i++){if(i==n.childCount||i==t.childCount)return n.childCount==t.childCount?null:e;let r=n.child(i),o=t.child(i);if(r!=o){if(!r.sameMarkup(o))return e;if(r.isText&&r.text!=o.text){for(let s=0;r.text[s]==o.text[s];s++)e++;return e}if(r.content.size||o.content.size){let s=ak(r.content,o.content,e+1);if(null!=s)return s}e+=r.nodeSize}else e+=r.nodeSize}}function lk(n,t,e,i){for(let r=n.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:e,b:i};let s=n.child(--r),a=t.child(--o),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:e,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ct&&!1!==i(l,r+a,o||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),i,r+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,i,r){let o="",s=!0;return this.nodesBetween(t,e,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(t,l)-l,e-l),s=!i):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(o+=i,s=!0)},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,i=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(i)&&(r[r.length-1]=e.withText(e.text+i.text),o=1);ot)for(let o=0,s=0;st&&((se)&&(a=a.isText?a.cut(Math.max(0,t-s),Math.min(a.text.length,e-s)):a.cut(Math.max(0,t-s-1),Math.min(a.content.size,e-s-1))),i.push(a),r+=a.nodeSize),s=l}return new L(i,r)}cutByIndex(t,e){return t==e?L.empty:0==t&&e==this.content.length?this:new L(this.content.slice(t,e))}replaceChild(t,e){let i=this.content[t];if(i==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-i.nodeSize;return r[t]=e,new L(r,o)}addToStart(t){return new L([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new L(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=r+this.child(i).nodeSize;if(s>=t)return s==t||e>0?Ug(i+1,s):Ug(i,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return L.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new L(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return L.empty;let e,i=0;for(let r=0;r{class n{constructor(e,i){this.type=e,this.attrs=i}addToSet(e){let i,r=!1;for(let o=0;othis.type.rank&&(i||(i=e.slice(0,o)),i.push(this),r=!0),i&&i.push(s)}}return i||(i=e.slice()),r||i.push(this),i}removeFromSet(e){for(let i=0;ir.type.rank-o.type.rank),i}}return n.none=[],n})();class zg extends Error{}class G{constructor(t,e,i){this.content=t,this.openStart=e,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let i=uk(this.content,t+this.openStart,e);return i&&new G(i,this.openStart,this.openEnd)}removeBetween(t,e){return new G(ck(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return G.empty;let i=e.openStart||0,r=e.openEnd||0;if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new G(L.fromJSON(t,e.content),i,r)}static maxOpen(t,e=!0){let i=0,r=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=t.lastChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.lastChild)r++;return new G(t,i,r)}}function ck(n,t,e){let{index:i,offset:r}=n.findIndex(t),o=n.maybeChild(i),{index:s,offset:a}=n.findIndex(e);if(r==t||o.isText){if(a!=e&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,o.copy(ck(o.content,t-r-1,e-r-1)))}function uk(n,t,e,i){let{index:r,offset:o}=n.findIndex(t),s=n.maybeChild(r);if(o==t||s.isText)return i&&!i.canReplace(r,r,e)?null:n.cut(0,t).append(e).append(n.cut(t));let a=uk(s.content,t-o-1,e);return a&&n.replaceChild(r,s.copy(a))}function W9(n,t,e){if(e.openStart>n.depth)throw new zg("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new zg("Inconsistent open depths");return dk(n,t,e,0)}function dk(n,t,e,i){let r=n.index(i),o=n.node(i);if(r==t.index(i)&&i=0;o--)r=t.node(o).copy(L.from(r));return{start:r.resolveNoCache(n.openStart+e),end:r.resolveNoCache(r.content.size-n.openEnd-e)}}(e,n);return Wa(o,pk(n,s,a,t,i))}{let s=n.parent,a=s.content;return Wa(s,a.cut(0,n.parentOffset).append(e.content).append(a.cut(t.parentOffset)))}}return Wa(o,Hg(n,t,i))}function hk(n,t){if(!t.type.compatibleContent(n.type))throw new zg("Cannot join "+t.type.name+" onto "+n.type.name)}function EC(n,t,e){let i=n.node(e);return hk(i,t.node(e)),i}function Ya(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function Kd(n,t,e,i){let r=(t||n).node(e),o=0,s=t?t.index(e):r.childCount;n&&(o=n.index(e),n.depth>e?o++:n.textOffset&&(Ya(n.nodeAfter,i),o++));for(let a=o;ar&&EC(n,t,r+1),s=i.depth>r&&EC(e,i,r+1),a=[];return Kd(null,n,r,a),o&&s&&t.index(r)==e.index(r)?(hk(o,s),Ya(Wa(o,pk(n,t,e,i,r+1)),a)):(o&&Ya(Wa(o,Hg(n,t,r+1)),a),Kd(t,e,r,a),s&&Ya(Wa(s,Hg(e,i,r+1)),a)),Kd(i,null,r,a),new L(a)}function Hg(n,t,e){let i=[];return Kd(null,n,e,i),n.depth>e&&Ya(Wa(EC(n,t,e+1),Hg(n,t,e+1)),i),Kd(t,null,e,i),new L(i)}G.empty=new G(L.empty,0,0);class $d{constructor(t,e,i){this.pos=t,this.path=e,this.parentOffset=i,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(e);return i?t.child(e).cut(i):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let i=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let o=0;o0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!e||e(this.node(i))))return new Vg(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let i=[],r=0,o=e;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(i.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;o=c-1,r+=l+1}return new $d(e,i,o)}static resolveCached(t,e){for(let r=0;rt&&this.nodesBetween(t,e,o=>(i.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),fk(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,i=L.empty,r=0,o=i.childCount){let s=this.contentMatchAt(t).matchFragment(i,r,o),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let l=r;le.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,i)}let r=L.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,i)}}ro.prototype.text=void 0;class Gg extends ro{constructor(t,e,i,r){if(super(t,e,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):fk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Gg(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Gg(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function fk(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class Ja{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let i=new q9(t,e);if(null==i.next)return Ja.empty;let r=gk(i);i.next&&i.err("Unexpected trailing text");let o=function r6(n){let t=Object.create(null);return function e(i){let r=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||r.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let o=t[i.join(",")]=new Ja(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(o(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=e();return i(a,l),r(o(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=e();return r(o(s.expr,a),l),r(o(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(o(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(r));return function o6(n,t){for(let e=0,i=[n];ec.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(i){t.push(i);for(let r=0;r{let o=r+(i.validEnd?"*":" ")+" ";for(let s=0;s"+t.indexOf(i.next[s].next);return o}).join("\n")}}Ja.empty=new Ja(!0);class q9{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function gk(n){let t=[];do{t.push(X9(n))}while(n.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function X9(n){let t=[];do{t.push(Z9(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function Z9(n){let t=function n6(n){if(n.eat("(")){let t=gk(n);return n.eat(")")||n.err("Missing closing paren"),t}if(!/\W/.test(n.next)){let t=function t6(n,t){let e=n.nodeTypes,i=e[t];if(i)return[i];let r=[];for(let o in e){let s=e[o];s.groups.indexOf(t)>-1&&r.push(s)}return 0==r.length&&n.err("No node type or group '"+t+"' found"),r}(n,n.next).map(e=>(null==n.inline?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else{if(!n.eat("{"))break;t=e6(n,t)}return t}function mk(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function e6(n,t){let e=mk(n),i=e;return n.eat(",")&&(i="}"!=n.next?mk(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:i,expr:t}}function Ak(n,t){return t-n}function bk(n,t){let e=[];return function i(r){let o=n[r];if(1==o.length&&!o[0].term)return i(o[0].to);e.push(r);for(let s=0;s-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;ei[o]=new Yg(o,e,s));let r=e.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class s6{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class Wg{constructor(t,e,i,r){this.name=t,this.rank=e,this.schema=i,this.spec=r,this.attrs=Ek(r.attrs),this.excluded=null;let o=yk(this.attrs);this.instance=o?new Tt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Tt(this,_k(this.attrs,t))}static compile(t,e){let i=Object.create(null),r=0;return t.forEach((o,s)=>i[o]=new Wg(o,r++,e,s)),i}removeFromSet(t){for(var e=0;e-1}}class a6{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=sk.from(t.nodes),e.marks=sk.from(t.marks||{}),this.nodes=Yg.compile(this.spec.nodes,this),this.marks=Wg.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=i[s]||(i[s]=Ja.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?Ck(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(let r in this.marks){let o=this.marks[r],s=o.spec.excludes;o.excluded=null==s?[o]:""==s?[]:Ck(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,i,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof Yg))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,i,r)}text(t,e){let i=this.nodes.text;return new Gg(i,i.defaultAttrs,t,Tt.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return ro.fromJSON(this,t)}markFromJSON(t){return Tt.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Ck(n,t){let e=[];for(let i=0;i-1)&&e.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return e}class Ic{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let r=t.nodes[i.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let i=new Dk(this,e,!1);return i.addAll(t,e.from,e.to),i.finish()}parseSlice(t,e={}){let i=new Dk(this,e,!0);return i.addAll(t,e.from,e.to),G.maxOpen(i.finish())}matchTag(t,e,i){for(let r=i?this.tags.indexOf(i)+1:0;rt.length&&(61!=a.charCodeAt(t.length)||a.slice(t.length+1)!=e))){if(s.getAttrs){let l=s.getAttrs(e);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let e=[];function i(r){let o=r.priority??50,s=0;for(;s{i(s=Ik(s)),s.mark=r})}for(let r in t.nodes){let o=t.nodes[r].spec.parseDOM;o&&o.forEach(s=>{i(s=Ik(s)),s.node=r})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Ic(t,Ic.schemaRules(t)))}}const vk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},l6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Mk={ol:!0,ul:!0};function wk(n,t,e){return null!=t?(t?1:0)|("full"===t?2:0):n&&"pre"==n.whitespace?3:-5&e}class $g{constructor(t,e,i,r,o,s,a){this.type=t,this.attrs=e,this.marks=i,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=Tt.none,this.stashMarks=[],this.match=s||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(L.from(t));if(!e){let r,i=this.type.contentMatch;return(r=i.findWrapping(t.type))?(this.match=i,r):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let r,i=this.content[this.content.length-1];if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let e=L.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(L.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,i=this.pendingMarks;ethis.insertNode(l));else{let l=t;"string"==typeof e.contentElement?l=t.querySelector(e.contentElement):"function"==typeof e.contentElement?l=e.contentElement(t):e.contentElement&&(l=e.contentElement),this.findAround(t,l,!0),this.addAll(l)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(t,e,i){let r=e||0;for(let o=e?t.childNodes[e]:t.firstChild,s=null==i?null:t.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(o);this.findAtPoint(t,r)}findPlace(t){let e,i;for(let r=this.open;r>=0;r--){let o=this.nodes[r],s=o.findWrapping(t);if(s&&(!e||e.length>s.length)&&(e=s,i=o,!s.length)||o.solid)break}if(!e)return!1;this.sync(i);for(let r=0;rthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let i=this.nodes[e].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=(r?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=e[a];if(""==c){if(a==e.length-1||0==a)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&r?this.nodes[l].type:i&&l>=o?i.node(l-o).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let i=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let e in this.parser.schema.nodes){let i=this.parser.schema.nodes[e];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let e=function p6(n,t){for(let e=0;e=0;i--){let r=this.nodes[i];if(r.pendingMarks.lastIndexOf(t)>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);let s=r.popFromStashMark(t);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function u6(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function Ik(n){let t={};for(let e in n)t[e]=n[e];return t}function h6(n,t){let e=t.schema.nodes;for(let i in e){let r=e[i];if(!r.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let l=0;l{if(o.length||s.marks.length){let a=0,l=0;for(;a=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(t,e,i={}){let r=this.marks[t.type.name];return r&&oo.renderSpec(MC(i),r(t,e))}static renderSpec(t,e,i=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let r=e[0],o=r.indexOf(" ");o>0&&(i=r.slice(0,o),r=r.slice(o+1));let s,a=i?t.createElementNS(i,r):t.createElement(r),l=e[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=oo.renderSpec(t,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new oo(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=Sk(t.nodes);return e.text||(e.text=i=>i.text),e}static marksFromSchema(t){return Sk(t.marks)}}function Sk(n){let t={};for(let e in n){let i=n[e].spec.toDOM;i&&(t[e]=i)}return t}function MC(n){return n.document||window.document}const Tk=Math.pow(2,16);function f6(n,t){return n+t*Tk}function Bk(n){return 65535&n}class wC{constructor(t,e,i){this.pos=t,this.delInfo=e,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class or{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&or.empty)return or.empty}recover(t){let e=0,i=Bk(t);if(!this.inverted)for(let r=0;rt)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let p=l+r+((c?t==l?-1:t==d?1:e:e)<0?0:u);if(i)return p;let f=t==(e<0?l:d)?null:f6(a/3,t-l),g=t==l?2:t==d?1:4;return(e<0?t!=l:t!=d)&&(g|=8),new wC(p,g,f)}r+=u-c}return i?t+r:new wC(t+r,0,null)}touches(t,e){let i=0,r=Bk(e),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;at)break;let c=this.ranges[a+o];if(t<=l+c&&a==3*r)return!0;i+=this.ranges[a+s]-c}return!1}forEach(t){let e=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,o=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?i-r-1:void 0)}}invert(){let t=new Sc;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;io&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,r),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,o)}invert(){return new so(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new Ps(e.pos,i.pos,this.mark)}merge(t){return t instanceof Ps&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ps(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ps(e.from,e.to,t.markFromJSON(e.mark))}}Yn.jsonID("addMark",Ps);class so extends Yn{constructor(t,e,i){super(),this.from=t,this.to=e,this.mark=i}apply(t){let e=t.slice(this.from,this.to),i=new G(IC(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,i)}invert(){return new Ps(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new so(e.pos,i.pos,this.mark)}merge(t){return t instanceof so&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new so(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new so(e.from,e.to,t.markFromJSON(e.mark))}}Yn.jsonID("removeMark",so);class Fs extends Yn{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at mark step's position");let i=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(i),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let i=this.mark.addToSet(e.marks);if(i.length==e.marks.length){for(let r=0;ri.pos?null:new Cn(e.pos,i.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Cn(e.from,e.to,e.gapFrom,e.gapTo,G.fromJSON(t,e.slice),e.insert,!!e.structure)}}function SC(n,t,e){let i=n.resolve(t),r=e-t,o=i.depth;for(;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0){let s=i.node(o).maybeChild(i.indexAfter(o));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function y6(n,t,e){return(0==t||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function Tc(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let r=n.$from.node(i),o=n.$from.index(i),s=n.$to.indexAfter(i);if(io;c--,u--){let d=r.node(c),h=r.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u]||d;if(f!=d&&(p=p.replaceChild(0,f.type.create(f.attrs))),!d.canReplace(h+1,d.childCount)||!f.type.validContent(p))return!1}let a=r.indexAfter(o),l=i&&i[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function Rs(n,t){let e=n.resolve(t),i=e.index();return Rk(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(i,i+1)}function Rk(n,t){return!(!n||!t||n.isLeaf||!n.canAppend(t))}function Nk(n,t,e=-1){let i=n.resolve(t);for(let r=i.depth;;r--){let o,s,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):e>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Rk(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=e<0?i.before(r):i.after(r)}}function Lk(n,t,e){let i=n.resolve(t);if(!e.content.size)return t;let r=e.content;for(let o=0;o=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==o)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function TC(n,t,e=t,i=G.empty){if(t==e&&!i.size)return null;let r=n.resolve(t),o=n.resolve(e);return Qk(r,o,i)?new Wn(t,e,i):new T6(r,o,i).fit()}function Qk(n,t,e){return!e.openStart&&!e.openEnd&&n.start()==t.start()&&n.parent.canReplace(n.index(),t.index(),e.content)}Yn.jsonID("replaceAround",Cn);class T6{constructor(t,e,i){this.$from=t,this.$to=e,this.unplaced=i,this.frontier=[],this.placed=L.empty;for(let r=0;r<=t.depth;r++){let o=t.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=L.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let o=this.placed,s=i.depth,a=r.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new G(o,s,a);return t>-1?new Cn(i.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||i.pos!=this.$to.pos?new Wn(i.pos,r.pos,l):null}findFittable(){for(let t=1;t<=2;t++)for(let e=this.unplaced.openStart;e>=0;e--){let i,r=null;e?(r=BC(this.unplaced.content,e-1).firstChild,i=r.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let c,{type:a,match:l}=this.frontier[s],u=null;if(1==t&&(o?l.matchType(o.type)||(u=l.fillBefore(L.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:e,frontierDepth:s,parent:r,inject:u};if(2==t&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:e,frontierDepth:s,parent:r,wrap:c};if(r&&l.matchType(r.type))break}}}openMore(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=BC(t,e);return!(!r.childCount||r.firstChild.isLeaf||(this.unplaced=new G(t,e+1,Math.max(i,r.size+e>=t.size-i?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=BC(t,e);if(r.childCount<=1&&e>0){let o=t.size-e<=e+r.size;this.unplaced=new G(Xd(t,e-1,1),e-1,o?e-1:i)}else this.unplaced=new G(Xd(t,e,1),e,i)}placeNodes({sliceDepth:t,frontierDepth:e,parent:i,inject:r,wrap:o}){for(;this.depth>e;)this.closeFrontierNode();if(o)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(Uk(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Zd(this.placed,e,L.from(u)),this.frontier[e].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:i,type:r}=this.frontier[e],o=e=0;a--){let{match:l,type:c}=this.frontier[a],u=OC(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:e,fit:s,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=Zd(this.placed,e.depth,e.fit)),t=e.move;for(let i=e.depth+1;i<=t.depth;i++){let r=t.node(i),o=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,o)}return t}openFrontierNode(t,e=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=Zd(this.placed,this.depth,L.from(t.create(e,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(L.empty,!0);e.childCount&&(this.placed=Zd(this.placed,this.frontier.length,e))}}function Xd(n,t,e){return 0==t?n.cutByIndex(e,n.childCount):n.replaceChild(0,n.firstChild.copy(Xd(n.firstChild.content,t-1,e)))}function Zd(n,t,e){return 0==t?n.append(e):n.replaceChild(n.childCount-1,n.lastChild.copy(Zd(n.lastChild.content,t-1,e)))}function BC(n,t){for(let e=0;e1&&(i=i.replaceChild(0,Uk(i.firstChild,t-1,1==i.childCount?e-1:0))),t>0&&(i=n.type.contentMatch.fillBefore(i).append(i),e<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(L.empty,!0)))),n.copy(i)}function OC(n,t,e,i,r){let o=n.node(t),s=r?n.indexAfter(t):n.index(t);if(s==o.childCount&&!e.compatibleContent(o.type))return null;let a=i.fillBefore(o.content,!0,s);return a&&!function B6(n,t,e){for(let i=e;ii){let o=r.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(L.empty,!0))}return n}function zk(n,t){let e=[];for(let r=Math.min(n.depth,t.depth);r>=0;r--){let o=n.start(r);if(ot.pos+(t.depth-r)||n.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==n.depth&&r==t.depth&&n.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&e.push(r)}return e}class Bc extends Yn{constructor(t,e,i){super(),this.pos=t,this.attr=e,this.value=i}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at attribute step's position");let i=Object.create(null);for(let o in e.attrs)i[o]=e.attrs[o];i[this.attr]=this.value;let r=e.type.create(i,null,e.marks);return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(r),0,e.isLeaf?0:1))}getMap(){return or.empty}invert(t){return new Bc(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Bc(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bc(e.pos,e.attr,e.value)}}Yn.jsonID("attr",Bc);let Oc=class extends Error{};Oc=function n(t){let e=Error.call(this,t);return e.__proto__=n.prototype,e},(Oc.prototype=Object.create(Error.prototype)).constructor=Oc,Oc.prototype.name="TransformError";class kC{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Sc}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Oc(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,i=G.empty){let r=TC(this.doc,t,e,i);return r&&this.step(r),this}replaceWith(t,e,i){return this.replace(t,e,new G(L.from(i),0,0))}delete(t,e){return this.replace(t,e,G.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,i){return function k6(n,t,e,i){if(!i.size)return n.deleteRange(t,e);let r=n.doc.resolve(t),o=n.doc.resolve(e);if(Qk(r,o,i))return n.step(new Wn(t,e,i));let s=zk(r,n.doc.resolve(e));0==s[s.length-1]&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let h=r.depth,p=r.pos-1;h>0;h--,p--){let f=r.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:r.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=O6(p);if(f&&r.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(t,e,i),!(n.steps.length>d));h--){let p=s[h];p<0||(t=r.before(p),e=o.after(p))}}(this,t,e,i),this}replaceRangeWith(t,e,i){return function P6(n,t,e,i){if(!i.isInline&&t==e&&n.doc.resolve(t).parent.content.size){let r=function x6(n,t,e){let i=n.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),e))return t;if(0==i.parentOffset)for(let r=i.depth-1;r>=0;r--){let o=i.index(r);if(i.node(r).canReplaceWith(o,o,e))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let o=i.indexAfter(r);if(i.node(r).canReplaceWith(o,o,e))return i.after(r+1);if(o0&&(l||i.node(a-1).canReplace(i.index(a-1),r.indexAfter(a-1))))return n.delete(i.before(a),r.after(a))}for(let s=1;s<=i.depth&&s<=r.depth;s++)if(t-i.start(s)==i.depth-s&&e>i.end(s)&&r.end(s)-e!=r.depth-s)return n.delete(i.before(s),e);n.delete(t,e)}(this,t,e),this}lift(t,e){return function _6(n,t,e){let{$from:i,$to:r,depth:o}=t,s=i.before(o+1),a=r.after(o+1),l=s,c=a,u=L.empty,d=0;for(let f=o,g=!1;f>e;f--)g||i.index(f)>0?(g=!0,u=L.from(i.node(f).copy(u)),d++):l--;let h=L.empty,p=0;for(let f=o,g=!1;f>e;f--)g||r.after(f+1)=0;s--){if(i.size){let a=e[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=L.from(e[s].type.create(e[s].attrs,i))}let r=t.start,o=t.end;n.step(new Cn(r,o,r,o,new G(i,0,0),e.length,!0))}(this,t,e),this}setBlockType(t,e=t,i,r=null){return function M6(n,t,e,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(t,e,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,r)&&function w6(n,t,e){let i=n.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,e)}(n.doc,n.mapping.slice(o).map(a),i)){n.clearIncompatible(n.mapping.slice(o).map(a,1),i);let l=n.mapping.slice(o),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new Cn(c,u,c+1,u-1,new G(L.from(i.create(r,null,s.marks)),0,0),1,!0)),!1}})}(this,t,e,i,r),this}setNodeMarkup(t,e,i=null,r=[]){return function D6(n,t,e,i,r){let o=n.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");e||(e=o.type);let s=e.create(i,null,r||o.marks);if(o.isLeaf)return n.replaceWith(t,t+o.nodeSize,s);if(!e.validContent(o.content))throw new RangeError("Invalid content for node type "+e.name);n.step(new Cn(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new G(L.from(s),0,0),1,!0))}(this,t,e,i,r),this}setNodeAttribute(t,e,i){return this.step(new Bc(t,e,i)),this}addNodeMark(t,e){return this.step(new Fs(t,e)),this}removeNodeMark(t,e){if(!(e instanceof Tt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(i.marks)))return this}return this.step(new xc(t,e)),this}split(t,e=1,i){return function I6(n,t,e=1,i){let r=n.doc.resolve(t),o=L.empty,s=L.empty;for(let a=r.depth,l=r.depth-e,c=e-1;a>l;a--,c--){o=L.from(r.node(a).copy(o));let u=i&&i[c];s=L.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}n.step(new Wn(t,t,new G(o.append(s),e,e),!0))}(this,t,e,i),this}addMark(t,e,i){return function m6(n,t,e,i){let s,a,r=[],o=[];n.doc.nodesBetween(t,e,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,t),p=Math.min(c+l.nodeSize,e),f=i.addToSet(d);for(let g=0;gn.step(l)),o.forEach(l=>n.step(l))}(this,t,e,i),this}removeMark(t,e,i){return function A6(n,t,e,i){let r=[],o=0;n.doc.nodesBetween(t,e,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(i instanceof Wg){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,e);for(let u=0;un.step(new so(s.from,s.to,s.style)))}(this,t,e,i),this}clearIncompatible(t,e,i){return function b6(n,t,e,i=e.contentMatch){let r=n.doc.nodeAt(t),o=[],s=t+1;for(let a=0;a=0;a--)n.step(o[a])}(this,t,e,i),this}}const PC=Object.create(null);class _e{constructor(t,e,i){this.$anchor=t,this.$head=e,this.ranges=i||[new Hk(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let s=e<0?kc(t.node(0),t.node(o),t.before(o+1),t.index(o),e,i):kc(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,i);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new Qi(t.node(0))}static atStart(t){return kc(t,t,0,0,1)||new Qi(t)}static atEnd(t){return kc(t,t,t.content.size,t.childCount,-1)||new Qi(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=PC[e.type];if(!i)throw new RangeError(`No selection type ${e.type} defined`);return i.fromJSON(t,e)}static jsonID(t,e){if(t in PC)throw new RangeError("Duplicate use of selection JSON ID "+t);return PC[t]=e,e.prototype.jsonID=t,e}getBookmark(){return Ee.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class Hk{constructor(t,e){this.$from=t,this.$to=e}}let Vk=!1;function Gk(n){!Vk&&!n.parent.inlineContent&&(Vk=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ee extends _e{constructor(t,e=t){Gk(t),Gk(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let i=t.resolve(e.map(this.head));if(!i.parent.inlineContent)return _e.near(i);let r=t.resolve(e.map(this.anchor));return new Ee(r.parent.inlineContent?r:i,i)}replace(t,e=G.empty){if(super.replace(t,e),e==G.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ee&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Xg(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ee(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,i=e){let r=t.resolve(e);return new this(r,i==e?r:t.resolve(i))}static between(t,e,i){let r=t.pos-e.pos;if((!i||r)&&(i=r>=0?1:-1),!e.parent.inlineContent){let o=_e.findFrom(e,i,!0)||_e.findFrom(e,-i,!0);if(!o)return _e.near(e,i);e=o.$head}return t.parent.inlineContent||(0==r||(t=(_e.findFrom(t,-i,!0)||_e.findFrom(t,i,!0)).$anchor).posnew Qi(n)};function kc(n,t,e,i,r,o=!1){if(t.inlineContent)return Ee.create(n,e);for(let s=i-(r>0?0:1);r>0?s=0;s+=r){let a=t.child(s);if(a.isAtom){if(!o&&ce.isSelectable(a))return ce.create(n,e-(r<0?a.nodeSize:0))}else{let l=kc(n,a,e+r,r<0?a.childCount:0,r,o);if(l)return l}e+=a.nodeSize*r}return null}function Yk(n,t,e){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e)))}class N6 extends kC{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Tt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Tt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,i){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==i&&(i=e),i=i??e,!t)return this.deleteRange(e,i);let o=this.storedMarks;if(!o){let s=this.doc.resolve(e);o=i==e?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(e,i,r.text(t,o)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function Kk(n,t){return t&&n?n.bind(t):n}class eh{constructor(t,e,i){this.name=t,this.init=Kk(e.init,i),this.apply=Kk(e.apply,i)}}const L6=[new eh("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new eh("selection",{init:(n,t)=>n.selection||_e.atStart(t.doc),apply:n=>n.selection}),new eh("storedMarks",{init:n=>n.storedMarks||null,apply:(n,t,e,i)=>i.selection.$cursor?n.storedMarks:null}),new eh("scrollToSelection",{init:()=>0,apply:(n,t)=>n.scrolledIntoView?t+1:t})];class RC{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=L6.slice(),e&&e.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new eh(i.key,i.spec.state,i))})}}class Pc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let i=0;ii.toJSON())),t&&"object"==typeof t)for(let i in t){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],o=r.spec.state;o&&o.toJSON&&(e[i]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,i){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new RC(t.schema,t.plugins),o=new Pc(r);return r.fields.forEach(s=>{if("doc"==s.name)o.doc=ro.fromJSON(t.schema,e.doc);else if("selection"==s.name)o.selection=_e.fromJSON(o.doc,e.selection);else if("storedMarks"==s.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(e,a))return void(o[s.name]=c.fromJSON.call(l,t,e[a],o))}o[s.name]=s.init(t,o)}}),o}}function $k(n,t,e){for(let i in n){let r=n[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=$k(r,t,{})),e[i]=r}return e}class it{constructor(t){this.spec=t,this.props={},t.props&&$k(t.props,this,this.props),this.key=t.key?t.key.key:qk("plugin")}getState(t){return t[this.key]}}const NC=Object.create(null);function qk(n){return n in NC?n+"$"+ ++NC[n]:(NC[n]=0,n+"$")}class _t{constructor(t="key"){this.key=qk(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}function sr(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Ka(n){return n instanceof sr(n).Element||n instanceof Element}function ar(n){return n instanceof sr(n).HTMLElement||n instanceof HTMLElement}function LC(n){return!(typeof ShadowRoot>"u")&&(n instanceof sr(n).ShadowRoot||n instanceof ShadowRoot)}var $a=Math.max,em=Math.min,Fc=Math.round;function QC(){var n=navigator.userAgentData;return null!=n&&n.brands?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Xk(){return!/^((?!chrome|android).)*safari/i.test(QC())}function Rc(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=n.getBoundingClientRect(),r=1,o=1;t&&ar(n)&&(r=n.offsetWidth>0&&Fc(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Fc(i.height)/n.offsetHeight||1);var a=(Ka(n)?sr(n):window).visualViewport,l=!Xk()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function UC(n){var t=sr(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ao(n){return n?(n.nodeName||"").toLowerCase():null}function Ns(n){return((Ka(n)?n.ownerDocument:n.document)||window.document).documentElement}function jC(n){return Rc(Ns(n)).left+UC(n).scrollLeft}function Wo(n){return sr(n).getComputedStyle(n)}function zC(n){var t=Wo(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function z6(n,t,e){void 0===e&&(e=!1);var i=ar(t),r=ar(t)&&function j6(n){var t=n.getBoundingClientRect(),e=Fc(t.width)/n.offsetWidth||1,i=Fc(t.height)/n.offsetHeight||1;return 1!==e||1!==i}(t),o=Ns(t),s=Rc(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==ao(t)||zC(o))&&(a=function U6(n){return n!==sr(n)&&ar(n)?function Q6(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):UC(n)}(t)),ar(t)?((l=Rc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function HC(n){var t=Rc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function tm(n){return"html"===ao(n)?n:n.assignedSlot||n.parentNode||(LC(n)?n.host:null)||Ns(n)}function Zk(n){return["html","body","#document"].indexOf(ao(n))>=0?n.ownerDocument.body:ar(n)&&zC(n)?n:Zk(tm(n))}function th(n,t){var e;void 0===t&&(t=[]);var i=Zk(n),r=i===(null==(e=n.ownerDocument)?void 0:e.body),o=sr(i),s=r?[o].concat(o.visualViewport||[],zC(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(th(tm(s)))}function H6(n){return["table","td","th"].indexOf(ao(n))>=0}function eP(n){return ar(n)&&"fixed"!==Wo(n).position?n.offsetParent:null}function nh(n){for(var t=sr(n),e=eP(n);e&&H6(e)&&"static"===Wo(e).position;)e=eP(e);return e&&("html"===ao(e)||"body"===ao(e)&&"static"===Wo(e).position)?t:e||function V6(n){var t=/firefox/i.test(QC());if(/Trident/i.test(QC())&&ar(n)&&"fixed"===Wo(n).position)return null;var r=tm(n);for(LC(r)&&(r=r.host);ar(r)&&["html","body"].indexOf(ao(r))<0;){var o=Wo(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(n)||t}var _i="top",lr="bottom",cr="right",Ei="left",VC="auto",ih=[_i,lr,cr,Ei],Nc="start",rh="end",tP="viewport",oh="popper",nP=ih.reduce(function(n,t){return n.concat([t+"-"+Nc,t+"-"+rh])},[]),iP=[].concat(ih,[VC]).reduce(function(n,t){return n.concat([t,t+"-"+Nc,t+"-"+rh])},[]),nq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function iq(n){var t=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.set(o.name,o)}),n.forEach(function(o){e.has(o.name)||r(o)}),i}function oq(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var rP={placement:"bottom",modifiers:[],strategy:"absolute"};function oP(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function sP(n){var l,t=n.reference,e=n.element,i=n.placement,r=i?lo(i):null,o=i?Lc(i):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2;switch(r){case _i:l={x:s,y:t.y-e.height};break;case lr:l={x:s,y:t.y+t.height};break;case cr:l={x:t.x+t.width,y:a};break;case Ei:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?GC(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Nc:l[c]=l[c]-(t[u]/2-e[u]/2);break;case rh:l[c]=l[c]+(t[u]/2-e[u]/2)}}return l}const dq={name:"popperOffsets",enabled:!0,phase:"read",fn:function uq(n){var t=n.state;t.modifiersData[n.name]=sP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var hq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aP(n){var t,e=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),E=Ei,b=_i,D=window;if(c){var I=nh(e),Q="clientHeight",O="clientWidth";I===sr(e)&&"static"!==Wo(I=Ns(e)).position&&"absolute"===a&&(Q="scrollHeight",O="scrollWidth"),(r===_i||(r===Ei||r===cr)&&o===rh)&&(b=lr,g-=(d&&I===D&&D.visualViewport?D.visualViewport.height:I[Q])-i.height,g*=l?1:-1),r!==Ei&&(r!==_i&&r!==lr||o!==rh)||(E=cr,p-=(d&&I===D&&D.visualViewport?D.visualViewport.width:I[O])-i.width,p*=l?1:-1)}var Ae,xe=Object.assign({position:a},c&&hq),ke=!0===u?function pq(n){var e=n.y,r=window.devicePixelRatio||1;return{x:Fc(n.x*r)/r||0,y:Fc(e*r)/r||0}}({x:p,y:g}):{x:p,y:g};return p=ke.x,g=ke.y,Object.assign({},xe,l?((Ae={})[b]=y?"0":"",Ae[E]=A?"0":"",Ae.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Ae):((t={})[b]=y?g+"px":"",t[E]=A?p+"px":"",t.transform="",t))}const gq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fq(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,s=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,u={placement:lo(t.placement),variation:Lc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,aP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,aP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},lP={name:"applyStyles",enabled:!0,phase:"write",fn:function mq(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!ar(o)||!ao(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];!1===a?o.removeAttribute(s):o.setAttribute(s,!0===a?"":a)}))})},effect:function Aq(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]).reduce(function(l,c){return l[c]="",l},{});!ar(r)||!ao(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]},_q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function yq(n){var t=n.state,i=n.name,r=n.options.offset,o=void 0===r?[0,0]:r,s=iP.reduce(function(u,d){return u[d]=function bq(n,t,e){var i=lo(n),r=[Ei,_i].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:n})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Ei,cr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,t.rects,o),u},{}),a=s[t.placement],c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a.x,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var Eq={left:"right",right:"left",bottom:"top",top:"bottom"};function im(n){return n.replace(/left|right|bottom|top/g,function(t){return Eq[t]})}var Cq={start:"end",end:"start"};function cP(n){return n.replace(/start|end/g,function(t){return Cq[t]})}function uP(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&LC(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function YC(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function dP(n,t,e){return t===tP?YC(function vq(n,t){var e=sr(n),i=Ns(n),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=Xk();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+jC(n),y:l}}(n,e)):Ka(t)?function wq(n,t){var e=Rc(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):YC(function Mq(n){var t,e=Ns(n),i=UC(n),r=null==(t=n.ownerDocument)?void 0:t.body,o=$a(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=$a(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+jC(n),l=-i.scrollTop;return"rtl"===Wo(r||e).direction&&(a+=$a(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Ns(n)))}function pP(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function fP(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}function sh(n,t){void 0===t&&(t={});var i=t.placement,r=void 0===i?n.placement:i,o=t.strategy,s=void 0===o?n.strategy:o,a=t.boundary,l=void 0===a?"clippingParents":a,c=t.rootBoundary,u=void 0===c?tP:c,d=t.elementContext,h=void 0===d?oh:d,p=t.altBoundary,f=void 0!==p&&p,g=t.padding,m=void 0===g?0:g,A=pP("number"!=typeof m?m:fP(m,ih)),E=n.rects.popper,b=n.elements[f?h===oh?"reference":oh:h],D=function Iq(n,t,e,i){var r="clippingParents"===t?function Dq(n){var t=th(tm(n)),i=["absolute","fixed"].indexOf(Wo(n).position)>=0&&ar(n)?nh(n):n;return Ka(i)?t.filter(function(r){return Ka(r)&&uP(r,i)&&"body"!==ao(r)}):[]}(n):[].concat(t),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=dP(n,c,i);return l.top=$a(u.top,l.top),l.right=em(u.right,l.right),l.bottom=em(u.bottom,l.bottom),l.left=$a(u.left,l.left),l},dP(n,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ka(b)?b:b.contextElement||Ns(n.elements.popper),l,u,s),I=Rc(n.elements.reference),Q=sP({reference:I,element:E,strategy:"absolute",placement:r}),O=YC(Object.assign({},E,Q)),q=h===oh?O:I,le={top:D.top-q.top+A.top,bottom:q.bottom-D.bottom+A.bottom,left:D.left-q.left+A.left,right:q.right-D.right+A.right},xe=n.modifiersData.offset;if(h===oh&&xe){var ke=xe[r];Object.keys(le).forEach(function(Ae){var dt=[cr,lr].indexOf(Ae)>=0?1:-1,ht=[_i,lr].indexOf(Ae)>=0?"y":"x";le[Ae]+=ke[ht]*dt})}return le}const Bq={name:"flip",enabled:!0,phase:"main",fn:function Tq(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,p=e.flipVariations,f=void 0===p||p,g=e.allowedAutoPlacements,m=t.options.placement,A=lo(m),E=l||(A!==m&&f?function xq(n){if(lo(n)===VC)return[];var t=im(n);return[cP(n),t,cP(t)]}(m):[im(m)]),b=[m].concat(E).reduce(function(Xe,wi){return Xe.concat(lo(wi)===VC?function Sq(n,t){void 0===t&&(t={});var r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?iP:l,u=Lc(t.placement),d=u?a?nP:nP.filter(function(f){return Lc(f)===u}):ih,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=sh(n,{placement:g,boundary:r,rootBoundary:o,padding:s})[lo(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(t,{placement:wi,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):wi)},[]),D=t.rects.reference,I=t.rects.popper,Q=new Map,O=!0,q=b[0],le=0;le=0,ht=dt?"width":"height",U=sh(t,{placement:xe,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),V=dt?Ae?cr:Ei:Ae?lr:_i;D[ht]>I[ht]&&(V=im(V));var W=im(V),X=[];if(o&&X.push(U[ke]<=0),a&&X.push(U[V]<=0,U[W]<=0),X.every(function(Xe){return Xe})){q=xe,O=!1;break}Q.set(xe,X)}if(O)for(var ft=function(wi){var Qr=b.find(function(Ht){var Pn=Q.get(Ht);if(Pn)return Pn.slice(0,wi).every(function(yn){return yn})});if(Qr)return q=Qr,"break"},Bt=f?3:1;Bt>0&&"break"!==ft(Bt);Bt--);t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ah(n,t,e){return $a(n,em(t,e))}const Fq={name:"preventOverflow",enabled:!0,phase:"main",fn:function Pq(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,p=void 0===h||h,f=e.tetherOffset,g=void 0===f?0:f,m=sh(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),A=lo(t.placement),y=Lc(t.placement),E=!y,b=GC(A),D=function Oq(n){return"x"===n?"y":"x"}(b),I=t.modifiersData.popperOffsets,Q=t.rects.reference,O=t.rects.popper,q="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,le="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),xe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(I){if(o){var Ae,dt="y"===b?_i:Ei,ht="y"===b?lr:cr,U="y"===b?"height":"width",V=I[b],W=V+m[dt],X=V-m[ht],Ce=p?-O[U]/2:0,ft=y===Nc?Q[U]:O[U],Bt=y===Nc?-O[U]:-Q[U],cn=t.elements.arrow,Xe=p&&cn?HC(cn):{width:0,height:0},wi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Qr=wi[dt],Ht=wi[ht],Pn=ah(0,Q[U],Xe[U]),yn=E?Q[U]/2-Ce-Pn-Qr-le.mainAxis:ft-Pn-Qr-le.mainAxis,zi=E?-Q[U]/2+Ce+Pn+Ht+le.mainAxis:Bt+Pn+Ht+le.mainAxis,_o=t.elements.arrow&&nh(t.elements.arrow),Jh=null!=(Ae=xe?.[b])?Ae:0,NA=V+zi-Jh,Kh=ah(p?em(W,V+yn-Jh-(_o?"y"===b?_o.clientTop||0:_o.clientLeft||0:0)):W,V,p?$a(X,NA):X);I[b]=Kh,ke[b]=Kh-V}if(a){var $h,is=I[D],la="y"===D?"height":"width",qh=is+m["x"===b?_i:Ei],yl=is-m["x"===b?lr:cr],Xh=-1!==[_i,Ei].indexOf(A),UA=null!=($h=xe?.[D])?$h:0,jA=Xh?qh:is-Q[la]-O[la]-UA+le.altAxis,zA=Xh?is+Q[la]+O[la]-UA-le.altAxis:yl,HA=p&&Xh?function kq(n,t,e){var i=ah(n,t,e);return i>e?e:i}(jA,is,zA):ah(p?jA:qh,is,p?zA:yl);I[D]=HA,ke[D]=HA-is}t.modifiersData[i]=ke}},requiresIfExists:["offset"]},Qq={name:"arrow",enabled:!0,phase:"main",fn:function Nq(n){var t,e=n.state,i=n.name,r=n.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=lo(e.placement),l=GC(a),u=[Ei,cr].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(t,e){return pP("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:fP(t,ih))}(r.padding,e),h=HC(o),p="y"===l?_i:Ei,f="y"===l?lr:cr,g=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],m=s[l]-e.rects.reference[l],A=nh(o),y=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=y/2-h[u]/2+(g/2-m/2),Q=ah(d[p],I,y-h[u]-d[f]);e.modifiersData[i]=((t={})[l]=Q,t.centerOffset=Q-I,t)}},effect:function Lq(n){var t=n.state,i=n.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!uP(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gP(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function mP(n){return[_i,cr,lr,Ei].some(function(t){return n[t]>=0})}var jq=[cq,dq,gq,lP,_q,Bq,Fq,Qq,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Uq(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=sh(t,{elementContext:"reference"}),a=sh(t,{altBoundary:!0}),l=gP(s,i),c=gP(a,r,o),u=mP(l),d=mP(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],zq=aq({defaultModifiers:jq}),AP="tippy-content",yP="tippy-arrow",_P="tippy-svg-arrow",Ls={passive:!0,capture:!0},EP=function(){return document.body};function WC(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function JC(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function CP(n,t){return"function"==typeof n?n.apply(void 0,t):n}function vP(n,t){return 0===t?n:function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)};var e}function Qs(n){return[].concat(n)}function MP(n,t){-1===n.indexOf(t)&&n.push(t)}function Qc(n){return[].slice.call(n)}function DP(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function qa(){return document.createElement("div")}function rm(n){return["Element","Fragment"].some(function(t){return JC(n,t)})}function qC(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function lh(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function XC(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function xP(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var co={isTouch:!1},TP=0;function $q(){co.isTouch||(co.isTouch=!0,window.performance&&document.addEventListener("mousemove",BP))}function BP(){var n=performance.now();n-TP<20&&(co.isTouch=!1,document.removeEventListener("mousemove",BP)),TP=n}function qq(){var n=document.activeElement;(function IP(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var e7=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Ci=Object.assign({appendTo:EP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),r7=Object.keys(Ci);function RP(n){var e=(n.plugins||[]).reduce(function(i,r){var a,o=r.name;return o&&(i[o]=void 0!==n[o]?n[o]:null!=(a=Ci[o])?a:r.defaultValue),i},{});return Object.assign({},n,e)}function NP(n,t){var e=Object.assign({},t,{content:CP(t.content,[n])},t.ignoreAttributes?{}:function s7(n,t){return(t?Object.keys(RP(Object.assign({},Ci,{plugins:t}))):r7).reduce(function(r,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return r;if("content"===o)r[o]=s;else try{r[o]=JSON.parse(s)}catch{r[o]=s}return r},{})}(n,t.plugins));return e.aria=Object.assign({},Ci.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function ZC(n,t){n.innerHTML=t}function LP(n){var t=qa();return!0===n?t.className=yP:(t.className=_P,rm(n)?t.appendChild(n):ZC(t,n)),t}function QP(n,t){rm(t.content)?(ZC(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ZC(n,t.content):n.textContent=t.content)}function om(n){var t=n.firstElementChild,e=Qc(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(AP)}),arrow:e.find(function(i){return i.classList.contains(yP)||i.classList.contains(_P)}),backdrop:e.find(function(i){return i.classList.contains("tippy-backdrop")})}}function UP(n){var t=qa(),e=qa();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=qa();function r(o,s){var a=om(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&QP(c,n.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(LP(s.arrow))):l.appendChild(LP(s.arrow)):u&&l.removeChild(u)}return i.className=AP,i.setAttribute("data-state","hidden"),QP(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props),{popper:t,onUpdate:r}}UP.$$tippy=!0;var l7=1,sm=[],am=[];function c7(n,t){var i,r,o,u,d,h,g,e=NP(n,Object.assign({},Ci,RP(DP(t)))),s=!1,a=!1,l=!1,c=!1,p=[],f=vP(RA,e.interactiveDebounce),m=l7++,y=function Yq(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),b={id:m,reference:n,popper:qa(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function jA(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(o)},setProps:function zA(k){if(!b.state.isDestroyed){W("onBeforeUpdate",[b,k]),FA();var se=b.props,De=NP(n,Object.assign({},se,DP(k),{ignoreAttributes:!0}));b.props=De,_o(),se.interactiveDebounce!==De.interactiveDebounce&&(ft(),f=vP(RA,De.interactiveDebounce)),se.triggerTarget&&!De.triggerTarget?Qs(se.triggerTarget).forEach(function(bt){bt.removeAttribute("aria-expanded")}):De.triggerTarget&&n.removeAttribute("aria-expanded"),Ce(),V(),Q&&Q(se,De),b.popperInstance&&(LA(),la().forEach(function(bt){requestAnimationFrame(bt._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[b,k])}},setContent:function HA(k){b.setProps({content:k})},show:function Upe(){var k=b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=co.isTouch&&!b.props.touch,Ze=WC(b.props.duration,0,Ci.duration);if(!(k||se||De||bt||Ae().hasAttribute("disabled")||(W("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,ke()&&(I.style.visibility="visible"),V(),wi(),b.state.isMounted||(I.style.transition="none"),ke()){var di=ht();qC([di.box,di.content],0)}h=function(){var _l;if(b.state.isVisible&&!c){if(c=!0,I.style.transition=b.props.moveTransition,ke()&&b.props.animation){var mw=ht(),VA=mw.box,hu=mw.content;qC([VA,hu],Ze),lh([VA,hu],"visible")}X(),Ce(),MP(am,b),null==(_l=b.popperInstance)||_l.forceUpdate(),W("onMount",[b]),b.props.animation&&ke()&&function Pn(k,se){yn(k,se)}(Ze,function(){b.state.isShown=!0,W("onShown",[b])})}},function is(){var se,k=b.props.appendTo,De=Ae();(se=b.props.interactive&&k===EP||"parent"===k?De.parentNode:CP(k,[De])).contains(I)||se.appendChild(I),b.state.isMounted=!0,LA()}()}},hide:function jpe(){var k=!b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=WC(b.props.duration,1,Ci.duration);if(!(k||se||De)&&(W("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,ke()&&(I.style.visibility="hidden"),ft(),Qr(),V(!0),ke()){var Ze=ht(),di=Ze.box,mr=Ze.content;b.props.animation&&(qC([di,mr],bt),lh([di,mr],"hidden"))}X(),Ce(),b.props.animation?ke()&&function Ht(k,se){yn(k,function(){!b.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&se()})}(bt,b.unmount):b.unmount()}},hideWithInteractivity:function zpe(k){dt().addEventListener("mousemove",f),MP(sm,f),f(k)},enable:function Xh(){b.state.isEnabled=!0},disable:function UA(){b.hide(),b.state.isEnabled=!1},unmount:function Hpe(){b.state.isVisible&&b.hide(),b.state.isMounted&&(QA(),la().forEach(function(k){k._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),am=am.filter(function(k){return k!==b}),b.state.isMounted=!1,W("onHidden",[b]))},destroy:function Vpe(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),FA(),delete n._tippy,b.state.isDestroyed=!0,W("onDestroy",[b]))}};if(!e.render)return b;var D=e.render(b),I=D.popper,Q=D.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+b.id,b.popper=I,n._tippy=b,I._tippy=b;var O=y.map(function(k){return k.fn(b)}),q=n.hasAttribute("aria-expanded");return _o(),Ce(),V(),W("onCreate",[b]),e.showOnCreate&&qh(),I.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&dt().addEventListener("mousemove",f)}),b;function le(){var k=b.props.touch;return Array.isArray(k)?k:[k,0]}function xe(){return"hold"===le()[0]}function ke(){var k;return!(null==(k=b.props.render)||!k.$$tippy)}function Ae(){return g||n}function dt(){var k=Ae().parentNode;return k?function SP(n){var t,i=Qs(n)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(k):document}function ht(){return om(I)}function U(k){return b.state.isMounted&&!b.state.isVisible||co.isTouch||u&&"focus"===u.type?0:WC(b.props.delay,k?0:1,Ci.delay)}function V(k){void 0===k&&(k=!1),I.style.pointerEvents=b.props.interactive&&!k?"":"none",I.style.zIndex=""+b.props.zIndex}function W(k,se,De){var bt;void 0===De&&(De=!0),O.forEach(function(Ze){Ze[k]&&Ze[k].apply(Ze,se)}),De&&(bt=b.props)[k].apply(bt,se)}function X(){var k=b.props.aria;if(k.content){var se="aria-"+k.content,De=I.id;Qs(b.props.triggerTarget||n).forEach(function(Ze){var di=Ze.getAttribute(se);if(b.state.isVisible)Ze.setAttribute(se,di?di+" "+De:De);else{var mr=di&&di.replace(De,"").trim();mr?Ze.setAttribute(se,mr):Ze.removeAttribute(se)}})}}function Ce(){!q&&b.props.aria.expanded&&Qs(b.props.triggerTarget||n).forEach(function(se){b.props.interactive?se.setAttribute("aria-expanded",b.state.isVisible&&se===Ae()?"true":"false"):se.removeAttribute("aria-expanded")})}function ft(){dt().removeEventListener("mousemove",f),sm=sm.filter(function(k){return k!==f})}function Bt(k){if(!co.isTouch||!l&&"mousedown"!==k.type){var se=k.composedPath&&k.composedPath()[0]||k.target;if(!b.props.interactive||!xP(I,se)){if(Qs(b.props.triggerTarget||n).some(function(De){return xP(De,se)})){if(co.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[b,k]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||Qr())}}}function cn(){l=!0}function Xe(){l=!1}function wi(){var k=dt();k.addEventListener("mousedown",Bt,!0),k.addEventListener("touchend",Bt,Ls),k.addEventListener("touchstart",Xe,Ls),k.addEventListener("touchmove",cn,Ls)}function Qr(){var k=dt();k.removeEventListener("mousedown",Bt,!0),k.removeEventListener("touchend",Bt,Ls),k.removeEventListener("touchstart",Xe,Ls),k.removeEventListener("touchmove",cn,Ls)}function yn(k,se){var De=ht().box;function bt(Ze){Ze.target===De&&(XC(De,"remove",bt),se())}if(0===k)return se();XC(De,"remove",d),XC(De,"add",bt),d=bt}function zi(k,se,De){void 0===De&&(De=!1),Qs(b.props.triggerTarget||n).forEach(function(Ze){Ze.addEventListener(k,se,De),p.push({node:Ze,eventType:k,handler:se,options:De})})}function _o(){xe()&&(zi("touchstart",Jh,{passive:!0}),zi("touchend",NA,{passive:!0})),function Gq(n){return n.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach(function(k){if("manual"!==k)switch(zi(k,Jh),k){case"mouseenter":zi("mouseleave",NA);break;case"focus":zi(e7?"focusout":"blur",Kh);break;case"focusin":zi("focusout",Kh)}})}function FA(){p.forEach(function(k){k.node.removeEventListener(k.eventType,k.handler,k.options)}),p=[]}function Jh(k){var se,De=!1;if(b.state.isEnabled&&!$h(k)&&!a){var bt="focus"===(null==(se=u)?void 0:se.type);u=k,g=k.currentTarget,Ce(),!b.state.isVisible&&function $C(n){return JC(n,"MouseEvent")}(k)&&sm.forEach(function(Ze){return Ze(k)}),"click"===k.type&&(b.props.trigger.indexOf("mouseenter")<0||s)&&!1!==b.props.hideOnClick&&b.state.isVisible?De=!0:qh(k),"click"===k.type&&(s=!De),De&&!bt&&yl(k)}}function RA(k){var se=k.target,De=Ae().contains(se)||I.contains(se);"mousemove"===k.type&&De||function Kq(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var o=r.popperRect,s=r.popperState,l=r.props.interactiveBorder,c=function wP(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||o.top-i+("bottom"===c?u.top.y:0)>l||i-o.bottom-("top"===c?u.bottom.y:0)>l||o.left-e+("right"===c?u.left.x:0)>l||e-o.right-("left"===c?u.right.x:0)>l})}(la().concat(I).map(function(Ze){var di,du=null==(di=Ze._tippy.popperInstance)?void 0:di.state;return du?{popperRect:Ze.getBoundingClientRect(),popperState:du,props:e}:null}).filter(Boolean),k)&&(ft(),yl(k))}function NA(k){if(!($h(k)||b.props.trigger.indexOf("click")>=0&&s)){if(b.props.interactive)return void b.hideWithInteractivity(k);yl(k)}}function Kh(k){b.props.trigger.indexOf("focusin")<0&&k.target!==Ae()||b.props.interactive&&k.relatedTarget&&I.contains(k.relatedTarget)||yl(k)}function $h(k){return!!co.isTouch&&xe()!==k.type.indexOf("touch")>=0}function LA(){QA();var k=b.props,se=k.popperOptions,De=k.placement,bt=k.offset,Ze=k.getReferenceClientRect,di=k.moveTransition,mr=ke()?om(I).arrow:null,du=Ze?{getBoundingClientRect:Ze,contextElement:Ze.contextElement||Ae()}:n,_l=[{name:"offset",options:{offset:bt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!di}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(VA){var hu=VA.state;if(ke()){var Aw=ht().box;["placement","reference-hidden","escaped"].forEach(function(GA){"placement"===GA?Aw.setAttribute("data-placement",hu.placement):hu.attributes.popper["data-popper-"+GA]?Aw.setAttribute("data-"+GA,""):Aw.removeAttribute("data-"+GA)}),hu.attributes.popper={}}}}];ke()&&mr&&_l.push({name:"arrow",options:{element:mr,padding:3}}),_l.push.apply(_l,se?.modifiers||[]),b.popperInstance=zq(du,I,Object.assign({},se,{placement:De,onFirstUpdate:h,modifiers:_l}))}function QA(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function la(){return Qc(I.querySelectorAll("[data-tippy-root]"))}function qh(k){b.clearDelayTimeouts(),k&&W("onTrigger",[b,k]),wi();var se=U(!0),De=le(),Ze=De[1];co.isTouch&&"hold"===De[0]&&Ze&&(se=Ze),se?i=setTimeout(function(){b.show()},se):b.show()}function yl(k){if(b.clearDelayTimeouts(),W("onUntrigger",[b,k]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(k.type)>=0&&s)){var se=U(!1);se?r=setTimeout(function(){b.state.isVisible&&b.hide()},se):o=requestAnimationFrame(function(){b.hide()})}}else Qr()}}function Us(n,t){void 0===t&&(t={});var e=Ci.plugins.concat(t.plugins||[]);!function Xq(){document.addEventListener("touchstart",$q,Ls),window.addEventListener("blur",qq)}();var i=Object.assign({},t,{plugins:e}),a=function Jq(n){return rm(n)?[n]:function Wq(n){return JC(n,"NodeList")}(n)?Qc(n):Array.isArray(n)?n:Qc(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&c7(c,i);return u&&l.push(u),l},[]);return rm(n)?a[0]:a}Us.defaultProps=Ci,Us.setDefaultProps=function(t){Object.keys(t).forEach(function(i){Ci[i]=t[i]})},Us.currentInput=co,Object.assign({},lP,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}}),Us.setDefaultProps({render:UP});const Jo=Us,HP=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Jn(n){return t=>0===n?Yf():t.lift(new A7(n))}class A7{constructor(t){if(this.total=t,this.total<0)throw new HP}call(t,e){return e.subscribe(new b7(t,this.total))}}class b7 extends Ge{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const Ui=function(n){for(var t=0;;t++)if(!(n=n.previousSibling))return t},uh=function(n){let t=n.assignedSlot||n.parentNode;return t&&11==t.nodeType?t.host:t};let VP=null;const Ko=function(n,t,e){let i=VP||(VP=document.createRange());return i.setEnd(n,e??n.nodeValue.length),i.setStart(n,t||0),i},Xa=function(n,t,e,i){return e&&(GP(n,t,e,i,-1)||GP(n,t,e,i,1))},y7=/^(img|br|input|textarea|hr)$/i;function GP(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:uo(n))){let o=n.parentNode;if(!o||1!=o.nodeType||E7(n)||y7.test(n.nodeName)||"false"==n.contentEditable)return!1;t=Ui(n)+(r<0?0:1),n=o}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?uo(n):0}}}function uo(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function E7(n){let t;for(let e=n;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==n||t.contentDOM==n)}const cm=function(n){return n.focusNode&&Xa(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Uc(n,t){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=n,e.key=e.code=t,e}const js=typeof navigator<"u"?navigator:null,YP=typeof document<"u"?document:null,zs=js&&js.userAgent||"",tv=/Edge\/(\d+)/.exec(zs),WP=/MSIE \d/.exec(zs),nv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zs),vi=!!(WP||nv||tv),Hs=WP?document.documentMode:nv?+nv[1]:tv?+tv[1]:0,kr=!vi&&/gecko\/(\d+)/i.test(zs);kr&&/Firefox\/(\d+)/.exec(zs);const iv=!vi&&/Chrome\/(\d+)/.exec(zs),Mi=!!iv,v7=iv?+iv[1]:0,ai=!vi&&!!js&&/Apple Computer/.test(js.vendor),jc=ai&&(/Mobile\/\w+/.test(zs)||!!js&&js.maxTouchPoints>2),ur=jc||!!js&&/Mac/.test(js.platform),ho=/Android \d/.test(zs),um=!!YP&&"webkitFontSmoothing"in YP.documentElement.style,M7=um?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function w7(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Vs(n,t){return"number"==typeof n?n:n[t]}function D7(n){let t=n.getBoundingClientRect();return{left:t.left,right:t.left+n.clientWidth*(t.width/n.offsetWidth||1),top:t.top,bottom:t.top+n.clientHeight*(t.height/n.offsetHeight||1)}}function JP(n,t,e){let i=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=e||n.dom;s;s=uh(s)){if(1!=s.nodeType)continue;let a=s,l=a==o.body,c=l?w7(o):D7(a),u=0,d=0;if(t.topc.bottom-Vs(i,"bottom")&&(d=t.bottom-c.bottom+Vs(r,"bottom")),t.leftc.right-Vs(i,"right")&&(u=t.right-c.right+Vs(r,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;t={left:t.left-f,top:t.top-g,right:t.right-f,bottom:t.bottom-g}}if(l)break}}function KP(n){let t=[],e=n.ownerDocument;for(let i=n;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=e);i=uh(i));return t}function $P(n,t){for(let e=0;e=a){s=Math.max(h.bottom,s),a=Math.min(h.top,a);let p=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!e&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=c+1)}}return e&&3==e.nodeType?function T7(n,t){let e=n.nodeValue.length,i=document.createRange();for(let r=0;r=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}(e,r):!e||i&&1==e.nodeType?{node:n,offset:o}:qP(e,r)}function rv(n,t){return n.left>=t.left-1&&n.left<=t.right+1&&n.top>=t.top-1&&n.top<=t.bottom+1}function XP(n,t,e){let i=n.childNodes.length;if(i&&e.topt.top&&r++}i==n.dom&&r==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?s=n.state.doc.content.size:(0==r||1!=i.nodeType||"BR"!=i.childNodes[r-1].nodeName)&&(s=function k7(n,t,e,i){let r=-1;for(let o=t;o!=n.dom;){let s=n.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){let a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right-1?r:n.docView.posFromDOM(t,e,1)}(n,i,r,t))}null==s&&(s=function O7(n,t,e){let{node:i,offset:r}=qP(t,e),o=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();o=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,r,o)}(n,o,t));let a=n.docView.nearestDesc(o,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function Gs(n,t){let e=n.getClientRects();return e.length?e[t<0?0:e.length-1]:n.getBoundingClientRect()}const F7=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ZP(n,t,e){let{node:i,offset:r,atom:o}=n.docView.domFromPos(t,e<0?-1:1),s=um||kr;if(3==i.nodeType){if(!s||!F7.test(i.nodeValue)&&(e<0?r:r!=i.nodeValue.length)){let l=r,c=r,u=e<0?1:-1;return e<0&&!r?(c++,u=-1):e>=0&&r==i.nodeValue.length?(l--,u=1):e<0?l--:c++,dh(Gs(Ko(i,l,c),1),u<0)}{let l=Gs(Ko(i,r,r),e);if(kr&&r&&/\s/.test(i.nodeValue[r-1])&&r=0)}if(null==o&&r&&(e<0||r==uo(i))){let l=i.childNodes[r-1],c=3==l.nodeType?Ko(l,uo(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return dh(Gs(c,1),!1)}if(null==o&&r=0)}function dh(n,t){if(0==n.width)return n;let e=t?n.left:n.right;return{top:n.top,bottom:n.bottom,left:e,right:e}}function ov(n,t){if(0==n.height)return n;let e=t?n.top:n.bottom;return{top:e,bottom:e,left:n.left,right:n.right}}function eF(n,t,e){let i=n.state,r=n.root.activeElement;i!=t&&n.updateState(t),r!=n.dom&&n.focus();try{return e()}finally{i!=t&&n.updateState(i),r!=n.dom&&r&&r.focus()}}const N7=/[\u0590-\u08ac]/;let tF=null,nF=null,iF=!1;class hh{constructor(t,e,i,r){this.parent=t,this.children=e,this.dom=i,this.contentDOM=r,this.dirty=0,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;eUi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let i=!0,r=t;r;r=r.parentNode){let s,o=this.getDesc(r);if(o&&(!e||o.node)){if(!i||!(s=o.nodeDOM)||(1==s.nodeType?s.contains(1==t.nodeType?t:t.parentNode):s==t))return o;i=!1}}}getDesc(t){let e=t.pmViewDesc;for(let i=e;i;i=i.parent)if(i==this)return e}posFromDOM(t,e,i){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,i)}return-1}descAt(t){for(let e=0,i=0;et||s instanceof aF){r=t-o;break}o=a}if(r)return this.children[i].domFromPos(r-this.children[i].border,e);for(;i&&!(o=this.children[i-1]).size&&o instanceof oF&&o.side>=0;i--);if(e<=0){let o,s=!0;for(;o=i?this.children[i-1]:null,o&&o.dom.parentNode!=this.contentDOM;i--,s=!1);return o&&e&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,e):{node:this.contentDOM,offset:o?Ui(o.dom)+1:0}}{let o,s=!0;for(;o=i=u&&e<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,e,u);t=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=Ui(h.dom)+1;break}t-=h.size}-1==r&&(r=0)}if(r>-1&&(c>e||a==this.children.length-1)){e=c;for(let u=a+1;up&&se){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let i=0,r=0;r=i:ti){let a=i+o.border,l=s-o.border;if(t>=a&&e<=l)return this.dirty=t==i||e==s?2:1,void(t!=a||e!=l||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-a,e-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let i=1==t?2:1;e.dirtyo?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class U7 extends hh{constructor(t,e,i,r){super(t,[],e,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class Za extends hh{constructor(t,e,i,r){super(t,[],i,r),this.mark=e}static create(t,e,i,r){let o=r.nodeViews[e.type.name],s=o&&o(e,r,i);return(!s||!s.dom)&&(s=oo.renderSpec(document,e.type.spec.toDOM(e,i))),new Za(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(o=lv(o,0,t,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,r),u=c&&c.dom,d=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else u||({dom:u,contentDOM:d}=oo.renderSpec(document,e.type.spec.toDOM(e)));!d&&!e.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let h=u;return u=uF(u,i,e),c?l=new j7(t,e,i,r,u,d||null,h,c,o,s+1):e.isText?new dm(t,e,i,r,u,h,o):new el(t,e,i,r,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>L.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,i){return 0==this.dirty&&t.eq(this.node)&&av(e,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let i=this.node.inlineContent,r=e,o=t.composing?this.localCompositionInfo(t,e):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new H7(this,s&&s.node,t);(function Y7(n,t,e,i){let r=t.locals(n),o=0;if(0==r.length){for(let c=0;co;)a.push(r[s++]);let h=o+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),t.forChild(o,u),d),o=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Tt.none:this.node.child(u).marks,i,t),l.placeWidget(c,t,r)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,t),l.findNodeMatch(c,u,d,h)||a&&t.state.selection.from>r&&t.state.selection.to-1&&l.updateNodeAt(c,u,d,p,t)||l.updateNextNode(c,u,d,t,h)||l.addNode(c,u,d,t,r),r+=c.nodeSize}),l.syncToMarks([],i,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),lF(this.contentDOM,this.children,t),jc&&function W7(n){if("UL"==n.nodeName||"OL"==n.nodeName){let t=n.style.cssText;n.style.cssText=t+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=t}}(this.dom))}localCompositionInfo(t,e){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ee)||ie+this.node.content.size)return null;let o=t.domSelectionRange(),s=function J7(n,t){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&t>0){if(n.childNodes.length>t&&3==n.childNodes[t].nodeType)return n.childNodes[t];t=uo(n=n.childNodes[t-1])}else{if(!(1==n.nodeType&&t=e){let c=a=0&&c+t.length+a>=e)return a+c;if(e==i&&l.length>=i+t.length-a&&l.slice(i-a,i-a+t.length)==t)return i}}return-1}(this.node.content,a,i-e,r-e);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:i,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new U7(this,o,e,r);t.input.compositionNodes.push(s),this.children=lv(this.children,i,i+r.length,t,s)}update(t,e,i,r){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,i,r),0))}updateInner(t,e,i,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(av(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=cF(this.dom,this.nodeDOM,sv(this.outerDeco,this.node,e),sv(t,this.node,e)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function sF(n,t,e,i,r){return uF(i,t,n),new el(void 0,n,t,e,i,i,i,r,0)}class dm extends el{constructor(t,e,i,r,o,s,a){super(t,e,i,r,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,i,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,i){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,i)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,i){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new dm(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class aF extends hh{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class j7 extends el{constructor(t,e,i,r,o,s,a,l,c,u){super(t,e,i,r,o,s,a,c,u),this.spec=l}update(t,e,i,r){if(3==this.dirty)return!1;if(this.spec.update){let o=this.spec.update(t,e,i);return o&&this.updateInner(t,e,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,i,r){this.spec.setSelection?this.spec.setSelection(t,e,i):super.setSelection(t,e,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function lF(n,t,e){let i=n.firstChild,r=!1;for(let o=0;o0;){let a;for(;;)if(i){let c=e.children[i-1];if(!(c instanceof Za)){a=c,i--;break}e=c,i=c.children.length}else{if(e==t)break e;i=e.parent.children.indexOf(e),e=e.parent}let l=a.node;if(l){if(l!=n.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let i=t;i>1,s=Math.min(o,t.length);for(;r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Za.create(this.top,t[o],e,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,e,i,r){let s,o=-1;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(t,e,i))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=e||u<=t?o.push(l):(ce&&o.push(l.slice(e-c,l.size,i)))}return o}function cv(n,t=null){let e=n.domSelectionRange(),i=n.state.doc;if(!e.focusNode)return null;let r=n.docView.nearestDesc(e.focusNode),o=r&&0==r.size,s=n.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(cm(e)){for(l=a;r&&!r.node;)r=r.parent;let u=r.node;if(r&&u.isAtom&&ce.isSelectable(u)&&r.parent&&(!u.isInline||!function _7(n,t,e){for(let i=0==t,r=t==uo(n);i||r;){if(n==e)return!0;let o=Ui(n);if(!(n=n.parentNode))return!1;i=i&&0==o,r=r&&o==uo(n)}}(e.focusNode,e.focusOffset,r.dom))){let d=r.posBefore;c=new ce(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=dv(n,l,a,"pointer"==t||n.state.selection.head{(e.anchorNode!=i||e.anchorOffset!=r)&&(t.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!hF(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const pF=ai||Mi&&v7<63;function fF(n,t){let{node:e,offset:i}=n.docView.domFromPos(t,0),r=ir(n,t,e))||Ee.between(t,e,i)}function bF(n){return!(n.editable&&!n.hasFocus())&&yF(n)}function yF(n){let t=n.domSelectionRange();if(!t.anchorNode)return!1;try{return n.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(n.editable||n.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function hv(n,t){let{$anchor:e,$head:i}=n.selection,r=t>0?e.max(i):e.min(i),o=r.parent.inlineContent?r.depth?n.doc.resolve(t>0?r.after():r.before()):null:r;return o&&_e.findFrom(o,t)}function nl(n,t){return n.dispatch(n.state.tr.setSelection(t).scrollIntoView()),!0}function _F(n,t,e){let i=n.state.selection;if(!(i instanceof Ee)){if(i instanceof ce&&i.node.isInline)return nl(n,new Ee(t>0?i.$to:i.$from));{let r=hv(n.state,t);return!!r&&nl(n,r)}}if(!i.empty||e.indexOf("s")>-1)return!1;if(n.endOfTextblock(t>0?"right":"left")){let r=hv(n.state,t);return!!(r&&r instanceof ce)&&nl(n,r)}if(!(ur&&e.indexOf("m")>-1)){let s,r=i.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText)return!1;let a=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ce.isSelectable(o)?nl(n,new ce(t<0?n.state.doc.resolve(r.pos-o.nodeSize):r)):!!um&&nl(n,new Ee(n.state.doc.resolve(t<0?a:a+o.nodeSize))))}}function hm(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function fh(n){let t=n.pmViewDesc;return t&&0==t.size&&(n.nextSibling||"BR"!=n.nodeName)}function pv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r,o,s=!1;for(kr&&1==e.nodeType&&i0){if(1!=e.nodeType)break;{let a=e.childNodes[i-1];if(fh(a))r=e,o=--i;else{if(3!=a.nodeType)break;e=a,i=e.nodeValue.length}}}else{if(EF(e))break;{let a=e.previousSibling;for(;a&&fh(a);)r=e.parentNode,o=Ui(a),a=a.previousSibling;if(a)e=a,i=hm(e);else{if(e=e.parentNode,e==n.dom)break;i=0}}}s?gv(n,e,i):r&&gv(n,r,o)}function fv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let o,s,r=hm(e);for(;;)if(i{n.state==r&&$o(n)},50)}function CF(n,t,e){let i=n.state.selection;if(i instanceof Ee&&!i.empty||e.indexOf("s")>-1||ur&&e.indexOf("m")>-1)return!1;let{$from:r,$to:o}=i;if(!r.parent.inlineContent||n.endOfTextblock(t<0?"up":"down")){let s=hv(n.state,t);if(s&&s instanceof ce)return nl(n,s)}if(!r.parent.inlineContent){let s=t<0?r:o,a=i instanceof Qi?_e.near(s,t):_e.findFrom(s,t);return!!a&&nl(n,a)}return!1}function vF(n,t){if(!(n.state.selection instanceof Ee))return!0;let{$head:e,$anchor:i,empty:r}=n.state.selection;if(!e.sameParent(i))return!0;if(!r)return!1;if(n.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(o&&!o.isText){let s=n.state.tr;return t<0?s.delete(e.pos-o.nodeSize,e.pos):s.delete(e.pos,e.pos+o.nodeSize),n.dispatch(s),!0}return!1}function MF(n,t,e){n.domObserver.stop(),t.contentEditable=e,n.domObserver.start()}function wF(n,t){n.someProp("transformCopied",p=>{t=p(t,n)});let e=[],{content:i,openStart:r,openEnd:o}=t;for(;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;let p=i.firstChild;e.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||oo.fromSchema(n.state.schema),a=kF(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=BF[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${r} ${o}${d?` -${d}`:""} ${JSON.stringify(e)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(t,n))||t.content.textBetween(0,t.content.size,"\n\n")}}function DF(n,t,e,i,r){let s,a,o=r.parent.type.spec.code;if(!e&&!t)return null;let l=t&&(i||o||!e);if(l){if(n.someProp("transformPastedText",h=>{t=h(t,o||i,n)}),o)return t?new G(L.from(n.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):G.empty;let d=n.someProp("clipboardTextParser",h=>h(t,r,i,n));if(d)a=d;else{let h=r.marks(),{schema:p}=n.state,f=oo.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{e=d(e,n)}),s=function rX(n){let t=/^(\s*]*>)*/.exec(n);t&&(n=n.slice(t[0].length));let r,e=kF().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((r=i&&BF[i[1].toLowerCase()])&&(n=r.map(o=>"<"+o+">").join("")+n+r.map(o=>"").reverse().join("")),e.innerHTML=n,r)for(let o=0;o0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||Ic.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:r,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||nX.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function sX(n,t){if(!n.size)return n;let i,e=n.content.firstChild.type.schema;try{i=JSON.parse(t)}catch{return n}let{content:r,openStart:o,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=e.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;r=L.from(l.create(i[a+1],r)),o++,s++}return new G(r,o,s)}(TF(a,+u[1],+u[2]),u[4]);else if(a=G.maxOpen(function iX(n,t){if(n.childCount<2)return n;for(let e=t.depth;e>=0;e--){let o,r=t.node(e).contentMatchAt(t.index(e)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=r.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&o.length&&SF(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=xF(s[s.length-1],o.length));let u=IF(a,l);s.push(u),r=r.matchType(u.type),o=l}}),s)return L.from(s)}return n}(a.content,r),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const nX=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function IF(n,t,e=0){for(let i=t.length-1;i>=e;i--)n=t[i].create(null,L.from(n));return n}function SF(n,t,e,i,r){if(r=e&&(a=t<0?s.contentMatchAt(0).fillBefore(a,n.childCount>1||o<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(L.empty,!0))),n.replaceChild(t<0?0:n.childCount-1,s.copy(a))}function TF(n,t,e){return t{for(let e in t)n.input.eventHandlers[e]||n.dom.addEventListener(e,n.input.eventHandlers[e]=i=>bv(n,i))})}function bv(n,t){return n.someProp("handleDOMEvents",e=>{let i=e[t.type];return!!i&&(i(n,t)||t.defaultPrevented)})}function dX(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=n.dom;e=e.parentNode)if(!e||11==e.nodeType||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function pm(n){return{left:n.clientX,top:n.clientY}}function yv(n,t,e,i,r){if(-1==i)return!1;let o=n.state.doc.resolve(i);for(let s=o.depth+1;s>0;s--)if(n.someProp(t,a=>s>o.depth?a(n,e,o.nodeAfter,o.before(s),r,!0):a(n,e,o.node(s),o.before(s),r,!1)))return!0;return!1}function Vc(n,t,e){n.focused||n.focus();let i=n.state.tr.setSelection(t);"pointer"==e&&i.setMeta("pointer",!0),n.dispatch(i)}function AX(n,t,e,i){return yv(n,"handleDoubleClickOn",t,e,i)||n.someProp("handleDoubleClick",r=>r(n,t,i))}function bX(n,t,e,i){return yv(n,"handleTripleClickOn",t,e,i)||n.someProp("handleTripleClick",r=>r(n,t,i))||function yX(n,t,e){if(0!=e.button)return!1;let i=n.state.doc;if(-1==t)return!!i.inlineContent&&(Vc(n,Ee.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(t);for(let o=r.depth+1;o>0;o--){let s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)Vc(n,Ee.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ce.isSelectable(s))continue;Vc(n,ce.create(i,a),"pointer")}return!0}}(n,e,i)}function _v(n){return fm(n)}ci.keydown=(n,t)=>{let e=t;if(n.input.shiftKey=16==e.keyCode||e.shiftKey,!FF(n,e)&&(n.input.lastKeyCode=e.keyCode,n.input.lastKeyCodeTime=Date.now(),!ho||!Mi||13!=e.keyCode))if(229!=e.keyCode&&n.domObserver.forceFlush(),!jc||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)n.someProp("handleKeyDown",i=>i(n,e))||function tX(n,t){let e=t.keyCode,i=function eX(n){let t="";return n.ctrlKey&&(t+="c"),n.metaKey&&(t+="m"),n.altKey&&(t+="a"),n.shiftKey&&(t+="s"),t}(t);return 8==e||ur&&72==e&&"c"==i?vF(n,-1)||pv(n):46==e||ur&&68==e&&"c"==i?vF(n,1)||fv(n):13==e||27==e||(37==e||ur&&66==e&&"c"==i?_F(n,-1,i)||pv(n):39==e||ur&&70==e&&"c"==i?_F(n,1,i)||fv(n):38==e||ur&&80==e&&"c"==i?CF(n,-1,i)||pv(n):40==e||ur&&78==e&&"c"==i?function Z7(n){if(!ai||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=n.domSelectionRange();if(t&&1==t.nodeType&&0==e&&t.firstChild&&"false"==t.firstChild.contentEditable){let i=t.firstChild;MF(n,i,"true"),setTimeout(()=>MF(n,i,"false"),20)}return!1}(n)||CF(n,1,i)||fv(n):i==(ur?"m":"c")&&(66==e||73==e||89==e||90==e))}(n,e)?e.preventDefault():Ys(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",r=>r(n,Uc(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},ci.keyup=(n,t)=>{16==t.keyCode&&(n.input.shiftKey=!1)},ci.keypress=(n,t)=>{let e=t;if(FF(n,e)||!e.charCode||e.ctrlKey&&!e.altKey||ur&&e.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,e)))return void e.preventDefault();let i=n.state.selection;if(!(i instanceof Ee&&i.$from.sameParent(i.$to))){let r=String.fromCharCode(e.charCode);n.someProp("handleTextInput",o=>o(n,i.$from.pos,i.$to.pos,r))||n.dispatch(n.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}};const PF=ur?"metaKey":"ctrlKey";li.mousedown=(n,t)=>{let e=t;n.input.shiftKey=e.shiftKey;let i=_v(n),r=Date.now(),o="singleClick";r-n.input.lastClick.time<500&&function pX(n,t){let e=t.x-n.clientX,i=t.y-n.clientY;return e*e+i*i<100}(e,n.input.lastClick)&&!e[PF]&&("singleClick"==n.input.lastClick.type?o="doubleClick":"doubleClick"==n.input.lastClick.type&&(o="tripleClick")),n.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};let s=n.posAtCoords(pm(e));!s||("singleClick"==o?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new _X(n,s,e,!!i)):("doubleClick"==o?AX:bX)(n,s.pos,s.inside,e)?e.preventDefault():Ys(n,"pointer"))};class _X{constructor(t,e,i,r){let o,s;if(this.view=t,this.pos=e,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[PF],this.allowDefault=i.shiftKey,e.inside>-1)o=t.state.doc.nodeAt(e.inside),s=e.inside;else{let u=t.state.doc.resolve(e.pos);o=u.parent,s=u.depth?u.before():0}const a=r?null:i.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==i.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ce&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!kr||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ys(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>$o(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(pm(t))),this.updateAllowDefault(t),this.allowDefault||!e?Ys(this.view,"pointer"):function mX(n,t,e,i,r){return yv(n,"handleClickOn",t,e,i)||n.someProp("handleClick",o=>o(n,t,i))||(r?function gX(n,t){if(-1==t)return!1;let i,r,e=n.state.selection;e instanceof ce&&(i=e.node);let o=n.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(ce.isSelectable(a)){r=i&&e.$from.depth>0&&s>=e.$from.depth&&o.before(e.$from.depth+1)==e.$from.pos?o.before(e.$from.depth):o.before(s);break}}return null!=r&&(Vc(n,ce.create(n.state.doc,r),"pointer"),!0)}(n,e):function fX(n,t){if(-1==t)return!1;let e=n.state.doc.resolve(t),i=e.nodeAfter;return!!(i&&i.isAtom&&ce.isSelectable(i))&&(Vc(n,new ce(e),"pointer"),!0)}(n,e))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||ai&&this.mightDrag&&!this.mightDrag.node.isAtom||Mi&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(Vc(this.view,_e.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):Ys(this.view,"pointer")}move(t){this.updateAllowDefault(t),Ys(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function FF(n,t){return!!n.composing||!!(ai&&Math.abs(t.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}li.touchstart=n=>{n.input.lastTouch=Date.now(),_v(n),Ys(n,"pointer")},li.touchmove=n=>{n.input.lastTouch=Date.now(),Ys(n,"pointer")},li.contextmenu=n=>_v(n);const EX=ho?5e3:-1;function RF(n,t){clearTimeout(n.input.composingTimeout),t>-1&&(n.input.composingTimeout=setTimeout(()=>fm(n),t))}function NF(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function CX(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function fm(n,t=!1){if(!(ho&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),NF(n),t||n.docView&&n.docView.dirty){let e=cv(n);return e&&!e.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(e)):n.updateState(n.state),!0}return!1}}ci.compositionstart=ci.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:t}=n,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||e.marks(),fm(n,!0),n.markCursor=null;else if(fm(n),kr&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let i=n.domSelectionRange();for(let r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){let s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}r=s,o=-1}}n.input.composing=!0}RF(n,EX)},ci.compositionend=(n,t)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=t.timeStamp,RF(n,20))};const Gc=vi&&Hs<15||jc&&M7<604;function Ev(n,t,e,i){let r=DF(n,t,e,n.input.shiftKey,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,i,r||G.empty)))return!0;if(!r)return!1;let o=function MX(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),s=o?n.state.tr.replaceSelectionWith(o,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}li.copy=ci.cut=(n,t)=>{let e=t,i=n.state.selection,r="cut"==e.type;if(i.empty)return;let o=Gc?null:e.clipboardData,s=i.content(),{dom:a,text:l}=wF(n,s);o?(e.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function vX(n,t){if(!n.dom.parentNode)return;let e=n.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),n.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),n.focus()},50)}(n,a),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ci.paste=(n,t)=>{let e=t;if(n.composing&&!ho)return;let i=Gc?null:e.clipboardData;i&&Ev(n,i.getData("text/plain"),i.getData("text/html"),e)?e.preventDefault():function wX(n,t){if(!n.dom.parentNode)return;let e=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),e?Ev(n,i.value,null,t):Ev(n,i.textContent,i.innerHTML,t)},50)}(n,e)};class DX{constructor(t,e){this.slice=t,this.move=e}}const LF=ur?"altKey":"ctrlKey";li.dragstart=(n,t)=>{let e=t,i=n.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let r=n.state.selection,o=r.empty?null:n.posAtCoords(pm(e));if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof ce?r.to-1:r.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,i.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){let c=n.docView.nearestDesc(e.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=wF(n,s);e.dataTransfer.clearData(),e.dataTransfer.setData(Gc?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",Gc||e.dataTransfer.setData("text/plain",l),n.dragging=new DX(s,!e[LF])},li.dragend=n=>{let t=n.dragging;window.setTimeout(()=>{n.dragging==t&&(n.dragging=null)},50)},ci.dragover=ci.dragenter=(n,t)=>t.preventDefault(),ci.drop=(n,t)=>{let e=t,i=n.dragging;if(n.dragging=null,!e.dataTransfer)return;let r=n.posAtCoords(pm(e));if(!r)return;let o=n.state.doc.resolve(r.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=DF(n,e.dataTransfer.getData(Gc?"Text":"text/plain"),Gc?null:e.dataTransfer.getData("text/html"),!1,o);let a=!(!i||e[LF]);if(n.someProp("handleDrop",f=>f(n,e,s||G.empty,a)))return void e.preventDefault();if(!s)return;e.preventDefault();let l=s?Lk(n.state.doc,o.pos,s):o.pos;null==l&&(l=o.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ce.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ce(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,y)=>f=y),c.setSelection(dv(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},li.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&$o(n)},20))},li.blur=(n,t)=>{let e=t;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),e.relatedTarget&&n.dom.contains(e.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},li.beforeinput=(n,t)=>{if(Mi&&ho&&"deleteContentBackward"==t.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",o=>o(n,Uc(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in ci)li[n]=ci[n];function gh(n,t){if(n==t)return!0;for(let e in n)if(n[e]!==t[e])return!1;for(let e in t)if(!(e in n))return!1;return!0}class Cv{constructor(t,e){this.toDOM=t,this.spec=e||il,this.side=this.spec.side||0}map(t,e,i,r){let{pos:o,deleted:s}=t.mapResult(e.from+r,this.side<0?-1:1);return s?null:new vn(o-i,o-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Cv&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&gh(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ws{constructor(t,e){this.attrs=t,this.spec=e||il}map(t,e,i,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-i,s=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-i;return o>=s?null:new vn(o,s,this)}valid(t,e){return e.from=t&&(!o||o(a.spec))&&i.push(a.copy(a.from+r,a.to+r))}for(let s=0;st){let a=this.children[s]+1;this.children[s+2].findInner(t-a,e-a,i,r+a,o)}}map(t,e,i){return this==Kn||0==t.maps.length?this:this.mapInner(t,e,0,0,i||il)}mapInner(t,e,i,r,o){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;Ay+u-d)continue;let E=a[A]+u-d;p>=E?a[A+1]=h<=E?-2:-1:f>=r&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=e.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=e.map(n[c+1]+o,-1)-r,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(e,m,u+1,n[c]+o+1,s);A!=Kn?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function SX(n,t,e,i,r,o,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=UF(e,a,c)){for(r||(r=this.children.slice());oa&&d.to=t){this.children[a]==t&&(i=this.children[a+2]);break}let o=t+1,s=o+e.content.size;for(let a=0;ao&&l.type instanceof Ws){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;cr.map(t,e,il));return Js.from(i)}forChild(t,e){if(e.isLeaf)return kt.empty;let i=[];for(let r=0;re instanceof kt)?t:t.reduce((e,i)=>e.concat(i instanceof kt?i:i.members),[]))}}}function QF(n,t){if(!t||!n.length)return n;let e=[];for(let i=0;ie&&s.to{let c=UF(n,a,l+e);if(c){o=!0;let u=gm(c,a,e+l+1,i);u!=Kn&&r.push(l,l+a.nodeSize,u)}});let s=QF(o?jF(n):n,-e).sort(rl);for(let a=0;a0;)t++;n.splice(t,0,e)}function wv(n){let t=[];return n.someProp("decorations",e=>{let i=e(n.state);i&&i!=Kn&&t.push(i)}),n.cursorWrapper&&t.push(kt.create(n.state.doc,[n.cursorWrapper.deco])),Js.from(t)}const xX={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},TX=vi&&Hs<=11;class BX{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class OX{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new BX,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r"childList"==r.type&&r.removedNodes.length||"characterData"==r.type&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),TX&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,xX)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(bF(this.view)){if(this.suppressingSelectionUpdates)return $o(this.view);if(vi&&Hs<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Xa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let i,e=new Set;for(let o=t.focusNode;o;o=uh(o))e.add(o);for(let o=t.anchorNode;o;o=uh(o))if(e.has(o)){i=o;break}let r=i&&this.view.docView.nearestDesc(i);return r&&r.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&bF(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;o<0&&r&&t.input.lastFocus>Date.now()-200&&t.input.lastTouch-1||r)&&(o>-1&&(t.docView.markDirty(o,s),function kX(n){if(!HF.has(n)&&(HF.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=kr,VF)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),VF=!0}}(t)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||$o(t),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(i==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if("childList"==t.type){for(let u=0;ut.content.size?null:dv(n,t.resolve(e.anchor),t.resolve(e.head))}function Dv(n,t,e){let i=n.depth,r=t?n.end():n.pos;for(;i>0&&(t||n.indexAfter(i)==n.node(i).childCount);)i--,r++,t=!1;if(e){let o=n.node(i).maybeChild(n.indexAfter(i));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}class jX{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new lX,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach($F),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=JF(this),WF(this),this.nodeViews=KF(this),this.docView=sF(this.state.doc,YF(this),wv(this),this.dom,this),this.domObserver=new OX(this,(i,r,o,s)=>function NX(n,t,e,i,r){if(t<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,q=cv(n,O);if(q&&!n.state.selection.eq(q)){let le=n.state.tr.setSelection(q);"pointer"==O?le.setMeta("pointer",!0):"key"==O&&le.scrollIntoView(),n.dispatch(le)}return}let o=n.state.doc.resolve(t),s=o.sharedDepth(e);t=o.before(s+1),e=n.state.doc.resolve(e).after(s+1);let d,h,a=n.state.selection,l=function FX(n,t,e){let c,{node:i,fromOffset:r,toOffset:o,from:s,to:a}=n.docView.parseRange(t,e),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],cm(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Mi&&8===n.input.lastKeyCode)for(let m=o;m>r;m--){let A=i.childNodes[m-1],y=A.pmViewDesc;if("BR"==A.nodeName&&!y){o=m;break}if(!y||y.size)break}let d=n.state.doc,h=n.someProp("domParser")||Ic.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:o,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:RX,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,t,e),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?o-i:0,a=o+(a-s),s=o):a=a?o-i:0,s=o+(s-a),a=o),{start:o,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((jc&&n.input.lastIOSEnter>Date.now()-225||ho)&&r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName||"LI"==O.nodeName)&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Uc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ee&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let O=GF(n,n.state.doc,l.sel);O&&!O.eq(n.state.selection)&&n.dispatch(n.state.tr.setSelection(O))}return}p={start:a.from,endA:a.to,endB:a.to}}if(Mi&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),vi&&Hs<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let y,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((jc&&n.input.lastIOSEnter>Date.now()-225&&(!A||r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName))||!A&&f.posO(n,Uc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function QX(n,t,e,i,r){if(!i.parent.isTextblock||e-t<=r.pos-i.pos||Dv(i,!0,!1)e||Dv(s,!0,!1)O(n,Uc(8,"Backspace"))))return void(ho&&Mi&&n.domObserver.suppressSelectionUpdates());Mi&&ho&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),ho&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Uc(13,"Enter"))})},20));let D,I,Q,E=p.start,b=p.endA;if(A)if(f.pos==g.pos)vi&&Hs<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>$o(n),20)),D=n.state.tr.delete(E,b),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(Q=function LX(n,t){let s,a,l,e=n.firstChild.marks,i=t.firstChild.marks,r=e,o=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=r.length||1!=o.length)return null;a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;uq(n,E,b,O)))return;D=n.state.tr.insertText(O,E,b)}if(D||(D=n.state.tr.replace(E,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=GF(n,D.doc,l.sel);O&&!(Mi&&ho&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{dX(n,i)&&!bv(n,i)&&(n.editable||!(i.type in ci))&&e(n,i)},aX[t]?{passive:!0}:void 0)}ai&&n.dom.addEventListener("input",()=>null),Av(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Av(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach($F),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let i in this._props)e[i]=this._props[i];e.state=this.state;for(let i in t)e[i]=t[i];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let i=this.state,r=!1,o=!1;t.storedMarks&&this.composing&&(NF(this),o=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let h=KF(this);(function HX(n,t){let e=0,i=0;for(let r in n){if(n[r]!=t[r])return!0;e++}for(let r in t)i++;return e!=i})(h,this.nodeViews)&&(this.nodeViews=h,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&Av(this),this.editable=JF(this),WF(this);let a=wv(this),l=YF(this),c=i.plugins==t.plugins||i.doc.eq(t.doc)?t.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=r||!this.docView.matchesNode(t.doc,l,a);(u||!t.selection.eq(i.selection))&&(o=!0);let d="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function I7(n){let i,r,t=n.dom.getBoundingClientRect(),e=Math.max(0,t.top);for(let o=(t.left+t.right)/2,s=e+1;s=e-20){i=a,r=l.top;break}}return{refDOM:i,refTop:r,stack:KP(n.dom)}}(this);if(o){this.domObserver.stop();let h=u&&(vi||Mi)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&function zX(n,t){let e=Math.min(n.$anchor.sharedDepth(n.head),t.$anchor.sharedDepth(t.head));return n.$anchor.start(e)!=t.$anchor.start(e)}(i.selection,t.selection);if(u){let p=Mi?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(t.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=sF(t.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function X7(n){let t=n.docView.domFromPos(n.state.selection.anchor,0),e=n.domSelectionRange();return Xa(t.node,t.offset,e.anchorNode,e.anchorOffset)}(this))?$o(this,h):(mF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function S7({refDOM:n,refTop:t,stack:e}){let i=n?n.getBoundingClientRect().top:0;$P(e,0==i?0:i-t)}(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof ce){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&JP(this,e.getBoundingClientRect(),t)}else JP(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;ee.ownerDocument.getSelection()),this._root=e;return t||document}posAtCoords(t){return P7(this,t)}coordsAtPos(t,e=1){return ZP(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,i=-1){let r=this.docView.posFromDOM(t,e,i);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return function Q7(n,t,e){return tF==t&&nF==e?iF:(tF=t,nF=e,iF="up"==e||"down"==e?function R7(n,t,e){let i=t.selection,r="up"==e?i.$from:i.$to;return eF(n,t,()=>{let{node:o}=n.docView.domFromPos(r.pos,"up"==e?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.dom;break}o=a.dom.parentNode}let s=ZP(n,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=Ko(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==e?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,t,e):function L7(n,t,e){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=n.domSelection();return N7.test(i.parent.textContent)&&a.modify?eF(n,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",e,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==e||"backward"==e?o:s}(n,t,e))}(this,e||this.state,t)}destroy(){!this.docView||(function uX(n){n.domObserver.stop();for(let t in n.input.eventHandlers)n.dom.removeEventListener(t,n.input.eventHandlers[t]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],wv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function hX(n,t){!bv(n,t)&&li[t.type]&&(n.editable||!(t.type in ci))&&li[t.type](n,t)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ai&&11===this.root.nodeType&&function C7(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function PX(n){let t;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",e,!0);let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=n.domAtPos(n.state.selection.anchor);return Xa(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function YF(n){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(n.editable),t.translate="no",n.someProp("attributes",e=>{if("function"==typeof e&&(e=e(n.state)),e)for(let i in e)"class"==i&&(t.class+=" "+e[i]),"style"==i?t.style=(t.style?t.style+";":"")+e[i]:!t[i]&&"contenteditable"!=i&&"nodeName"!=i&&(t[i]=String(e[i]))}),[vn.node(0,n.state.doc.content.size,t)]}function WF(n){if(n.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),n.cursorWrapper={dom:t,deco:vn.widget(n.state.selection.head,t,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function JF(n){return!n.someProp("editable",t=>!1===t(n.state))}function KF(n){let t=Object.create(null);function e(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return n.someProp("nodeViews",e),n.someProp("markViews",e),t}function $F(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ks={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},qF=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),VX=(typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),typeof navigator<"u"&&/Mac/.test(navigator.platform)),GX=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),YX=VX||qF&&+qF[1]<57,xn=0;xn<10;xn++)Ks[48+xn]=Ks[96+xn]=String(xn);for(xn=1;xn<=24;xn++)Ks[xn+111]="F"+xn;for(xn=65;xn<=90;xn++)Ks[xn]=String.fromCharCode(xn+32),mm[xn]=String.fromCharCode(xn);for(var Iv in Ks)mm.hasOwnProperty(Iv)||(mm[Iv]=Ks[Iv]);const JX=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function KX(n){let i,r,o,s,t=n.split(/-(?!$)/),e=t[t.length-1];"Space"==e&&(e=" ");for(let a=0;a127)&&(s=Ks[i.keyCode])&&s!=r){let l=t[Sv(s,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}else if(o&&i.shiftKey){let l=t[Sv(r,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}const Tv=(n,t)=>!n.selection.empty&&(t&&t(n.tr.deleteSelection().scrollIntoView()),!0);const ZF=(n,t,e)=>{let i=function XF(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("backward",n):e.parentOffset>0)?null:e}(n,e);if(!i)return!1;let r=Bv(i);if(!r){let s=i.blockRange(),a=s&&Tc(s);return null!=a&&(t&&t(n.tr.lift(s,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(!o.type.spec.isolating&&uR(n,r,t))return!0;if(0==i.parent.content.size&&(Wc(o,"end")||ce.isSelectable(o))){let s=TC(n.doc,i.before(),i.after(),G.empty);if(s&&s.slice.size{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("backward",n):i.parentOffset>0)return!1;o=Bv(i)}let s=o&&o.nodeBefore;return!(!s||!ce.isSelectable(s)||(t&&t(n.tr.setSelection(ce.create(n.doc,o.pos-s.nodeSize)).scrollIntoView()),0))};function Bv(n){if(!n.parent.type.spec.isolating)for(let t=n.depth-1;t>=0;t--){if(n.index(t)>0)return n.doc.resolve(n.before(t+1));if(n.node(t).type.spec.isolating)break}return null}const iR=(n,t,e)=>{let i=function nR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("forward",n):e.parentOffset{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("forward",n):i.parentOffset=0;t--){let e=n.node(t);if(n.index(t)+1{let{$head:e,$anchor:i}=n.selection;return!(!e.parent.type.spec.code||!e.sameParent(i)||(t&&t(n.tr.insertText("\n").scrollIntoView()),0))};function kv(n){for(let t=0;t{let{$head:e,$anchor:i}=n.selection;if(!e.parent.type.spec.code||!e.sameParent(i))return!1;let r=e.node(-1),o=e.indexAfter(-1),s=kv(r.contentMatchAt(o));if(!s||!r.canReplaceWith(o,o,s))return!1;if(t){let a=e.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(_e.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},aR=(n,t)=>{let e=n.selection,{$from:i,$to:r}=e;if(e instanceof Qi||i.parent.inlineContent||r.parent.inlineContent)return!1;let o=kv(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!i.parentOffset&&r.index(){let{$cursor:e}=n.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let o=e.before();if(Yo(n.doc,o))return t&&t(n.tr.split(o).scrollIntoView()),!0}let i=e.blockRange(),r=i&&Tc(i);return null!=r&&(t&&t(n.tr.lift(i,r).scrollIntoView()),!0)},cR=function tZ(n){return(t,e)=>{let{$from:i,$to:r}=t.selection;if(t.selection instanceof ce&&t.selection.node.isBlock)return!(!i.parentOffset||!Yo(t.doc,i.pos)||(e&&e(t.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(e){let o=r.parentOffset==r.parent.content.size,s=t.tr;(t.selection instanceof Ee||t.selection instanceof Qi)&&s.deleteSelection();let a=0==i.depth?null:kv(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(r.parent,o),c=l?[l]:o&&a?[{type:a}]:void 0,u=Yo(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&Yo(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!o&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}e(s.scrollIntoView())}return!0}}();function uR(n,t,e){let o,s,i=t.nodeBefore,r=t.nodeAfter;if(i.type.spec.isolating||r.type.spec.isolating)return!1;if(function rZ(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!(!(i&&r&&i.type.compatibleContent(r.type))||(!i.content.size&&t.parent.canReplace(o-1,o)?(e&&e(n.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Rs(n.doc,t.pos)||(e&&e(n.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(n,t,e))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(r.type))&&s.matchType(o[0]||r.type).validEnd){if(e){let d=t.pos+r.nodeSize,h=L.empty;for(let g=o.length-1;g>=0;g--)h=L.from(o[g].create(null,h));h=L.from(i.copy(h));let p=n.tr.step(new Cn(t.pos-1,d,t.pos,d,new G(h,1,0),o.length,!0)),f=d+2*o.length;Rs(p.doc,f)&&p.join(f),e(p.scrollIntoView())}return!0}let l=_e.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Tc(c);if(null!=u&&u>=t.depth)return e&&e(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&Wc(r,"start",!0)&&Wc(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=r,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(e){let g=L.empty;for(let A=h.length-1;A>=0;A--)g=L.from(h[A].copy(g));e(n.tr.step(new Cn(t.pos-h.length,t.pos+r.nodeSize,t.pos+f,t.pos+r.nodeSize-f,new G(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function dR(n){return function(t,e){let i=t.selection,r=n<0?i.$from:i.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(e&&e(t.tr.setSelection(Ee.create(t.doc,n<0?r.start(o):r.end(o)))),!0)}}const hR=dR(-1),pR=dR(1);function fR(n,t=null){return function(e,i){let r=!1;for(let o=0;o{if(r)return!1;if(l.isTextblock&&!l.hasMarkup(n,t))if(l.type==n)r=!0;else{let u=e.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,n)}})}if(!r)return!1;if(i){let o=e.tr;for(let s=0;s(t&&t(n.tr.setSelection(new Qi(n.doc))),!0)},lZ={"Ctrl-h":$s.Backspace,"Alt-Backspace":$s["Mod-Backspace"],"Ctrl-d":$s.Delete,"Ctrl-Alt-Backspace":$s["Mod-Delete"],"Alt-Delete":$s["Mod-Delete"],"Alt-d":$s["Mod-Delete"],"Ctrl-a":hR,"Ctrl-e":pR};for(let n in $s)lZ[n]=$s[n];function Am(n){const{state:t,transaction:e}=n;let{selection:i}=e,{doc:r}=e,{storedMarks:o}=e;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return r},get tr(){return i=e.selection,r=e.doc,o=e.storedMarks,e}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class bm{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:i}=this,{view:r}=e,{tr:o}=i,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r,a=[],l=!!t,c=t||o.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,e),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&e&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(t){const{rawCommands:e,state:i}=this,o=t||i.tr,s=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r;o.storedMarks&&t.setStoredMarks(o.storedMarks);const a={tr:t,editor:r,view:s,state:Am({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}function ne(n,t,e){return void 0===n.config[t]&&n.parent?ne(n.parent,t,e):"function"==typeof n.config[t]?n.config[t].bind({...e,parent:n.parent?ne(n.parent,t,e):null}):n.config[t]}function ym(n){return{baseExtensions:n.filter(r=>"extension"===r.type),nodeExtensions:n.filter(r=>"node"===r.type),markExtensions:n.filter(r=>"mark"===r.type)}}function mR(n){const t=[],{nodeExtensions:e,markExtensions:i}=ym(n),r=[...e,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ne(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{t.push({type:d,name:h,attribute:{...o,...p}})})})})}),r.forEach(s=>{const l=ne(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...o,...d};d?.isRequired&&void 0===d?.default&&delete h.default,t.push({type:s.name,name:u,attribute:h})})}),t}function Mn(n,t){if("string"==typeof n){if(!t.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return t.nodes[n]}return n}function Et(...n){return n.filter(t=>!!t).reduce((t,e)=>{const i={...t};return Object.entries(e).forEach(([r,o])=>{i[r]=i[r]?"class"===r?[i[r],o].join(" "):"style"===r?[i[r],o].join("; "):o:o}),i},{})}function Nv(n,t){return t.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(n.attrs)||{}:{[e.name]:n.attrs[e.name]}).reduce((e,i)=>Et(e,i),{})}function AR(n){return"function"==typeof n}function Be(n,t,...e){return AR(n)?t?n.bind(t)(...e):n(...e):n}function bR(n,t){return n.style?n:{...n,getAttrs:e=>{const i=n.getAttrs?n.getAttrs(e):n.attrs;if(!1===i)return!1;const r=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):function vZ(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(e.getAttribute(s.name));return null==a?o:{...o,[s.name]:a}},{});return{...i,...r}}}}function yR(n){return Object.fromEntries(Object.entries(n).filter(([t,e])=>("attrs"!==t||!function CZ(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(e))&&null!=e))}function Lv(n,t){return t.nodes[n]||t.marks[n]||null}function ER(n,t){return Array.isArray(t)?t.some(e=>("string"==typeof e?e:e.name)===n.name):t}function Qv(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class mh{constructor(t){this.find=t.find,this.handler=t.handler}}function Uv(n){var t;const{editor:e,from:i,to:r,text:o,rules:s,plugin:a}=n,{view:l}=e;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(t=c.nodeBefore||c.nodeAfter)&&void 0!==t&&t.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,t=500)=>{let e="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-t),i,(r,o,s,a)=>{var l,c;e+=((null===(c=(l=r.type.spec).toText)||void 0===c?void 0:c.call(l,{node:r,pos:o,parent:s,index:a}))||r.textContent||"%leaf%").slice(0,Math.max(0,i-o))}),e})(c)+o;return s.forEach(h=>{if(u)return;const p=((n,t)=>{if(Qv(t))return t.exec(n);const e=t(n);if(!e)return null;const i=[];return i.push(e.text),i.index=e.index,i.input=n,i.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(e.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Am({state:l.state,transaction:f}),m={from:i-(p[0].length-o.length),to:r},{commands:A,chain:y,can:E}=new bm({editor:e,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:y,can:E})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:r,text:o}),l.dispatch(f),u=!0)}),u}function DZ(n){const{editor:t,rules:e}=n,i=new it({state:{init:()=>null,apply:(r,o)=>r.getMeta(i)||(r.selectionSet||r.docChanged?null:o)},props:{handleTextInput:(r,o,s,a)=>Uv({editor:t,from:o,to:s,text:a,rules:e,plugin:i}),handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Uv({editor:t,from:o.pos,to:o.pos,text:"",rules:e,plugin:i})}),!1)},handleKeyDown(r,o){if("Enter"!==o.key)return!1;const{$cursor:s}=r.state.selection;return!!s&&Uv({editor:t,from:s.pos,to:s.pos,text:"\n",rules:e,plugin:i})}},isInputRules:!0});return i}class jv{constructor(t){this.find=t.find,this.handler=t.handler}}function TZ(n){const{editor:t,rules:e}=n;let i=null,r=!1,o=!1;return e.map(a=>new it({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(o=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return r=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!r,p="drop"===d.getMeta("uiEvent")&&!o;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function IZ(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Am({state:u,transaction:m});return function xZ(n){const{editor:t,state:e,from:i,to:r,rule:o}=n,{commands:s,chain:a,can:l}=new bm({editor:t,state:e}),c=[];return e.doc.nodesBetween(i,r,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(r,h+d.content.size);((n,t)=>{if(Qv(t))return[...n.matchAll(t)];const e=t(n);return e?e.map(i=>{const r=[];return r.push(i.text),r.index=i.index,r.input=n,r.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(i.replaceWith)),r}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),o.find).forEach(A=>{if(void 0===A.index)return;const y=p+A.index+1,E=y+A[0].length,b={from:e.tr.mapping.map(y),to:e.tr.mapping.map(E)},D=o.handler({state:e,range:b,match:A,commands:s,chain:a,can:l});c.push(D)})}),c.every(d=>null!==d)}({editor:t,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class ol{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=ol.resolve(t),this.schema=function _R(n){var t;const e=mR(n),{nodeExtensions:i,markExtensions:r}=ym(n),o=null===(t=i.find(l=>ne(l,"topNode")))||void 0===t?void 0:t.name,s=Object.fromEntries(i.map(l=>{const c=e.filter(m=>m.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=yR({...n.reduce((m,A)=>{const y=ne(A,"extendNodeSchema",u);return{...m,...y?y(l):{}}},{}),content:Be(ne(l,"content",u)),marks:Be(ne(l,"marks",u)),group:Be(ne(l,"group",u)),inline:Be(ne(l,"inline",u)),atom:Be(ne(l,"atom",u)),selectable:Be(ne(l,"selectable",u)),draggable:Be(ne(l,"draggable",u)),code:Be(ne(l,"code",u)),defining:Be(ne(l,"defining",u)),isolating:Be(ne(l,"isolating",u)),attrs:Object.fromEntries(c.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(m=>bR(m,c)));const f=ne(l,"renderHTML",u);f&&(h.toDOM=m=>f({node:m,HTMLAttributes:Nv(m,c)}));const g=ne(l,"renderText",u);return g&&(h.toText=g),[l.name,h]})),a=Object.fromEntries(r.map(l=>{const c=e.filter(g=>g.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=yR({...n.reduce((g,m)=>{const A=ne(m,"extendMarkSchema",u);return{...g,...A?A(l):{}}},{}),inclusive:Be(ne(l,"inclusive",u)),excludes:Be(ne(l,"excludes",u)),group:Be(ne(l,"group",u)),spanning:Be(ne(l,"spanning",u)),code:Be(ne(l,"code",u)),attrs:Object.fromEntries(c.map(g=>{var m;return[g.name,{default:null===(m=g?.attribute)||void 0===m?void 0:m.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(g=>bR(g,c)));const f=ne(l,"renderHTML",u);return f&&(h.toDOM=g=>f({mark:g,HTMLAttributes:Nv(g,c)})),[l.name,h]}));return new a6({topNode:o,nodes:s,marks:a})}(this.extensions),this.extensions.forEach(i=>{var r;this.editor.extensionStorage[i.name]=i.storage;const o={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:Lv(i.name,this.schema)};"mark"===i.type&&(null===(r=Be(ne(i,"keepOnSplit",o)))||void 0===r||r)&&this.splittableMarks.push(i.name);const s=ne(i,"onBeforeCreate",o);s&&this.editor.on("beforeCreate",s);const a=ne(i,"onCreate",o);a&&this.editor.on("create",a);const l=ne(i,"onUpdate",o);l&&this.editor.on("update",l);const c=ne(i,"onSelectionUpdate",o);c&&this.editor.on("selectionUpdate",c);const u=ne(i,"onTransaction",o);u&&this.editor.on("transaction",u);const d=ne(i,"onFocus",o);d&&this.editor.on("focus",d);const h=ne(i,"onBlur",o);h&&this.editor.on("blur",h);const p=ne(i,"onDestroy",o);p&&this.editor.on("destroy",p)})}static resolve(t){const e=ol.sort(ol.flatten(t)),i=function BZ(n){const t=n.filter((e,i)=>n.indexOf(e)!==i);return[...new Set(t)]}(e.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(e=>{const r=ne(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(t){return t.sort((i,r)=>{const o=ne(i,"priority")||100,s=ne(r,"priority")||100;return o>s?-1:o{const r=ne(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Lv(e.name,this.schema)});return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,e=ol.sort([...this.extensions].reverse()),i=[],r=[],o=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:t,type:Lv(s.name,this.schema)},l=[],c=ne(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Fr.handleExit({editor:t,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:t})]));u={...u,...g}}const d=function qX(n){return new it({props:{handleKeyDown:xv(n)}})}(u);l.push(d);const h=ne(s,"addInputRules",a);ER(s,t.options.enableInputRules)&&h&&i.push(...h());const p=ne(s,"addPasteRules",a);ER(s,t.options.enablePasteRules)&&p&&r.push(...p());const f=ne(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[DZ({editor:t,rules:i}),...TZ({editor:t,rules:r}),...o]}get attributes(){return mR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ym(this.extensions);return Object.fromEntries(e.filter(i=>!!ne(i,"addNodeView")).map(i=>{const r=this.attributes.filter(l=>l.type===i.name),o={name:i.name,options:i.options,storage:i.storage,editor:t,type:Mn(i.name,this.schema)},s=ne(i,"addNodeView",o);return s?[i.name,(l,c,u,d)=>{const h=Nv(l,r);return s()({editor:t,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function zv(n){return"Object"===function OZ(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function _m(n,t){const e={...n};return zv(n)&&zv(t)&&Object.keys(t).forEach(i=>{zv(t[i])?i in n?e[i]=_m(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Ft{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ft(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ft(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function CR(n,t,e){const{from:i,to:r}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=e||{};let a="",l=!0;return n.nodesBetween(i,r,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=o,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:t}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,r-u),l=!1):c.isBlock&&!l&&(a+=o,l=!0)}),a}function Hv(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const kZ=Ft.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new it({key:new _t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:t,schema:e}=n,{doc:i,selection:r}=t,{ranges:o}=r;return CR(i,{from:Math.min(...o.map(u=>u.$from.pos)),to:Math.max(...o.map(u=>u.$to.pos))},{textSerializers:Hv(e)})}}})]}});function Em(n,t,e={strict:!0}){const i=Object.keys(t);return!i.length||i.every(r=>e.strict?t[r]===n[r]:Qv(t[r])?t[r].test(n[r]):t[r]===n[r])}function Vv(n,t,e={}){return n.find(i=>i.type===t&&Em(i.attrs,e))}function GZ(n,t,e={}){return!!Vv(n,t,e)}function Gv(n,t,e={}){if(!n||!t)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const r=Vv([...i.node.marks],t,e);if(!r)return;let o=i.index,s=n.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(Vv([...i.node.marks],t,e);o>0&&r.isInSet(n.parent.child(o-1).marks);)o-=1,s-=n.parent.child(o).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(t,"text/html").body}function Mm(n,t,e){if(e={slice:!0,parseOptions:{},...e},"object"==typeof n&&null!==n)try{return Array.isArray(n)?L.fromArray(n.map(i=>t.nodeFromJSON(i))):t.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),Mm("",t,e)}if("string"==typeof n){const i=Ic.fromSchema(t);return e.slice?i.parseSlice(Yv(n),e.parseOptions).content:i.parse(Yv(n),e.parseOptions)}return Mm("",t,e)}function MR(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function Ah(n,t,e={}){const{from:i,to:r,empty:o}=n.selection,s=t?Mn(t,n.schema):null,a=[];n.doc.nodesBetween(i,r,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(r,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=r-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Em(d.node.attrs,e,{strict:!1}));return o?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function wm(n,t){return t.nodes[n]?"node":t.marks[n]?"mark":null}function wR(n,t){const e="string"==typeof t?[t]:t;return Object.keys(n).reduce((i,r)=>(e.includes(r)||(i[r]=n[r]),i),{})}function DR(n,t,e={}){return Mm(n,t,{slice:!1,parseOptions:e})}function IR(n,t){for(let e=n.depth;e>0;e-=1){const i=n.node(e);if(t(i))return{pos:e>0?n.before(e):0,start:n.start(e),depth:e,node:i}}}function Wv(n){return t=>IR(t.$from,n)}function TR(n,t){const e=qs(t,n.schema),{from:i,to:r,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===e.name);return a?{...a.attrs}:{}}function BR(n,t){const e=wm("string"==typeof t?t:t.name,n.schema);return"node"===e?function Cee(n,t){const e=Mn(t,n.schema),{from:i,to:r}=n.selection,o=[];n.doc.nodesBetween(i,r,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===e.name);return s?{...s.attrs}:{}}(n,t):"mark"===e?TR(n,t):{}}function Dm(n,t,e){const i=[];return n===t?e.resolve(n).marks().forEach(r=>{const s=Gv(e.resolve(n-1),r.type);!s||i.push({mark:r,...s})}):e.nodesBetween(n,t,(r,o)=>{i.push(...r.marks.map(s=>({from:o,to:o+r.nodeSize,mark:s})))}),i}function Kv(n,t,e={}){const{empty:i,ranges:r}=n.selection,o=t?qs(t,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!o||o.name===d.type.name).find(d=>Em(d.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),y=Math.min(f,m+g.nodeSize);s+=y-A,a.push(...g.marks.map(b=>({mark:b,from:A,to:y})))})}),0===s)return!1;const l=a.filter(d=>!o||o.name===d.mark.type.name).filter(d=>Em(d.mark.attrs,e,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!o||d.mark.type!==o&&d.mark.type.excludes(o)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function OR(n,t){const{nodeExtensions:e}=ym(t),i=e.find(s=>s.name===n);if(!i)return!1;const o=Be(ne(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function sl(n,t,e){const r=n.state.doc.content.size,o=qo(t,0,r),s=qo(e,0,r),a=n.coordsAtPos(o),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function Im(n,t,e){return Object.fromEntries(Object.entries(e).filter(([i])=>{const r=n.find(o=>o.type===t&&o.name===i);return!!r&&r.attribute.keepOnSplit}))}function kR(n,t){const e=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(e){const i=e.filter(r=>t?.includes(r.type.name));n.tr.ensureMarks(i)}}const PR=(n,t)=>{const e=Wv(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Rs(n.doc,e.pos)&&n.join(e.pos),!0},FR=(n,t)=>{const e=Wv(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(e.start).after(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Rs(n.doc,i)&&n.join(i),!0};var Qee=Object.freeze({__proto__:null,blur:()=>({editor:n,view:t})=>(requestAnimationFrame(()=>{var e;n.isDestroyed||(t.dom.blur(),null===(e=window?.getSelection())||void 0===e||e.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:t})=>t.setContent("",n),clearNodes:()=>({state:n,tr:t,dispatch:e})=>{const{selection:i}=t,{ranges:r}=i;return e&&r.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=Tc(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,g)}(f||0===f)&&t.lift(p,f)})}),!0},command:n=>t=>n(t),createParagraphNear:()=>({state:n,dispatch:t})=>aR(n,t),deleteCurrentNode:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,i=e.$anchor.node();if(i.content.size>0)return!1;const r=n.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===i.type){if(t){const a=r.before(o),l=r.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:t,state:e,dispatch:i})=>{const r=Mn(n,e.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r){if(i){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:t,dispatch:e})=>{const{from:i,to:r}=n;return e&&t.delete(i,r),!0},deleteSelection:()=>({state:n,dispatch:t})=>Tv(n,t),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:t})=>sR(n,t),extendMarkRange:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const o=qs(n,i.schema),{doc:s,selection:a}=e,{$from:l,from:c,to:u}=a;if(r){const d=Gv(l,o,t);if(d&&d.from<=c&&d.to>=u){const h=Ee.create(s,d.from,d.to);e.setSelection(h)}}return!0},first:n=>t=>{const e="function"==typeof n?n(t):n;for(let i=0;i({editor:e,view:i,tr:r,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{vm()&&i.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(i.focus(),t?.scrollIntoView&&e.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(o&&null===n&&!Cm(e.state.selection))return s(),!0;const a=vR(r.doc,n)||e.state.selection,l=e.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},forEach:(n,t)=>e=>n.every((i,r)=>t(i,{...e,index:r})),insertContent:(n,t)=>({tr:e,commands:i})=>i.insertContentAt({from:e.selection.from,to:e.selection.to},n,t),insertContentAt:(n,t,e)=>({tr:i,dispatch:r,editor:o})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=Mm(t,o.schema,{parseOptions:{preserveWhitespace:"full",...e.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?i.insertText(t,a,l):i.replaceWith(a,l,s),e.updateSelection&&function qZ(n,t,e){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:t})=>((n,t)=>{let r,e=n.selection,i=e instanceof ce;if(i){if(e.node.isTextblock||!Rs(n.doc,e.from))return!1;r=e.from}else if(r=Nk(n.doc,e.from,-1),null==r)return!1;if(t){let o=n.tr.join(r);i&&o.setSelection(ce.create(o.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0})(n,t),joinDown:()=>({state:n,dispatch:t})=>((n,t)=>{let i,e=n.selection;if(e instanceof ce){if(e.node.isTextblock||!Rs(n.doc,e.to))return!1;i=e.to}else if(i=Nk(n.doc,e.to,1),null==i)return!1;return t&&t(n.tr.join(i).scrollIntoView()),!0})(n,t),joinBackward:()=>({state:n,dispatch:t})=>ZF(n,t),joinForward:()=>({state:n,dispatch:t})=>iR(n,t),keyboardShortcut:n=>({editor:t,view:e,tr:i,dispatch:r})=>{const o=function ree(n){const t=n.split(/-(?!$)/);let i,r,o,s,e=t[t.length-1];"Space"===e&&(e=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{e.someProp("handleKeyDown",c=>c(e,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&r&&i.maybeStep(u)}),!0},lift:(n,t={})=>({state:e,dispatch:i})=>!!Ah(e,Mn(n,e.schema),t)&&((n,t)=>{let{$from:e,$to:i}=n.selection,r=e.blockRange(i),o=r&&Tc(r);return null!=o&&(t&&t(n.tr.lift(r,o).scrollIntoView()),!0)})(e,i),liftEmptyBlock:()=>({state:n,dispatch:t})=>lR(n,t),liftListItem:n=>({state:t,dispatch:e})=>function AZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,s=>s.childCount>0&&s.firstChild.type==n);return!!o&&(!e||(i.node(o.depth-1).type==n?function bZ(n,t,e,i){let r=n.tr,o=i.end,s=i.$to.end(i.depth);og;f--)p-=r.child(f).nodeSize,i.delete(p-1,p+1);let o=i.doc.resolve(e.start),s=o.nodeAfter;if(i.mapping.map(e.end)!=e.start+o.nodeAfter.nodeSize)return!1;let a=0==e.startIndex,l=e.endIndex==r.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?L.empty:L.from(r))))return!1;let d=o.pos,h=d+s.nodeSize;return i.step(new Cn(d-(a?1:0),h+(l?1:0),d+1,h-1,new G((a?L.empty:L.from(r.copy(L.empty))).append(l?L.empty:L.from(r.copy(L.empty))),a?0:1,l?0:1),a?0:1)),t(i.scrollIntoView()),!0}(t,e,o)))}}(Mn(n,t.schema))(t,e),newlineInCode:()=>({state:n,dispatch:t})=>oR(n,t),resetAttributes:(n,t)=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=wm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Mn(n,i.schema)),"mark"===a&&(s=qs(n,i.schema)),r&&e.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&e.setNodeMarkup(u,void 0,wR(c.attrs,t)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&e.addMark(u,u+c.nodeSize,s.create(wR(d.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:t})=>(t&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:t})=>t.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:t})=>tR(n,t),selectNodeForward:()=>({state:n,dispatch:t})=>rR(n,t),selectParentNode:()=>({state:n,dispatch:t})=>((n,t)=>{let r,{$from:e,to:i}=n.selection,o=e.sharedDepth(i);return 0!=o&&(r=e.before(o),t&&t(n.tr.setSelection(ce.create(n.doc,r))),!0)})(n,t),selectTextblockEnd:()=>({state:n,dispatch:t})=>pR(n,t),selectTextblockStart:()=>({state:n,dispatch:t})=>hR(n,t),setContent:(n,t=!1,e={})=>({tr:i,editor:r,dispatch:o})=>{const{doc:s}=i,a=DR(n,r.schema,e);return o&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const{selection:o}=e,{empty:s,ranges:a}=o,l=qs(n,i.schema);if(r)if(s){const c=TR(i,l);e.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&e.addMark(f,g,l.create({...A.attrs,...t}))}):e.addMark(f,g,l.create(t))})});return function Tee(n,t,e){var i;const{selection:r}=t;let o=null;if(Cm(r)&&(o=r.$cursor),o){const a=null!==(i=n.storedMarks)&&void 0!==i?i:o.marks();return!!e.isInSet(a)||!a.some(l=>l.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(e);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(e),f=!!e.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(e));c=p&&f}return!c}),c})}(i,e,l)},setMeta:(n,t)=>({tr:e})=>(e.setMeta(n,t),!0),setNode:(n,t={})=>({state:e,dispatch:i,chain:r})=>{const o=Mn(n,e.schema);return o.isTextblock?r().command(({commands:s})=>!!fR(o,t)(e)||s.clearNodes()).command(({state:s})=>fR(o,t)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,r=qo(n,0,i.content.size),o=ce.create(i,r);t.setSelection(o)}return!0},setTextSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,{from:r,to:o}="number"==typeof n?{from:n,to:n}:n,s=Ee.atStart(i).from,a=Ee.atEnd(i).to,l=qo(r,s,a),c=qo(o,s,a),u=Ee.create(i,l,c);t.setSelection(u)}return!0},sinkListItem:n=>({state:t,dispatch:e})=>function _Z(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==n);if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=n)return!1;if(e){let c=l.lastChild&&l.lastChild.type==a.type,u=L.from(c?n.create():null),d=new G(L.from(n.create(null,L.from(a.type.create(null,u)))),c?3:1,0),h=o.start,p=o.end;e(t.tr.step(new Cn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Mn(n,t.schema))(t,e),splitBlock:({keepMarks:n=!0}={})=>({tr:t,state:e,dispatch:i,editor:r})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,u=Im(r.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof ce&&o.node.isBlock)return!(!a.parentOffset||!Yo(s,a.pos)||(i&&(n&&kR(e,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;o instanceof Ee&&t.deleteSelection();const h=0===a.depth?void 0:function _ee(n){for(let t=0;t({tr:t,state:e,dispatch:i,editor:r})=>{var o;const s=Mn(n,e.schema),{$from:a,$to:l}=e.selection,c=e.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=r.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=L.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let Q=a.depth-A;Q>=a.depth-3;Q-=1)m=L.from(a.node(Q).copy(m));const y=a.indexAfter(-1){if(I>-1)return!1;Q.isTextblock&&0===Q.content.size&&(I=O+1)}),I>-1&&t.setSelection(Ee.near(t.doc.resolve(I))),t.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=Im(d,u.type.name,u.attrs),f=Im(d,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];return!!Yo(t.doc,a.pos,2)&&(i&&t.split(a.pos,2,g).scrollIntoView(),!0)},toggleList:(n,t)=>({editor:e,tr:i,state:r,dispatch:o,chain:s,commands:a,can:l})=>{const{extensions:c}=e.extensionManager,u=Mn(n,r.schema),d=Mn(t,r.schema),{selection:h}=r,{$from:p,$to:f}=h,g=p.blockRange(f);if(!g)return!1;const m=Wv(A=>OR(A.type.name,c))(h);if(g.depth>=1&&m&&g.depth-m.depth<=1){if(m.node.type===u)return a.liftListItem(d);if(OR(m.node.type.name,c)&&u.validContent(m.node.content)&&o)return s().command(()=>(i.setNodeMarkup(m.pos,u),!0)).command(()=>PR(i,u)).command(()=>FR(i,u)).run()}return s().command(()=>!!l().wrapInList(u)||a.clearNodes()).wrapInList(u).command(()=>PR(i,u)).command(()=>FR(i,u)).run()},toggleMark:(n,t={},e={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:o=!1}=e,s=qs(n,i.schema);return Kv(i,s,t)?r.unsetMark(s,{extendEmptyMarkRange:o}):r.setMark(s,t)},toggleNode:(n,t,e={})=>({state:i,commands:r})=>{const o=Mn(n,i.schema),s=Mn(t,i.schema);return Ah(i,o,e)?r.setNode(s):r.setNode(o,e)},toggleWrap:(n,t={})=>({state:e,commands:i})=>{const r=Mn(n,e.schema);return Ah(e,r,t)?i.lift(r):i.wrapIn(r,t)},undoInputRule:()=>({state:n,dispatch:t})=>{const e=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,{empty:i,ranges:r}=e;return i||t&&r.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=e,l=qs(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(o=c.marks().find(m=>m.type===l))||void 0===o?void 0:o.attrs,g=Gv(c,l,f);g&&(h=g.from,p=g.to),e.removeMark(h,p,l)}else d.forEach(h=>{e.removeMark(h.$from.pos,h.$to.pos,l)});return e.removeStoredMark(l),!0},updateAttributes:(n,t={})=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=wm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Mn(n,i.schema)),"mark"===a&&(s=qs(n,i.schema)),r&&e.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{o&&o===d.type&&e.setNodeMarkup(h,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);e.addMark(f,g,s.create({...p.attrs,...t}))}})})}),!0)},wrapIn:(n,t={})=>({state:e,dispatch:i})=>function oZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=s&&xC(s,n,t);return!!a&&(i&&i(e.tr.wrap(s,a).scrollIntoView()),!0)}}(Mn(n,e.schema),t)(e,i),wrapInList:(n,t={})=>({state:e,dispatch:i})=>function gZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==r.index(s.depth-1))return!1;let u=e.doc.resolve(s.start-2);l=new Vg(u,u,s.depth),s.endIndex=0;u--)o=L.from(e[u].type.create(e[u].attrs,o));n.step(new Cn(t.start-(i?2:0),t.end,t.start,t.end,new G(o,0,0),e.length,!0));let s=0;for(let u=0;u({...Qee})}),jee=Ft.create({name:"editable",addProseMirrorPlugins(){return[new it({key:new _t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),zee=Ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new it({key:new _t("focusEvents"),props:{handleDOMEvents:{focus:(t,e)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,e)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),Hee=Ft.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=_e.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},o={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return vm()||MR()?o:r},addProseMirrorPlugins(){return[new it({key:new _t("clearDocument"),appendTransaction:(n,t,e)=>{if(!n.some(f=>f.docChanged)||t.doc.eq(e.doc))return;const{empty:r,from:o,to:s}=t.selection,a=_e.atStart(t.doc).from,l=_e.atEnd(t.doc).to,c=o===a&&s===l,u=0===e.doc.textBetween(0,e.doc.content.size," "," ").length;if(r||!c||!u)return;const d=e.tr,h=Am({state:e,transaction:d}),{commands:p}=new bm({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),Vee=Ft.create({name:"tabindex",addProseMirrorPlugins(){return[new it({key:new _t("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Gee=Object.freeze({__proto__:null,ClipboardTextSerializer:kZ,Commands:Uee,Editable:jee,FocusEvents:zee,Keymap:Hee,Tabindex:Vee});class Jee extends class EZ{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,e)),this}off(t,e){const i=this.callbacks[t];return i&&(e?this.callbacks[t]=i.filter(r=>r!==e):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function Wee(n,t){const e=document.querySelector("style[data-tiptap-style]");if(null!==e)return e;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t){this.setOptions({editable:t}),this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const i=AR(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});this.view.updateState(r)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(i)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(Gee):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new ol(e,this)}createCommandManager(){this.commandManager=new bm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=DR(this.options.content,this.schema,this.options.parseOptions),e=vR(t,this.options.autofocus);this.view=new jX(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Pc.create({doc:t,selection:e||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=t);const e=this.state.apply(t),i=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return BR(this.state,t)}isActive(t,e){return function Iee(n,t,e={}){if(!t)return Ah(n,null,e)||Kv(n,null,e);const i=wm(t,n.schema);return"node"===i?Ah(n,t,e):"mark"===i&&Kv(n,t,e)}(this.state,"string"==typeof t?t:null,"string"==typeof t?e:t)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function SR(n,t){const e=oo.fromSchema(t).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:i={}}=t||{};return function xR(n,t){return CR(n,{from:0,to:n.content.size},t)}(this.state.doc,{blockSeparator:e,textSerializers:{...i,...Hv(this.schema)}})}get isEmpty(){return function See(n){var t;const e=null===(t=n.type.createAndFill())||void 0===t?void 0:t.toJSON(),i=n.toJSON();return JSON.stringify(e)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null!==(t=this.view)&&void 0!==t&&t.docView)}}function al(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Dm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function RR(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},{tr:o}=t,s=e.from;let a=e.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,o.insertText(i[0][i[0].length-1],s+i[0].length-1),o.replaceWith(c,a,n.type.create(r))}else i[0]&&o.replaceWith(s,a,n.type.create(r))}})}function $v(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=t.doc.resolve(e.from),o=Be(n.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),n.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,n.type,o)}})}function qv(n){return new mh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},o=t.tr.delete(e.from,e.to),a=o.doc.resolve(e.from).blockRange(),l=a&&xC(a,n.type,r);if(!l)return null;o.wrap(a,l);const c=o.doc.resolve(e.from-1).nodeBefore;c&&c.type===n.type&&Rs(o.doc,e.from-1)&&(!n.joinPredicate||n.joinPredicate(i,c))&&o.join(e.from-1)}})}class Fr{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Fr(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Fr(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!s.find(c=>c?.type.name===e.name))return!1;const l=s.find(c=>c?.type.name===e.name);return l&&i.removeStoredMark(l),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}class tn{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new tn(t)}configure(t={}){const e=this.extend();return e.options=_m(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new tn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function Xs(n){return new jv({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Dm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function NR(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function bh(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){NR(o,i,r,s,a,"next",l)}function a(l){NR(o,i,r,s,a,"throw",l)}s(void 0)})}}const Xee=new _t("suggestion");function Zee({pluginKey:n=Xee,editor:t,char:e="@",allowSpaces:i=!1,allowedPrefixes:r=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new it({key:n,view(){var m,g=this;return{update:(m=bh(function*(A,y){var E,b,D,I,Q,O,q;const le=null===(E=g.key)||void 0===E?void 0:E.getState(y),xe=null===(b=g.key)||void 0===b?void 0:b.getState(A.state),ke=le.active&&xe.active&&le.range.from!==xe.range.from,Ae=!le.active&&xe.active,dt=le.active&&!xe.active,U=Ae||ke,V=!Ae&&!dt&&le.query!==xe.query&&!ke,W=dt||ke;if(!U&&!V&&!W)return;const X=W&&!U?le:xe,Ce=A.dom.querySelector(`[data-decoration-id="${X.decorationId}"]`);h={editor:t,range:X.range,query:X.query,text:X.text,items:[],command:ft=>{l({editor:t,range:X.range,props:ft})},decorationNode:Ce,clientRect:Ce?()=>{var ft;const{decorationId:Bt}=null===(ft=g.key)||void 0===ft?void 0:ft.getState(t.state);return A.dom.querySelector(`[data-decoration-id="${Bt}"]`)?.getBoundingClientRect()||null}:null},U&&(null===(D=p?.onBeforeStart)||void 0===D||D.call(p,h)),V&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(V||U)&&(h.items=yield c({editor:t,query:X.query})),W&&(null===(Q=p?.onExit)||void 0===Q||Q.call(p,h)),V&&(null===(O=p?.onUpdate)||void 0===O||O.call(p,h)),U&&(null===(q=p?.onStart)||void 0===q||q.call(p,h))}),function(y,E){return m.apply(this,arguments)}),destroy:()=>{var m;!h||null===(m=p?.onExit)||void 0===m||m.call(p,h)}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,y){const{isEditable:E}=t,{composing:b}=t.view,{selection:D}=g,{empty:I,from:Q}=D,O={...m};if(O.composing=b,E&&(I||t.view.composing)){(Qm.range.to)&&!b&&!m.composing&&(O.active=!1);const q=function qee(n){var t;const{char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:s}=n,a=function $ee(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(e),l=new RegExp(`\\s${a}$`),c=o?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${r?.join("")}\0]?$`).test(f);if(null!==r&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(e.length),text:p[0]}:null}({char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:D.$from}),le=`id_${Math.floor(4294967295*Math.random())}`;q&&d({editor:t,state:y,range:q.range})?(O.active=!0,O.decorationId=m.decorationId?m.decorationId:le,O.range=q.range,O.query=q.query,O.text=q.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,m){var A;const{active:y,range:E}=f.getState(g.state);return y&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:E}))||!1},decorations(g){const{active:m,range:A,decorationId:y}=f.getState(g);return m?kt.create(g.doc,[vn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":y})]):null}}});return f}let ete=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-action-button"]],decls:3,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"button")(1,"i",0),de(2,"add"),B()())},styles:["[_nghost-%COMP%]{display:block}button[_ngcontent-%COMP%]{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}"]}),n})();const tte=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function nte(n,t){if(1&n){const e=Re();x(0,"button",2),K("mousedown",function(){return re(e),oe(w().back.emit())}),B()}2&n&&mn(Zr(2,tte))}let LR=(()=>{class n{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new te}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,i){1&e&&(ie(0,"p",0),S(1,nte,1,3,"button",1)),2&e&&(C("innerHTML",i.title,zp),v(1),C("ngIf",i.showBackBtn))},dependencies:[Pt,Bs],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]}),n})();function ite(n,t){if(1&n&&(x(0,"i",7),de(1),B()),2&n){const e=w();v(1),pt(e.url)}}function rte(n,t){1&n&&ie(0,"dot-contentlet-thumbnail",9),2&n&&C("contentlet",w(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function ote(n,t){if(1&n&&S(0,rte,1,4,"dot-contentlet-thumbnail",8),2&n){const e=w(),i=Qt(10);C("ngIf",null==e.data?null:e.data.contentlet)("ngIfElse",i)}}function ste(n,t){if(1&n&&(x(0,"span",10),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentlet.url)}}function ate(n,t){if(1&n&&(x(0,"div",11),ie(1,"dot-state-icon",12),x(2,"dot-badge",13),de(3),Pa(4,"lowercase"),B()()),2&n){const e=w();v(1),C("state",e.data.contentlet),v(2),pt(Fa(4,2,e.data.contentlet.language))}}function lte(n,t){1&n&&ie(0,"img",14),2&n&&C("src",w().url,ko)}let Xv=(()=>{class n{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,i=e.parentElement,{top:r,top:o,height:s}=i.getBoundingClientRect(),{top:a,bottom:l}=e.getBoundingClientRect(),c=a-r,u=l-o;i.scrollTop+=this.alignToTop()?c:u-s}}isIntoView(){const{bottom:e,top:i}=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.parentElement.getBoundingClientRect();return i>=r.top&&e<=r.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:i}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#b3b1b8;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]}),n})();const cte=["*"];let QR=(()=>{class n{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new Me,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const i=e.target,r=i.dataset?.index;if(isNaN(r)||!this.mouseMove)return;const o=Number(i?.dataset.index);i.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new kO(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(Vn(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new kO(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-list"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,Xv,4),2&e){let o;He(o=Ve())&&(i.items=o)}},hostVars:1,hostBindings:function(e,i){1&e&&K("mousemove",function(o){return i.onMouseMove(o)})("mouseover",function(o){return i.onMouseOver(o)})("mousedown",function(o){return i.onMouseDownHandler(o)}),2&e&&Ot("id",i.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:cte,decls:1,vars:0,template:function(e,i){1&e&&($r(),ki(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]}),n})();function Jc(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>fe(function ute(n,t){return i=>{let r=i;for(let o=0;o{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Br;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?ae(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(Jc("entity"),fe(e=>{const i=this.getDotLanguageObject(e);return this.languages=i,i}))}getDotLanguageObject(e){return e.reduce((i,r)=>Object.assign(i,{[r.id]:r}),{})}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Sm=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Sm||(Sm={})),Sm))();let dte=(()=>{class n{constructor(e){this.http=e}get({query:e,limit:i=0,offset:r=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:i,offset:r}).pipe(Jc("entity"))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eM=(()=>{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Br;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",i=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:i,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(Jc("entity"))}getContentlets({contentType:e,filter:i,currentLanguage:r}){return this.http.post("/api/content/_search",{query:`+contentType:${e} +languageId:${r} +deleted:false +working:true +catchall:*${i}* `,sort:"modDate desc",offset:0,limit:40}).pipe(Jc("entity","jsonObjectView","contentlets"))}getContentletsUrlMap({filter:e,currentLanguage:i=Bm}){return this.http.post("/api/content/_search",{query:`+languageId:${i} +deleted:false +working:true +(urlmap:*${e}* OR +(basetype:5 AND path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(Jc("entity","jsonObjectView","contentlets"))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const hte={SHOW_VIDEO_THUMBNAIL:!0};let UR=(()=>{class n{constructor(){this.config=hte}get configObject(){return this.config}setProperty(e,i){this.config={...this.config,[e]:i}}getProperty(e){return this.config[e]||!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pte=["list"];function fte(n,t){if(1&n&&(x(0,"h3"),de(1),B()),2&n){const e=w(2);v(1),pt(e.title)}}function gte(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",7),2&n){const e=w(),i=e.$implicit,r=e.index;C("command",i.command)("index",i.tabindex||r)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function mte(n,t){1&n&&ie(0,"div",8)}function Ate(n,t){if(1&n&&(ct(0),S(1,gte,1,6,"dot-suggestions-list-item",5),S(2,mte,1,0,"ng-template",null,6,on),ut()),2&n){const e=t.$implicit,i=Qt(3);v(1),C("ngIf","divider"!==e.id)("ngIfElse",i)}}function bte(n,t){if(1&n&&(x(0,"div"),S(1,fte,2,1,"h3",2),x(2,"dot-suggestion-list",null,3),S(4,Ate,4,2,"ng-container",4),B()()),2&n){const e=w();v(1),C("ngIf",!!e.title),v(3),C("ngForOf",e.items)}}function yte(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",9),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}if(2&n){const e=w();C("title",e.noResultsMessage)("showBackBtn",!e.isFilterActive)}}var $n=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}($n||($n={})),$n))();let xm=(()=>{class n{constructor(e,i,r){this.suggestionsService=e,this.dotLanguageService=i,this.cd=r,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=Bm,this.allowedContentTypes="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=$n.BLOCK,this.dotLanguageService.getLanguages().pipe(Jn(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===$n.CONTENT?$n.CONTENTTYPE:$n.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case $n.BLOCK:this.items=this.initialItems.filter(i=>i.label.toLowerCase().includes(e.trim().toLowerCase()));break;case $n.CONTENTTYPE:this.loadContentTypes(e);break;case $n.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe(fe(i=>i.map(r=>({label:r.name,icon:r.icon,command:()=>{this.selectedContentType=r,this.itemsLoaded=$n.CONTENT,this.loadContentlets(r)}}))),Jn(1)).subscribe(i=>{this.items=i,this.itemsLoaded=$n.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,i=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:i,currentLanguage:this.currentLanguage}).pipe(Jn(1)).subscribe(r=>{this.items=r.map(o=>{const{languageId:s}=o;return o.language=this.getContentletLanguage(s),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(eM),T(Zv),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestions"]],viewQuery:function(e,i){if(1&e&&Zt(pte,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,bte,5,2,"div",0),S(1,yte,1,2,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.items.length)("ngIfElse",r)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#b3b1b8 solid 1px;margin:.5rem 0}']}),n})();const jR={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"},tM="menuFloating";class Cte{constructor({editor:t,element:e,view:i,tippyOptions:r,render:o,command:s,key:a}){this.invalidNodes=["codeBlock","blockquote"],this.mousedownHandler=l=>{l.preventDefault(),this.editor.chain().insertContent("/").run()},this.editor=t,this.element=e,this.view=i,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",()=>{this.tippy.unmount(),this.update(this.editor.view)}),this.element.style.visibility="visible",this.render=o,this.command=s,this.key=a,this.createTooltip(r)}createTooltip(t={}){this.tippy=Jo(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"left",hideOnClick:"toggle",...t})}update(t,e){const{selection:i}=t.state,{$anchor:r,empty:o,from:s,to:a}=i,u=1===r.depth&&!i.$anchor.parent.isLeaf&&!i.$anchor.parent.textContent,d=r.parent.type.name,h=this.key?.getState(t.state),p=e?this.key?.getState(e):null;if(p?.open||o&&u)if(p?.open||!this.invalidNodes.includes(d))if(this.tippy.setProps({getReferenceClientRect:()=>sl(t,s,a)}),this.show(),h.open){const{from:f,to:g}=this.editor.state.selection,m=sl(this.view,f,g);this.render().onStart({clientRect:()=>m,range:{from:f,to:g},editor:this.editor,command:this.command})}else p&&p.open&&this.render().onExit(null);else this.hide();else this.hide()}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler)}}const zR=new _t(tM),vte=n=>new it({key:zR,view:t=>new Cte({key:zR,view:t,...n}),state:{init:()=>({open:!1}),apply(t){const e=t.getMeta(tM);return e?.open?{open:e?.open}:{open:!1}}},props:{handleKeyDown(t,e){const{open:i,range:r}=this.getState(t.state);return!!i&&n.render().onKeyDown({event:e,range:r,view:t})}}}),Ste={paragrah:!0,text:!0,doc:!0},HR={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0}},xte=(n,t)=>{const{type:e,attrs:i}=n;return"heading"===e&&t[e+i.level]},VR=(n,t)=>{if(!n?.length)return n;const e=[];for(const i in n){const r=n[i];(t[r.type]||xte(r,t))&&e.push({...r,content:VR(r.content,t)})}return e},Ote=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),nM=new RegExp(/]*src="[^"]*"[^>]*>/gm),Kc=(n,t)=>{let i,e=n.depth;do{if(i=n.node(e),i){if(Array.isArray(t)&&t.includes(i.type.name))break;e--}}while(e>0&&i);return i},Tm=n=>{const t=n.match(nM)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(nM,"")+t.join(""):t.join("")},GR=n=>{const{state:t}=n,{doc:e}=t.tr,i=t.selection.to,r=Ee.create(e,i,i);n.dispatch(t.tr.setSelection(r))};class ll extends Yn{constructor(t,e){super(),this.STEP_TYPE="setDocAttr",this.key=t,this.value=e}get stepType(){return this.STEP_TYPE}static fromJSON(t,e){return new ll(e.key,e.value)}static register(){try{Yn.jsonID(this.prototype.STEP_TYPE,ll)}catch(t){if(t.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw t}return!0}apply(t){return this.prevValue=t.attrs[this.key],t.attrs===t.type.defaultAttrs&&(t.attrs=Object.assign({},t.attrs)),t.attrs[this.key]=this.value,ln.ok(t)}invert(){return new ll(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}const Bm=1;var dr=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(dr||(dr={})),dr))();const jte=[dr.DOT_IMAGE,dr.DOT_CONTENT];function YR({editor:n,range:t,props:e,customBlocks:i}){const{type:r,payload:o}=e,s={dotContent:()=>{n.chain().addContentletBlock({range:t,payload:o}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:t,type:r}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe(Jn(1),Zi(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(t).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(t).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(t).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(t).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(t).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),video:()=>n.commands.openAssetForm({type:"video"})};WR(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[e.type.name]?s[e.type.name]():n.chain().setTextSelection(t).focus().run()}function WR(n){return n.extensions.map(t=>function Hte(n){return n.map(t=>({icon:t.icon,label:t.menuLabel,commandKey:t.command,id:t.name}))}(t.actions)).flat()}const Vte=(n,t)=>{let e,i;const r=new _t("suggestionPlugin"),o=new Me;let s=!0;function a({editor:g,range:m,clientRect:A}){s&&(function c(g,m){const{allowedBlocks:A,allowedContentTypes:y,lang:E}=g.storage.dotConfig,D=function u({allowedBlocks:g=[],editor:m,range:A}){const E=[...g.length?Lg.filter(b=>this.allowedBlocks.includes(b.id)):Lg,...WR(t)];return E.forEach(b=>b.command=()=>function d({item:g,editor:m,range:A}){const{id:y,attributes:E}=g,b={type:{name:y.includes("heading")?"heading":y,...E}};ek({type:$n.BLOCK,editor:m,range:A,suggestionKey:r,ItemsType:$n}),h({editor:m,range:A,props:b})}({item:b,editor:m,range:A})),E}({allowedBlocks:A.length>1?A:[],editor:g,range:m});i=n.createComponent(xm),i.instance.items=D,i.instance.currentLanguage=E,i.instance.allowedContentTypes=y,i.instance.onSelectContentlet=I=>{ek({type:$n.CONTENT,editor:g,range:m,suggestionKey:r,ItemsType:$n}),h({editor:g,range:m,props:I})},i.changeDetectorRef.detectChanges(),(A.length<=1||A.includes("dotContent"))&&i.instance.addContentletItem()}(g,m),e=function zte({element:n,content:t,rect:e,onHide:i}){return Jo(n,{content:t,placement:"bottom",popperOptions:{modifiers:k9},getReferenceClientRect:e,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:g.options.element.parentElement,content:i.location.nativeElement,rect:A,onHide:()=>{const y=g.state.tr.setMeta(tM,{open:!1});g.view.dispatch(y),g.commands.freezeScroll(!1)}}))}function l({editor:g}){g.commands.freezeScroll(!0),s=!(Kc(g.view.state.selection.$from,[dr.TABLE_CELL])?.type.name===dr.TABLE_CELL)}function h({editor:g,range:m,props:A}){const y=r.getState(g.view.state).query?.length||0;m.to=m.to+y,YR({editor:g,range:m,props:A,customBlocks:t})}function p({event:g}){const{key:m}=g;return"Escape"===m?(g.stopImmediatePropagation(),e.hide(),!0):"Enter"===m?(i.instance.execCommand(),!0):("ArrowDown"===m||"ArrowUp"===m)&&(i.instance.updateSelection(g),!0)}function f({editor:g}){e?.destroy(),g.commands.freezeScroll(!1),i?.destroy(),i=null,o.next(!0),o.complete()}return Ft.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:r,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:p,onExit:f}),items:({query:g})=>(i&&i.instance.filterItems(g),[])}}),addCommands:()=>({addHeading:({range:g,type:m})=>({chain:A})=>A().focus().deleteRange(g).toggleHeading({level:m.level}).focus().run(),addContentletBlock:({range:g,payload:m})=>({chain:A})=>A().deleteRange(g).command(y=>{const E=y.editor.schema.nodes.dotContent.create({data:m});return y.tr.replaceSelectionWith(E),!0}).run(),addNextLine:()=>({chain:g})=>g().command(m=>{const{selection:A}=m.state;return m.commands.insertContentAt(A.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){const g=n.createComponent(ete);return[vte({command:YR,editor:this.editor,element:g.location.nativeElement,render:()=>({onStart:a,onKeyDown:p,onExit:f})}),Zee({editor:this.editor,...this.options.suggestion})]}})};var Om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JR=function Gte(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},Kte="object"==typeof self&&self&&self.Object===Object&&self,$te="object"==typeof Om&&Om&&Om.Object===Object&&Om||Kte||Function("return this")(),qte=$te,ene=/\s/,ine=function tne(n){for(var t=n.length;t--&&ene.test(n.charAt(t)););return t},rne=/^\s+/,lne=$te.Symbol,XR=Object.prototype,cne=XR.hasOwnProperty,une=XR.toString,_h=lne?lne.toStringTag:void 0,fne=Object.prototype.toString,Ane=function dne(n){var t=cne.call(n,_h),e=n[_h];try{n[_h]=void 0;var i=!0}catch{}var r=une.call(n);return i&&(t?n[_h]=e:delete n[_h]),r},bne=function gne(n){return fne.call(n)},eN=lne?lne.toStringTag:void 0,wne=function Ene(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":eN&&eN in Object(n)?Ane(n):bne(n)},Dne=function vne(n){return null!=n&&"object"==typeof n},Tne=function one(n){return n&&n.slice(0,ine(n)+1).replace(rne,"")},tN=JR,Bne=function Sne(n){return"symbol"==typeof n||Dne(n)&&"[object Symbol]"==wne(n)},One=/^[-+]0x[0-9a-f]+$/i,kne=/^0b[01]+$/i,Pne=/^0o[0-7]+$/i,Fne=parseInt,Lne=JR,iM=function(){return qte.Date.now()},iN=function Rne(n){if("number"==typeof n)return n;if(Bne(n))return NaN;if(tN(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=tN(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Tne(n);var e=kne.test(n);return e||Pne.test(n)?Fne(n.slice(2),e?2:8):One.test(n)?NaN:+n},Une=Math.max,jne=Math.min;class rM{constructor({editor:t,element:e,view:i,tippyOptions:r={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&Cm(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&(null===(l=this.element.parentNode)||void 0===l?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.updateHandler=(a,l)=>{var c,u,d;const{state:h,composing:p}=a,{doc:f,selection:g}=h,m=l&&l.doc.eq(f)&&l.selection.eq(g);if(p||m)return;this.createTooltip();const{ranges:A}=g,y=Math.min(...A.map(D=>D.$from.pos)),E=Math.max(...A.map(D=>D.$to.pos));(null===(c=this.shouldShow)||void 0===c?void 0:c.call(this,{editor:this.editor,view:a,state:h,oldState:l,from:y,to:E}))?(null===(u=this.tippy)||void 0===u||u.setProps({getReferenceClientRect:(null===(d=this.tippyOptions)||void 0===d?void 0:d.getReferenceClientRect)||(()=>{if(function xee(n){return n instanceof ce}(h.selection)){const D=a.nodeDOM(y);if(D)return D.getBoundingClientRect()}return sl(a,y,E)})}),this.show()):this.hide()},this.editor=t,this.element=e,this.view=i,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){const{state:i}=t;this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos?function zne(n,t,e){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(I){var Q=i,O=r;return i=r=void 0,c=I,s=n.apply(O,Q)}function f(I){return c=I,a=setTimeout(A,t),u?p(I):s}function m(I){var Q=I-l;return void 0===l||Q>=t||Q<0||d&&I-c>=o}function A(){var I=iM();if(m(I))return y(I);a=setTimeout(A,function g(I){var q=t-(I-l);return d?jne(q,o-(I-c)):q}(I))}function y(I){return a=void 0,h&&i?p(I):(i=r=void 0,s)}function D(){var I=iM(),Q=m(I);if(i=arguments,r=this,l=I,Q){if(void 0===a)return f(l);if(d)return clearTimeout(a),a=setTimeout(A,t),p(l)}return void 0===a&&(a=setTimeout(A,t)),s}return t=iN(t)||0,Lne(e)&&(u=!!e.leading,o=(d="maxWait"in e)?Une(iN(e.maxWait)||0,t):o,h="trailing"in e?!!e.trailing:h),D.cancel=function E(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},D.flush=function b(){return void 0===a?s:y(iM())},D}(this.updateHandler,this.updateDelay)(t,e):this.updateHandler(t,e)}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;!(null===(t=this.tippy)||void 0===t)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Vne=n=>new it({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:t=>new rM({view:t,...n})}),oM=Ft.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[Vne({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),Gne=["cb"],Yne=function(n,t,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function Wne(n,t){if(1&n){const e=Re();x(0,"label",7),K("click",function(r){re(e);const o=w(),s=Qt(3);return oe(o.onClick(r,s,!0))}),de(1),B()}if(2&n){const e=w();Gt(e.labelStyleClass),C("ngClass",ka(5,Yne,e.checked(),e.disabled,e.focused)),Ot("for",e.inputId),v(1),pt(e.label)}}const Jne=function(n,t,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":t,"p-checkbox-focused":e}},Kne=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},$ne={provide:Ri,useExisting:Je(()=>sM),multi:!0};let sM=(()=>{class n{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!wt.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:wt.contains(this.value,this.model)}}return n.\u0275fac=function(e){return new(e||n)(T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&Zt(Gne,5),2&e){let r;He(r=Ve())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([$ne])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Re();x(0,"div",0)(1,"div",1)(2,"input",2,3),K("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),B()(),x(4,"div",4),K("click",function(s){re(r);const a=Qt(3);return oe(i.onClick(s,a,!0))}),ie(5,"span",5),B()(),S(6,Wne,2,9,"label",6)}2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",ka(18,Jne,i.checked(),i.disabled,i.focused)),v(2),C("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Ot("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),v(2),C("ngClass",ka(22,Kne,i.checked(),i.disabled,i.focused)),v(1),C("ngClass",i.checked()?i.checkboxIcon:null),v(1),C("ngIf",i.label))},dependencies:[Un,Pt,Xi],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),rN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),km=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(lg,8),T(oi))},n.\u0275dir=ue({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&K("input",function(o){return i.onInput(o)}),2&e&&_s("p-filled",i.filled)}}),n})(),oN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const qne=["group"];function Xne(n,t){if(1&n&&(ct(0),ie(1,"p-checkbox",11),x(2,"label",12),de(3),Pa(4,"titlecase"),B(),ut()),2&n){const e=w().$implicit;v(1),C("formControlName",e.key)("binary",!0)("id",e.key),v(1),C("for",e.key),v(1),pt(Fa(4,5,e.label))}}const Zne=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function eie(n,t){if(1&n&&ie(0,"input",14,15),2&n){const e=w(2).$implicit;mn(Zr(6,Zne)),C("formControlName",e.key)("id",e.key)("type",e.type)("min",e.min)}}function tie(n,t){if(1&n&&(ct(0),x(1,"label",12),de(2),Pa(3,"titlecase"),B(),S(4,eie,2,7,"input",13),ut()),2&n){const e=w().$implicit;v(1),C("for",e.key),v(1),pt(Fa(3,2,e.label))}}function nie(n,t){1&n&&(x(0,"span",16),de(1,"This field is required"),B())}function iie(n,t){if(1&n&&(x(0,"div",6),ct(1,7),S(2,Xne,5,7,"ng-container",8),S(3,tie,5,4,"ng-container",9),ut(),S(4,nie,2,0,"span",10),B()),2&n){const e=t.$implicit,i=w(2);C("ngClass",e.type),v(1),C("ngSwitch",e.type),v(1),C("ngSwitchCase","checkbox"),v(2),C("ngIf",i.form.controls[e.key].invalid&&i.form.controls[e.key].dirty)}}const rie=function(){return{width:"120px"}},oie=function(){return{padding:"11.5px 24px"}};function sie(n,t){if(1&n){const e=Re();x(0,"form",1),K("ngSubmit",function(){return re(e),oe(w().onSubmit())}),S(1,iie,5,4,"div",2),x(2,"div",3)(3,"button",4),K("click",function(){return re(e),oe(w().hide.emit(!0))}),B(),ie(4,"button",5),B()()}if(2&n){const e=w();C("ngClass",null==e.options?null:e.options.customClass)("formGroup",e.form),v(1),C("ngForOf",e.dynamicControls),v(2),mn(Zr(8,rie)),v(1),mn(Zr(9,oie)),C("disabled",e.form.invalid)}}let aie=(()=>{class n{constructor(e){this.fb=e,this.formValues=new te,this.hide=new te,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(i=>{this.form.addControl(i.key,this.fb.control(i.value||null,i.required?fE.required:[]))})}cleanForm(){this.form=null}}return n.\u0275fac=function(e){return new(e||n)(T(kE))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-form"]],viewQuery:function(e,i){if(1&e&&Zt(qne,5),2&e){let r;He(r=Ve())&&(i.inputs=r)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],[3,"for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,i){1&e&&S(0,sie,5,10,"form",0),2&e&&C("ngIf",i.form)},dependencies:[Un,qi,Pt,vd,V_,G_,cg,yc,Sd,Zf,Ec,Fd,sM,Bs,km,RT],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.75rem;text-align:left}"]}),n})();class lie{constructor(t,e,i){this.applicationRef=e.get(Ra);const o=e.get(As).resolveComponentFactory(t);this.componentRef=o.create(e,[]),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(St)}get dom(){return this.elementRef.nativeElement}updateProps(t){Object.entries(t).forEach(([e,i])=>{this.instance[e]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}let sN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class cie extends class Kee{constructor(t,e,i){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,i,r,o,s,a,l;const{view:c}=this.editor,u=t.target,d=3===u.nodeType?null===(e=u.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(i=this.contentDOM)||void 0===i?void 0:i.contains(u))||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),y=null!==(r=t.offsetX)&&void 0!==r?r:null===(o=t.nativeEvent)||void 0===o?void 0:o.offsetX,E=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+y,p=A.y-m.y+E}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ce.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const i=t.target;if(!this.dom.contains(i)||null!==(e=this.contentDOM)&&void 0!==e&&e.contains(i))return!1;const o="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!o)return!0;const{isEditable:a}=this.editor,{isDragging:l}=this,c=!!this.node.type.spec.draggable,u=ce.isSelectable(this.node),d="copy"===t.type,h="paste"===t.type,p="cut"===t.type,f="mousedown"===t.type,g=t.type.startsWith("drag");if(!c&&u&&g&&t.preventDefault(),c&&g&&!l)return t.preventDefault(),!1;if(c&&a&&!l&&f){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||d||h||p||f&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&vm()&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const i=this.getPos();return e.setNodeMarkup(i,void 0,{...this.node.attrs,...t}),!0})}deleteNode(){const t=this.getPos();this.editor.commands.deleteRange({from:t,to:t+this.node.nodeSize})}}{mount(){this.renderer=new lie(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function die(n,t){1&n&&Mt(0)}function hie(n,t){if(1&n&&(x(0,"div",8),ki(1,1),S(2,die,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}function pie(n,t){1&n&&Mt(0)}function fie(n,t){if(1&n&&(x(0,"div",9),de(1),S(2,pie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),Xr(" ",e.header," "),v(1),C("ngTemplateOutlet",e.titleTemplate)}}function gie(n,t){1&n&&Mt(0)}function mie(n,t){if(1&n&&(x(0,"div",10),de(1),S(2,gie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),Xr(" ",e.subheader," "),v(1),C("ngTemplateOutlet",e.subtitleTemplate)}}function Aie(n,t){1&n&&Mt(0)}function bie(n,t){1&n&&Mt(0)}function yie(n,t){if(1&n&&(x(0,"div",11),ki(1,2),S(2,bie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const _ie=["*",[["p-header"]],[["p-footer"]]],Eie=["*","p-header","p-footer"];let aM=(()=>{class n{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275cmp=ve({type:n,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(Qn(r,yO,5),Qn(r,_O,5),Qn(r,ir,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:Eie,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,i){1&e&&($r(_ie),x(0,"div",0),S(1,hie,3,1,"div",1),x(2,"div",2),S(3,fie,3,2,"div",3),S(4,mie,3,2,"div",4),x(5,"div",5),ki(6),S(7,Aie,1,0,"ng-container",6),B(),S(8,yie,3,1,"div",7),B()()),2&e&&(Gt(i.styleClass),C("ngClass","p-card p-component")("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(2),C("ngIf",i.header||i.titleTemplate),v(1),C("ngIf",i.subheader||i.subtitleTemplate),v(3),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Un,Pt,zo,Xi],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),aN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go]}),n})(),Cie=(()=>{class n{transform({live:e,working:i,deleted:r,hasLiveVersion:o}){return{live:e,working:i,deleted:r,hasLiveVersion:o}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=In({name:"contentletState",type:n,pure:!0}),n})();function vie(n,t){if(1&n&&ie(0,"dot-contentlet-thumbnail",4),2&n){const e=w();C("width",94)("height",94)("iconSize","72px")("contentlet",e.data)}}function Mie(n,t){if(1&n&&(x(0,"h3",5),de(1),B()),2&n){const e=w();v(1),pt(e.data.title)}}function wie(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentType)}}function Die(n,t){if(1&n&&(x(0,"div",6),ie(1,"dot-state-icon",7),Pa(2,"contentletState"),x(3,"dot-badge",8),de(4),Pa(5,"lowercase"),B()()),2&n){const e=w();v(1),C("state",Fa(2,3,e.data)),v(2),C("bordered",!0),v(1),pt(Fa(5,5,e.data.language))}}let Iie=(()=>{class n extends sN{ngOnInit(){this.data=this.node.attrs.data}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-contentlet-block"]],features:[lt],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,vie,1,4,"ng-template",0),S(2,Mie,2,1,"h3",1),S(3,wie,2,1,"span",2),S(4,Die,6,7,"ng-template",3),B()),2&e&&(v(2),C("pTemplate","title"),v(1),C("pTemplate","subtitle"))},dependencies:[aM,ir,Y_,Cie],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #b3b1b8;color:#11152e;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1rem 1.5rem 1rem 1rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#7e7a86;font-size:.85rem;font-weight:regular;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),n})();const Sie=n=>tn.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:t=>({data:t.getAttribute("data")}),renderHTML:t=>({data:t.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML:({HTMLAttributes:t})=>["dotcms-contentlet-block",Et(t)],addNodeView:()=>((n,t)=>e=>new cie(n,e,t))(Iie,{injector:n})}),xie=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Tie=tn.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:t})=>t.insertContent({type:this.name,attrs:n})}},addInputRules(){return[RR({find:xie,type:this.type,getAttributes:n=>{const[,,t,e,i]=n;return{src:e,alt:t,title:i}}})]}}),Bie=(n,t)=>{const{href:e=null}=t;return["a",{href:e},lN(n,t)]},lN=(n,t)=>["img",Et(n,t)],Oie=n=>{if("string"==typeof n)return{src:n};const{fileAsset:t,asset:e,title:i}=n;return{data:n,src:t||e,title:i,alt:i}},ui=Tie.extend({name:"dotImage",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src||n.data?.asset})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},style:{default:null,parseHTML:n=>n.getAttribute("style"),renderHTML:n=>({style:n.style})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>({data:n.getAttribute("data")}),renderHTML:n=>({data:n.data})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:t})=>t.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),addDotImage:n=>({chain:t,state:e})=>{const{selection:i}=e,r={attrs:Oie(n),type:ui.name};return t().insertContentAt(i.head,r).run()}}},renderHTML({HTMLAttributes:n}){const{style:t="",href:e=null}=n||{};return["div",{style:t,class:"node-container"},e?Bie(this.options.HTMLAttributes,n):lN(this.options.HTMLAttributes,n)]}}),kie=tn.create({name:"video",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mineType:{default:null,parseHTML:n=>n.getAttribute("mineType"),renderHTML:n=>({mineType:n.mineType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},orientation:{default:null,parseHTML:n=>n.getAttribute("orientation"),renderHTML:({height:n,width:t})=>({orientation:n>t?"vertical":"horizontal"})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:n.data})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),setVideo:n=>({commands:t})=>t.insertContent({type:this.name,attrs:Pie(n)})}},renderHTML({HTMLAttributes:n}){const{orientation:t=!1}=n;return["div",{class:"node-container"},["video",Et(n,{controls:!0,class:"vertical"===t?"vertical-video":""})]]}}),Pie=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:t,asset:e,assetVersion:i,mineType:r}=n,{width:o="auto",height:s="auto",contentType:a}=t||{},l=s>o?"vertical":"horizontal";return{src:i||e,data:{...n},width:o,height:s,mineType:r||a,orientation:l}},Fie=["list"];function Rie(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",5),2&n){const e=t.$implicit,i=t.index;C("command",e.command)("index",i)("label",e.label)("url",e.icon)("data",e.data)("page",!0)}}function Nie(n,t){if(1&n&&(x(0,"div")(1,"dot-suggestion-list",null,3),S(3,Rie,1,6,"dot-suggestions-list-item",4),B()()),2&n){const e=w();v(3),C("ngForOf",e.items)}}function Lie(n,t){1&n&&ie(0,"dot-suggestion-loading-list")}function Qie(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",6),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}2&n&&C("title",w().title)("showBackBtn",!0)}let cN=(()=>{class n{constructor(){this.items=[],this.loading=!1,this.back=new te}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-page"]],viewQuery:function(e,i){if(1&e&&Zt(Fie,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,Nie,4,1,"div",0),S(1,Lie,1,0,"ng-template",null,1,on),S(3,Qie,1,2,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",i.items.length)("ngIfElse",i.loading?r:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]}),n})();const Uie=["input"],jie=["suggestions"];function zie(n,t){1&n&&ie(0,"hr",11)}const Hie=function(){return{fontSize:"32px"}};function Vie(n,t){if(1&n&&(x(0,"div",12)(1,"a",13)(2,"span",14),de(3,"language"),B(),x(4,"span",15),de(5),B()(),x(6,"div",16)(7,"div",17),ie(8,"p-checkbox",18),B(),x(9,"label",19),de(10,"Open link in new window"),B()()()),2&n){const e=w();v(1),C("href",e.currentLink,ko),v(1),mn(Zr(5,Hie)),v(3),pt(e.currentLink),v(3),C("binary",!0)}}function Gie(n,t){if(1&n){const e=Re();x(0,"dot-suggestion-page",20,21),K("back",function(){return re(e),oe(w().resetForm())}),B()}if(2&n){const e=w();C("items",e.items)("loading",e.loading)("title",e.noResultsTitle)}}function Yie(n,t){if(1&n){const e=Re();x(0,"dot-form-actions",22),K("hide",function(r){return re(e),oe(w().hide.emit(r))})("remove",function(r){return re(e),oe(w().removeLink.emit(r))}),B()}2&n&&C("link",w().currentLink)}const Wie=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};let uN=(()=>{class n{constructor(e,i,r){this.fb=e,this.suggestionsService=i,this.dotLanguageService=r,this.hide=new te(!1),this.removeLink=new te(!1),this.isSuggestionOpen=new te(!1),this.setNodeProps=new te,this.showSuggestions=!1,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:i}=e;i!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No resutls for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(kg(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe(Jn(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!Pm(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:i=!0}){this.form.setValue({link:e,blank:i},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const i=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!i?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsUrlMap({filter:e}).pipe(Jn(1)).subscribe(i=>{this.items=i.map(r=>{const{languageId:o}=r;return r.language=this.getContentletLanguage(o),{label:r.title,icon:"contentlet/image",data:{contentlet:r},command:()=>{this.onSelection({payload:r,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(kE),T(eM),T(Zv))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,i){if(1&e&&(Zt(Uie,5),Zt(jie,5)),2&e){let r;He(r=Ve())&&(i.input=r.first),He(r=Ve())&&(i.suggestionsComponent=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"form",1),K("keydown",function(o){return i.onKeyDownEvent(o)})("ngSubmit",function(){return i.submitForm()}),x(2,"div",2)(3,"div",3)(4,"input",4,5),K("input",function(){return i.setLoading()}),B(),ie(6,"button",6),B()(),S(7,zie,1,0,"hr",7),S(8,Vie,11,6,"div",8),B(),S(9,Gie,2,3,"dot-suggestion-page",9),S(10,Yie,1,1,"dot-form-actions",10),B()),2&e&&(v(1),C("formGroup",i.form),v(5),mn(Zr(7,Wie)),v(1),C("ngIf",i.showSuggestions||i.currentLink),v(1),C("ngIf",i.currentLink&&!i.showSuggestions),v(1),C("ngIf",i.showSuggestions),v(1),C("ngIf",!i.showSuggestions&&i.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #b3b1b8}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#11152e}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #e2e2e2;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var Jie=pu(222),Kie=pu.n(Jie);const dN=({editor:n,view:t,pos:e})=>{const i=t.state.doc?.resolve(e),r=((n,t)=>{const e=t-n?.textOffset;return{to:e,from:n.index(){const{state:a}=this.editor,{to:l}=a.selection,{openOnClick:c}=Xo.getState(a);!this.pluginKey.getState(a).isOpen||(c?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(l))):this.editor.commands.closeLinkForm())},this.editor=t,this.element=e,this.view=i,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=o,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey.getState(t.state),r=this.pluginKey.getState(e);i.isOpen!==r.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t.parentElement,{...this.tippyOptions,...tk,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:t}=this.editor,{state:e}=t,{doc:i,selection:r}=e,{ranges:o}=r,s=Math.min(...o.map(g=>g.$from.pos)),l=sl(t,s,Math.max(...o.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottom0){const i=this.formatLink(t);this.isImageNode()?this.editor.commands.setImageLink({href:i}):this.editor.commands.setLink({href:i,target:e?"_blank":"_top"})}}removeLink(){this.isImageNode()?this.editor.commands.unsetImageLink():this.editor.commands.unsetLink(),this.hide()}formatLink(t){return Pm(t)?new RegExp("^(http|https)","i").test(t)?t:`http://${t}`:t}setInputValues(){const t=this.getLinkProps();this.component.instance.initialValues=t,this.component.instance.setFormValue(t.link?t:{link:this.getLinkSelect()})}setComponentEvents(){this.component.instance.hide.pipe(Vn(this.$destroy)).subscribe(()=>this.hide()),this.component.instance.removeLink.pipe(Vn(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(Vn(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(Vn(this.$destroy)).subscribe(t=>this.setLinkValues(t))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:t="",target:e}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes(ui.name);return{link:t,blank:!e||"_blank"===e}}getLinkSelect(){const{state:t}=this.editor,{from:e,to:i}=t.selection,r=t.doc.textBetween(e,i," ");return Pm(r)?r:""}isImageNode(){const{type:t}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return t?.name===ui.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(t){if(!this.tippy?.state.isMounted)return;const e=t.target,i=e?.parentElement?.parentElement;this.scrollElementMap[e.id]||this.scrollElementMap[i.id]||this.hide()}}const qie=n=>{let t;return new it({key:n.pluginKey,view:e=>new $ie({view:e,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(e,i,r){const{isOpen:o,openOnClick:s}=e.getMeta(Xo)||{},a=Xo.getState(r);return"boolean"==typeof o?{isOpen:o,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(e,i){const r=n.editor,o=((n,t)=>{const{clientX:e,clientY:i}=t,{pos:r}=n.posAtCoords({left:e,top:i});return r})(e,i),{isOpen:s,openOnClick:a}=Xo.getState(r.state);s&&a&&r.chain().unsetHighlight().setTextSelection(o).run()}},handleClickOn(e,i,r){const o=n.editor;if(o.isActive("link")&&i){if(!Kie()(t,r))return dN({editor:o,view:e,pos:i}),t=r,!0;o.chain().setTextSelection(i).closeLinkForm().run()}else t=r},handleDoubleClickOn(e,i){const r=n.editor;if(r.isActive("link"))return dN({editor:r,view:e,pos:i}),!0}}})},Xo=new _t("addLink"),Xie=n=>Ft.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Xo}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:e})=>e().setMeta("preventAutolink",!0).setHighlight().command(({tr:i})=>(i.setMeta(Xo,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:e})=>(e.setMeta(Xo,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(uN);return t.changeDetectorRef.detectChanges(),[qie({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t})]}}),hN={tableCell:!0,table:!0,video:!0},Zie=({editor:n,state:t,from:e,to:i})=>{const{doc:r,selection:o}=t,{view:s}=n,{empty:a}=o,{isOpen:l,openOnClick:c}=Xo.getState(t),u=n.state.doc.nodeAt(n.state.selection.from),d=Kc(n.state.selection.$from),h=!r.textBetween(e,i).length&&Cm(t.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||hN[d?.type.name]||hN[u?.type.name])||l&&c)},Pm=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),pN=(n,t)=>t===ui.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),fN=n=>n.isActive("bulletList")||n.isActive("orderedList"),gN=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1,divider:!0}],lM=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],nre=[...gN,...lM,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],ire=[...lM,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1}],rre=[...gN,...lM,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],ore=[{icon:"delete",markAction:"deleteNode",active:!1}],mN=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],are=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class lre extends rM{constructor(t){const{editor:e,element:i,view:r,tippyOptions:o={},pluginKey:s,component:a}=t;super(t),this.$destroy=new Me,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=e,this.element=i,this.view=r,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(are),this.component.instance.formValues.pipe(Vn(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(Vn(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{doc:s,selection:a}=o,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==r?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ce){const d=t.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return sl(t,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Jo(t.parentElement,{...this.tippyOptions,...tk,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(t){if(!this.shouldHideOnScroll(t.target))return!0;this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))}tippyRect(t,e){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,t)=>t===ui.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(t,e)}shouldHideOnScroll(t){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(t)}}const cre=n=>new it({key:n.pluginKey,view:t=>new lre({view:t,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(t,e,i){const{open:r,form:o,options:s}=t.getMeta(cl)||{},a=cl?.getState(i);return"boolean"==typeof r?{open:r,form:o,options:s}:a||e}}}),cl=new _t("bubble-form"),ure={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},dre=n=>{const t=new Me;return oM.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:cl,shouldShow:()=>!0}),addCommands:()=>({openForm:(e,i)=>({chain:r})=>(r().command(({tr:o})=>(o.setMeta(cl,{form:e,options:i,open:!0}),!0)).freezeScroll(!0).run(),t),closeForm:()=>({chain:e})=>(t.next(null),e().command(({tr:i})=>(i.setMeta(cl,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:e=>({editor:i})=>{t.next(e),i.commands.closeForm()}}),addProseMirrorPlugins(){const e=n.createComponent(aie),i=e.location.nativeElement;return e.changeDetectorRef.detectChanges(),[cre({pluginKey:cl,editor:this.editor,element:i,tippyOptions:ure,component:e,form$:t})]}})},AN=function(){return{width:"50%"}};function hre(n,t){if(1&n){const e=Re();x(0,"div")(1,"div",1)(2,"button",2),K("click",function(){return re(e),oe(w().copy())}),B(),x(3,"button",3),K("click",function(){return re(e),oe(w().remove.emit(!0))}),B()()()}2&n&&(v(2),mn(Zr(4,AN)),v(1),mn(Zr(5,AN)))}let pre=(()=>{class n{constructor(){this.remove=new te(!1),this.hide=new te(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,i){1&e&&S(0,hre,4,6,"div",0),2&e&&C("ngIf",i.link.length)},dependencies:[Pt,Bs],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;gap:.5rem}"]}),n})();function fre(n,t){if(1&n){const e=Re();ct(0),x(1,"button",3),K("click",function(){return re(e),oe(w().toggleChangeTo.emit())}),de(2),B(),ie(3,"div",4),ut()}if(2&n){const e=w();v(2),pt(e.selected)}}function gre(n,t){1&n&&ie(0,"div",4)}function mre(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-bubble-menu-button",5),K("click",function(){const o=re(e).$implicit;return oe(w().command.emit(o))}),B(),S(2,gre,1,0,"div",6),ut()}if(2&n){const e=t.$implicit;v(1),C("active",e.active)("item",e),v(1),C("ngIf",e.divider)}}let bN=(()=>{class n{constructor(){this.items=[],this.command=new te,this.toggleChangeTo=new te}preventDeSelection(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,i){1&e&&(x(0,"div",0),K("mousedown",function(o){return i.preventDeSelection(o)}),S(1,fre,4,1,"ng-container",1),S(2,mre,3,3,"ng-container",2),B()),2&e&&(v(1),C("ngIf",i.selected),v(1),C("ngForOf",i.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:2px;box-shadow:0 10px 24px #0003;display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f1f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #11152e;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f1f3f4;height:100%;margin:0 8px}']}),n})();const Are=function(n,t){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":t}},bre=function(n){return{"material-icons":n}};let yre=(()=>{class n{constructor(){this.active=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"button",0)(1,"span",0),de(2),B()()),2&e&&(C("ngClass",Ji(3,Are,i.item.icon,i.active)),v(1),C("ngClass",Wt(6,bre,i.item.icon)),v(1),pt(i.item.icon||i.item.text))},dependencies:[Un],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#11152e;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:2px}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f1f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f1f3f4;color:#11152e;border:1px solid #b3b1b8}.btn-icon[_ngcontent-%COMP%]{width:32px}"]}),n})();const _re=n=>{const t=n.component.instance,e=n.changeToComponent.instance;return new it({key:n.pluginKey,view:i=>new Ere({view:i,...n}),props:{handleKeyDown(i,r){const{key:o}=r,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===o)return t.toggleChangeTo.emit(),!0;if("Enter"===o)return e.execCommand(),!0;if("ArrowDown"===o||"ArrowUp"===o)return e.updateSelection(r),!0}return!1}}})};class Ere extends rM{constructor(t){super(t),this.shouldShowProp=!1,this.updateActiveItems=(r=[],o)=>r.map(s=>(s.active=o.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(r=[])=>[...this.enabledMarks().filter(o=>this.editor.isActive(o)),...r.filter(o=>this.editor.isActive({textAlign:o}))];const{component:e,changeToComponent:i}=t;this.component=e,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,a=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,o.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:t,state:i,oldState:e,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=t.nodeDOM(c),h=o.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:t,padding:e})=>{const{top:i,bottom:r}=t,{top:o,bottom:s}=n,a=Math.ceil(i-o){this.changeTo.instance.list.updateActiveItem(t),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(t,e){const i=t.nodeAt(e),o="table"===Kc(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return ire;case"dotContent":return ore;case"table":return rre;default:return nre}})(o)}openImageProperties(){const{open:t}=cl.getState(this.editor.state),{alt:e,src:i,title:r,data:o}=this.editor.getAttributes(ui.name),{title:s="",asset:a}=o||{};t?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:e||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:r||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe(Jn(1),Zi(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.setImage({...l}),this.editor.commands.closeForm()})})}exeCommand(t){const{markAction:e,active:i}=t;switch(e){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(e,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":fN(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":fN(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:r}=Xo.getState(this.editor.state);r?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,t)=>{const e=t.$from.pos,i=t.$to.pos+1;this.editor.chain().deleteRange({from:e,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:t,selectionRange:e})=>{jte.includes(t)?((n,t)=>{const e=t.$from.pos,i=e+1;n.chain().deleteRange({from:e,to:i}).blur().run()})(n,e):((n,t)=>{const e=Kc(t.$from),i=e.type.name,r=Kc(t.$from,[dr.ORDERED_LIST,dr.BULLET_LIST]),{childCount:o}=r;switch(i){case dr.ORDERED_LIST:case dr.BULLET_LIST:o>1?n.chain().deleteNode(dr.LIST_ITEM).blur().run():n.chain().deleteNode(r.type).blur().run();break;default:n.chain().deleteNode(e.type).blur().run()}})(n,e)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}}toggleTextAlign(t,e){e?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(t)}changeToItems(){const t=this.editor.storage.dotConfig.allowedBlocks;let i="table"===Kc(this.editor.state.selection.$from).type.name?O9:R9;t.length>1&&(i=i.filter(o=>t.includes(o.id)));const r={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(o=>{o.isActive=()=>o.id.includes("heading")?this.editor.isActive("heading",o.attributes):this.editor.isActive(o.id),o.command=()=>{r[o.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const t=this.changeToItems(),e=t.filter(o=>o?.isActive()),i=e.length>1?e[1]:e[0],r=t.findIndex(o=>o===i);return{activeItem:i,index:r}}createChangeToTooltip(){const{element:t}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=Jo(t,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:mN},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:t}=this.editor?.storage.bubbleMenu||{};t?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const Cre={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},vre=new _t("bubble-menu");function Mre(n){const t=n.createComponent(bN),e=t.location.nativeElement,i=n.createComponent(xm),r=i.location.nativeElement;return oM.extend({addOptions:()=>({element:null,tippyOptions:Cre,pluginKey:"bubbleMenu",shouldShow:Zie}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return e?[_re({...this.options,component:t,changeToComponent:i,pluginKey:vre,editor:this.editor,element:e,changeToElement:r})]:[]}})}const wre=n=>Ft.create({name:"dotConfig",addStorage:()=>({...n})}),Dre=tn.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",Et(this.options.HTMLAttributes,n),0]}});class Sre{constructor(t,e){this.tippy=e}init(){}update(){}destroy(){this.tippy.destroy()}}const xre=n=>{let t;function e(s){return vn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),t?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),t.show()}function o(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new it({key:new _t("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(xm),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;t=Jo(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:mN},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,t)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),t.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),t.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),t.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),t.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),t.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),t.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),t.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),t.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),t.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),t.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),t.hide()},tabindex:"10"}])(n.editor,t),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Sre(s,t),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?kt.create(s.doc,[e(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{o(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function r(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&o(l)&&a.preventDefault():i(a)}}}})};function Tre(n){return Dre.extend({renderHTML({HTMLAttributes:t}){return["td",Et(this.options.HTMLAttributes,t),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[xre({editor:this.editor,viewContainerRef:n})]}})}const Bre=tn.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),0]}});let cM,uM;if(typeof WeakMap<"u"){let n=new WeakMap;cM=t=>n.get(t),uM=(t,e)=>(n.set(t,e),e)}else{let n=[],t=10,e=0;cM=i=>{for(let r=0;r(e==t&&(e=0),n[e++]=i,n[e++]=r)}class $c{constructor(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}}class Nt{constructor(t,e,i,r){this.width=t,this.height=e,this.map=i,this.problems=r}findCell(t){for(let e=0;ei&&(o+=c.attrs.colspan)}}for(let s=0;s1&&(e=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(n),e=n.childCount,i=[],r=0,o=null,s=[];for(let c=0,u=t*e;c=e){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:A-E});break}let b=r+E*t;for(let D=0;D0;t--)if("row"==n.node(t).type.spec.tableRole)return n.node(0).resolve(n.before(t+1));return null}function Rr(n){let t=n.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function Fm(n){let t=n.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:qc(t.$head)||function Lre(n){for(let t=n.nodeAfter,e=n.pos;t;t=t.firstChild,e++){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e)}for(let t=n.nodeBefore,e=n.pos;t;t=t.lastChild,e--){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e-t.nodeSize)}}(t.$head)}function dM(n){return"row"==n.parent.type.spec.tableRole&&n.nodeAfter}function hM(n,t){return n.depth==t.depth&&n.pos>=t.start(-1)&&n.pos<=t.end(-1)}function EN(n,t,e){let i=n.start(-1),o=Nt.get(n.node(-1)).nextCell(n.pos-i,t,e);return null==o?null:n.node(0).resolve(i+o)}function wn(n,t,e){let i={};for(let r in n)i[r]=n[r];return i[t]=e,i}function ul(n,t,e=1){let i=wn(n,"colspan",n.colspan-e);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,e),i.colwidth.some(r=>r>0)||(i.colwidth=null)),i}function CN(n,t,e=1){let i=wn(n,"colspan",n.colspan+e);if(i.colwidth){i.colwidth=i.colwidth.slice();for(let r=0;ru!=e.pos-o);l.unshift(e.pos-o);let c=l.map(u=>{let d=i.nodeAt(u),h=u+o+1;return new Hk(a.resolve(h),a.resolve(h+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){let i=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(dM(i)&&dM(r)&&hM(i,r)){let o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?Ye.rowSelection(i,r):o&&this.isColSelection()?Ye.colSelection(i,r):new Ye(i,r)}return Ee.between(i,r)}content(){let t=this.$anchorCell.node(-1),e=Nt.get(t),i=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},s=[];for(let l=r.top;l0||m>0){let A=f.attrs;g>0&&(A=ul(A,0,g)),m>0&&(A=ul(A,A.colspan-m,m)),f=p.leftr.bottom){let A=wn(f.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));f=p.top0)&&Math.max(t+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.top<=s.top?(o.top>0&&(t=a.resolve(r+i.map[o.left])),s.bottom0&&(e=a.resolve(r+i.map[s.left])),o.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,r+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof Ye&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.left<=s.left?(o.left>0&&(t=a.resolve(r+i.map[o.top*i.width])),s.right0&&(e=a.resolve(r+i.map[s.top*i.width])),o.right{t.push(vn.node(i,i+e.nodeSize,{class:"selectedCell"}))}),kt.create(n.doc,t)}function fM(n,t){let e=n.createAndFill();return new kC(e).replace(0,e.content.size,t).doc}function vN(n,t,e,i,r,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=r;ct.width)for(let d=0,h=0;dt.height){let d=[];for(let f=0,g=(t.height-1)*t.width;f=t.width)&&e.nodeAt(t.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let h=l.row.create(null,L.from(d)),p=[];for(let f=t.height;f{let o=e.selection;if(o instanceof Ye)return Rm(e,i,_e.near(o.$headCell,t));if("horiz"!=n&&!o.empty)return!1;let s=DN(r,n,t);if(null==s)return!1;if("horiz"==n)return Rm(e,i,_e.near(e.doc.resolve(o.head+t),t));{let c,a=e.doc.resolve(s),l=EN(a,n,t);return c=l?_e.near(l,1):t<0?_e.near(e.doc.resolve(a.before(-1)),-1):_e.near(e.doc.resolve(a.after(-1)),1),Rm(e,i,c)}}}function Lm(n,t){return(e,i,r)=>{let o=e.selection;if(!(o instanceof Ye)){let a=DN(r,n,t);if(null==a)return!1;o=new Ye(e.doc.resolve(a))}let s=EN(o.$headCell,n,t);return!!s&&Rm(e,i,new Ye(o.$anchorCell,s))}}function Qm(n,t){let e=n.selection;if(!(e instanceof Ye))return!1;if(t){let i=n.tr,r=qn(n.schema).cell.createAndFill().content;e.forEachCell((o,s)=>{o.content.eq(r)||i.replace(i.mapping.map(s+1),i.mapping.map(s+o.nodeSize-1),new G(r,0,0))}),i.docChanged&&t(i)}return!0}function $re(n,t){let i=qc(n.state.doc.resolve(t));return!!i&&(n.dispatch(n.state.tr.setSelection(new Ye(i))),!0)}function qre(n,t,e){if(!Rr(n.state))return!1;let i=function Gre(n){if(!n.size)return null;let{content:t,openStart:e,openEnd:i}=n;for(;1==t.childCount&&(e>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)e--,i--,t=t.firstChild.content;let r=t.firstChild,o=r.type.spec.tableRole,s=r.type.schema,a=[];if("row"==o)for(let l=0;l=0;s--){let{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=r;c=t.length&&t.push(L.empty),e[r]i&&(h=h.type.create(ul(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;pr&&(d=d.type.create(wn(d.attrs,"rowspan",Math.max(1,r-d.attrs.rowspan)),d.content)),l.push(d)}o.push(L.from(l))}e=o,t=r}return{width:n,height:t,rows:e}}(i,a.right-a.left,a.bottom-a.top),wN(n.state,n.dispatch,s,a,i),!0}if(i){let o=Fm(n.state),s=o.start(-1);return wN(n.state,n.dispatch,s,Nt.get(o.node(-1)).findCell(o.pos-s),i),!0}return!1}function Xre(n,t){if(t.ctrlKey||t.metaKey)return;let i,e=IN(n,t.target);if(t.shiftKey&&n.state.selection instanceof Ye)r(n.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&e&&null!=(i=qc(n.state.selection.$anchor))&&gM(n,t).pos!=i.pos)r(i,t),t.preventDefault();else if(!e)return;function r(a,l){let c=gM(n,l),u=null==Zs.getState(n.state);if(!c||!hM(a,c)){if(!u)return;c=a}let d=new Ye(a,c);if(u||!n.state.selection.eq(d)){let h=n.state.tr.setSelection(d);u&&h.setMeta(Zs,a.pos),n.dispatch(h)}}function o(){n.root.removeEventListener("mouseup",o),n.root.removeEventListener("dragstart",o),n.root.removeEventListener("mousemove",s),null!=Zs.getState(n.state)&&n.dispatch(n.state.tr.setMeta(Zs,-1))}function s(a){let c,l=Zs.getState(n.state);if(null!=l)c=n.state.doc.resolve(l);else if(IN(n,a.target)!=e&&(c=gM(n,t),!c))return o();c&&r(c,a)}n.root.addEventListener("mouseup",o),n.root.addEventListener("dragstart",o),n.root.addEventListener("mousemove",s)}function DN(n,t,e){if(!(n.state.selection instanceof Ee))return null;let{$head:i}=n.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r);if((e<0?i.index(r):i.indexAfter(r))!=(e<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let a=i.before(r);return n.endOfTextblock("vert"==t?e>0?"down":"up":e>0?"right":"left")?a:null}}return null}function IN(n,t){for(;t&&t!=n.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function gM(n,t){let e=n.posAtCoords({left:t.clientX,top:t.clientY});return e&&e?qc(n.state.doc.resolve(e.pos)):null}const Zre=new _t("fix-tables");function SN(n,t,e,i){let r=n.childCount,o=t.childCount;e:for(let s=0,a=0;s{"table"==r.type.spec.tableRole&&(e=function eoe(n,t,e,i){let r=Nt.get(t);if(!r.problems)return i;i||(i=n.tr);let s,a,o=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);let f=[];for(let m=0;m0?-1:0;(function Ure(n,t,e){let i=qn(t.type.schema).header_cell;for(let r=0;r0&&r0&&t.map[a-1]==l||r0?-1:0;(function ooe(n,t,e){let i=qn(t.type.schema).header_cell;for(let r=0;r0&&r0&&u==t.map[c-t.width]){let d=e.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,wn(d,"rowspan",d.rowspan-1)),l+=d.colspan-1}else if(r0&&e[o]==e[o-1]||i.right0&&e[r]==e[r-n]||i.bottom{let r,o,i=t.selection;if(i instanceof Ye){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=function Nre(n){for(let t=n.depth;t>0;t--){const e=n.node(t).type.spec.tableRole;if("cell"===e||"header_cell"===e)return n.node(t)}return null}(i.$from),!r)return!1;o=qc(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let s=r.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=wn(s,"rowspan",1)),s.colspan>1&&(s=wn(s,"colspan",1));let d,c=fo(t),u=t.tr;for(let h=0;he[i.type.spec.tableRole])(n,t)}function FN(n,t,e){const i=t.map.cellsInRect({left:0,top:0,right:"row"==n?t.map.width:1,bottom:"column"==n?t.map.height:1});for(let r=0;rr.table.nodeAt(l));for(let l=0;l{const f=p+o.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}Eh("row",{useDeprecatedLogic:!0}),Eh("column",{useDeprecatedLogic:!0});let foe=Eh("cell",{useDeprecatedLogic:!0});function RN(n){return function(t,e){if(!Rr(t))return!1;let i=function goe(n,t){if(t<0){let e=n.nodeBefore;if(e)return n.pos-e.nodeSize;for(let i=n.index(-1)-1,r=n.before();i>=0;i--){let o=n.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(n.index()new e(a,t,l),new Ch(-1,!1)},apply:(o,s)=>s.apply(o)},props:{attributes:o=>hr.getState(o).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(o,s){!function yoe(n,t,e,i,r){let o=hr.getState(n.state);if(!o.dragging){let s=function voe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList.contains("ProseMirror")?null:n.parentNode;return n}(t.target),a=-1;if(s){let{left:l,right:c}=s.getBoundingClientRect();t.clientX-l<=e?a=NN(n,t,"left"):c-t.clientX<=e&&(a=NN(n,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){let l=n.state.doc.resolve(a),c=l.node(-1),u=Nt.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}QN(n,a)}}}(o,s,n,0,i)},mouseleave(o){!function _oe(n){let t=hr.getState(n.state);t.activeHandle>-1&&!t.dragging&&QN(n,-1)}(o)},mousedown(o,s){!function Eoe(n,t,e){let i=hr.getState(n.state);if(-1==i.activeHandle||i.dragging)return!1;let r=n.state.doc.nodeAt(i.activeHandle),o=function Coe(n,t,{colspan:e,colwidth:i}){let r=i&&i[i.length-1];if(r)return r;let o=n.domAtPos(t),a=o.node.childNodes[o.offset].offsetWidth,l=e;if(i)for(let c=0;c-1)return function Ioe(n,t){let e=[],i=n.doc.resolve(t),r=i.node(-1),o=Nt.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);dM(t.doc.resolve(r))||(r=null),e=new Ch(r,e.dragging)}return e}}function NN(n,t,e){let i=n.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;let{pos:r}=i,o=qc(n.state.doc.resolve(r));if(!o)return-1;if("right"==e)return o.pos;let s=Nt.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function LN(n,t,e){return Math.max(e,n.startWidth+(t.clientX-n.startX))}function QN(n,t){n.dispatch(n.state.tr.setMeta(hr,{setHandle:t}))}function Doe(n){let t=[];for(let e=0;enull,apply(t,e){let i=t.getMeta(Zs);if(null!=i)return-1==i?null:i;if(null==e||!t.docChanged)return e;let{deleted:r,pos:o}=t.mapping.mapResult(e);return r?null:o}},props:{decorations:jre,handleDOMEvents:{mousedown:Xre},createSelectionBetween(t){if(null!=Zs.getState(t.state))return t.state.selection},handleTripleClick:$re,handleKeyDown:Kre,handlePaste:qre},appendTransaction:(t,e,i)=>function Vre(n,t,e){let o,s,i=(t||n).selection,r=(t||n).doc;if(i instanceof ce&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)o=Ye.create(r,i.from);else if("row"==s){let a=r.resolve(i.from+1);o=Ye.rowSelection(a,a)}else if(!e){let a=Nt.get(i.node),l=i.from+1;o=Ye.create(r,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ee&&function zre({$from:n,$to:t}){if(n.pos==t.pos||n.pos=0&&!(n.after(r+1)=0&&!(t.before(o+1)>t.start(o));o--,i--);return e==i&&/row|table/.test(n.node(r).type.spec.tableRole)}(i)?o=Ee.create(r,i.from):i instanceof Ee&&function Hre({$from:n,$to:t}){let e,i;for(let r=n.depth;r>0;r--){let o=n.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){e=o;break}}for(let r=t.depth;r>0;r--){let o=t.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){i=o;break}}return e!==i&&0===t.parentOffset}(i)&&(o=Ee.create(r,i.$from.start(),i.$from.end()));return o&&(t||(t=n.tr)).setSelection(o),t}(i,xN(i,e),n)})}function UN(n,t,e,i,r,o){let s=0,a=!0,l=t.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:t}=n.state;if(!function Ooe(n){return n instanceof Ye}(t))return!1;let e=0;return IR(t.ranges[0].$from,o=>"table"===o.type.name)?.node.descendants(o=>{if("table"===o.type.name)return!1;["tableCell","tableHeader"].includes(o.type.name)&&(e+=1)}),e===t.ranges.length&&(n.commands.deleteTable(),!0)},koe=tn.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:xoe,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",Et(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:t=3,withHeaderRow:e=!0}={})=>({tr:i,dispatch:r,editor:o})=>{const s=function Boe(n,t,e,i,r){const o=function Toe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const t={};return Object.keys(n.nodes).forEach(e=>{const i=n.nodes[e];i.spec.tableRole&&(t[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=t,t}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:t})=>function toe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(TN(n.tr,e,e.left))}return!0}(n,t),addColumnAfter:()=>({state:n,dispatch:t})=>function noe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(TN(n.tr,e,e.right))}return!0}(n,t),deleteColumn:()=>({state:n,dispatch:t})=>function roe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n),i=n.tr;if(0==e.left&&e.right==e.map.width)return!1;for(let r=e.right-1;ioe(i,e,r),r!=e.left;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),addRowBefore:()=>({state:n,dispatch:t})=>function soe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(BN(n.tr,e,e.top))}return!0}(n,t),addRowAfter:()=>({state:n,dispatch:t})=>function aoe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n);t(BN(n.tr,e,e.bottom))}return!0}(n,t),deleteRow:()=>({state:n,dispatch:t})=>function coe(n,t){if(!Rr(n))return!1;if(t){let e=fo(n),i=n.tr;if(0==e.top&&e.bottom==e.map.height)return!1;for(let r=e.bottom-1;loe(i,e,r),r!=e.top;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),deleteTable:()=>({state:n,dispatch:t})=>function moe(n,t){let e=n.selection.$anchor;for(let i=e.depth;i>0;i--)if("table"==e.node(i).type.spec.tableRole)return t&&t(n.tr.delete(e.before(i),e.after(i)).scrollIntoView()),!0;return!1}(n,t),mergeCells:()=>({state:n,dispatch:t})=>kN(n,t),splitCell:()=>({state:n,dispatch:t})=>PN(n,t),toggleHeaderColumn:()=>({state:n,dispatch:t})=>Eh("column")(n,t),toggleHeaderRow:()=>({state:n,dispatch:t})=>Eh("row")(n,t),toggleHeaderCell:()=>({state:n,dispatch:t})=>foe(n,t),mergeOrSplit:()=>({state:n,dispatch:t})=>!!kN(n,t)||PN(n,t),setCellAttribute:(n,t)=>({state:e,dispatch:i})=>function hoe(n,t){return function(e,i){if(!Rr(e))return!1;let r=Fm(e);if(r.nodeAfter.attrs[n]===t)return!1;if(i){let o=e.tr;e.selection instanceof Ye?e.selection.forEachCell((s,a)=>{s.attrs[n]!==t&&o.setNodeMarkup(a,null,wn(s.attrs,n,t))}):o.setNodeMarkup(r.pos,null,wn(r.nodeAfter.attrs,n,t)),i(o)}return!0}}(n,t)(e,i),goToNextCell:()=>({state:n,dispatch:t})=>RN(1)(n,t),goToPreviousCell:()=>({state:n,dispatch:t})=>RN(-1)(n,t),fixTables:()=>({state:n,dispatch:t})=>(t&&xN(n),!0),setCellSelection:n=>({tr:t,dispatch:e})=>{if(e){const i=Ye.create(t.doc,n.anchorCell,n.headCell);t.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Um,"Mod-Backspace":Um,Delete:Um,"Mod-Delete":Um}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[boe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Soe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Be(ne(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});let Foe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"i",0),de(1,"drag_indicator"),B())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-background);transition:opacity .25s,top .15s}.visible[_nghost-%COMP%]{opacity:1}"]}),n})();const Roe=n=>Ft.create({name:"dragHandler",addProseMirrorPlugins(){let t=null;const r=n.createComponent(Foe).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){r.classList.remove("visible")}return[new it({key:new _t("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){r.setAttribute("draggable","true"),r.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const y=function a(g,m){const A=m.posAtCoords(g);if(A){const y=c(m.nodeDOM(A.inside));if(y&&1===y.nodeType){const E=m.docView.nearestDesc(y,!0);if(E&&E!==m.docView)return E.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=y){m.dispatch(m.state.tr.setSelection(ce.create(m.state.doc,y)));const E=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(t,10,10),m.dragging={slice:E,move:!0}}}(m,g)),r.classList.remove("visible"),g.dom.parentElement.appendChild(r)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(r),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),r.classList.remove("visible")})(),GR(g),"TABLE"===t.nodeName&&s(t)}),!1),mousemove(g,m){const y=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(y&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,y.inside))if(t=c(g.nodeDOM(y.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(t)){const{top:E,left:b}=function o(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,t);r.style.left=b-25+"px",r.style.top=E<0?0:E+"px",r.classList.add("visible")}else r.classList.remove("visible");else t=null,r.classList.remove("visible");return!1}}}})]}});function ea(n){return function(e){const i=new Noe(n),r=e.lift(i);return i.caught=r}}class Noe{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Loe(t,this.selector,this.caught))}}class Loe extends Aa{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ma(this);this.add(i);const r=ba(e,i);r!==i&&this.add(r)}}}const zN={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"},HN="/api/v1/temp";function VN(n,t){let e="";try{e=n.message||zN[t]}catch{e=zN[t||500]}return{message:e,status:500|t}}var ta=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(ta||(ta={})),ta))();let vh=(()=>{class n{constructor(e){this.http=e}publishContent({data:e,maxSize:i,statusCallback:r=(o=>{})}){return r(ta.DOWNLOAD),this.setTempResource(e,i).pipe(Fi(o=>{const s=Array.isArray(o)?o:[o],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),r(ta.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(Jc("entity","results"))}),ea(o=>Ms(o)))}setTempResource(e,i){return Lt(function Qoe({file:n,progressCallBack:t,maxSize:e}){return"string"==typeof n?function Uoe(n){return fetch(`${HN}/byUrl`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:n})}).then(function(){var e=bh(function*(i){if(200===i.status)return(yield i.json()).tempFiles[0];throw VN(yield i.json(),i.status)});return function(i){return e.apply(this,arguments)}}())}(n):function joe({file:n,progressCallBack:t,maxSize:e}){let i=HN;i+=e?`?maxFileLength=${e}`:"";const r=new FormData;return(Array.isArray(n)?n:[n]).forEach(s=>r.append("files",s)),function zoe(n,t,e){return new Promise((i,r)=>{const o=new XMLHttpRequest;o.open(t.method||"get",n);for(const s in t.headers||{})o.setRequestHeader(s,t.headers[s]);o.onload=()=>i(o),o.onerror=r,o.upload&&e&&(o.upload.onprogress=s=>{e(s.loaded/s.total*100)}),o.send(t.body)})}(i,{method:"POST",headers:{},body:r},t).then(s=>{if(200===s.status){const a=JSON.parse(s.response).tempFiles;return a.length>1?a:a[0]}throw s}).catch(s=>{throw VN(JSON.parse(s.response),s.status)})}({file:n,progressCallBack:t,maxSize:e})}({file:e,progressCallBack:()=>{},maxSize:i}))}}return n.\u0275fac=function(e){return new(e||n)(j(Ac))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Voe=function(n){return{completed:n}};function Goe(n,t){if(1&n){const e=Re();x(0,"button",2),K("click",function(){return re(e),oe(w().byClick.emit())}),B()}if(2&n){const e=w();C("disabled",e.isCompleted||e.isLoading)("icon",e.isCompleted?"pi pi-check":null)("label",e.title)("loading",e.isLoading)("ngClass",Wt(5,Voe,e.isCompleted))}}function Yoe(n,t){1&n&&(x(0,"div",3),ie(1,"i",4),x(2,"span"),de(3,"Something went wrong, please try again later or "),x(4,"a",5),de(5," contact support "),B()()())}let Woe=(()=>{class n{constructor(){this.label="",this.isLoading=!1,this.byClick=new te,this.status=ta}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,i){if(1&e&&(S(0,Goe,1,7,"button",0),S(1,Yoe,6,0,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.label!==i.status.ERROR)("ngIfElse",r)}},dependencies:[Un,Pt,Bs],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgb(var(--color-main_rgb))}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:rgb(var(--color-main_rgb))!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d0021b;border:1px solid #d0021b;border-radius:2px;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();const Koe=n=>new it({key:n.pluginKey,view:t=>new $oe({view:t,...n})});class $oe{constructor({dotImageService:t,editor:e,component:i,element:r,view:o}){this.preventHide=!1,this.$destroy=new Me,this.editor=e,this.element=r,this.view=o,this.component=i,this.dotImageService=t,this.component.instance.byClick.pipe(Vn(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,{empty:a,ranges:l}=s,c=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(p=>p.$from.pos)),d=o.nodeAt(u)?.type.name,h=this.editor.getAttributes(ui.name);a||d!=ui.name||h?.data?this.hide():(this.imageUrl=h?.src,this.updateButtonLabel("Import to dotCMS"),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{const p=t.nodeDOM(u);return(({viewCoords:n,nodeCoords:t})=>{const{bottom:i,left:r,top:o}=t,{bottom:s}=n,l=Math.ceil(s-i)<0?s:o-65,c=othis.updateButtonLabel(t)}).pipe(Jn(1),bn(()=>this.updateButtonLoading(!1))).subscribe(t=>{const e=t[0];this.updateButtonLabel(ta.COMPLETED),this.updateImageNode(e[Object.keys(e)[0]])},()=>{this.updateButtonLabel(ta.ERROR),this.setPreventHide()})}updateButtonLabel(t){this.component.instance.label=t,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(t){this.component.instance.isLoading=t,this.component.changeDetectorRef.detectChanges()}}const qoe=new _t("floating-button");function Xoe(n,t){const e=t.createComponent(Woe),i=e.location.nativeElement,r=n.get(vh);return Ft.create({addProseMirrorPlugins(){return i?[Koe({...this.options,dotImageService:r,component:e,pluginKey:qoe,editor:this.editor,element:i})]:[]}})}function Zoe(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-asset-search",6),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)("languageId",e.languageId)}}function ese(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-upload-asset",7),K("uploadedFile",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}function tse(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-external-asset",8),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}let GN=(()=>{class n{constructor(){this.languageId=Bm}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset"},decls:8,vars:5,consts:[[1,"tabview-container"],["header","dotCMS","leftIcon","pi pi-images",3,"cache"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header"],["leftIcon","pi pi-link",3,"cache","header"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile"],[3,"type","addAsset"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),S(3,Zoe,2,2,"ng-template",2),B(),x(4,"p-tabPanel",3),S(5,ese,2,1,"ng-template",2),B(),x(6,"p-tabPanel",4),S(7,tse,2,1,"ng-template",2),B()()()),2&e&&(v(2),C("cache",!1),v(2),C("cache",!1)("header","Upload "+i.type),v(2),C("cache",!1)("header",i.type+" URL"))},styles:["[_nghost-%COMP%]{border:1px solid #b3b1b8;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25rem;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2rem}"],changeDetection:0}),n})();class nse{constructor({editor:t,view:e,pluginKey:i,render:r}){this.editor=t,this.view=e,this.pluginKey=i,this.render=r,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{selection:s}=o;i?.open!==r?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return sl(t,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const ise=n=>new it({key:n.pluginKey,view:t=>new nse({view:t,...n}),state:{init:()=>({open:!1,type:null}),apply(t,e,i){const{open:r,type:o}=t.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof r?{open:r,type:o}:s||e}}}),jm=new _t("bubble-image-form"),rse={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},ose=n=>{let t,e,i;function r({editor:c,type:u,getPosition:d}){(function a(c){const{element:u}=c.options;t||!!!u.parentElement||(t=Jo(u.parentElement,rse))})(c),function l(c,u){e=n.createComponent(GN),e.instance.languageId=c.storage.dotConfig.lang,e.instance.type=u,e.instance.onSelectAsset=d=>{c.chain().insertAsset({type:u,payload:d}).addNextLine().closeAssetForm().run()},i=e.location.nativeElement,e.changeDetectorRef.detectChanges()}(c,u),t.setProps({content:i,getReferenceClientRect:d,onClickOutside:()=>o(c)}),t.show()}function o(c){c.commands.closeAssetForm(),t?.hide(),e?.destroy()}function s(){t?.destroy(),e?.destroy()}return oM.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:jm}),addCommands:()=>({openAssetForm:({type:c})=>({chain:u})=>u().command(({tr:d})=>(d.setMeta(jm,{open:!0,type:c}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:c})=>c().command(({tr:u})=>(u.setMeta(jm,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:c,payload:u})=>({chain:d})=>{switch(c){case"video":return d().setVideo(u).run();case"image":return d().addDotImage(u).run()}}}),addProseMirrorPlugins(){return[ise({pluginKey:jm,editor:this.editor,render:()=>({onStart:r,onHide:o,onDestroy:s})})]}})};let sse=(()=>{class n extends sN{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=En(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-message"]],features:[lt],decls:2,vars:2,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"span",0),de(1),B()),2&e&&(C("ngClass",i.data.type),v(1),pt(i.data.message))},dependencies:[Un],styles:["dotcms-message{background-color:#b3b1b8;display:block;padding:16px}\n"],encapsulation:2}),n})();const AM=new it({state:{init:()=>kt.empty,apply(n,t){t=t.map(n.mapping,n.doc);const e=n.getMeta(this);if(e&&e.add){const r=vn.widget(e.add.pos,e.add.element,{key:e.add.id});t=t.add(n.doc,[r])}else e&&e.remove&&(t=t.remove(t.find(null,null,i=>i.key==e.remove.id)));return t}},props:{decorations(n){return this.getState(n)}}}),lse=(n,t)=>Ft.create({name:"imageUpload",addProseMirrorPlugins(){const e=n.get(vh),i=this.editor;function r(u){let d;if(d="drop"===u.type?u.dataTransfer.files:u.clipboardData.files,d.length>0)for(let h=0;h1)||u.includes("image")}function a(u,d,h){const p=d[0].name;(function s(u,d,h){const p=t.createComponent(sse),f=u.state.tr;p.instance.data={message:"Uploading...",type:"info"},p.changeDetectorRef.detectChanges(),f.setMeta(AM,{add:{id:h,pos:d,element:p.location.nativeElement}}),u.dispatch(f)})(u,h,p),e.publishContent({data:d}).pipe(Jn(1)).subscribe(f=>{const g=f[0][Object.keys(f[0])[0]],{asset:m,name:A}=g;i.commands.insertContentAt(h,{attrs:{data:g,src:m,title:A,alt:A},type:ui.name})},f=>alert(f.message),()=>function l(u){const{view:d}=i,{state:h}=d;d.dispatch(h.tr.setMeta(AM,{remove:{id:u}})),GR(d)}(p))}return[AM,new it({key:new _t("imageUpload"),props:{handleDOMEvents:{click(u,d){const{doc:h,selection:p}=u.state,{ranges:f}=p,g=Math.min(...f.map(y=>y.$from.pos)),m=h.nodeAt(g);return d.target?.closest("a")&&m.type.name===ui.name&&d.preventDefault(),!0},paste(u,d){if(!o())return!0;const h=d.clipboardData.getData("Text"),{from:p}=function c(u){const{state:d}=u,{selection:h}=d,{ranges:p}=h;return{from:Math.min(...p.map(m=>m.$from.pos)),to:Math.max(...p.map(m=>m.$to.pos))}}(u);if(r(d)){if(d.preventDefault(),1!==d.clipboardData.files.length)return alert("Can paste just one image at a time"),!0;a(u,Array.from(d.clipboardData.files),p)}else(function ase(n){return null!=n.match(/\.(jpeg|jpg|gif|png)$/)})(h)&&i.commands.insertContentAt(p,{attrs:{src:h},type:ui.name})},drop(u,d){if(o()&&r(d)){if(d.preventDefault(),1!==d.dataTransfer.files.length)return alert("Can drop just one image at a time"),!1;const{pos:h}=u.posAtCoords({left:d.clientX,top:d.clientY});a(u,Array.from(d.dataTransfer.files),h)}return!1}}}})]}}),Mh=new _t("freeze-scroll"),cse=Ft.create({addCommands:()=>({freezeScroll:n=>({chain:t})=>t().command(({tr:e})=>(e.setMeta(Mh,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[use]}),use=new it({key:Mh,state:{init:()=>({freezeScroll:!1}),apply(n,t,e){const{freezeScroll:i}=n.getMeta(Mh)||{},r=Mh?.getState(e);return"boolean"==typeof i?{freezeScroll:i}:r||t}}});let dse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();class pr extends Me{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new br;return this._value}next(t){super.next(this._value=t)}}function YN(n,t,e,i){return Eo(e)&&(i=e,e=void 0),i?YN(n,t,e).pipe(fe(r=>Ar(r)?i(...r):i(r))):new et(r=>{WN(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function WN(n,t,e,i,r){let o;if(function fse(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function pse(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function hse(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;sthis.total&&this.destination.next(t)}}const JN={leading:!0,trailing:!1};class Ese{constructor(t,e,i,r){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=r}call(t,e){return e.subscribe(new Cse(t,this.duration,this.scheduler,this.leading,this.trailing))}}class Cse extends Ge{constructor(t,e,i,r,o){super(t),this.duration=e,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(vse,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function vse(n){const{subscriber:t}=n;t.clearThrottle()}function KN(n){return!!n&&(n instanceof et||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class $N extends Ge{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Mse extends Ge{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qN(n,t,e,i,r=new Mse(n,e,i)){if(!r.closed)return t instanceof et?t.subscribe(r):Di(t)(r)}const XN={};function bM(...n){let t,e;return as(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Ar(n[0])&&(n=n[0]),cs(n,e).lift(new wse(t))}class wse{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Dse(t,this.resultSelector))}}class Dse extends $N{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(XN),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new Ise(n,e))}}class Ise{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Sse(t,this.observables,this.project))}}class Sse extends $N{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Tse{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Bse(t,this.compare,this.keySelector))}}class Bse extends Ge{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function ZN(){return n=>new et(t=>{let e,i;const r=new We;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=DO.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}function _M(n){return"function"==typeof n.ngrxOnStoreInit}function EM(n){return"function"==typeof n.ngrxOnStateInit}const Pse=new $("@ngrx/component-store Initial State");let Fse=(()=>{class n{constructor(e){this.destroySubject$=new Jf(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new Jf(1),this.isInitialized=!1,this.notInitializedErrorMessage=`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let r;const s=(KN(i)?i:ae(i)).pipe(Ho(a=>this.isInitialized?yu([a],hE).pipe(yM(this.stateSubject$)):Ms(()=>new Error(this.notInitializedErrorMessage))),Vn(this.destroy$)).subscribe({next:([a,l])=>{this.stateSubject$.next(e(l,a))},error:a=>{r=a,this.stateSubject$.error(a)}});if(r)throw r;return s}}initState(e){yu([e],hE).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){if(!this.isInitialized)throw new Error(this.notInitializedErrorMessage);let i;return this.stateSubject$.pipe(Jn(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observables:i,projector:r,config:o}=function Rse(n){const t=Array.from(n);let i,e={debounce:!1};const r=t.pop();return"function"!=typeof r?(e={...e,...r},i=t.pop()):i=r,{observables:t,projector:i,config:e}}(e);let s;return s=0===i.length?this.stateSubject$.pipe(o.debounce?ZN():a=>a,fe(a=>r(a))):bM(i).pipe(o.debounce?ZN():a=>a,fe(a=>r(...a))),s.pipe(function xse(n,t){return e=>e.lift(new Tse(n,t))}(),function Ose(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function kse({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new Jf(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Vn(this.destroy$))}effect(e){const i=new Me;return e(i).pipe(Vn(this.destroy$)).subscribe(),r=>(KN(r)?r:ae(r)).pipe(Vn(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){IO.schedule(()=>{if(function BG(){return oT=!0,rT}()&&(_M(this)||EM(this))&&!this.\u0275hasProvider){const e=[_M(this)?"OnStoreInit":"",EM(this)?"OnStateInit":""].filter(i=>i);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${e.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}}return n.\u0275fac=function(e){return new(e||n)(j(Pse,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Nse={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};let eL=(()=>{class n extends Fse{constructor(e,i){super(Nse),this.searchService=e,this.dotLanguageService=i,this.vm$=this.select(({contentlets:r,loading:o,preventScroll:s})=>({contentlets:r,loading:o,preventScroll:s})),this.updateContentlets=this.updater((r,o)=>({...r,contentlets:o})),this.updateAssetType=this.updater((r,o)=>({...r,assetType:o})),this.updatelanguageId=this.updater((r,o)=>({...r,languageId:o})),this.updateLoading=this.updater((r,o)=>({...r,loading:o})),this.updatePreventScroll=this.updater((r,o)=>({...r,preventScroll:o})),this.updateSearch=this.updater((r,o)=>({...r,search:o})),this.searchContentlet=this.effect(r=>r.pipe(bn(o=>{this.updateLoading(!0),this.updateSearch(o)}),yM(this.state$),fe(([o,s])=>({...s,search:o})),nn(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(r=>r.pipe(yM(this.state$),fe(([o,s])=>({...s,offset:o})),nn(({contentlets:o,...s})=>this.searchContentletsRequest(this.params(s),o)))),this.dotLanguageService.getLanguages().subscribe(r=>{this.languages=r})}searchContentletsRequest(e,i){return this.searchService.get(e).pipe(fe(({jsonObjectView:{contentlets:r}})=>{const o=this.setContentletLanguage(r);return this.updateLoading(!1),this.updatePreventScroll(!r?.length),this.updateContentlets([...i,...o])}))}params({search:e,assetType:i,offset:r=0,languageId:o}){return{query:` +catchall:${e}* title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${i||""}/* +deleted:false +working:true`,sortOrder:Sm.ASC,limit:20,offset:r}}setContentletLanguage(e){return e.map(i=>({...i,language:this.getLanguage(i.languageId)}))}getLanguage(e){const{languageCode:i,countryCode:r}=this.languages[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(j(dte),j(Zv))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Lse=["element"],Qse=["content"];function Use(n,t){1&n&&Mt(0)}const CM=function(n,t){return{$implicit:n,options:t}};function jse(n,t){if(1&n&&(ct(0),S(1,Use,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ji(2,CM,e.loadedItems,e.getContentOptions()))}}function zse(n,t){1&n&&Mt(0)}function Hse(n,t){if(1&n&&(ct(0),S(1,zse,1,0,"ng-container",7),ut()),2&n){const e=t.$implicit,i=t.index,r=w(3);v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ji(2,CM,e,r.getOptions(i)))}}const Vse=function(n){return{"p-scroller-loading":n}};function Gse(n,t){if(1&n&&(x(0,"div",8,9),S(2,Hse,2,5,"ng-container",10),B()),2&n){const e=w(2);C("ngClass",Wt(4,Vse,e.d_loading))("ngStyle",e.contentStyle),v(2),C("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function Yse(n,t){1&n&&ie(0,"div",11),2&n&&C("ngStyle",w(2).spacerStyle)}function Wse(n,t){1&n&&Mt(0)}const Jse=function(n){return{numCols:n}},tL=function(n){return{options:n}};function Kse(n,t){if(1&n&&(ct(0),S(1,Wse,1,0,"ng-container",7),ut()),2&n){const e=t.index,i=w(4);v(1),C("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Wt(4,tL,i.getLoaderOptions(e,i.both&&Wt(2,Jse,i._numItemsInViewport.cols))))}}function $se(n,t){if(1&n&&(ct(0),S(1,Kse,2,6,"ng-container",14),ut()),2&n){const e=w(3);v(1),C("ngForOf",e.loaderArr)}}function qse(n,t){1&n&&Mt(0)}const Xse=function(){return{styleClass:"p-scroller-loading-icon"}};function Zse(n,t){if(1&n&&(ct(0),S(1,qse,1,0,"ng-container",7),ut()),2&n){const e=w(4);v(1),C("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Wt(3,tL,Zr(2,Xse)))}}function eae(n,t){1&n&&ie(0,"i",16)}function tae(n,t){if(1&n&&(S(0,Zse,2,5,"ng-container",0),S(1,eae,1,0,"ng-template",null,15,on)),2&n){const e=Qt(2);C("ngIf",w(3).loaderIconTemplate)("ngIfElse",e)}}const nae=function(n){return{"p-component-overlay":n}};function iae(n,t){if(1&n&&(x(0,"div",12),S(1,$se,2,1,"ng-container",0),S(2,tae,3,2,"ng-template",null,13,on),B()),2&n){const e=Qt(3),i=w(2);C("ngClass",Wt(3,nae,!i.loaderTemplate)),v(1),C("ngIf",i.loaderTemplate)("ngIfElse",e)}}const rae=function(n,t,e){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":t,"p-horizontal-scroll":e}};function oae(n,t){if(1&n){const e=Re();ct(0),x(1,"div",2,3),K("scroll",function(r){return re(e),oe(w().onContainerScroll(r))}),S(3,jse,2,5,"ng-container",0),S(4,Gse,3,6,"ng-template",null,4,on),S(6,Yse,1,1,"div",5),S(7,iae,4,5,"div",6),B(),ut()}if(2&n){const e=Qt(5),i=w();v(1),Gt(i._styleClass),C("ngStyle",i._style)("ngClass",ka(10,rae,i.inline,i.both,i.horizontal)),Ot("id",i._id)("tabindex",i.tabindex),v(2),C("ngIf",i.contentTemplate)("ngIfElse",e),v(3),C("ngIf",i._showSpacer),v(1),C("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function sae(n,t){1&n&&Mt(0)}const aae=function(n,t){return{rows:n,columns:t}};function lae(n,t){if(1&n&&(ct(0),S(1,sae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ji(5,CM,e.items,Ji(2,aae,e._items,e.loadedColumns)))}}function cae(n,t){if(1&n&&(ki(0),S(1,lae,2,8,"ng-container",17)),2&n){const e=w();v(1),C("ngIf",e.contentTemplate)}}const uae=["*"];let dae=(()=>{class n{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new te,this.onScroll=new te,this.onScrollIndexChange=new te,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit(),this.calculateAutoSize()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Z.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Z.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Z.getHeight(this.elementViewChild.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Z.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(c=0,u)=>c<=u?0:c,a=(c,u,d)=>c*u+d,l=(c=0,u=0)=>this.scrollTo({left:c,top:u,behavior:i});this.both?(this.first={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(this.first.cols,this._itemSize[1],o.left),a(this.first.rows,this._itemSize[0],o.top))):(this.first=s(e,r),this.horizontal?l(a(this.first,this._itemSize,o.left),0):l(0,a(this.first,this._itemSize,o.top)))}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(ethis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,y,E,b,D)=>m<=b?b:D?y-E-b:A+b-1,l=(m,A,y,E,b,D,I)=>m<=D?0:Math.max(0,I?mA?y:m-2*D),c=(m,A,y,E,b,D=!1)=>{let I=A+E+2*b;return m>=b&&(I+=b+1),this.getLast(I,D)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const y={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},E={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(y.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(y.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(y.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(y.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const y=s(m,this._itemSize);h=l(y,a(y,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(y,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Z.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[Z.getWidth(this.elementViewChild.nativeElement),Z.getHeight(this.elementViewChild.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return n.\u0275fac=function(e){return new(e||n)(T(oi),T(At))},n.\u0275cmp=ve({type:n,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Lse,5),Zt(Qse,5)),2&e){let r;He(r=Ve())&&(i.elementViewChild=r.first),He(r=Ve())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ai],ngContentSelectors:uae,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&($r(),S(0,oae,8,14,"ng-container",0),S(1,cae,2,1,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[Un,qi,Pt,zo,Xi],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),nL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();var wh=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(wh||(wh={})),wh))();function hae(n,t){if(1&n&&(x(0,"div",3),ie(1,"dot-contentlet-thumbnail",4),B()),2&n){const e=w();v(1),C("contentlet",e.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",e.showVideoThumbnail)}}function pae(n,t){if(1&n&&(x(0,"h2",5),de(1),B()),2&n){const e=w();v(1),pt((null==e.contentlet?null:e.contentlet.fileName)||(null==e.contentlet?null:e.contentlet.title))}}function fae(n,t){if(1&n&&(x(0,"div",6)(1,"span",7),de(2),B(),ie(3,"dot-state-icon",8),B()),2&n){const e=w();v(2),pt(e.contentlet.language),v(1),C("state",e.contentlet)}}let gae=(()=>{class n{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(wh.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/20q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}return n.\u0275fac=function(e){return new(e||n)(T(UR))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,hae,2,4,"ng-template",0),S(2,pae,2,1,"h2",1),S(3,fae,4,2,"ng-template",2),B()),2&e&&(v(2),C("pTemplate","title"))},dependencies:[aM,ir],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:1rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:4px 0 0 4px}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f1f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.75rem .75rem .75rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}[_nghost-%COMP%] .badge{background:#e0e9f6;border-radius:2px;color:#11152e;font-size:12px;line-height:140%;padding:.2rem .5rem;display:flex;align-items:center}"],changeDetection:0}),n})(),mae=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&(Gt(i.styleClass),C("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[Un,Xi],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),iL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();function Aae(n,t){1&n&&ie(0,"p-skeleton",3)}function bae(n,t){1&n&&(x(0,"div",4),ie(1,"p-skeleton",5)(2,"p-skeleton",6),B())}let yae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Aae,1,0,"ng-template",0),ie(2,"p-skeleton",1),S(3,bae,3,0,"ng-template",2),B())},dependencies:[aM,ir,mae],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:.5rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.75rem .5rem .75rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}"],changeDetection:0}),n})();function _ae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[0]))}),B()}2&n&&C("contentlet",w().$implicit[0])}function Eae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[1]))}),B()}2&n&&C("contentlet",w().$implicit[1])}function Cae(n,t){if(1&n&&(x(0,"div",5),S(1,_ae,1,1,"dot-asset-card",6),S(2,Eae,1,1,"dot-asset-card",6),B()),2&n){const e=t.$implicit;v(1),C("ngIf",e[0]),v(1),C("ngIf",e[1])}}function vae(n,t){if(1&n){const e=Re();x(0,"p-scroller",3),K("onScrollIndexChange",function(r){return re(e),oe(w().onScrollIndexChange(r))}),S(1,Cae,3,2,"ng-template",4),B()}if(2&n){const e=w();C("itemSize",110)("items",e.rows)("lazy",!0)}}function Mae(n,t){1&n&&(x(0,"div",5),ie(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),B())}function wae(n,t){if(1&n&&(x(0,"div",8),S(1,Mae,3,0,"div",9),B()),2&n){const e=w();v(1),C("ngForOf",e.loadingItems)}}function Dae(n,t){if(1&n&&(x(0,"div",10),ie(1,"img",11),x(2,"p"),de(3,"No results found, try searching again"),B()()),2&n){const e=w();v(1),C("src",e.icon,ko)}}let Iae=(()=>{class n{constructor(){this.nextBatch=new te,this.selectedItem=new te,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=ks("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const i=[];return e.forEach(r=>{const o=i.length-1;i[o]?.length<2?i[o].push(r):i.push([r])}),i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,i){if(1&e&&(S(0,vae,2,3,"p-scroller",0),S(1,wae,2,1,"ng-template",null,1,on),S(3,Dae,4,1,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",(null==i.rows?null:i.rows.length)&&!i.loading)("ngIfElse",i.loading?r:o)}},dependencies:[qi,Pt,ir,dae,gae,yae],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1rem}"],changeDetection:0}),n})();const Sae=["input"];function xae(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-asset-card-list",6),K("selectedItem",function(r){return re(e),oe(w().addAsset.emit(r))})("nextBatch",function(r){return re(e),oe(w().offset$.next(r))}),B(),ut()}if(2&n){const e=t.ngIf;v(1),C("contentlets",e.contentlets)("done",e.preventScroll)("loading",e.loading)}}let Tae=(()=>{class n{constructor(e){this.store=e,this.addAsset=new te,this.vm$=this.store.vm$,this.offset$=new pr(0),this.destroy$=new Me}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(Vn(this.destroy$),function gse(n){return t=>t.lift(new mse(n))}(1),function _se(n,t=Mc,e=JN){return i=>i.lift(new Ese(n,t,e.leading,e.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){YN(this.input.nativeElement,"input").pipe(Vn(this.destroy$),kg(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(T(eL))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-search"]],viewQuery:function(e,i){if(1&e&&Zt(Sae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[yt([eL])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,i){1&e&&(ct(0),x(1,"div",0)(2,"span",1),ie(3,"input",2,3)(5,"i",4),B()(),ut(),S(6,xae,2,3,"ng-container",5),Pa(7,"async")),2&e&&(v(6),C("ngIf",Fa(7,1,i.vm$)))},dependencies:[Pt,km,Iae,FT],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),n})();const Bae=["input"];let kae=(()=>{class n{constructor(e){this.fb=e,this.addAsset=new te,this.form=this.fb.group({url:["",[fE.required,fE.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}onSubmit({url:e}){this.addAsset.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(T(kE))},n.\u0275cmp=ve({type:n,selectors:[["dot-external-asset"]],viewQuery:function(e,i){if(1&e&&Zt(Bae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:11,vars:6,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message"],["type","submit","pButton","",3,"disabled"]],template:function(e,i){1&e&&(x(0,"form",0),K("ngSubmit",function(){return i.onSubmit(i.form.value)}),x(1,"div",1)(2,"label",2),de(3),B(),ie(4,"input",3,4),B(),x(6,"div",5)(7,"span",6),de(8,"Enter a valid url"),B(),x(9,"button",7),de(10,"Insert"),B()()()),2&e&&(C("formGroup",i.form),v(3),Xr("Insert ",i.type," URL"),v(1),C("placeholder",i.placerHolder),v(3),_s("hide",!i.form.controls.url.invalid||i.form.pristine),v(2),C("disabled",i.form.invalid))},dependencies:[cg,yc,Sd,Zf,Ec,Fd,Bs,km],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2rem;gap:1rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.75rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.85rem;text-align:left}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0}),n})();const Pae=function(n,t,e){return{"border-width":n,width:t,height:e}};let Fae=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&C("ngStyle",ka(1,Pae,i.borderSize,i.size,i.size))},dependencies:[Xi],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:36px;height:36px;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:7.2px solid rgba(var(--color-main_rgb),.2);border-left-color:var(--color-main);transform:translateZ(0);animation:load8 1.1s infinite linear;overflow:hidden}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();function Rae(n,t){1&n&&ie(0,"span",11),2&n&&C("innerHTML",w(2).$implicit.summary,zp)}function Nae(n,t){1&n&&ie(0,"span",12),2&n&&C("innerHTML",w(2).$implicit.detail,zp)}function Lae(n,t){if(1&n&&(ct(0),S(1,Rae,1,1,"span",9),S(2,Nae,1,1,"span",10),ut()),2&n){const e=w().$implicit;v(1),C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function Qae(n,t){if(1&n&&(x(0,"span",15),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.summary)}}function Uae(n,t){if(1&n&&(x(0,"span",16),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.detail)}}function jae(n,t){if(1&n&&(S(0,Qae,2,1,"span",13),S(1,Uae,2,1,"span",14)),2&n){const e=w().$implicit;C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function zae(n,t){if(1&n){const e=Re();x(0,"button",17),K("click",function(){re(e);const r=w().index;return oe(w(2).removeMessage(r))}),ie(1,"i",18),B()}}const Hae=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},Vae=function(n){return{value:"visible",params:n}},Gae=function(n,t,e,i){return{"pi-info-circle":n,"pi-check":t,"pi-exclamation-triangle":e,"pi-times-circle":i}};function Yae(n,t){if(1&n&&(x(0,"div",4)(1,"div",5),ie(2,"span",6),S(3,Lae,3,2,"ng-container",1),S(4,jae,2,2,"ng-template",null,7,on),S(6,zae,2,0,"button",8),B()()),2&n){const e=t.$implicit,i=Qt(5),r=w(2);Gt("p-message p-message-"+e.severity),C("@messageAnimation",Wt(12,Vae,Ji(9,Hae,r.showTransitionOptions,r.hideTransitionOptions))),v(2),Gt("p-message-icon pi"+(e.icon?" "+e.icon:"")),C("ngClass",gf(14,Gae,"info"===e.severity,"success"===e.severity,"warn"===e.severity,"error"===e.severity)),v(1),C("ngIf",!r.escape)("ngIfElse",i),v(3),C("ngIf",r.closable)}}function Wae(n,t){if(1&n&&(ct(0),S(1,Yae,7,19,"div",3),ut()),2&n){const e=w();v(1),C("ngForOf",e.messages)}}function Jae(n,t){1&n&&Mt(0)}function Kae(n,t){if(1&n&&(x(0,"div",19)(1,"div",5),S(2,Jae,1,0,"ng-container",20),B()()),2&n){const e=w();C("ngClass","p-message p-message-"+e.severity),v(2),C("ngTemplateOutlet",e.contentTemplate)}}let $ae=(()=>{class n{constructor(e,i,r){this.messageService=e,this.el=i,this.cd=r,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new te,this.timerSubscriptions=[]}set value(e){this.messages=e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){e instanceof Array||(e=[e]);const i=e.filter(r=>this.key===r.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return!(!e||!e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){this.messages=this.messages.filter((i,r)=>r!==e),this.valueChange.emit(this.messages)}get icon(){const e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(e){const i=SO(e.life).subscribe(()=>{this.messages=this.messages?.filter(r=>r!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(r=>r!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(e){return new(e||n)(T($J,8),T(St),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-messages"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,i){if(1&e&&(x(0,"div",0),S(1,Wae,2,1,"ng-container",1),S(2,Kae,3,2,"ng-template",null,2,on),B()),2&e){const r=Qt(3);Gt(i.styleClass),C("ngStyle",i.style),v(1),C("ngIf",!i.contentTemplate)("ngIfElse",r)}},dependencies:[Un,qi,Pt,zo,Xi,zd],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[J8("messageAnimation",[BB(":enter",[dg({opacity:0,transform:"translateY(-25%)"}),xB("{{showTransitionParams}}")]),BB(":leave",[xB("{{hideTransitionParams}}",dg({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),rL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Va]}),n})();function qae(n,t){if(1&n&&(x(0,"div",5),de(1),B()),2&n){const e=w(2);af("display",null!=e.value&&0!==e.value?"flex":"none"),v(1),cf("",e.value,"",e.unit,"")}}function Xae(n,t){if(1&n&&(x(0,"div",3),S(1,qae,2,4,"div",4),B()),2&n){const e=w();af("width",e.value+"%"),v(1),C("ngIf",e.showValue)}}function Zae(n,t){1&n&&(x(0,"div",6),ie(1,"div",7),B())}const ele=function(n,t){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":t}};let tle=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,i){1&e&&(x(0,"div",0),S(1,Xae,2,3,"div",1),S(2,Zae,2,0,"div",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Ji(7,ele,"determinate"===i.mode,"indeterminate"===i.mode)),Ot("aria-valuenow",i.value),v(1),C("ngIf","determinate"===i.mode),v(1),C("ngIf","indeterminate"===i.mode))},dependencies:[Un,Pt,Xi],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),oL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const nle=["advancedfileinput"],ile=["basicfileinput"],rle=["content"];function ole(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).upload())}),B()}if(2&n){const e=w(2);C("label",e.uploadButtonLabel)("icon",e.uploadIcon)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass)}}function sle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).clear())}),B()}if(2&n){const e=w(2);C("label",e.cancelButtonLabel)("icon",e.cancelIcon)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass)}}function ale(n,t){1&n&&Mt(0)}function lle(n,t){1&n&&ie(0,"p-progressBar",18),2&n&&C("value",w(2).progress)("showValue",!1)}function cle(n,t){if(1&n){const e=Re();x(0,"img",26),K("error",function(r){return re(e),oe(w(5).imageError(r))}),B()}if(2&n){const e=w().$implicit,i=w(4);C("src",e.objectURL,ko)("width",i.previewWidth)}}function ule(n,t){if(1&n){const e=Re();x(0,"div",22)(1,"div"),S(2,cle,1,2,"img",23),B(),x(3,"div",24),de(4),B(),x(5,"div"),de(6),B(),x(7,"div")(8,"button",25),K("click",function(r){const s=re(e).index;return oe(w(4).remove(r,s))}),B()()()}if(2&n){const e=t.$implicit,i=w(4);v(2),C("ngIf",i.isImage(e)),v(2),pt(e.name),v(2),pt(i.formatSize(e.size)),v(2),Gt(i.removeStyleClass),C("disabled",i.uploading)}}function dle(n,t){if(1&n&&(x(0,"div"),S(1,ule,9,6,"div",21),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)}}function hle(n,t){}function ple(n,t){if(1&n&&(x(0,"div"),S(1,hle,0,0,"ng-template",27),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function fle(n,t){if(1&n&&(x(0,"div",19),S(1,dle,2,1,"div",20),S(2,ple,2,2,"div",20),B()),2&n){const e=w(2);v(1),C("ngIf",!e.fileTemplate),v(1),C("ngIf",e.fileTemplate)}}function gle(n,t){1&n&&Mt(0)}const mle=function(n,t){return{"p-focus":n,"p-disabled":t}},Ale=function(n){return{$implicit:n}};function ble(n,t){if(1&n){const e=Re();x(0,"div",2)(1,"div",3)(2,"span",4),K("focus",function(){return re(e),oe(w().onFocus())})("blur",function(){return re(e),oe(w().onBlur())})("click",function(){return re(e),oe(w().choose())})("keydown.enter",function(){return re(e),oe(w().choose())}),x(3,"input",5,6),K("change",function(r){return re(e),oe(w().onFileSelect(r))}),B(),ie(5,"span",7),x(6,"span",8),de(7),B()(),S(8,ole,1,4,"p-button",9),S(9,sle,1,4,"p-button",9),S(10,ale,1,0,"ng-container",10),B(),x(11,"div",11,12),K("dragenter",function(r){return re(e),oe(w().onDragEnter(r))})("dragleave",function(r){return re(e),oe(w().onDragLeave(r))})("drop",function(r){return re(e),oe(w().onDrop(r))}),S(13,lle,1,2,"p-progressBar",13),ie(14,"p-messages",14),S(15,fle,3,2,"div",15),S(16,gle,1,0,"ng-container",16),B()()}if(2&n){const e=w();Gt(e.styleClass),C("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),v(2),Gt(e.chooseStyleClass),C("ngClass",Ji(24,mle,e.focus,e.disabled||e.isChooseDisabled())),v(1),C("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),Ot("title",""),v(2),Gt(e.chooseIcon),C("ngClass","p-button-icon p-button-icon-left"),v(2),pt(e.chooseButtonLabel),v(1),C("ngIf",!e.auto&&e.showUploadButton),v(1),C("ngIf",!e.auto&&e.showCancelButton),v(1),C("ngTemplateOutlet",e.toolbarTemplate),v(3),C("ngIf",e.hasFiles()),v(1),C("value",e.msgs)("enableService",!1),v(1),C("ngIf",e.hasFiles()),v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Wt(27,Ale,e.files))}}function yle(n,t){if(1&n){const e=Re();x(0,"input",32,33),K("change",function(r){return re(e),oe(w(2).onFileSelect(r))})("focus",function(){return re(e),oe(w(2).onFocus())})("blur",function(){return re(e),oe(w(2).onBlur())}),B()}if(2&n){const e=w(2);C("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled)}}const _le=function(n,t,e,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":t,"p-focus":e,"p-disabled":i}};function Ele(n,t){if(1&n){const e=Re();x(0,"div",28),ie(1,"p-messages",14),x(2,"span",29),K("mouseup",function(){return re(e),oe(w().onBasicUploaderClick())})("keydown",function(r){return re(e),oe(w().onBasicKeydown(r))}),ie(3,"span",30),x(4,"span",8),de(5),B(),S(6,yle,2,3,"input",31),B()()}if(2&n){const e=w();v(1),C("value",e.msgs)("enableService",!1),v(1),Gt(e.styleClass),C("ngClass",gf(9,_le,!e.chooseLabel,e.hasFiles(),e.focus,e.disabled))("ngStyle",e.style),v(1),C("ngClass",e.hasFiles()&&!e.auto?e.uploadIcon:e.chooseIcon),v(2),pt(e.basicButtonLabel),v(1),C("ngIf",!e.hasFiles())}}let Cle=(()=>{class n{constructor(e,i,r,o,s,a){this.el=e,this.sanitizer=i,this.zone=r,this.http=o,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new te,this.onSend=new te,this.onUpload=new te,this.onError=new te,this.onClear=new te,this.onRemove=new te,this.onSelect=new te,this.onProgress=new te,this.uploadHandler=new te,this.onImageError=new te,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(e){this._files=[];for(let i=0;i{switch(e.getType()){case"file":default:this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let r=0;rthis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(e){let i=this.accept.split(",").map(r=>r.trim());for(let r of i)if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i{switch(i.type){case jt.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case jt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case jt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(Z.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||Z.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){Z.removeClass(this.content.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){if(0==e)return"0 B";let s=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(jd.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(jd.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(jd.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(iE),T(At),T(Ac),T(oi),T(xg))},n.\u0275cmp=ve({type:n,selectors:[["p-fileUpload"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(nle,5),Zt(ile,5),Zt(rle,5)),2&e){let r;He(r=Ve())&&(i.advancedFileInput=r.first),He(r=Ve())&&(i.basicFileInput=r.first),He(r=Ve())&&(i.content=r.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(e,i){1&e&&(S(0,ble,17,29,"div",0),S(1,Ele,7,14,"div",1)),2&e&&(C("ngIf","advanced"===i.mode),v(1),C("ngIf","basic"===i.mode))},dependencies:[Un,qi,Pt,zo,Xi,Bs,GK,tle,$ae,zd],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),sL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,vc,oL,rL,Va,Go,vc,oL,rL]}),n})();function vle(n,t){if(1&n&&(ct(0),ie(1,"img",3),ut()),2&n){const e=w();v(1),C("src",e.src||e.file.objectURL,ko)("alt",e.file.name)}}function Mle(n,t){if(1&n&&(ct(0),x(1,"video",4),ie(2,"source",5),B(),ut()),2&n){const e=w();v(2),C("src",e.src||e.file.objectURL,ko)("type",e.file.type)}}function wle(n,t){1&n&&(x(0,"p"),de(1,"Select an accepted asset type"),B())}let Dle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src","type"]],template:function(e,i){1&e&&(ct(0,0),S(1,vle,2,2,"ng-container",1),S(2,Mle,3,2,"ng-container",1),S(3,wle,2,0,"p",2),ut()),2&e&&(C("ngSwitch",i.type),v(1),C("ngSwitchCase","image"),v(1),C("ngSwitchCase","video"))},dependencies:[vd,V_,G_],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0}),n})();function Ile(n,t){if(1&n){const e=Re();x(0,"p-fileUpload",2),K("onSelect",function(r){return re(e),oe(w().onSelectFile(r.files))}),B()}2&n&&C("accept",w().type+"/*")("customUpload",!0)}function Sle(n,t){if(1&n&&ie(0,"dot-asset-preview",9),2&n){const e=w(2);C("type",e.type)("file",e.file)("src",e.src)}}function xle(n,t){1&n&&ie(0,"dot-spinner")}function Tle(n,t){if(1&n){const e=Re();x(0,"div",3),S(1,Sle,1,3,"dot-asset-preview",4),S(2,xle,1,0,"ng-template",null,5,on),B(),x(4,"div",6)(5,"button",7),K("click",function(){return re(e),oe(w().removeFile())}),de(6," Back "),B(),x(7,"button",8),K("click",function(){return re(e),oe(w().uploadFile())}),de(8," Insert "),B()()}if(2&n){const e=Qt(3),i=w();v(1),C("ngIf","PREVIEW"===i.status)("ngIfElse",e),v(4),C("disabled","UPLOAD"===i.status),v(2),C("disabled","UPLOAD"===i.status)}}var na=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD"}(na||(na={})),na))();let Ble=(()=>{class n{constructor(e,i,r){this.sanitizer=e,this.imageService=i,this.cd=r,this.uploadedFile=new te,this.status=na.SELECT}onSelectFile(e){const i=e[0],r=new FileReader;r.onload=o=>this.setFile(i,o.target.result),r.readAsDataURL(i)}removeFile(){this.file=null,this.status=na.SELECT}uploadFile(){this.status=na.UPLOAD,this.imageService.publishContent({data:this.file}).subscribe(e=>{const i=e[0];this.uploadedFile.emit(i[Object.keys(i)[0]]),this.status=na.SELECT})}setFile(e,i){this.file=e,this.src=i,this.status=na.PREVIEW,this.cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(T(iE),T(vh),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["dot-upload-asset"]],inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf","ngIfElse"],["loading",""],[1,"btn-container"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"disabled","click"],["data-test-id","upload-btn","pButton","",3,"disabled","click"],[3,"type","file","src"]],template:function(e,i){if(1&e&&(S(0,Ile,1,2,"p-fileUpload",0),S(1,Tle,9,4,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf","SELECT"===i.status)("ngIfElse",r)}},dependencies:[Pt,Fae,Bs,Cle,Dle],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1rem;gap:1rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .btn-container[_ngcontent-%COMP%]{display:flex;gap:1rem;height:-moz-fit-content;height:fit-content;justify-content:end;width:100%}"],changeDetection:0}),n})();const Vm=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function vM(...n){return function Ole(){return ls(1)}()(ae(...n))}function aL(n){return new et(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Lt(e):Yf()).subscribe(t)})}function Gm(n=null){return t=>t.lift(new Ple(n))}class Ple{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Fle(t,this.defaultValue))}}class Fle extends Ge{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function lL(n=Lle){return t=>t.lift(new Rle(n))}class Rle{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Nle(t,this.errorFactory))}}class Nle extends Ge{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Lle(){return new Vm}function ia(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Zi((r,o)=>n(r,o,i)):Cl,Jn(1),e?Gm(t):lL(()=>new Vm))}function cL(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Qle(n,t,e))}}class Qle{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Ule(t,this.accumulator,this.seed,this.hasSeed))}}class Ule extends Ge{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function MM(n){return function(e){return 0===n?Yf():e.lift(new jle(n))}}class jle{constructor(t){if(this.total=t,this.total<0)throw new HP}call(t,e){return e.subscribe(new zle(t,this.total))}}class zle extends Ge{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?Zi((r,o)=>n(r,o,i)):Cl,MM(1),e?Gm(t):lL(()=>new Vm))}class Vle{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Gle(t,this.predicate,this.inclusive))}}class Gle extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}class Wle{constructor(t){this.value=t}call(t,e){return e.subscribe(new Jle(t,this.value))}}class Jle extends Ge{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function wM(n){return t=>t.lift(new Kle(n))}class Kle{constructor(t){this.callback=t}call(t,e){return e.subscribe(new $le(t,this.callback))}}class $le extends Ge{constructor(t,e){super(t),this.add(new We(e))}}const Ne="primary",Dh=Symbol("RouteTitle");class qle{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xc(n){return new qle(n)}function Xle(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function hL(n){return Array.prototype.concat.apply([],n)}function pL(n){return n.length>0?n[n.length-1]:null}function Tn(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function ra(n){return Ky(n)?n:cd(n)?Lt(Promise.resolve(n)):ae(n)}const tce={exact:function mL(n,t,e){if(!hl(n.segments,t.segments)||!Ym(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!mL(n.children[i],t.children[i],e))return!1;return!0},subset:AL},fL={exact:function nce(n,t){return mo(n,t)},subset:function ice(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>dL(n[e],t[e]))},ignored:()=>!0};function gL(n,t,e){return tce[e.paths](n.root,t.root,e.matrixParams)&&fL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function AL(n,t,e){return bL(n,t,t.segments,e)}function bL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!hl(r,e)||t.hasChildren()||!Ym(r,e,i))}if(n.segments.length===e.length){if(!hl(n.segments,e)||!Ym(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!AL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(hl(n.segments,r)&&Ym(n.segments,r,i)&&n.children[Ne])&&bL(n.children[Ne],t,o,i)}}function Ym(n,t,e){return t.every((i,r)=>fL[e](n[r].parameters,i.parameters))}class dl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xc(this.queryParams)),this._queryParamMap}toString(){return sce.serialize(this)}}class Ue{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Tn(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wm(this)}}class Ih{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xc(this.parameters)),this._parameterMap}toString(){return CL(this)}}function hl(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let yL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return new IM},providedIn:"root"}),n})();class IM{parse(t){const e=new gce(t);return new dl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Sh(t.root,!0)}`,i=function cce(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Jm(e)}=${Jm(r)}`).join("&"):`${Jm(e)}=${Jm(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function ace(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const sce=new IM;function Wm(n){return n.segments.map(t=>CL(t)).join("/")}function Sh(n,t){if(!n.hasChildren())return Wm(n);if(t){const e=n.children[Ne]?Sh(n.children[Ne],!1):"",i=[];return Tn(n.children,(r,o)=>{o!==Ne&&i.push(`${o}:${Sh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function oce(n,t){let e=[];return Tn(n.children,(i,r)=>{r===Ne&&(e=e.concat(t(i,r)))}),Tn(n.children,(i,r)=>{r!==Ne&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Ne?[Sh(n.children[Ne],!1)]:[`${r}:${Sh(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ne]?`${Wm(n)}/${e[0]}`:`${Wm(n)}/(${e.join("//")})`}}function _L(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jm(n){return _L(n).replace(/%3B/gi,";")}function SM(n){return _L(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Km(n){return decodeURIComponent(n)}function EL(n){return Km(n.replace(/\+/g,"%20"))}function CL(n){return`${SM(n.path)}${function lce(n){return Object.keys(n).map(t=>`;${SM(t)}=${SM(n[t])}`).join("")}(n.parameters)}`}const uce=/^[^\/()?;=#]+/;function $m(n){const t=n.match(uce);return t?t[0]:""}const dce=/^[^=?&#]+/,pce=/^[^&#]+/;class gce{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ue([],{}):new Ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ne]=new Ue(t,e)),i}parseSegment(){const t=$m(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(t),new Ih(Km(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=$m(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=$m(this.remaining);r&&(i=r,this.capture(i))}t[Km(e)]=Km(i)}parseQueryParam(t){const e=function hce(n){const t=n.match(dce);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function fce(n){const t=n.match(pce);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=EL(e),o=EL(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=$m(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ne);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ne]:new Ue([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new P(4011,!1)}}function xM(n){return n.segments.length>0?new Ue([],{[Ne]:n}):n}function qm(n){const t={};for(const i of Object.keys(n.children)){const o=qm(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function mce(n){if(1===n.numberOfChildren&&n.children[Ne]){const t=n.children[Ne];return new Ue(n.segments.concat(t.segments),t.children)}return n}(new Ue(n.segments,t))}function pl(n){return n instanceof dl}function yce(n,t,e,i,r){if(0===e.length)return Zc(t.root,t.root,t.root,i,r);const o=function wL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ML(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Tn(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ML(e,t,i)}(e);return o.toRoot()?Zc(t.root,t.root,new Ue([],{}),i,r):function s(l){const c=function Ece(n,t,e,i){if(n.isAbsolute)return new eu(t.root,!0,0);if(-1===i)return new eu(e,e===t.root,0);return function DL(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new eu(i,!1,r-o)}(e,i+(xh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Bh(c.segmentGroup,c.index,o.commands):BM(c.segmentGroup,c.index,o.commands);return Zc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function xh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Th(n){return"object"==typeof n&&null!=n&&n.outlets}function Zc(n,t,e,i,r){let s,o={};i&&Tn(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:vL(n,t,e);const a=xM(qm(s));return new dl(a,o,r)}function vL(n,t,e){const i={};return Tn(n.children,(r,o)=>{i[o]=r===t?e:vL(r,t,e)}),new Ue(n.segments,i)}class ML{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&xh(i[0]))throw new P(4003,!1);const r=i.find(Th);if(r&&r!==pL(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class eu{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function BM(n,t,e){if(n||(n=new Ue([],{})),0===n.segments.length&&n.hasChildren())return Bh(n,t,e);const i=function vce(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Th(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!SL(l,c,s))return o;i+=2}else{if(!SL(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=BM(n.children[s],t,o))}),Tn(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Ue(n.segments,r)}}function OM(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=OM(new Ue([],{}),0,e))}),t}function IL(n){const t={};return Tn(n,(e,i)=>t[i]=`${e}`),t}function SL(n,t,e){return n==e.path&&mo(t,e.parameters)}class Zo{constructor(t,e){this.id=t,this.url=e}}class kM extends Zo{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fl extends Zo{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xm extends Zo{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xL extends Zo{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ice extends Zo{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xce extends Zo{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tce{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bce{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oce{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kce{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pce{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fce{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class BL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=PM(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=PM(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=FM(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return FM(t,this._root).map(e=>e.value)}}function PM(n,t){if(n===t.value)return t;for(const e of t.children){const i=PM(n,e);if(i)return i}return null}function FM(n,t){if(n===t.value)return[t];for(const e of t.children){const i=FM(n,e);if(i.length)return i.unshift(t),i}return[]}class es{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function tu(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class OL extends BL{constructor(t,e){super(t),this.snapshot=e,RM(this,t)}toString(){return this.snapshot.toString()}}function kL(n,t){const e=function Nce(n,t){const s=new Zm([],{},{},"",{},Ne,t,null,n.root,-1,{});return new FL("",new es(s,[]))}(n,t),i=new pr([new Ih("",{})]),r=new pr({}),o=new pr({}),s=new pr({}),a=new pr(""),l=new gl(i,r,s,a,o,Ne,t,e.root);return l.snapshot=e.root,new OL(new es(l,[]),e)}class gl{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(fe(c=>c[Dh]))??ae(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(fe(t=>Xc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(t=>Xc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function PL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function Lce(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Zm{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Dh],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class FL extends BL{constructor(t,e){super(e),this.url=t,RM(this,e)}toString(){return RL(this._root)}}function RM(n,t){t.value._routerState=n,t.children.forEach(e=>RM(n,e))}function RL(n){const t=n.children.length>0?` { ${n.children.map(RL).join(", ")} } `:"";return`${n.value}${t}`}function NM(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,mo(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),mo(t.params,e.params)||n.params.next(e.params),function Zle(n,t){if(n.length!==t.length)return!1;for(let e=0;emo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||LM(n.parent,t.parent))}function Oh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function Uce(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Oh(n,i,r);return Oh(n,i)})}(n,t,e);return new es(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Oh(n,a)),s}}const i=function jce(n){return new gl(new pr(n.url),new pr(n.params),new pr(n.queryParams),new pr(n.fragment),new pr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Oh(n,o));return new es(i,r)}}const QM="ngNavigationCancelingError";function NL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=pl(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=LL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function LL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[QM]=!0,i.cancellationCode=t,e&&(i.url=e),i}function QL(n){return UL(n)&&pl(n.url)}function UL(n){return n&&n[QM]}class zce{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new kh,this.attachRef=null}}let kh=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new zce,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eA=!1;let jL=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new te,this.deactivateEvents=new te,this.attachEvents=new te,this.detachEvents=new te,this.name=r||Ne,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,eA);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,eA);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,eA);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new P(4013,eA);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Hce(e,a,r.injector);if(i&&function Vce(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(T(kh),T(Pi),function Uu(n){return function k2(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],standalone:!0,features:[ZS],decls:1,vars:0,template:function(e,i){1&e&&ie(0,"router-outlet")},dependencies:[jL],encapsulation:2}),n})();function zL(n,t){return n.providers&&!n._injector&&(n._injector=ff(n.providers,t,`Route: ${n.path}`)),n._injector??t}function zM(n){const t=n.children&&n.children.map(zM),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ne&&(e.component=UM),e}function fr(n){return n.outlet||Ne}function HL(n,t){const e=n.filter(i=>fr(i)===t);return e.push(...n.filter(i=>fr(i)!==t)),e}function Ph(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Kce{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),NM(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=tu(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Tn(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=tu(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=tu(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=tu(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Fce(o.value.snapshot))}),t.children.length&&this.forwardEvent(new kce(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(NM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),NM(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Ph(r.snapshot),l=a?.get(As)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class VL{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tA{constructor(t,e){this.component=t,this.route=e}}function $ce(n,t,e){const i=n._root;return Fh(i,t?t._root:null,e,[i.value])}function nu(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function ob(n){return null!==Sl(n)}(n)?t.get(n):n:i}function Fh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=tu(t);return n.children.forEach(s=>{(function Xce(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Zce(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!hl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!hl(n.url,t.url)||!mo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!LM(n,t)||!mo(n.queryParams,t.queryParams);default:return!LM(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new VL(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Fh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new tA(a.outlet.component,s))}else s&&Rh(t,a,r),r.canActivateChecks.push(new VL(i)),Fh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Tn(o,(s,a)=>Rh(s,e.getContext(a),r)),r}function Rh(n,t,e){const i=tu(n),r=n.value;Tn(i,(o,s)=>{Rh(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new tA(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Nh(n){return"function"==typeof n}function HM(n){return n instanceof Vm||"EmptyError"===n?.name}const nA=Symbol("INITIAL_VALUE");function iu(){return Fi(n=>bM(n.map(t=>t.pipe(Jn(1),function kle(...n){const t=n[n.length-1];return as(t)?(n.pop(),e=>vM(n,e,t)):e=>vM(n,e)}(nA)))).pipe(fe(t=>{for(const e of t)if(!0!==e){if(e===nA)return nA;if(!1===e||e instanceof dl)return e}return!0}),Zi(t=>t!==nA),Jn(1)))}function GL(n){return function Zh(...n){return fa(n)}(bn(t=>{if(pl(t))throw NL(0,t)}),fe(t=>!0===t))}const VM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YL(n,t,e,i,r){const o=GM(n,t,e);return o.matched?function mue(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const a=nu(s,n);return ra(function oue(n){return n&&Nh(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(iu(),GL()):ae(!0)}(i=zL(t,i),t,e).pipe(fe(s=>!0===s?o:{...VM})):ae(o)}function GM(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...VM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||Xle)(e,n,t);if(!r)return{...VM};const o={};Tn(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function iA(n,t,e,i,r="corrected"){if(e.length>0&&function yue(n,t,e){return e.some(i=>rA(n,t,i)&&fr(i)!==Ne)}(n,e,i)){const s=new Ue(t,function bue(n,t,e,i){const r={};r[Ne]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&fr(o)!==Ne){const s=new Ue([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[fr(o)]=s}return r}(n,t,i,new Ue(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function _ue(n,t,e){return e.some(i=>rA(n,t,i))}(n,e,i)){const s=new Ue(n.segments,function Aue(n,t,e,i,r,o){const s={};for(const a of i)if(rA(n,e,a)&&!r[fr(a)]){const l=new Ue([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[fr(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Ue(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function rA(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function WL(n,t,e,i){return!!(fr(n)===i||i!==Ne&&rA(t,e,n))&&("**"===n.path||GM(t,n,e).matched)}function JL(n,t,e){return 0===t.length&&!n.children[e]}const oA=!1;class sA{constructor(t){this.segmentGroup=t||null}}class KL{constructor(t){this.urlTree=t}}function Lh(n){return Ms(new sA(n))}function $L(n){return Ms(new KL(n))}class Mue{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=iA(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ue(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ne).pipe(fe(o=>this.createUrlTree(qm(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ea(o=>{if(o instanceof KL)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof sA?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ne).pipe(fe(r=>this.createUrlTree(qm(r),t.queryParams,t.fragment))).pipe(ea(r=>{throw r instanceof sA?this.noMatchError(r):r}))}noMatchError(t){return new P(4002,oA)}createUrlTree(t,e,i){const r=xM(t);return new dl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(fe(o=>new Ue([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Lt(r).pipe(Ho(o=>{const s=i.children[o],a=HL(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(fe(l=>({segment:l,outlet:o})))}),cL((o,s)=>(o[s.outlet]=s.segment,o),{}),uL())}expandSegment(t,e,i,r,o,s){return Lt(i).pipe(Ho(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(ea(c=>{if(c instanceof sA)return ae(null);throw c}))),ia(a=>!!a),ea((a,l)=>{if(HM(a))return JL(e,r,o)?ae(new Ue([],{})):Lh(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return WL(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Lh(e):Lh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?$L(o):this.lineralizeSegments(i,o).pipe(nn(s=>{const a=new Ue(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=GM(e,r,o);if(!a)return Lh(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?$L(d):this.lineralizeSegments(r,d).pipe(nn(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=zL(i,t),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(fe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Ue(r,{})))):ae(new Ue(r,{}))):YL(e,i,r,t).pipe(Fi(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(nn(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:p,slicedSegments:f}=iA(e,a,l,h),g=new Ue(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(fe(E=>new Ue(a,E)));if(0===h.length&&0===f.length)return ae(new Ue(a,{}));const m=fr(i)===o;return this.expandSegment(d,g,h,f,m?Ne:o,!0).pipe(fe(y=>new Ue(a.concat(y.segments),y.children)))})):Lh(e)))}getChildConfig(t,e,i){return e.children?ae({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):function gue(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const a=nu(s,n);return ra(function tue(n){return n&&Nh(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(iu(),GL())}(t,e,i).pipe(nn(r=>r?this.configLoader.loadChildren(t,e).pipe(bn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Cue(n){return Ms(LL(oA,3))}())):ae({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ae(i);if(r.numberOfChildren>1||!r.children[Ne])return Ms(new P(4e3,oA));r=r.children[Ne]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new dl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Tn(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return Tn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Ue(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new P(4001,oA);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Due{}class xue{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=iA(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ne).pipe(fe(e=>{if(null===e)return null;const i=new Zm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new es(i,e),o=new FL(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=PL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Lt(Object.keys(i.children)).pipe(Ho(r=>{const o=i.children[r],s=HL(e,r);return this.processSegmentGroup(t,s,o,r)}),cL((r,o)=>r&&o?(r.push(...o),r):null),function Hle(n,t=!1){return e=>e.lift(new Vle(n,t))}(r=>null!==r),Gm(null),uL(),fe(r=>{if(null===r)return null;const o=qL(r);return function Tue(n){n.sort((t,e)=>t.value.outlet===Ne?-1:e.value.outlet===Ne?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Lt(e).pipe(Ho(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),ia(s=>!!s),ea(s=>{if(HM(s))return JL(i,r,o)?ae([]):ae(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!WL(e,i,r,o))return ae(null);let s;if("**"===e.path){const a=r.length>0?pL(r).parameters:{},l=ZL(i)+r.length;s=ae({snapshot:new Zm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tQ(e),fr(e),e.component??e._loadedComponent??null,e,XL(i),l,nQ(e),l),consumedSegments:[],remainingSegments:[]})}else s=YL(i,e,r,t).pipe(fe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=ZL(i)+l.length;return{snapshot:new Zm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tQ(e),fr(e),e.component??e._loadedComponent??null,e,XL(i),d,nQ(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Fi(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function Bue(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:f}=iA(i,c,u,h.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(fe(m=>null===m?null:[new es(l,m)]));if(0===h.length&&0===f.length)return ae([new es(l,[])]);const g=fr(e)===o;return this.processSegment(d,h,p,f,g?Ne:o).pipe(fe(m=>null===m?null:[new es(l,m)]))}))}}function Oue(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function qL(n){const t=[],e=new Set;for(const i of n){if(!Oue(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=qL(i.children);t.push(new es(i.value,r))}return t.filter(i=>!e.has(i))}function XL(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ZL(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function tQ(n){return n.data||{}}function nQ(n){return n.resolve||{}}function iQ(n){return"string"==typeof n.title||null===n.title}function YM(n){return Fi(t=>{const e=n(t);return e?Lt(e).pipe(fe(()=>t)):ae(t)})}let rQ=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ne);return i}getResolvedTitleForRoute(e){return e.data[Dh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(oQ)},providedIn:"root"}),n})(),oQ=(()=>{class n extends rQ{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(j(a1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Uue{}class zue extends class jue{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const lA=new $("",{providedIn:"root",factory:()=>({})}),WM=new $("ROUTES");let JM=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=ra(e.loadComponent()).pipe(bn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),wM(()=>{this.componentLoaders.delete(e)})),r=new wl(i,()=>new Me).pipe(_a());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(fe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=hL(l.get(WM,[],pe.Self|pe.Optional)));return{routes:c.map(zM),injector:l}}),wM(()=>{this.childrenLoaders.delete(i)})),s=new wl(o,()=>new Me).pipe(_a());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return ra(e()).pipe(nn(i=>i instanceof qS||Array.isArray(i)?ae(i):Lt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(j(Sn),j(b_))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Vue{}class Gue{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Yue(n){throw n}function Wue(n,t,e){return t.parse("/")}const Jue={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Kue={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function aQ(){const n=Xt(yL),t=Xt(kh),e=Xt(k_),i=Xt(Sn),r=Xt(b_),o=Xt(WM,{optional:!0})??[],s=Xt(lA,{optional:!0})??{},a=Xt(oQ),l=Xt(rQ,{optional:!0}),c=Xt(Vue,{optional:!0}),u=Xt(Uue,{optional:!0}),d=new Bn(null,n,t,e,i,r,hL(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function $ue(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Bn=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me,this.errorHandler=Yue,this.malformedUriErrorHandler=Wue,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ae(void 0),this.urlHandlingStrategy=new Gue,this.routeReuseStrategy=new zue,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(JM),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new Bce(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Tce(h)),this.ngModule=s.get(Oa),this.console=s.get(hG);const d=s.get(At);this.isNgZoneEnabled=d instanceof At&&At.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function ece(){return new dl(new Ue([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=kL(this.currentUrlTree,this.rootComponentType),this.transitions=new pr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Zi(r=>0!==r.id),fe(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Fi(r=>{let o=!1,s=!1;return ae(r).pipe(bn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Fi(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return lQ(a.source)&&(this.browserUrlTree=a.extractedUrl),ae(a).pipe(Fi(d=>{const h=this.transitions.getValue();return i.next(new kM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?bc:Promise.resolve(d)}),function wue(n,t,e,i){return Fi(r=>function vue(n,t,e,i,r){return new Mue(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(fe(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),bn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function Pue(n,t,e,i,r,o){return nn(s=>function Sue(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new xue(n,t,e,i,r,s,a,o).recognize().pipe(Fi(l=>null===l?function Iue(n){return new et(t=>t.error(n))}(new Due):ae(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(fe(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),bn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new wce(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:f,restoredState:g,extras:m}=a,A=new kM(h,this.serializeUrl(p),f,g);i.next(A);const y=kL(p,this.rootComponentType).snapshot;return ae(r={...a,targetSnapshot:y,urlAfterRedirects:p,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),bc}),bn(a=>{const l=new Dce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),fe(a=>r={...a,guards:$ce(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function aue(n,t){return nn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?ae({...e,guardsResult:!0}):function lue(n,t,e,i){return Lt(n).pipe(nn(r=>function fue(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ae(o.map(a=>{const l=Ph(t)??r,c=nu(a,l);return ra(function rue(n){return n&&Nh(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(ia())})).pipe(iu()):ae(!0)}(r.component,r.route,e,t,i)),ia(r=>!0!==r,!0))}(s,i,r,n).pipe(nn(a=>a&&function eue(n){return"boolean"==typeof n}(a)?function cue(n,t,e,i){return Lt(t).pipe(Ho(r=>vM(function due(n,t){return null!==n&&t&&t(new Oce(n)),ae(!0)}(r.route.parent,i),function uue(n,t){return null!==n&&t&&t(new Pce(n)),ae(!0)}(r.route,i),function pue(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function qce(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>aL(()=>ae(s.guards.map(l=>{const c=Ph(s.node)??e,u=nu(l,c);return ra(function iue(n){return n&&Nh(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(ia())})).pipe(iu())));return ae(o).pipe(iu())}(n,r.path,e),function hue(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const r=i.map(o=>aL(()=>{const s=Ph(t)??e,a=nu(o,s);return ra(function nue(n){return n&&Nh(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(ia())}));return ae(r).pipe(iu())}(n,r.route,e))),ia(r=>!0!==r,!0))}(i,o,n,t):ae(a)),fe(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),bn(a=>{if(r.guardsResult=a.guardsResult,pl(a.guardsResult))throw NL(0,a.guardsResult);const l=new Ice(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Zi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),YM(a=>{if(a.guards.canActivateChecks.length)return ae(a).pipe(bn(l=>{const c=new Sce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Fi(l=>{let c=!1;return ae(l).pipe(function Fue(n,t){return nn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ae(e);let o=0;return Lt(r).pipe(Ho(s=>function Rue(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!iQ(r)&&(o[Dh]=r.title),function Nue(n,t,e,i){const r=function Lue(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ae({});const o={};return Lt(r).pipe(nn(s=>function Que(n,t,e,i){const r=Ph(t)??i,o=nu(n,r);return ra(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(ia(),bn(a=>{o[s]=a}))),MM(1),function Yle(n){return t=>t.lift(new Wle(n))}(o),ea(s=>HM(s)?bc:Ms(s)))}(o,n,t,i).pipe(fe(s=>(n._resolvedData=s,n.data=PL(n,e).resolve,r&&iQ(r)&&(n.data[Dh]=r.title),null)))}(s.route,i,n,t)),bn(()=>o++),MM(1),nn(s=>o===r.length?ae(e):bc))})}(this.paramsInheritanceStrategy,this.ngModule.injector),bn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),bn(l=>{const c=new xce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),YM(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(bn(d=>{c.component=d}),fe(()=>{})));for(const d of c.children)u.push(...l(d));return u};return bM(l(a.targetSnapshot.root)).pipe(Gm(),Jn(1))}),YM(()=>this.afterPreactivation()),fe(a=>{const l=function Qce(n,t,e){const i=Oh(n,t._root,e?e._root:void 0);return new OL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),bn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>fe(i=>(new Kce(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),bn({next(){o=!0},complete(){o=!0}}),wM(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ea(a=>{if(s=!0,UL(a)){QL(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Xm(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),QL(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lQ(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new xL(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return bc}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(zM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),yce(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=pl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function que(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new fl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,p)=>{a=h,l=p});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new Xm(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){vy()},n.\u0275prov=Y({token:n,factory:function(){return aQ()},providedIn:"root"}),n})();function lQ(n){return"imperative"!==n}class cQ{}let ede=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Zi(e=>e instanceof fl),Ho(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=ff(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Lt(r).pipe(ls())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):ae(null);const o=r.pipe(nn(s=>null===s?ae(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Lt([o,this.loader.loadComponent(i)]).pipe(ls()):o})}}return n.\u0275fac=function(e){return new(e||n)(j(Bn),j(b_),j(ms),j(cQ),j(JM))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qM=new $("");let uQ=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof kM?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof TL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new TL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){vy()},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function ru(n,t){return{\u0275kind:n,\u0275providers:t}}function XM(n){return[{provide:WM,multi:!0,useValue:n}]}function hQ(){const n=Xt(Sn);return t=>{const e=n.get(Ra);if(t!==e.components[0])return;const i=n.get(Bn),r=n.get(pQ);1===n.get(ZM)&&i.initialNavigation(),n.get(fQ,null,pe.Optional)?.setUpPreloading(),n.get(qM,null,pe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const pQ=new $("",{factory:()=>new Me}),ZM=new $("",{providedIn:"root",factory:()=>1});const fQ=new $("");function rde(n){return ru(0,[{provide:fQ,useExisting:ede},{provide:cQ,useExisting:n}])}const gQ=new $("ROUTER_FORROOT_GUARD"),ode=[k_,{provide:yL,useClass:IM},{provide:Bn,useFactory:aQ},kh,{provide:gl,useFactory:function dQ(n){return n.routerState.root},deps:[Bn]},JM];function sde(){return new Jx("Router",Bn)}let mQ=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[ode,[],XM(e),{provide:gQ,useFactory:ude,deps:[[Bn,new Wu,new Ju]]},{provide:lA,useValue:i||{}},i?.useHash?{provide:La,useClass:tY}:{provide:La,useClass:yT},{provide:qM,useFactory:()=>{const n=Xt(Bn),t=Xt(f3),e=Xt(lA);return e.scrollOffset&&t.setOffset(e.scrollOffset),new uQ(n,t,e)}},i?.preloadingStrategy?rde(i.preloadingStrategy).\u0275providers:[],{provide:Jx,multi:!0,useFactory:sde},i?.initialNavigation?dde(i):[],[{provide:AQ,useFactory:hQ},{provide:Ux,multi:!0,useExisting:AQ}]]}}static forChild(e){return{ngModule:n,providers:[XM(e)]}}}return n.\u0275fac=function(e){return new(e||n)(j(gQ,8))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[UM]}),n})();function ude(n){return"guarded"}function dde(n){return["disabled"===n.initialNavigation?ru(3,[{provide:yf,multi:!0,useFactory:()=>{const t=Xt(Bn);return()=>{t.setUpLocationChangeListener()}}},{provide:ZM,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ru(2,[{provide:ZM,useValue:0},{provide:yf,multi:!0,deps:[Sn],useFactory:t=>{const e=t.get(ZG,Promise.resolve(null));let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(Bn),a=t.get(pQ);(function r(o){t.get(Bn).events.pipe(Zi(a=>a instanceof fl||a instanceof Xm||a instanceof xL),fe(a=>a instanceof fl||a instanceof Xm&&(0===a.code||1===a.code)&&null),Zi(a=>null!==a),Jn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?ae(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const AQ=new $("");let pde=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Z.appendChild(this.container,this.el.nativeElement):Z.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Z.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?sC.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&sC.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+Z.getWindowScrollLeft(),top:e.top+Z.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+Z.getOuterWidth(this.el.nativeElement),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-Z.getOuterWidth(this.container),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top-Z.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top+Z.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Z.hasClass(e,"p-inputwrapper")?Z.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=Z.getOuterWidth(this.container),s=Z.getOuterHeight(this.container),a=Z.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new qJ(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Z.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&sC.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(At),T(xg))},n.\u0275dir=ue({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Ai]}),n})(),ew=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),yQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,mQ,Va,ew,mQ,ew]}),n})();function Ude(n,t){1&n&&Mt(0)}function jde(n,t){if(1&n&&(ct(0),S(1,Ude,1,0,"ng-container",3),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)}}function zde(n,t){if(1&n&&(x(0,"div",1),ki(1),S(2,jde,2,1,"ng-container",2),B()),2&n){const e=w();C("hidden",!e.selected),Ot("id",e.id)("aria-hidden",!e.selected)("aria-labelledby",e.id+"-label"),v(2),C("ngIf",e.contentTemplate&&(e.cache?e.loaded:e.selected))}}const _Q=["*"],Hde=["content"],Vde=["navbar"],Gde=["prevBtn"],Yde=["nextBtn"],Wde=["inkbar"];function Jde(n,t){if(1&n){const e=Re();x(0,"button",12,13),K("click",function(){return re(e),oe(w().navBackward())}),ie(2,"span",14),B()}}function Kde(n,t){1&n&&ie(0,"span",24),2&n&&C("ngClass",w(3).$implicit.leftIcon)}function $de(n,t){1&n&&ie(0,"span",25),2&n&&C("ngClass",w(3).$implicit.rightIcon)}function qde(n,t){if(1&n&&(ct(0),S(1,Kde,1,1,"span",21),x(2,"span",22),de(3),B(),S(4,$de,1,1,"span",23),ut()),2&n){const e=w(2).$implicit;v(1),C("ngIf",e.leftIcon),v(2),pt(e.header),v(1),C("ngIf",e.rightIcon)}}function Xde(n,t){1&n&&Mt(0)}function Zde(n,t){if(1&n){const e=Re();x(0,"span",26),K("click",function(r){re(e);const o=w(2).$implicit;return oe(w().close(r,o))}),B()}}const ehe=function(n,t){return{"p-highlight":n,"p-disabled":t}};function the(n,t){if(1&n){const e=Re();x(0,"li",16)(1,"a",17),K("click",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))})("keydown.enter",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))}),S(2,qde,5,3,"ng-container",18),S(3,Xde,1,0,"ng-container",19),S(4,Zde,1,0,"span",20),B()()}if(2&n){const e=w().$implicit;Gt(e.headerStyleClass),C("ngClass",Ji(16,ehe,e.selected,e.disabled))("ngStyle",e.headerStyle),v(1),C("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Ot("id",e.id+"-label")("aria-selected",e.selected)("aria-controls",e.id)("aria-selected",e.selected)("tabindex",e.disabled?null:"0"),v(1),C("ngIf",!e.headerTemplate),v(1),C("ngTemplateOutlet",e.headerTemplate),v(1),C("ngIf",e.closable)}}function nhe(n,t){1&n&&S(0,the,5,19,"li",15),2&n&&C("ngIf",!t.$implicit.closed)}function ihe(n,t){if(1&n){const e=Re();x(0,"button",27,28),K("click",function(){return re(e),oe(w().navForward())}),ie(2,"span",29),B()}}const rhe=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let ohe=0,EQ=(()=>{class n{constructor(e,i,r){this.viewContainer=i,this.cd=r,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+ohe++,this.tabView=e}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()?this.headerTemplate=e.template:this.contentTemplate=e.template})}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(e){return new(e||n)(T(Je(()=>CQ)),T(Pi),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-tabPanel"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,ir,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:_Q,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&($r(),S(0,zde,3,5,"div",0)),2&e&&C("ngIf",!i.closed)},dependencies:[Pt,zo],encapsulation:2}),n})(),CQ=(()=>{class n{constructor(e,i){this.el=e,this.cd=i,this.orientation="top",this.onChange=new te,this.onClose=new te,this.activeIndexChange=new te,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let r=this.findSelectedTab();r&&(r.selected=!1),this.tabChanged=!0,i.selected=!0;let o=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(o),this.onChange.emit({originalEvent:e,index:o}),this.updateScrollBar(o)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}updateInkBar(){if(this.navbar){const e=Z.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!e)return;this.inkbar.nativeElement.style.width=Z.getWidth(e)+"px",this.inkbar.nativeElement.style.left=Z.getOffset(e).left-Z.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:r}=e,o=Z.getWidth(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===r-o}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+Z.getWidth(i):e,0)}navBackward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft-i;e.scrollLeft=r<=0?0:r}navForward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft+i,o=e.scrollWidth-i;e.scrollLeft=r>=o?o:r}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(oi))},n.\u0275cmp=ve({type:n,selectors:[["p-tabView"]],contentQueries:function(e,i,r){if(1&e&&Qn(r,EQ,4),2&e){let o;He(o=Ve())&&(i.tabPanels=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Hde,5),Zt(Vde,5),Zt(Gde,5),Zt(Yde,5),Zt(Wde,5)),2&e){let r;He(r=Ve())&&(i.content=r.first),He(r=Ve())&&(i.navbar=r.first),He(r=Ve())&&(i.prevBtn=r.first),He(r=Ve())&&(i.nextBtn=r.first),He(r=Ve())&&(i.inkbar=r.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:_Q,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,i){1&e&&($r(),x(0,"div",0)(1,"div",1),S(2,Jde,3,0,"button",2),x(3,"div",3,4),K("scroll",function(o){return i.onScroll(o)}),x(5,"ul",5,6),S(7,nhe,1,1,"ng-template",7),ie(8,"li",8,9),B()(),S(10,ihe,3,0,"button",10),B(),x(11,"div",11),ki(12),B()()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(7,rhe,i.scrollable))("ngStyle",i.style),v(2),C("ngIf",i.scrollable&&!i.backwardIsDisabled),v(5),C("ngForOf",i.tabs),v(3),C("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[Un,qi,Pt,zo,Xi,pde,zd],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),vQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Go,ew,Va,Go]}),n})(),MQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[yQ,rN,vc,oN,aN,AC,lC,vQ,iL,nL,sL,dE,yQ,rN,vc,oN,aN,AC,lC,vQ,iL,nL,sL,dE]}),n})(),she=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vh],imports:[Kt,ug,Rd,dse,MQ]}),n})();hs(GN,[ir,CQ,EQ,kae,Tae,Ble],[]);let wQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[eM],imports:[Kt,ug,Rd,vc]}),n})();function ahe(n,t){1&n&&(x(0,"div",1),ie(1,"div",2),x(2,"div",3)(3,"div",4)(4,"div"),ie(5,"span",5)(6,"span",6),B(),x(7,"div",7),ie(8,"span",8)(9,"span",9),B()()()())}hs(xm,[qi,Pt,QR,Xv,LR],[]);let lhe=(()=>{class n{constructor(){this.items=Array(4).fill(0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,i){1&e&&S(0,ahe,10,0,"div",0),2&e&&C("ngForOf",i.items)},dependencies:[qi],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#11152e}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#11152e;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]}),n})(),che=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vh,U9,nk],imports:[Kt,ug,Rd,wQ,MQ,she,Rd,wQ]}),n})();hs(bN,[qi,Pt,yre],[]),hs(uN,[Pt,cg,yc,Sd,Zf,Ec,Fd,sM,Bs,km,pre,cN],[]),hs(cN,[qi,Pt,QR,Xv,lhe,LR],[]);const uhe=Ft.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const t=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?t.textBetween(0,t.content.size,void 0," ").length:t.nodeSize},this.storage.words=n=>{const t=n?.node||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter(r=>""!==r).length}},addProseMirrorPlugins(){return[new it({key:new _t("characterCount"),filterTransaction:(n,t)=>{const e=this.options.limit;if(!n.docChanged||0===e||null==e)return!0;const i=this.storage.characters({node:t.doc}),r=this.storage.characters({node:n.doc});if(r<=e||i>e&&r>e&&r<=i)return!0;if(i>e&&r>e&&r>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(r-e),s),!(this.storage.characters({node:n.doc})>e)}})]}}),dhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,hhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,phe=Fr.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[al({find:dhe,type:this.type})]},addPasteRules(){return[Xs({find:hhe,type:this.type})]}});function tw(n){this.j={},this.jr=[],this.jd=null,this.t=n}tw.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var i=e,r=this.j[t];if(r)return i&&(r.t=i),r;r=Ct();var o=hA(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=i||o.t):r.t=i,this.j[t]=r,r}};var Ct=function(){return new tw},me=function(t){return new tw(t)},H=function(t,e,i){t.j[e]||(t.j[e]=i)},Dn=function(t,e,i){t.jr.push([e,i])},hA=function(t,e){var i=t.j[e];if(i)return i;for(var r=0;r=s)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:[],t=Ct(),e=me(gr),i=me(Nr),r=Ct(),o=me("WS"),s=[[Wh,i],[Vh,i],[Gh,i],[Yh,i]],a=function(){var b=me(Nr);return b.j={"-":r},b.jr=[].concat(s),b},l=function(b){var D=a();return D.t=b,D};fhe(t,[["'",me(fA)],["{",me(su)],["[",me(Uh)],["<",me(jh)],["(",me(zh)],["}",me(Al)],["]",me(au)],[">",me(lu)],[")",me(cu)],["&",me(pA)],["*",me(gA)],["@",me(uu)],["`",me(AA)],["^",me(bA)],[":",me(Hh)],[",",me(rw)],["$",me(yA)],[".",me(oa)],["=",me(_A)],["!",me(ow)],["-",me(EA)],["%",me(CA)],["|",me(vA)],["+",me(MA)],["#",me(wA)],["?",me(DA)],['"',me(sw)],["/",me(ns)],[";",me(aw)],["~",me(IA)],["_",me(SA)],["\\",me(mA)]]),H(t,"\n",me("NL")),Dn(t,SQ,o),H(o,"\n",Ct()),Dn(o,SQ,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(n.prototype);for(var r in e)i[r]=e[r];i.constructor=t,t.prototype=i}(BA,e,t),e}BA.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:On.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var BQ=bl("email",{isLink:!0}),lw=bl("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),cw=bl("text"),OQ=bl("nl"),sa=bl("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:On.defaultProtocol,e=this.tk,i=!1,r=!1,o=[],s=0;e[s].t===ou;)i=!0,o.push(e[s].v),s++;for(;e[s].t===ns;)r=!0,o.push(e[s].v),s++;for(;s=0&&h++,r++,u++;if(h<0)for(var p=r-u;p0&&(o.push(uw(cw,t,s)),s=[]);var f=d.t,g=e.slice((r-=h)-(u-=h),r);o.push(uw(f,t,g))}}return s.length>0&&o.push(uw(cw,t,s)),o}(zt.parser.start,n,function Ahe(n,t){for(var e=function bhe(n){for(var t=[],e=n.length,i=0;i56319||i+1===e||(o=n.charCodeAt(i+1))<56320||o>57343?n[i]:n.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,function(p){return p.toLowerCase()})),i=e.length,r=[],o=0,s=0;s=0&&(d+=e[s].length,h++),c+=e[s].length,o+=e[s].length,s++;s-=h,r.push({t:u.t,v:t.substr((o-=d)-(c-=d),c),s:o-c,e:o})}return r}(zt.scanner.start,n))}function hw(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=kQ(n),i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:null,e=kQ(n);return 1===e.length&&e[0].isLink&&(!t||e[0].t===t)}function Dhe(n){return new it({key:new _t("autolink"),appendTransaction:(t,e,i)=>{const r=t.some(u=>u.docChanged)&&!e.doc.eq(i.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:s}=i,a=function yee(n,t){const e=new kC(n);return t.forEach(i=>{i.steps.forEach(r=>{e.step(r)})}),e}(e.doc,[...t]),{mapping:l}=a;return function wee(n){const{mapping:t,steps:e}=n,i=[];return t.maps.forEach((r,o)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=e[o];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),h=t.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function Mee(n){const t=function vee(n,t=JSON.stringify){const e={};return n.filter(i=>{const r=t(i);return!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=!0)})}(n);return 1===t.length?t:t.filter((e,i)=>!t.filter((o,s)=>s!==i).some(o=>e.oldRange.from>=o.oldRange.from&&e.oldRange.to<=o.oldRange.to&&e.newRange.from>=o.newRange.from&&e.newRange.to<=o.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Dm(u.from,u.to,e.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const y=Dm(l.map(g.from),l.map(g.to),i.doc).filter(O=>O.mark.type===n.type);if(!y.length)return;const E=y[0],b=e.doc.textBetween(g.from,g.to,void 0," "),D=i.doc.textBetween(E.from,E.to,void 0," "),I=PQ(b),Q=PQ(D);I&&!Q&&s.removeMark(E.from,E.to,n.type)});const h=function Eee(n,t,e){const i=[];return n.nodesBetween(t.from,t.to,(r,o)=>{e(r)&&i.push({node:r,pos:o})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(y=>""!==y);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;hw(m).filter(y=>y.isLink).filter(y=>!n.validate||n.validate(y.value)).map(y=>({...y,from:A+y.start+1,to:A+y.end+1})).forEach(y=>{s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),s.steps.length?s:void 0}})}const xhe=Fr.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(Mhe)},onDestroy(){!function vhe(){zt.scanner=null,zt.parser=null,zt.pluginQueue=[],zt.customProtocols=[],zt.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:t})=>t().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:t})=>t().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Xs({find:n=>hw(n).filter(t=>!this.options.validate||this.options.validate(t.value)).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:n=>{var t;return{href:null===(t=n.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(Dhe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function Ihe(n){return new it({key:new _t("handleClickLink"),props:{handleClick:(t,e,i)=>{var r;const o=BR(t.state,n.type.name);return!(!(null===(r=i.target)||void 0===r?void 0:r.closest("a"))||!o.href||(window.open(o.href,o.target),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function She(n){return new it({key:new _t("handlePasteLink"),props:{handlePaste:(t,e,i)=>{const{state:r}=t,{selection:o}=r,{empty:s}=o;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=hw(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),The=Ft.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new it({props:{decorations:({doc:n,selection:t})=>{const e=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!e)return null;const o=n.type.createAndFill(),s=o?.sameMarkup(n)&&null===o.content.findDiffStart(n.content);return n.descendants((a,l)=>{const c=i>=l&&i<=l+a.nodeSize;if((c||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=vn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:c}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),kt.create(n,r)}}})]}}),Bhe=tn.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",Et(this.options.HTMLAttributes,n),0]}}),Ohe=Ft.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>!!this.options.alignments.includes(n)&&this.options.types.every(e=>t.updateAttributes(e,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(t=>n.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),khe=Fr.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Phe=/^\s*>\s$/,Fhe=tn.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[qv({find:Phe,type:this.type})]}}),Rhe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Nhe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Lhe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Qhe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Uhe=Fr.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[al({find:Rhe,type:this.type}),al({find:Lhe,type:this.type})]},addPasteRules(){return[Xs({find:Nhe,type:this.type}),Xs({find:Qhe,type:this.type})]}}),jhe=/^\s*([-+*])\s$/,zhe=tn.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){return[qv({find:jhe,type:this.type})]}}),Hhe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Vhe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Ghe=Fr.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[al({find:Hhe,type:this.type})]},addPasteRules(){return[Xs({find:Vhe,type:this.type})]}}),Yhe=/^```([a-z]+)?[\s\n]$/,Whe=/^~~~([a-z]+)?[\s\n]$/,Jhe=tn.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var t;const{languageClassPrefix:e}=this.options;return[...(null===(t=n.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:t}){return["pre",Et(this.options.HTMLAttributes,t),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:t})=>t.setNode(this.name,n),toggleCodeBlock:n=>({commands:t})=>t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:t}=this.editor.state.selection;return!(!n||t.parent.type.name!==this.name)&&!(1!==t.pos&&t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=n,{selection:e}=t,{$from:i,empty:r}=e;if(!r||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!o||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=n,{selection:e,doc:i}=t,{$from:r,empty:o}=e;if(!o||r.parent.type!==this.type||r.parentOffset!==r.parent.nodeSize-2)return!1;const a=r.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[$v({find:Yhe,type:this.type,getAttributes:n=>({language:n[1]})}),$v({find:Whe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new it({key:new _t("codeBlockVSCodeHandler"),props:{handlePaste:(n,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const e=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),o=(i?JSON.parse(i):void 0)?.mode;if(!e||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(Ee.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),Khe=tn.create({name:"doc",topNode:!0,content:"block+"});function $he(n={}){return new it({view:t=>new qhe(t,n)})}class qhe{constructor(t,e){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=e.width||1,this.color=e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let r=o=>{this[i](o)};return t.dom.addEventListener(i,r),{name:i,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){let s=t.nodeBefore,a=t.nodeAfter;if(s||a){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0)).getBoundingClientRect(),c=s?l.bottom:l.top;s&&a&&(c=(c+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:l.left,right:l.right,top:c-this.width/2,bottom:c+this.width/2}}}if(!e){let s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();r=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=i&&i.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e):r;if(e&&!o){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(s=Lk(this.editorView.state.doc,s,this.editorView.dragging.slice),null==s))return this.setCursor(null);this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const Xhe=Ft.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[$he(this.options)]}});class $t extends _e{constructor(t){super(t,t)}map(t,e){let i=t.resolve(e.map(this.head));return $t.valid(i)?new $t(i):_e.near(i)}content(){return G.empty}eq(t){return t instanceof $t&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $t(t.resolve(e.pos))}getBookmark(){return new pw(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function Zhe(n){for(let t=n.depth;t>=0;t--){let e=n.index(t),i=n.node(t);if(0!=e)for(let r=i.child(e-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t)||!function epe(n){for(let t=n.depth;t>=0;t--){let e=n.indexAfter(t),i=n.node(t);if(e!=i.childCount)for(let r=i.child(e);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t))return!1;let i=e.type.spec.allowGapCursor;if(null!=i)return i;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,i=!1){e:for(;;){if(!i&&$t.valid(t))return t;let r=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(e>0?t.indexAfter(s)0){o=a.child(e>0?t.indexAfter(s):t.index(s)-1);break}if(0==s)return null;r+=e;let l=t.doc.resolve(r);if($t.valid(l))return l}for(;;){let s=e>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!ce.isSelectable(o)){t=t.doc.resolve(r+o.nodeSize*e),i=!1;continue e}break}o=s,r+=e;let a=t.doc.resolve(r);if($t.valid(a))return a}return null}}}$t.prototype.visible=!1,$t.findFrom=$t.findGapCursorFrom,_e.jsonID("gapcursor",$t);class pw{constructor(t){this.pos=t}map(t){return new pw(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return $t.valid(e)?new $t(e):_e.near(e)}}const npe=xv({ArrowLeft:OA("horiz",-1),ArrowRight:OA("horiz",1),ArrowUp:OA("vert",-1),ArrowDown:OA("vert",1)});function OA(n,t){const e="vert"==n?t>0?"down":"up":t>0?"right":"left";return function(i,r,o){let s=i.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof Ee){if(!o.endOfTextblock(e)||0==a.depth)return!1;l=!1,a=i.doc.resolve(t>0?a.after():a.before())}let c=$t.findGapCursorFrom(a,t,l);return!!c&&(r&&r(i.tr.setSelection(new $t(c))),!0)}}function ipe(n,t,e){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(t);if(!$t.valid(i))return!1;let r=n.posAtCoords({left:e.clientX,top:e.clientY});return!(r&&r.inside>-1&&ce.isSelectable(n.state.doc.nodeAt(r.inside))||(n.dispatch(n.state.tr.setSelection(new $t(i))),0))}function rpe(n,t){if("insertCompositionText"!=t.inputType||!(n.state.selection instanceof $t))return!1;let{$from:e}=n.state.selection,i=e.parent.contentMatchAt(e.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let r=L.empty;for(let s=i.length-1;s>=0;s--)r=L.from(i[s].createAndFill(null,r));let o=n.state.tr.replace(e.pos,e.pos,new G(r,0,0));return o.setSelection(Ee.near(o.doc.resolve(e.pos+1))),n.dispatch(o),!1}function ope(n){if(!(n.selection instanceof $t))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",kt.create(n.doc,[vn.widget(n.selection.head,t,{key:"gapcursor"})])}const spe=Ft.create({name:"gapCursor",addProseMirrorPlugins:()=>[new it({props:{decorations:ope,createSelectionBetween:(n,t,e)=>t.pos==e.pos&&$t.valid(e)?new $t(e):null,handleClick:ipe,handleKeyDown:npe,handleDOMEvents:{beforeinput:rpe}}})],extendNodeSchema(n){var t;return{allowGapCursor:null!==(t=Be(ne(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==t?t:null}}}),ape=tn.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",Et(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:r,storedMarks:o}=e;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lpe=tn.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Et(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.setNode(this.name,n),toggleHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>$v({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var kn=function(){};kn.prototype.append=function(t){return t.length?(t=kn.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},kn.prototype.prepend=function(t){return t.length?kn.from(t).append(this):this},kn.prototype.appendInner=function(t){return new cpe(this,t)},kn.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?kn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},kn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},kn.prototype.forEach=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length),e<=i?this.forEachInner(t,e,i,0):this.forEachInvertedInner(t,e,i,0)},kn.prototype.map=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length);var r=[];return this.forEach(function(o,s){return r.push(t(o,s))},e,i),r},kn.from=function(t){return t instanceof kn?t:t&&t.length?new FQ(t):kn.empty};var FQ=function(n){function t(i){n.call(this),this.values=i}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,o){return 0==r&&o==this.length?this:new t(this.values.slice(r,o))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,o,s,a){for(var l=o;l=s;l--)if(!1===r(this.values[l],a+l))return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=200)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=200)return new t(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(kn);kn.empty=new FQ([]);var cpe=function(n){function t(e,i){n.call(this),this.left=e,this.right=i,this.length=e.length+i.length,this.depth=Math.max(e.depth,i.depth)+1}return n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(r-a,0),Math.min(this.length,o)-a,s+a))return!1},t.prototype.forEachInvertedInner=function(i,r,o,s){var a=this.left.length;if(r>a&&!1===this.right.forEachInvertedInner(i,r-a,Math.max(o,a)-a,s+a)||o=o?this.right.slice(i-o,r-o):this.left.slice(i,o).append(this.right.slice(0,r-o))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(kn);const RQ=kn;class Lr{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let r,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(r=this.remapping(i,this.items.length),o=r.maps.length);let a,l,s=t.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return r||(r=this.remapping(i,h+1),o=r.maps.length),o--,void u.push(d);if(r){u.push(new bo(d.map));let f,p=d.step.map(r.slice(o));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new bo(f,void 0,void 0,c.length+u.length))),o--,f&&r.appendMap(f,o)}else s.maybeStep(d.step);return d.selection?(a=r?d.selection.map(r.slice(o)):d.selection,l=new Lr(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(t,e,i,r){let o=[],s=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let u=0;uppe&&(a=function hpe(n,t){let e;return n.forEach((i,r)=>{if(i.selection&&0==t--)return e=r,!1}),n.slice(e)}(a,c),s-=c),new Lr(a.append(o),s)}remapping(t,e){let i=new Sc;return this.items.forEach((r,o)=>{i.appendMap(r.map,null!=r.mirrorOffset&&o-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0)},t,e),i}addMaps(t){return 0==this.eventCount?this:new Lr(this.items.append(t.map(e=>new bo(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-e),o=t.mapping,s=t.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},r);let l=e;this.items.forEach(h=>{let p=o.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=o.maps[p];if(h.step){let g=t.steps[p].invert(t.docs[p]),m=h.selection&&h.selection.map(o.slice(l+1,p));m&&a++,i.push(new bo(f,g,m))}else i.push(new bo(f))},r);let c=[];for(let h=e;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),i=e.maps.length,r=[],o=0;return this.items.forEach((s,a)=>{if(a>=t)r.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(e.slice(i)),c=l&&l.getMap();if(i--,c&&e.appendMap(c,i),l){let u=s.selection&&s.selection.map(e.slice(i));u&&o++;let h,d=new bo(c.invert(),l,u),p=r.length-1;(h=r.length&&r[p].merge(d))?r[p]=h:r.push(d)}}else s.map&&i--},this.items.length,0),new Lr(RQ.from(r.reverse()),o)}}Lr.empty=new Lr(RQ.empty,0);class bo{constructor(t,e,i,r){this.map=t,this.step=e,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new bo(e.getMap().invert(),e,this.selection)}}}class aa{constructor(t,e,i,r){this.done=t,this.undone=e,this.prevRanges=i,this.prevTime=r}}const ppe=20;function NQ(n){let t=[];return n.forEach((e,i,r,o)=>t.push(r,o)),t}function fw(n,t){if(!n)return null;let e=[];for(let i=0;inew aa(Lr.empty,Lr.empty,null,0),apply:(t,e,i)=>function fpe(n,t,e,i){let o,r=e.getMeta(yo);if(r)return r.historyState;e.getMeta(UQ)&&(n=new aa(n.done,n.undone,null,0));let s=e.getMeta("appendedTransaction");if(0==e.steps.length)return n;if(s&&s.getMeta(yo))return s.getMeta(yo).redo?new aa(n.done.addTransform(e,void 0,i,PA(t)),n.undone,NQ(e.mapping.maps[e.steps.length-1]),n.prevTime):new aa(n.done,n.undone.addTransform(e,void 0,i,PA(t)),null,n.prevTime);if(!1===e.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=e.getMeta("rebased"))?new aa(n.done.rebased(e,o),n.undone.rebased(e,o),fw(n.prevRanges,e.mapping),n.prevTime):new aa(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),fw(n.prevRanges,e.mapping),n.prevTime);{let a=0==n.prevTime||!s&&(n.prevTime<(e.time||0)-i.newGroupDelay||!function gpe(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((i,r)=>{for(let o=0;o=t[o]&&(e=!0)}),e}(e,n.prevRanges)),l=s?fw(n.prevRanges,e.mapping):NQ(e.mapping.maps[e.steps.length-1]);return new aa(n.done.addTransform(e,a?t.selection.getBookmark():void 0,i,PA(t)),Lr.empty,l,e.time)}}(e,i,t,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(t,e){let i=e.inputType,r="historyUndo"==i?jQ:"historyRedo"==i?zQ:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const jQ=(n,t)=>{let e=yo.getState(n);return!(!e||0==e.done.eventCount||(t&&LQ(e,n,t,!1),0))},zQ=(n,t)=>{let e=yo.getState(n);return!(!e||0==e.undone.eventCount||(t&&LQ(e,n,t,!0),0))},Ape=Ft.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:t})=>jQ(n,t),redo:()=>({state:n,dispatch:t})=>zQ(n,t)}),addProseMirrorPlugins(){return[mpe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),bpe=tn.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{var i;if(e){const{$to:r}=t.selection,o=r.end();if(r.nodeAfter)t.setSelection(Ee.create(t.doc,r.pos));else{const s=null===(i=r.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(t.insert(o,s),t.setSelection(Ee.create(t.doc,o)))}t.scrollIntoView()}return!0}).run()}},addInputRules(){return[RR({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),ype=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,_pe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Epe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Cpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,vpe=Fr.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[al({find:ype,type:this.type}),al({find:Epe,type:this.type})]},addPasteRules(){return[Xs({find:_pe,type:this.type}),Xs({find:Cpe,type:this.type})]}}),Mpe=tn.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",Et(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wpe=/^(\d+)\.\s$/,Dpe=tn.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return 1===t?["ol",Et(this.options.HTMLAttributes,e),0]:["ol",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[qv({find:wpe,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:(n,t)=>t.childCount+t.attrs.start===+n[1]})]}}),Ipe=tn.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Spe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,xpe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Tpe=Fr.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[al({find:Spe,type:this.type})]},addPasteRules(){return[Xs({find:xpe,type:this.type})]}}),Bpe=tn.create({name:"text",group:"inline"}),HQ=Ft.create({name:"starterKit",addExtensions(){var n,t,e,i,r,o,s,a,l,c,u,d,h,p,f,g,m,A;const y=[];return!1!==this.options.blockquote&&y.push(Fhe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&y.push(Uhe.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(zhe.configure(null===(e=this.options)||void 0===e?void 0:e.bulletList)),!1!==this.options.code&&y.push(Ghe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&y.push(Jhe.configure(null===(r=this.options)||void 0===r?void 0:r.codeBlock)),!1!==this.options.document&&y.push(Khe.configure(null===(o=this.options)||void 0===o?void 0:o.document)),!1!==this.options.dropcursor&&y.push(Xhe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&y.push(spe.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&y.push(ape.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(lpe.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(Ape.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(bpe.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(vpe.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&y.push(Mpe.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&y.push(Dpe.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&y.push(Ipe.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&y.push(Tpe.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&y.push(Bpe.configure(null===(A=this.options)||void 0===A?void 0:A.text)),y}});let Ope=(()=>{class n{constructor(e,i){this.el=e,this._renderer=i,this.outputFormat="html",this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:r})=>{if(r.docChanged){if("html"===this.outputFormat)return void this.onChange(this.editor.getHTML());this.onChange(this.editor.getJSON())}}}writeValue(e){!e||(!this.outputFormat&&"string"==typeof e&&(this.outputFormat="html"),this.editor.chain().setContent(e,!1).run())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Wr))},n.\u0275dir=ue({type:n,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor",outputFormat:"outputFormat"},features:[yt([{provide:Ri,useExisting:Je(()=>n),multi:!0}])]}),n})(),kpe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,i){1&e&&(x(0,"span"),de(1),B(),x(2,"span"),de(3,"\u25cf"),B(),de(4),x(5,"span"),de(6,"\u25cf"),B(),de(7)),2&e&&(_s("error-message",i.charLimit&&i.characterCount.characters()>i.charLimit),v(1),cf(" ",i.characterCount.characters(),"",i.charLimit?"/"+i.charLimit:""," chars\n"),v(3),Xr("\n",i.characterCount.words()," words\n"),v(3),Xr("\n",i.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#b3b1b8;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();function Ppe(n,t){if(1&n&&ie(0,"dot-editor-count-bar",4),2&n){const e=w(2);C("characterCount",e.characterCount)("charLimit",e.charLimit)("readingTime",e.readingTime)}}const Fpe=function(n){return{"overflow-hidden":n}};function Rpe(n,t){if(1&n){const e=Re();ct(0),x(1,"div",1)(2,"tiptap-editor",2),K("ngModelChange",function(r){return re(e),oe(w().content=r)})("keyup",function(){return re(e),oe(w().subject.next())}),B()(),S(3,Ppe,1,3,"dot-editor-count-bar",3),ut()}if(2&n){const e=w();v(1),mn(e.customStyles),v(1),C("ngModel",e.content)("editor",e.editor)("ngClass",Wt(6,Fpe,e.freezeScroll)),v(1),C("ngIf",e.showCharData)}}let Lpe=(()=>{class n{constructor(e,i,r){this.injector=e,this.viewContainerRef=i,this.dotMarketingConfigService=r,this.lang=Bm,this.displayCountBar=!0,this.content="",this.valueChange=new te,this.subject=new Me,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Sie(this.injector)],["image",ui],["video",kie],["table",koe.extend({resizable:!0})]]),this.destroy$=new Me}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(wh.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const i=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...i]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const t=new RegExp(/]*)>(.|\n)*?<\/p>/gm),e=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),r=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Ote,o=>(n=>{const t=document.createElement("div");t.innerHTML=n;const e=t.querySelector("a").getAttribute("href"),i=t.querySelector("a").getAttribute("href"),r=t.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(nM,o=>o.replace(/img/gm,`img href="${e}" title="${i}" alt="${r}"`))})(o)).replace(t,o=>Tm(o)).replace(e,o=>Tm(o)).replace(i,o=>Tm(o)).replace(r,o=>Tm(o))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return bh(function*(){return Promise.all(e.map(function(){var i=bh(function*(r){return import(r)});return function(r){return i.apply(this,arguments)}}()))})()}ngOnInit(){Lt(this.getCustomRemoteExtensions()).pipe(Jn(1)).subscribe(e=>{this.editor=new Jee({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateChartCount()),this.subject.pipe(Vn(this.destroy$),kg(250)).subscribe(()=>this.updateChartCount()),this.editor.on("update",({editor:i})=>{this.valueChange.emit(JSON.stringify(i.getJSON()))}),this.editor.on("transaction",({editor:i})=>{this.freezeScroll=Mh.getState(i.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateChartCount(){const e=this.editor.state.tr.step(new ll("chartCount",this.characterCount.characters())).step(new ll("wordCount",this.characterCount.words())).step(new ll("readingTime",this.readingTime));this.editor.view.dispatch(e)}getParsedCustomBlocks(){try{return JSON.parse(this.customBlocks)}catch(e){return console.warn("JSON parse fails, please check the JSON format.",e),{extensions:[]}}}getCustomRemoteExtensions(){var e=this;return bh(function*(){const i=e.getParsedCustomBlocks(),r=i.extensions.map(l=>l.url),o=yield e.loadCustomBlocks(r),s=[];i.extensions.forEach(l=>{s.push(...l.actions.map(c=>c.name))});const a=o.reduce((l,c)=>({...l,...c}),{});return s.map(l=>a[l])})()}getEditorNodes(){return[this._allowedBlocks?.length>1?HQ.configure(this.starterConfig()):HQ,...this.getAllowedCustomNodes()]}starterConfig(){const r=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(s=>this._allowedBlocks?.includes(s)).map(s=>+s.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(s=>!this._allowedBlocks?.includes(s)).reduce((s,a)=>({...s,[a]:!1}),{});return{heading:!!r?.length&&{levels:r,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const i of this._allowedBlocks){const r=this._customNodes.get(i);r&&e.push(r)}return e}getEditorExtensions(){return[wre({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks}),The.configure({placeholder:this.placeholder}),Vte(this.viewContainerRef,this.getParsedCustomBlocks()),Roe(this.viewContainerRef),lse(this.injector,this.viewContainerRef),Xie(this.viewContainerRef),Mre(this.viewContainerRef),dre(this.viewContainerRef),Xoe(this.injector,this.viewContainerRef),Tre(this.viewContainerRef),ose(this.viewContainerRef),Bre.extend({renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),Bhe,cse,uhe]}getEditorMarks(){return[khe,Ohe.configure({types:["heading","paragraph","listItem","dotImage"]}),phe.configure({HTMLAttributes:{style:"background: #accef7;"}}),xhe.configure({autolink:!1,openOnClick:!1})]}placeholder({node:e}){return"heading"===e.type.name?`${function Npe(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(t){return t.charAt(0).toUpperCase()+t.slice(1)})}(e.type.name)} ${e.attrs.level}`:'Type "/" for commmands'}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,t)=>{const e=(n=>n.reduce((t,e)=>HR[e]?{...t,...HR[e]}:{...t,[e]:!0},Ste))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return VR(i,e)})(e):e}}return n.\u0275fac=function(e){return new(e||n)(T(Sn),T(Pi),T(UR))},n.\u0275cmp=ve({type:n,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,i){1&e&&S(0,Rpe,4,8,"ng-container",0),2&e&&C("ngIf",i.editor)},dependencies:[Un,Pt,Sd,lg,Ope,kpe],styles:['@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHFmNtYXAAAAFoAAAAVAAAAFQXVtN1Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAA+PAAAPjwt9TQjGhlYWQAAPq0AAAANgAAADYegaTEaGhlYQAA+uwAAAAkAAAAJAfqBMBobXR4AAD7EAAAA8wAAAPMwkwotGxvY2EAAP7cAAAB6AAAAeht864ebWF4cAABAMQAAAAgAAAAIAECAaduYW1lAAEA5AAAA5wAAAOcIOdgrHBvc3QAAQSAAAAAIAAAACAAAwAAAAMD/gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6e4DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOnu//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQDH/98C5gOfACkAAAU4ATEiJicBLgE1NDY3MQE+ATMyFhUUBgczCQEeARUUBgcxDgEjIjA5AQKnDRcI/l4JCQkJAaIIFg0aJAkIAf6KAXYICgoICRcMASEKCQGiCBcNDRcIAaIICSUaDBYI/or+iggXDQ0XCAkKAAAAAAEBGv/fA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BvAG4Ac01JVABNAEkAVGh0dHBzOi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUAGgAdAB0AHAAcwA6AC8ALwBvAHAAZQBuAHMAbwB1AHIAYwBlAC4AbwByAGcALwBsAGkAYwBlAG4AcwBlAHMALwBNAEkAVFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac3ByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcnByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4AcwADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:4.5rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5rem}[_nghost-%COMP%] .form__group{margin:1rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:4.5rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.5rem;right:0;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#7e7a86;display:block;font-size:.85rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:#524e5c99;display:block;font-size:.85rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#7e7a86;cursor:pointer;margin-left:1rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff9;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:.38}[_nghost-%COMP%] .p-text-secondary{color:#11152e}[_nghost-%COMP%] .pi{font-size:1rem}[_nghost-%COMP%] .p-link{font-size:1rem;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;border-radius:2px}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.5rem}[_nghost-%COMP%] .p-field>label{font-size:.85rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox, [_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] .p-button.p-autocomplete-dropdown{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(63,81,181,.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-autocomplete-dropdown{background:#fff;border:1px solid #b3b1b8;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left:none;padding:0;min-width:3rem}[_nghost-%COMP%] .p-autocomplete-dropdown:enabled:hover, [_nghost-%COMP%] .p-autocomplete-dropdown:enabled:focus{background:#f1f1f1;border:1px solid #b3b1b8;border-left:none}[_nghost-%COMP%] .p-autocomplete-dropdown .p-button-icon:before{color:gray}[_nghost-%COMP%] .p-badge{background:var(--color-main);color:#fff;font-size:.75rem;font-weight:700;min-width:1.5rem;height:1.5rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-sec);border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.5rem;height:2.5rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3rem;height:3rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#b3b1b8}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.75rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#b3b1b8;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:2px}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-main);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#7e7a86}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5rem;color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-button{background:var(--color-main);border-radius:2px;border:0 none;border:solid 1px transparent;color:#fff;font-size:1rem;font-weight:500;line-height:normal;padding:.75rem 2rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgba(var(--color-main_rgb),.72);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-button.p-button-text:enabled:focus{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain{color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:hover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:active{background:rgba(0,0,0,.16);color:#11152e}[_nghost-%COMP%] .p-button.p-button-vertical{font-size:1rem;padding:.5rem .75rem;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical:enabled:hover, [_nghost-%COMP%] .p-button.p-button-vertical:enabled:focus{color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical .p-button-icon{margin:0 0 .25rem;font-size:1.5rem}[_nghost-%COMP%] .p-button:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-button .p-button-icon-left{margin-right:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-right{margin-left:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-bottom{margin-top:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-top{margin-bottom:.5rem}[_nghost-%COMP%] .p-button .p-badge{margin-left:.5rem;min-width:1rem;height:1rem;line-height:1rem;color:var(--color-main);background-color:#fff}[_nghost-%COMP%] .p-button.p-button-raised{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-rounded{border-radius:2rem}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only{color:#524e5c;padding:.571rem;min-width:auto}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:hover{color:#524e5c}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:active, [_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:focus{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-button.p-button-icon-only{padding-left:.75rem;padding-right:.75rem}[_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-left, [_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-right{margin:0}[_nghost-%COMP%] .p-button.p-button-icon-only.p-button-rounded{border-radius:50%;height:3rem;width:3rem}[_nghost-%COMP%] .p-button.p-button-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-button.p-button-sm .p-button-icon{font-size:.85rem}[_nghost-%COMP%] .p-button.p-button-lg{font-size:1.5rem;padding:.75rem 2rem}[_nghost-%COMP%] .p-button.p-button-lg .p-button-icon{font-size:1.5rem}[_nghost-%COMP%] .p-fluid .p-button-icon-only{width:3rem}[_nghost-%COMP%] .p-fluid .p-buttonset{display:flex}[_nghost-%COMP%] .p-fluid .p-buttonset .p-button{flex:1}[_nghost-%COMP%] .p-button.p-button-disabled, [_nghost-%COMP%] .p-buttonset.p-button-disabled>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-disabled>.p-button{color:#b3b1b8;background:rgba(0,0,0,.12);border:none}[_nghost-%COMP%] .p-button.p-button-secondary, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button{color:var(--color-sec);border-top:1px solid var(--color-sec);border-left:1px solid var(--color-sec);border-bottom:1px solid var(--color-sec);background:none}[_nghost-%COMP%] .p-button.p-button-secondary{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:hover{background:none;border-right:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary:disabled{border-color:transparent}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover{border-top:1px solid var(--color-main);border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton{border-left:1px solid var(--color-main)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject:hover{border-color:var(--color-main);background:none}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus{background:none;border-color:transparent;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-info, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button{color:#fff;background:#2196f3;border:0 none}[_nghost-%COMP%] .p-button.p-button-info:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:hover{background:rgba(33,150,243,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-info:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-info:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:active{background:rgba(33,150,243,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button{color:#fff;background:#d32f2f;border:0 none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:hover{background:rgba(211,47,47,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text{background-color:transparent;color:#d32f2f;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:hover{background:rgba(211,47,47,.04);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-link{color:var(--color-main);background:transparent;border:transparent;text-decoration:underline}[_nghost-%COMP%] .p-button-label{text-transform:uppercase;font-weight:500}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover{background:transparent;border-color:transparent;color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover .p-button-label{text-decoration:underline}[_nghost-%COMP%] .p-button.p-button-link:enabled:focus{background:transparent;box-shadow:none;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link:enabled:active{background:transparent;color:transparent;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link.p-button-sm{padding:0 .75rem}[_nghost-%COMP%] .p-button .p-ink{background-color:rgba(var(--color-white_rgb),.32)}[_nghost-%COMP%] .p-button:disabled{background-color:#0000001f!important;color:#b3b1b8!important;opacity:1}[_nghost-%COMP%] .p-button:disabled.p-button-link{background-color:transparent!important}[_nghost-%COMP%] .p-button:disabled.p-button-text{background-color:transparent!important;color:#b3b1b8!important}[_nghost-%COMP%] .p-button:disabled.p-button-outlined{background-color:transparent!important;border-color:#b3b1b8;color:#b3b1b8}[_nghost-%COMP%] .p-button.p-button-raised:enabled:focus{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:focus{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:focus{background:rgba(255,64,129,.12)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:active{background:rgba(255,64,129,.16)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text .p-ink{background-color:#ff408129}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{background:rgba(211,47,47,.76)}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:focus{background:rgba(211,47,47,.12)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text .p-ink{background-color:#d32f2f29}[_nghost-%COMP%] .p-button.p-button-outlined{background-color:transparent;color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:hover{background:rgba(33,150,243,.04);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:active{background:rgba(33,150,243,.16);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain{color:#6c757d;border-color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:hover{background:#e9ecef;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:active{background:#dee2e6;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined{background-color:transparent;color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:hover{background:rgba(96,125,139,.04);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:active{background:rgba(96,125,139,.16);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined{background-color:transparent;color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:hover{background:rgba(2,136,209,.04);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:active{background:rgba(2,136,209,.16);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined{background-color:transparent;color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:hover{background:rgba(104,159,56,.04);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:active{background:rgba(104,159,56,.16);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined{background-color:transparent;color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:hover{background:rgba(251,192,45,.04);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:active{background:rgba(251,192,45,.16);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined{background-color:transparent;color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:hover{background:rgba(156,39,176,.04);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:active{background:rgba(156,39,176,.16);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined{background-color:transparent;color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:hover{background:rgba(211,47,47,.04);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:active{background:rgba(211,47,47,.16);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #b3b1b8;background:#ffffff;border-radius:2px}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background-image:none;background:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#b3b1b8;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-datepicker{padding:.5rem;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5rem;color:#11152e;background:#ffffff;font-weight:500;margin:0;border-bottom:1px solid #e2e2e2;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{line-height:2rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3rem;height:3rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3rem;height:3rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#11152e;border-color:#b3b1b8}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.75rem 0;border-top:1px solid #e2e2e2}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #e2e2e2;padding:.5rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5rem;transition:none;border-radius:2px}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #e2e2e2;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{border-bottom:0 none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table th{border-bottom:1px solid #e2e2e2;color:#b3b1b8;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d0021b}@keyframes checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #7e7a86;background:#ffffff;width:18px;height:18px;color:#11152e;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-main);background:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:var(--color-main);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d0021b}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5rem}[_nghost-%COMP%] .p-checkbox{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px #3f51b50a}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-contextmenu{padding:.5rem 0;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #e2e2e2;border-width:0 0 1px 0;color:#7e7a86;font-size:.85rem;font-weight:500;padding:.75rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.75rem;border:1px solid #b3b1b8;border-width:0 0 1px 0;font-weight:500;color:#11152e;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline-color:transparent}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#7e7a86;margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-main);background:rgba(var(--color-sec_rgb),.12);margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#11152e;height:4rem;transition:none;outline-color:transparent;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #e2e2e2;border-width:0 0 1px 0;padding:.5rem .75rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f1f3f4;color:#7e7a86;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f1f3f4;color:#7e7a86}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-sec)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:rgba(var(--color-sec_rgb),.05);color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{outline:0 none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border:0 none}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#11152e;padding:2.5rem;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem;font-size:1.7rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#11152e;padding:0 2.5rem 2.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#11152e;padding:1.5rem;text-align:right;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:3rem}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:#11152ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] .p-dropdown{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px}[_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown.p-dropdown-clearable .p-dropdown-label{padding-right:2.5rem}[_nghost-%COMP%] .p-dropdown .p-dropdown-label{background:transparent;border:0 none}[_nghost-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-dropdown .p-dropdown-label:enabled:focus{outline:0 none;box-shadow:none}[_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:transparent;color:#1b3359;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:#11152e;right:2.357rem}[_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:3rem}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#d0021b}[_nghost-%COMP%] .p-dropdown .p-inputtext, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-dropdown .p-inputtext{border:0 none}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-dropdown-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-dropdown-sm .p-dropdown .p-dropdown-label{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-float-label>label{left:.75rem;color:#11152e;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1rem;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputgroup-addon{background:#ffffff;color:#11152e;border-top:1px solid #b3b1b8;border-left:1px solid #b3b1b8;border-bottom:1px solid #b3b1b8;padding:.75rem;min-width:2.357rem}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:1px solid #b3b1b8}[_nghost-%COMP%] .p-inputgroup>.p-component, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component{border-radius:0;margin:0}[_nghost-%COMP%] .p-inputgroup>.p-component+.p-inputgroup-addon, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component+.p-inputgroup-addon{border-left:0 none}[_nghost-%COMP%] .p-inputgroup>.p-component:focus, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus{z-index:1}[_nghost-%COMP%] .p-inputgroup>.p-component:focus~label, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus~label{z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup button:first-child, [_nghost-%COMP%] .p-inputgroup input:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:first-child input{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup button:last-child, [_nghost-%COMP%] .p-inputgroup input:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:last-child input{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputswitch{width:2.75rem;height:1rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.5rem;height:1.5rem;left:-1px;margin-top:-.75rem;border-radius:50%;transition-duration:.2s}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.5rem)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#b3b1b8}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{background:var(--color-main)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{transition-property:box-shadow transform;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f,0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #0000001f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #p-inputtext-extend, [_nghost-%COMP%] .p-inputtext{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;background:#ffffff;padding:.75rem;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);-webkit-appearance:none;appearance:none;border-radius:2px}[_nghost-%COMP%] #p-inputtext-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover{border-color:var(--color-main)}[_nghost-%COMP%] #p-inputtext-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-inputtext.p-inputtext-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-inputtext.p-inputtext-lg{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-input-icon-left>i:first-of-type{left:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-left>.p-inputtext{padding-left:2.5rem}[_nghost-%COMP%] .p-input-icon-right>i:last-of-type{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-right>.p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] ::-webkit-input-placeholder{color:#7e7a86}[_nghost-%COMP%] :-moz-placeholder{color:#11152e}[_nghost-%COMP%] ::-moz-placeholder{color:#11152e}[_nghost-%COMP%] :-ms-input-placeholder{color:#11152e}[_nghost-%COMP%] .p-input-filled .p-inputtext{background-color:#f5f5f5}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:hover{background-color:#ececec}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:focus{background-color:#dcdcdc}[_nghost-%COMP%] .p-inputtext-sm .p-inputtext{font-size:.875rem;padding:.65625rem}[_nghost-%COMP%] .p-inputtext-lg .p-inputtext{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.75rem;border:0 none;color:#11152e;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu{padding:.5rem 0;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-inline-message{padding:.75rem;margin:0;border-radius:2px}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.75rem 0;border-radius:2px}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1rem 1.5rem}[_nghost-%COMP%] .p-message .p-message-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5rem}[_nghost-%COMP%] .p-multiselect{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px;min-width:13rem}[_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{padding:.75rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:transparent;color:#11152e;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-open{border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus{outline:0 none;outline-offset:0;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{border:0 none}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#524e5c}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.5rem;padding:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label.p-placeholder{padding:1rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{align-items:center;background:rgba(var(--color-main_rgb),.1);border-radius:4px;color:rgb(var(--color-main_rgb));display:flex;gap:.5rem;justify-content:center;margin-right:.5rem;padding:.5rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:.75rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-main);color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:rgba(var(--color-sec_rgb),.12);color:#fff}[_nghost-%COMP%] .p-overlaypanel:after{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel:before{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:after{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:before{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.5rem}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#11152e;border:solid #e2e2e2;border-width:0;padding:.375rem .75rem;border-radius:2px;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5rem;height:3rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;padding:0 .5rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f1f3f4;border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:rgba(var(--color-sec_rgb),.12);border-radius:2px}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-main)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#11152e;line-height:4px}[_nghost-%COMP%] .p-progressbar{border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{display:none}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #7e7a86;background:#ffffff;width:20px;height:20px;color:#11152e;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-main);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:#ffffff;color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5rem}[_nghost-%COMP%] .p-radiobutton{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{border:2px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #b3b1b8;color:#7e7a86;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:rgba(var(--color-sec_rgb),.12);color:#524e5c}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#7e7a86}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:rgba(var(--color-sec_rgb),.12);border-color:#b3b1b8;color:#524e5c}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #b3b1b8;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1rem 2rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#524e5c;box-shadow:0 -4px 0 0 var(--color-main) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-splitbutton>.p-button:disabled{border-color:#00000003}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled){border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled):hover{border-right:1px solid var(--color-main)}[_nghost-%COMP%] .p-splitbutton-menubutton.p-button{min-width:unset}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);color:var(--color-main);border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);border-right:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton{padding:0 1rem}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton:disabled{border-left:1px solid #b3b1b8}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;color:#11152e;padding:1.2rem 2.5rem 1.35rem;font-weight:500;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:rgba(var(--color-sec_rgb),.12);color:#11152e;background-clip:padding-box;border-bottom:4px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-sec)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#11152e;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-tabview .p-tabview-nav{position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border-radius:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1rem;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;border-radius:2px}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.5rem;border-width:0 0 0 0;align-items:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 0 0 1rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toast .p-toast-message{border:solid transparent;border-width:0 0 0 0;color:#11152e}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-icon{color:#fff;background:var(--color-sec);border-radius:50%;display:flex;justify-content:center;align-items:center;padding:.5rem;align-self:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{color:#524e5c;position:absolute;top:.75rem;right:.75rem}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #b3b1b8;display:flex;padding:1rem 1.5rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:rgba(97,97,97,.9);color:#fff;padding:.75rem 1rem;font-size:1rem;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#616161e6}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{box-shadow:none}[_nghost-%COMP%] .p-tree{border:1px solid #b3b1b8;background:#ffffff;color:#11152e;padding:.75rem;border-radius:2px}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:2px;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:2px;border:1px solid #b3b1b8;background-color:#fff;color:#11152e;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-skeleton{background-color:#e9ecef;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0))}[_nghost-%COMP%] .p-tieredmenu{padding:.5rem 0;background:#ffffff;border:0 none;border-radius:2px;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.75rem;color:var(--color-background);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px #0003}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.5rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2rem;height:2rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:p-component-overlay-leave-animation .15s forwards}@keyframes p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:#11152ecc}}@keyframes p-component-overlay-leave-animation{0%{background-color:#11152ecc}to{background-color:transparent}}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.75rem;top:0;left:0;background:#ffffff;color:#524e5c;border:0 none;border-radius:2px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-message{margin-left:1rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:.75rem 1.5rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.75rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.5rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-content{display:flex;align-items:center;padding:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-card{background:#ffffff;color:#524e5c;border:1px solid #e2e2e2;border-radius:4px}[_nghost-%COMP%] .p-card .p-card-header{padding:1rem 1rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5rem;color:#7e7a86}[_nghost-%COMP%] .p-card .p-card-body{padding:1.5rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5rem .75rem;width:100%}[_nghost-%COMP%] .p-slider{background:#e2e2e2;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-main);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-main_mod)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-main)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-main);border-color:var(--color-main)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-main);color:#fff;font-size:1rem;font-weight:400;padding:.5rem 1rem;border-radius:7px}[_nghost-%COMP%] .p-tag.p-tag-success{background-color:#f5fdf8;color:#3ed97a}[_nghost-%COMP%] .p-tag.p-tag-info{background-color:#f7f9fe;color:var(--color-main)}[_nghost-%COMP%] .p-tag.p-tag-warning{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] .p-tag.p-tag-danger{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5rem;font-size:.75rem}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#d0021b}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#d0021b}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#d0021b}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#d0021b}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#d0021b}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#d0021b}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#d0021b}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#d0021b}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#d0021b}[_nghost-%COMP%] .p-password-panel{padding:.75rem;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5rem}[_nghost-%COMP%] :root{--color-background: #3a3847;--color-main: #6b4de2;--color-main_mod: #8674c0;--color-main_rgb: 107, 77, 226;--color-sec: #6f5fa3;--color-sec_rgb: 111, 95, 163;--color-white: #fff;--color-white_rgb: 255, 255, 255;--empty-message: ""}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff) format("woff");}}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{color:#11152e;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14px;height:100%;margin:0;padding:0}[_nghost-%COMP%] html{-ms-overflow-style:-ms-autohiding-scrollbar}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-main)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-sec)}[_nghost-%COMP%] a[actionlink]{color:var(--color-sec);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:fa-spin 2s infinite linear}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Roboto,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:4px;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#b3b1b8 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-main)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f1f3f4;border-radius:3px;border:1px solid #b3b1b8;color:#7e7a86;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px;line-height:41.2128px;padding-top:6.88px;margin-bottom:13.76px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px;line-height:41.12px;padding-top:10.4px;margin-bottom:10.4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px;line-height:41.2px;padding-top:41.2px;margin-bottom:8px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px;line-height:41.28px;padding-top:13.76px;margin-bottom:6.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid rgba(17,21,46,.1);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#11152e;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#b3b1b8;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #b3b1b8;box-sizing:border-box;min-width:1rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f1f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#e2e2e2}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] video{max-width:100%;max-height:100%;height:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .vertical-video{max-height:400px;width:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-container{margin-bottom:1rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']}),n})(),Qpe=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function q5(n,t){const e=function V5(n,t){return t.get(As).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new J5(n,t.injector),r=function H5(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function L5(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends $5{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(Lpe,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}return n.\u0275fac=function(e){return new(e||n)(j(Sn))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[s1,WJ,Kt,ug,che,AC,lC,dE]}),n})();(function OG(){if(oT)throw new Error("Cannot enable prod mode after platform setup.");rT=!1})(),t5().bootstrapModule(Qpe).catch(n=>console.error(n))},222:(Ur,El,pu)=>{Ur=pu.nmd(Ur);var ca="__lodash_hash_undefined__",ua=9007199254740991,Ar="[object Arguments]",da="[object Array]",ha="[object Boolean]",We="[object Date]",fu="[object Error]",pa="[object Function]",Ge="[object Map]",gu="[object Number]",rs="[object Object]",ss="[object Promise]",Zh="[object RegExp]",fa="[object Set]",et="[object String]",br="[object WeakMap]",mu="[object ArrayBuffer]",ga="[object DataView]",Ew=/^\[object .+?Constructor\]$/,qA=/^(?:0|[1-9]\d*)$/,vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt[Ar]=vt[da]=vt[mu]=vt[ha]=vt[ga]=vt[We]=vt[fu]=vt[pa]=vt[Ge]=vt[gu]=vt[rs]=vt[Zh]=vt[fa]=vt[et]=vt[br]=!1;var Au="object"==typeof global&&global&&global.Object===Object&&global,ip="object"==typeof self&&self&&self.Object===Object&&self,Di=Au||ip||Function("return this")(),rp=El&&!El.nodeType&&El,op=rp&&Ur&&!Ur.nodeType&&Ur,Ml=op&&op.exports===rp,bu=Ml&&Au.process,sp=function(){try{return bu&&bu.binding&&bu.binding("util")}catch{}}(),ap=sp&&sp.isTypedArray;function ma(_,M){for(var R=-1,z=null==_?0:_.length;++RTe))return!1;var at=F.get(_);if(at&&F.get(M))return at==M;var nt=-1,dn=!0,Qe=2&R?new vu:void 0;for(F.set(_,M),F.set(M,_);++nt-1},un.prototype.set=function ib(_,M){var R=this.__data__,z=Ea(R,_);return z<0?(++this.size,R.push([_,M])):R[z][1]=M,this},us.prototype.clear=function rb(){this.size=0,this.__data__={hash:new Do,map:new(Mo||un),string:new Do}},us.prototype.delete=function Ow(_){var M=Iu(this,_).delete(_);return this.size-=M?1:0,M},us.prototype.get=function Zn(_){return Iu(this,_).get(_)},us.prototype.has=function tt(_){return Iu(this,_).has(_)},us.prototype.set=function kw(_,M){var R=Iu(this,_),z=R.size;return R.set(_,M),this.size+=R.size==z?0:1,this},vu.prototype.add=vu.prototype.push=function Pw(_){return this.__data__.set(_,ca),this},vu.prototype.has=function Y(_){return this.__data__.has(_)},Io.prototype.clear=function Pe(){this.__data__=new un,this.size=0},Io.prototype.delete=function Sl(_){var M=this.__data__,R=M.delete(_);return this.size=M.size,R},Io.prototype.get=function ob(_){return this.__data__.get(_)},Io.prototype.has=function gp(_){return this.__data__.has(_)},Io.prototype.set=function sb(_,M){var R=this.__data__;if(R instanceof un){var z=R.__data__;if(!Mo||z.length<199)return z.push([_,M]),this.size=++R.size,this;R=this.__data__=new us(z)}return R.set(_,M),this.size=R.size,this};var mt=hp?function(_){return null==_?[]:(_=Object(_),function yu(_,M){for(var R=-1,z=null==_?0:_.length,Le=0,F=[];++R-1&&_%1==0&&_-1&&_%1==0&&_<=ua}function Fe(_){var M=typeof _;return null!=_&&("object"==M||"function"==M)}function va(_){return null!=_&&"object"==typeof _}var Ou=ap?function Aa(_){return function(M){return _(M)}}(ap):function lb(_){return va(_)&&Bu(_.length)&&!!vt[So(_)]};function ue(_){return function cb(_){return null!=_&&Bu(_.length)&&!Tu(_)}(_)?function ab(_,M){var R=zr(_),z=!R&&_r(_),Le=!R&&!z&&ve(_),F=!R&&!z&&!Le&&Ou(_),ee=R||z||Le||F,Te=ee?function Cw(_,M){for(var R=-1,z=Array(_);++R<_;)z[R]=M(R);return z}(_.length,String):[],st=Te.length;for(var at in _)(M||Hi.call(_,at))&&(!ee||!("length"==at||Le&&("offset"==at||"parent"==at)||F&&("buffer"==at||"byteLength"==at||"byteOffset"==at)||Rw(at,st)))&&Te.push(at);return Te}(_):function hi(_){if(!function Tl(_){var M=_&&_.constructor;return _===("function"==typeof M&&M.prototype||cs)}(_))return Eu(_);var M=[];for(var R in Object(_))Hi.call(_,R)&&"constructor"!=R&&M.push(R);return M}(_)}Ur.exports=function hs(_,M){return mp(_,M)}}},Ur=>{Ur(Ur.s=203)}]); \ No newline at end of file