@piserve-tech/octa-form-submission-webcomponent 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copy-assets.js +47 -0
- package/dist/assets/fonts/Garamond.woff2 +0 -0
- package/dist/assets/fonts/Georgia.woff2 +0 -0
- package/dist/assets/fonts/Poppins.woff2 +0 -0
- package/dist/assets/fonts/Tahoma.woff2 +0 -0
- package/dist/assets/fonts/Tajawal.woff2 +0 -0
- package/dist/assets/fonts/Verdana.woff2 +0 -0
- package/dist/assets/icons/copy-icon.svg +6 -0
- package/dist/assets/icons/delete-icon.svg +8 -0
- package/dist/assets/icons/left_arrow.svg +3 -0
- package/dist/assets/icons/right_arrow.svg +3 -0
- package/dist/bundle.css +18 -0
- package/dist/bundle.js +4 -0
- package/package.json +14 -10
package/dist/bundle.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(()=>{"use strict";var e,m={},_={};function r(e){var i=_[e];if(void 0!==i)return i.exports;var t=_[e]={exports:{}};return m[e].call(t.exports,t,t.exports,r),t.exports}r.m=m,e=[],r.O=(i,t,a,f)=>{if(!t){var n=1/0;for(o=0;o<e.length;o++){for(var[t,a,f]=e[o],c=!0,u=0;u<t.length;u++)(!1&f||n>=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(c=!1,f<n&&(n=f));if(c){e.splice(o--,1);var d=a();void 0!==d&&(i=d)}}return i}f=f||0;for(var o=e.length;o>0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,a,f]},(()=>{var i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,a){if(1&a&&(t=this(t)),8&a||"object"==typeof t&&t&&(4&a&&t.__esModule||16&a&&"function"==typeof t.then))return t;var f=Object.create(null);r.r(f);var o={};i=i||[null,e({}),e([]),e(e)];for(var n=2&a&&t;"object"==typeof n&&!~i.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(c=>o[c]=()=>t[c]);return o.default=()=>t,r.d(f,o),f}})(),r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>"quill.426e6e697a90fb6d.js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="octa-form-submission-webcomponent:";r.l=(t,a,f,o)=>{if(e[t])e[t].push(a);else{var n,c;if(void 0!==f)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var s=u[d];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==i+f){n=s;break}}n||(c=!0,(n=document.createElement("script")).type="module",n.charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",i+f),n.src=r.tu(t)),e[t]=[a];var l=(v,b)=>{n.onerror=n.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),g&&g.forEach(h=>h(b)),v)return v(b)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),c&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:i=>i},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(a,f)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)f.push(o[2]);else if(121!=a){var n=new Promise((s,l)=>o=e[a]=[s,l]);f.push(o[2]=n);var c=r.p+r.u(a),u=new Error;r.l(c,s=>{if(r.o(e,a)&&(0!==(o=e[a])&&(e[a]=void 0),o)){var l=s&&("load"===s.type?"missing":s.type),p=s&&s.target&&s.target.src;u.message="Loading chunk "+a+" failed.\n("+l+": "+p+")",u.name="ChunkLoadError",u.type=l,u.request=p,o[1](u)}},"chunk-"+a,a)}else e[a]=0},r.O.j=a=>0===e[a];var i=(a,f)=>{var u,d,[o,n,c]=f,s=0;if(o.some(p=>0!==e[p])){for(u in n)r.o(n,u)&&(r.m[u]=n[u]);if(c)var l=c(r)}for(a&&a(f);s<o.length;s++)r.o(e,d=o[s])&&e[d]&&e[d][0](),e[d]=0;return r.O(l)},t=self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[];t.forEach(i.bind(null,0)),t.push=i.bind(null,t.push.bind(t))})()})();
|
|
2
|
+
"use strict";(self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[461],{6935:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static{this.__symbol__=a}static assertZonePatched(){if(e.Promise!==oe.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 t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return L})();const b={name:"",onHasTask:(L,T,t,r)=>L.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(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 M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;T<L.length;T++){const t=L[T];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const J={name:"NO ZONE"},x="notScheduled",X="scheduling",A="scheduled",E="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("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,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),Pe={},Ue=function(e){if(!(e=e||Y.event))return;let n=Pe[e.type];n||(n=Pe[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Pe[d];b||(b=Pe[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,Ue),y&&y.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(e,n,o),e[c]=!0}function qe(e,n,i){if(n)for(let o=0;o<n.length;o++)We(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)We(e,o[c],i)}}const ne=j("originalInstance");function ge(e){const n=Y[e];if(!n)return;Y[j(e)]=n,Y[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},le(Y[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:me(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),le(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[e][o]=n[o])}function ae(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=ve(o);!o&&e[n]&&(o=e);const c=j(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Ve(o&&ue(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},le(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=ae(e,n,a=>function(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(P){return f(()=>{z(l,!1,P)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(P){f(()=>{z(l,!1,P)})()}else{l[q]=u;const P=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p<P.length;)ee(l,P[p++],P[p++],P[p++],P[p++]);if(0==P.length&&u==G){l[q]=h;let p=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(S){p=S}b&&(p.throwOriginal=!0),p.rejection=s,p.promise=l,p.zone=n.current,p.task=n.currentTask,d.push(p),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(l[q]===h){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch{}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const P=l[q],p=P?"function"==typeof f?f:H:"function"==typeof g?g:K;u.scheduleMicroTask(X,()=>{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=P);const D=u.run(p,void 0,Z&&p!==K&&p!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(t.resolve(p))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const P=[];return new t((p,S)=>{for(let Z=0;Z<s.length;Z++)s[Z].then(D=>{g||(g=!0,p(D))},D=>{P.push(D),f--,0===f&&(g=!0,S(new T(P,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function P(S){s(S)}function p(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(P,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,P=new this((D,V)=>{f=D,g=V}),p=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,p--,0===p&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),p--,0===p&&f(Z)):g(F)})}catch(F){g(F)}p++,S++}return p-=2,0===p&&f(Z),P}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),P=n.current;return this[q]==A?this[R].push(P,g,u,s):ee(this,P,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,P){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,P)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=pe+i,a=pe+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",m="prependListener",M="."+m+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G<E.length&&(!_||!0!==_[$e]);G++){const h=O(E[G],x,_);h&&A.push(h)}}if(1===A.length)throw A[0];for(let E=0;E<A.length;E++){const G=A[E];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],w=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const P=g&&s.target[g];if(P)for(let p=0;p<P.length;p++)if(P[p]===s){P.splice(p,1),s.isRemoved=!0,0===P.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[j("UNPATCHED_EVENTS")],l=e[j("PASSIVE_EVENTS")],u=function(s,f,g,P,p=!1,S=!1){return function(){const Z=this||e;let D=arguments[0];_&&_.transferEventName&&(D=_.transferEventName(D));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===D)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,Z,arguments))return;const fe=Ee&&!!l&&-1!==l.indexOf(D),se=function U(s,f){return!Ee&&"object"==typeof s&&s?!!s.capture:Ee&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],fe);if($)for(let de=0;de<$.length;de++)if(D===$[de])return fe?s.call(Z,D,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),tt=!(!se||"object"!=typeof se)&&se.once,kt=Zone.current;let Ge=te[D];Ge||(Je(D,G),Ge=te[D]);const nt=Ge[xe?ie:ce];let Ce,ye=Z[nt],rt=!1;if(ye){if(rt=!0,X)for(let de=0;de<ye.length;de++)if(C(ye[de],V))return}else ye=Z[nt]=[];const ot=Z.constructor.name,st=ze[ot];st&&(Ce=st[D]),Ce||(Ce=ot+f+(G?G(D):D)),h.options=se,tt&&(h.options.once=!1),h.target=Z,h.capture=xe,h.eventName=D,h.isExisting=rt;const ke=J?ht:void 0;ke&&(ke.taskData=h);const he=kt.scheduleEventTask(Ce,V,ke,g,P);return h.target=null,ke&&(ke.taskData=null),tt&&(se.once=!0),!Ee&&"boolean"==typeof he.options||(he.options=se),he.target=Z,he.capture=xe,he.eventName=D,F&&(he.originalDelegate=V),S?ye.unshift(he):ye.push(he),p?Z:void 0}};return E[c]=u(I,v,t,r,A),z&&(E[m]=u(z,M,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,A,!0)),E[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],P=!!g&&("boolean"==typeof g||g.capture),p=arguments[1];if(!p)return w.apply(this,arguments);if(x&&!x(w,p,s,arguments))return;const S=te[f];let Z;S&&(Z=S[P?ie:ce]);const D=Z&&s[Z];if(D)for(let V=0;V<D.length;V++){const F=D[V];if(C(F,p))return D.splice(V,1),F.isRemoved=!0,0===D.length&&(F.allRemoved=!0,s[Z]=null,"string"==typeof f)&&(s[pe+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),A?s:void 0}return w.apply(this,arguments)},E[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],P=Ke(s,G?G(f):f);for(let p=0;p<P.length;p++){const S=P[p];g.push(S.originalDelegate?S.originalDelegate:S.callback)}return g},E[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const S=s[g[ce]],Z=s[g[ie]];if(S){const D=S.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(Z){const D=Z.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let P=0;P<g.length;P++){const S=Ye.exec(g[P]);let Z=S&&S[1];Z&&"removeListener"!==Z&&this[d].call(this,Z)}this[d].call(this,"removeListener")}if(A)return this},le(E[c],I),le(E[a],w),oe&&le(E[d],oe),Q&&le(E[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=K(i[R],o);return q}function Ke(e,n){if(!n){const a=[];for(let y in e){const d=Ye.exec(y);let b=d&&d[1];if(b&&(!n||b===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=e[i[ce]],c=e[i[ie]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,n+=o,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Me(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=ae(e,i,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)ae(e,i[o],(a,y,d)=>function(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b<i.length;b++){const v=i[b],O=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=O,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&et(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function mt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Oe],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===K){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===K&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),E.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const J=ae(M,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const w=function O(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Ve(ue(e,c)))continue;e[c]=(d=>{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=6935)}]);
|
|
3
|
+
(self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[58],{7436:function(ct){typeof self<"u"&&self,ct.exports=function(B){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return B[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=B,p.c=O,p.d=function(P,T,w){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:w})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),w=p(19),m=p(45),y=p(46),c=p(47),o=p(48),t=p(49),e=p(12),u=p(32),l=p(33),a=p(31),r=p(1);O.default={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:T.default,Leaf:w.default,Embed:o.default,Scroll:m.default,Block:c.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}}},function(B,O,p){"use strict";var a,P=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])},function(r,i){function f(){this.constructor=r}a(r,i),r.prototype=null===i?Object.create(i):(f.prototype=i.prototype,new f)});Object.defineProperty(O,"__esModule",{value:!0});var T=function(a){function r(i){var f=this;return(f=a.call(this,i="[Parchment] "+i)||this).message=i,f.name=f.constructor.name,f}return P(r,a),r}(Error);O.ParchmentError=T;var o,w={},m={},y={},c={};function u(a,r){var i;if(void 0===r&&(r=o.ANY),"string"==typeof a)i=c[a]||w[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if("number"==typeof a)a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=m[f[n]])break;i=i||y[a.tagName]}return null==i?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}O.DATA_KEY="__blot",function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"}(o=O.Scope||(O.Scope={})),O.create=function t(a,r){var i=u(a);if(null==i)throw new T("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)},O.find=function e(a,r){return void 0===r&&(r=!1),null==a?null:null!=a[O.DATA_KEY]?a[O.DATA_KEY].blot:r?e(a.parentNode,r):null},O.query=u,O.register=function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new T("Invalid definition");if("abstract"===i.blotName)throw new T("Cannot register abstract class");return c[i.blotName||i.attrName]=i,"string"==typeof i.keyName?w[i.keyName]=i:(null!=i.className&&(m[i.className]=i),null!=i.tagName&&(i.tagName=Array.isArray(i.tagName)?i.tagName.map(function(n){return n.toUpperCase()}):i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(function(n){(null==y[n]||null==i.className)&&(y[n]=i)}))),i}},function(B,O,p){var P=p(51),T=p(11),w=p(3),m=p(20),y=String.fromCharCode(0),c=function(o){this.ops=Array.isArray(o)?o:null!=o&&Array.isArray(o.ops)?o.ops:[]};c.prototype.insert=function(o,t){var e={};return 0===o.length?this:(e.insert=o,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=w(!0,{},o),"object"==typeof e){if("number"==typeof o.delete&&"number"==typeof e.delete)return this.ops[t-1]={delete:e.delete+o.delete},this;if("number"==typeof e.delete&&null!=o.insert&&"object"!=typeof(e=this.ops[(t-=1)-1]))return this.ops.unshift(o),this;if(T(o.attributes,e.attributes)){if("string"==typeof o.insert&&"string"==typeof e.insert)return this.ops[t-1]={insert:e.insert+o.insert},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this;if("number"==typeof o.retain&&"number"==typeof e.retain)return this.ops[t-1]={retain:e.retain+o.retain},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){(o(u)?t:e).push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+m.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+m.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,"number"!=typeof t&&(t=1/0);for(var e=[],u=m.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=m.length(a)}return new c(e)},c.prototype.compose=function(o){var t=m.iterator(this.ops),e=m.iterator(o.ops),u=[],l=e.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var a=l.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);t.hasNext()||e.hasNext();)if("insert"===e.peekType())r.push(e.next());else if("delete"===t.peekType())r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if("number"==typeof n.retain){var s={};"number"==typeof f.retain?s.retain=i:s.insert=f.insert;var A=m.attributes.compose(f.attributes,n.attributes,"number"==typeof f.retain);if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&T(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else"number"==typeof n.delete&&"number"==typeof f.retain&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(null!=f.insert)return"string"==typeof f.insert?f.insert:y;throw new Error("diff() called "+(i===o?"on":"with")+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=m.iterator(this.ops),r=m.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);T(s.insert,A.insert)?u.retain(n,m.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n)}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||"\n";for(var e=m.iterator(this.ops),u=new c,l=0;e.hasNext();){if("insert"!==e.peekType())return;var a=e.peek(),r=m.length(a)-e.peekLength(),i="string"==typeof a.insert?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(!1===o(u,e.next(1).attributes||{},l))return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,"number"==typeof o)return this.transformPosition(o,t);for(var e=m.iterator(this.ops),u=m.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if("insert"!==e.peekType()||!t&&"insert"===u.peekType())if("insert"===u.peekType())l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,m.attributes.transform(r.attributes,i.attributes,t))}else l.retain(m.length(e.next()));return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=m.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();e.next(),"delete"!==a?("insert"===a&&(u<o||!t)&&(o+=l),u+=l):o-=Math.min(l,o-u)}return o},B.exports=c},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,T=Object.defineProperty,w=Object.getOwnPropertyDescriptor,m=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===P.call(e)},y=function(e){if(!e||"[object Object]"!==P.call(e))return!1;var a,u=p.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;for(a in e);return typeof a>"u"||p.call(e,a)},c=function(e,u){T&&"__proto__"===u.name?T(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if("__proto__"===u){if(!p.call(e,u))return;if(w)return w(e,u).value}return e[u]};B.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for("boolean"==typeof f&&(A=f,f=arguments[1]||{},n=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});n<s;++n)if(null!=(e=arguments[n]))for(u in e)l=o(f,u),f!==(a=o(e,u))&&(A&&a&&(y(a)||(r=m(a)))?(r?(r=!1,i=l&&m(l)?l:[]):i=l&&y(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&c(f,{name:u,newValue:a}));return f}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),T=function h(d,k,_){null===d&&(d=Function.prototype);var q=Object.getOwnPropertyDescriptor(d,k);if(void 0===q){var D=Object.getPrototypeOf(d);return null===D?void 0:h(D,k,_)}if("value"in q)return q.value;var C=q.get;return void 0===C?void 0:C.call(_)},m=f(p(3)),c=f(p(2)),t=f(p(0)),u=f(p(16)),a=f(p(6)),i=f(p(7));function f(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}function A(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var b=function(h){function d(){return n(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return A(d,h),P(d,[{key:"attach",value:function(){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new c.default).insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(_,q){var D=t.default.query(_,t.default.Scope.BLOCK_ATTRIBUTE);null!=D&&this.attributes.attribute(D,q)}},{key:"formatAt",value:function(_,q,D,C){this.format(D,C)}},{key:"insertAt",value:function(_,q,D){if("string"==typeof q&&q.endsWith("\n")){var C=t.default.create(N.blotName);this.parent.insertBefore(C,0===_?this:this.next),C.insertAt(0,q.slice(0,-1))}else T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D)}}]),d}(t.default.Embed);b.scope=t.default.Scope.BLOCK_BLOT;var N=function(h){function d(k){n(this,d);var _=s(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k));return _.cache={},_}return A(d,h),P(d,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(_,q){return 0===q.length()?_:_.insert(q.value(),v(q))},new c.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,_,q),this.cache={}}},{key:"formatAt",value:function(_,q,D,C){q<=0||(t.default.query(D,t.default.Scope.BLOCK)?_+q===this.length()&&this.format(D,C):T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,_,Math.min(q,this.length()-_-1),D,C),this.cache={})}},{key:"insertAt",value:function(_,q,D){if(null!=D)return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D);if(0!==q.length){var C=q.split("\n"),Z=C.shift();Z.length>0&&(_<this.length()-1||null==this.children.tail?T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,Math.min(_,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var I=this;C.reduce(function(R,E){return(I=I.split(R,!0)).insertAt(0,E),E.length},_+Z.length)}}},{key:"insertBefore",value:function(_,q){var D=this.children.head;T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,_,q),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"moveChildren",this).call(this,_,q),this.cache={}}},{key:"optimize",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,_),this.cache={}}},{key:"path",value:function(_){return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,_,!0)}},{key:"removeChild",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"removeChild",this).call(this,_),this.cache={}}},{key:"split",value:function(_){var q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(q&&(0===_||_>=this.length()-1)){var D=this.clone();return 0===_?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}var C=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"split",this).call(this,_,q);return this.cache={},C}}]),d}(t.default.Block);function v(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==h||("function"==typeof h.formats&&(d=(0,m.default)(d,h.formats())),null==h.parent||"scroll"==h.parent.blotName||h.parent.statics.scope!==h.statics.scope)?d:v(h.parent,d)}N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[a.default,t.default.Embed,i.default],O.bubbleFormats=v,O.BlockEmbed=b,O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,E){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!E||S.length!==E);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function I(R,E){for(var S=0;S<E.length;S++){var L=E[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,S){return E&&I(R.prototype,E),S&&I(R,S),R}}();p(50);var y=v(p(2)),o=v(p(14)),e=v(p(8)),l=v(p(9)),r=v(p(0)),i=p(15),f=v(i),s=v(p(3)),g=v(p(10)),N=v(p(34));function v(I){return I&&I.__esModule?I:{default:I}}function h(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}var k=(0,g.default)("quill"),_=function(){function I(R){var E=this,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function d(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}(this,I),this.options=q(R,S),this.container=this.options.container,null==this.container)return k.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,x){var j=E.selection.lastRange,U=j&&0===j.length?j.index:void 0;D.call(E,function(){return E.editor.update(null,x,U)},M)});var F=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+L+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return w(I,null,[{key:"debug",value:function(E){!0===E&&(E="log"),g.default.level(E)}},{key:"find",value:function(E){return E.__quill||r.default.find(E)}},{key:"import",value:function(E){return null==this.imports[E]&&k.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof E){var M=E.attrName||E.blotName;"string"==typeof M?this.register("formats/"+M,E,S):Object.keys(E).forEach(function(x){L.register(x,E[x],S)})}else null!=this.imports[E]&&!F&&k.warn("Overwriting "+E+" with",S),this.imports[E]=S,(E.startsWith("blots/")||E.startsWith("formats/"))&&"abstract"!==S.blotName?r.default.register(S):E.startsWith("modules")&&"function"==typeof S.register&&S.register()}}]),w(I,[{key:"addContainer",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof E){var L=E;(E=document.createElement("div")).classList.add(L)}return this.container.insertBefore(E,S),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return D.call(this,function(){return F.editor.deleteText(E,S)},L=x[3],E=x[0],-1*(S=x[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,S){var L=this;return D.call(this,function(){var M=L.getSelection(!0),x=new y.default;if(null==M)return x;if(r.default.query(E,r.default.Scope.BLOCK))x=L.editor.formatLine(M.index,M.length,h({},E,S));else{if(0===M.length)return L.selection.format(E,S),x;x=L.editor.formatText(M.index,M.length,h({},E,S))}return L.setSelection(M,e.default.sources.SILENT),x},arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.default.sources.API)}},{key:"formatLine",value:function(E,S,L,F,M){var j,x=this,U=C(E,S,L,F,M),H=T(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatLine(E,S,j)},M=H[3],E=H[0],0)}},{key:"formatText",value:function(E,S,L,F,M){var j,x=this,U=C(E,S,L,F,M),H=T(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatText(E,S,j)},M=H[3],E=H[0],0)}},{key:"getBounds",value:function(E){var L;L="number"==typeof E?this.selection.getBounds(E,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return this.editor.getContents(E=F[0],S=F[1])}},{key:"getFormat",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof E?this.editor.getFormat(E,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof E?this.scroll.lines(E.index,E.length):this.scroll.lines(E,S)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return this.editor.getText(E=F[0],S=F[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,S,L){var F=this;return D.call(this,function(){return F.editor.insertEmbed(E,S,L)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.sources.API,E)}},{key:"insertText",value:function(E,S,L,F,M){var j,x=this,U=C(E,0,L,F,M),H=T(U,4);return j=H[2],D.call(this,function(){return x.editor.insertText(E,S,j)},M=H[3],E=H[0],S.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,S,L){this.clipboard.dangerouslyPasteHTML(E,S,L)}},{key:"removeFormat",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return S=x[1],D.call(this,function(){return F.editor.removeFormat(E,S)},L=x[3],E=x[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var S=this;return D.call(this,function(){E=new y.default(E);var F=S.getLength(),M=S.editor.deleteText(0,F),x=S.editor.applyDelta(E),j=x.ops[x.ops.length-1];return null!=j&&"string"==typeof j.insert&&"\n"===j.insert[j.insert.length-1]&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1)),M.compose(x)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API)}},{key:"setSelection",value:function(E,S,L){if(null==E)this.selection.setRange(null,S||I.sources.API);else{var F=C(E,S,L),M=T(F,4);L=M[3],this.selection.setRange(new i.Range(E=M[0],S=M[1]),L),L!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API,L=(new y.default).insert(E);return this.setContents(L,S)}},{key:"update",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.default.sources.USER,S=this.scroll.update(E);return this.selection.update(E),S}},{key:"updateContents",value:function(E){var S=this,L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API;return D.call(this,function(){return E=new y.default(E),S.editor.applyDelta(E,L)},L,!0)}}]),I}();function q(I,R){if((R=(0,s.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R)).theme&&R.theme!==_.DEFAULTS.theme){if(R.theme=_.import("themes/"+R.theme),null==R.theme)throw new Error("Invalid theme "+R.theme+". Did you register it?")}else R.theme=N.default;var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(M){!0===F.modules[M]&&(F.modules[M]={})})});var L=Object.keys(E.modules).concat(Object.keys(R.modules)).reduce(function(F,M){var x=_.import("modules/"+M);return null==x?k.error("Cannot load "+M+" module. Are you sure you registered it?"):F[M]=x.DEFAULTS||{},F},{});return null!=R.modules&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},_.DEFAULTS,{modules:L},E,R),["bounds","container","scrollingContainer"].forEach(function(F){"string"==typeof R[F]&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,M){return R.modules[M]&&(F[M]=R.modules[M]),F},{}),R}function D(I,R,E,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new y.default;var L=null==E?null:this.getSelection(),F=this.editor.delta,M=I();if(null!=L&&(!0===E&&(E=L.index),null==S?L=Z(L,M,R):0!==S&&(L=Z(L,E,S,R)),this.setSelection(L,e.default.sources.SILENT)),M.length()>0){var x,U,j=[e.default.events.TEXT_CHANGE,M,F,R];(x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT&&(U=this.emitter).emit.apply(U,j)}return M}function C(I,R,E,S,L){var F={};return"number"==typeof I.index&&"number"==typeof I.length?"number"!=typeof R?(L=S,S=E,E=R,R=I.length,I=I.index):(R=I.length,I=I.index):"number"!=typeof R&&(L=S,S=E,E=R,R=0),"object"===(typeof E>"u"?"undefined":P(E))?(F=E,L=S):"string"==typeof E&&(null!=S?F[E]=S:L=E),[I,R,F,L=L||e.default.sources.API]}function Z(I,R,E,S){if(null==I)return null;var L=void 0,F=void 0;if(R instanceof y.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=T(M,2);L=x[0],F=x[1]}else{var j=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=T(j,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=e.default.events,_.sources=e.default.sources,_.version="1.3.7",_.imports={delta:y.default,parchment:r.default,"core/module":l.default,"core/theme":N.default},O.expandConfig=q,O.overload=C,O.default=_},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=o(p(7)),c=o(p(0));function o(a){return a&&a.__esModule?a:{default:a}}var l=function(a){function r(){return function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function u(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(0)).default.Text);O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),T=function i(f,n,s){null===f&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(void 0===A){var g=Object.getPrototypeOf(f);return null===g?void 0:i(g,n,s)}if("value"in A)return A.value;var b=A.get;return void 0===b?void 0:b.call(s)},m=o(p(54));function o(i){return i&&i.__esModule?i:{default:i}}var l=(0,o(p(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){var g;A.__quill&&A.__quill.emitter&&(g=A.__quill.emitter).handleDOM.apply(g,n)})})});var r=function(i){function f(){!function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var n=function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?i:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return function u(i,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}(f,i),P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(N){var v=N.node,h=N.handler;(s.target===v||v.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(m.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},O.default=r},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=function w(m){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function P(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")})(this,w),this.quill=m,this.options=y};T.DEFAULTS={},O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function w(y){if(P.indexOf(y)<=P.indexOf(T)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[y].apply(c,t)}}function m(y){return P.reduce(function(c,o){return c[o]=w.bind(console,o,y),c},{})}w.level=m.level=function(y){T=y},O.default=m},function(B,O,p){var P=Array.prototype.slice,T=p(52),w=p(53),m=B.exports=function(t,e,u){return u||(u={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?u.strict?t===e:t==e:function o(t,e,u){var l,a;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(w(t))return!!w(e)&&(t=P.call(t),e=P.call(e),m(t,e,u));if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=T(t),i=T(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(!m(t[a=r[l]],e[a],u))return!1;return typeof t==typeof e}(t,e,u))};function y(t){return null==t}function c(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m,y,c){void 0===c&&(c={}),this.attrName=m,this.keyName=y,this.scope=null!=c.scope?c.scope&P.Scope.LEVEL|P.Scope.TYPE&P.Scope.ATTRIBUTE:P.Scope.ATTRIBUTE,null!=c.whitelist&&(this.whitelist=c.whitelist)}return w.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},w.prototype.add=function(m,y){return!!this.canAdd(m,y)&&(m.setAttribute(this.keyName,y),!0)},w.prototype.canAdd=function(m,y){return null!=P.query(m,P.Scope.BLOT&(this.scope|P.Scope.TYPE))&&(null==this.whitelist||("string"==typeof y?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1))},w.prototype.remove=function(m){m.removeAttribute(this.keyName)},w.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var D,q=N[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!v||h.length!==v);d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=function b(N,v,h){null===N&&(N=Function.prototype);var d=Object.getOwnPropertyDescriptor(N,v);if(void 0===d){var k=Object.getPrototypeOf(N);return null===k?void 0:b(k,v,h)}if("value"in d)return d.value;var _=d.get;return void 0===_?void 0:_.call(h)},y=i(p(2)),o=i(p(0)),e=i(p(4)),l=i(p(6)),r=i(p(7));function i(b){return b&&b.__esModule?b:{default:b}}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function n(b,N){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!N||"object"!=typeof N&&"function"!=typeof N?b:N}function s(b,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function, not "+typeof N);b.prototype=Object.create(N&&N.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(b,N):b.__proto__=N)}var A=function(b){function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,b),N}(l.default);A.blotName="code",A.tagName="CODE";var g=function(b){function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,b),T(N,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith("\n")&&(d=d.slice(0,-1)),d.split("\n").reduce(function(k,_){return k.insert(_).insert("\n",h.formats())},new y.default)}},{key:"format",value:function(h,d){if(h!==this.statics.blotName||!d){var k=this.descendant(r.default,this.length()-1),q=P(k,1)[0];q?.deleteAt(q.length()-1,1),w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,d)}}},{key:"formatAt",value:function(h,d,k,_){if(0!==d&&null!=o.default.query(k,o.default.Scope.BLOCK)&&(k!==this.statics.blotName||_!==this.statics.formats(this.domNode))){var q=this.newlineIndex(h);if(!(q<0||q>=h+d)){var D=this.newlineIndex(h,!0)+1,C=q-D+1,Z=this.isolate(D,C),I=Z.next;Z.format(k,_),I instanceof N&&I.formatAt(0,h-D+d-C,k,_)}}}},{key:"insertAt",value:function(h,d,k){if(null==k){var _=this.descendant(r.default,h),q=P(_,2);q[0].insertAt(q[1],d)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?h:h+1}},{key:"newlineIndex",value:function(h){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,h).lastIndexOf("\n");var k=this.domNode.textContent.slice(h).indexOf("\n");return k>-1?h+k:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,h);var d=this.next;null!=d&&d.prev===this&&d.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===d.statics.formats(d.domNode)&&(d.optimize(h),d.moveChildren(this),d.remove())}},{key:"replace",value:function(h){w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(d){var k=o.default.find(d);null==k?d.parentNode.removeChild(d):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(h){var d=w(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,h);return d.setAttribute("spellcheck",!1),d}},{key:"formats",value:function(){return!0}}]),N}(e.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",O.Code=A,O.default=g},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,E){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!E||S.length!==E);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function I(R,E){for(var S=0;S<E.length;S++){var L=E[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,S){return E&&I(R.prototype,E),S&&I(R,S),R}}(),y=d(p(2)),o=d(p(20)),e=d(p(0)),l=d(p(13)),r=d(p(24)),i=p(4),f=d(i),s=d(p(16)),g=d(p(21)),N=d(p(11)),h=d(p(3));function d(I){return I&&I.__esModule?I:{default:I}}var q=/^[ -~]*$/,D=function(){function I(R){(function _(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")})(this,I),this.scroll=R,this.delta=this.getDelta()}return w(I,[{key:"applyDelta",value:function(E){var S=this,L=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),(E=function Z(I){return I.reduce(function(R,E){if(1===E.insert){var S=(0,g.default)(E.attributes);return delete S.image,R.insert({image:E.attributes.image},S)}if(null!=E.attributes&&(!0===E.attributes.list||!0===E.attributes.bullet)&&((E=(0,g.default)(E)).attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),"string"==typeof E.insert){var L=E.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return R.insert(L,E.attributes)}return R.push(E)},new y.default)}(E)).reduce(function(M,x){var j=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(null!=x.insert){if("string"==typeof x.insert){var H=x.insert;H.endsWith("\n")&&L&&(L=!1,H=H.slice(0,-1)),M>=F&&!H.endsWith("\n")&&(L=!0),S.scroll.insertAt(M,H);var V=S.scroll.line(M),Y=T(V,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof f.default){var rt=X.descendant(e.default.Leaf,Q),at=T(rt,1);nt=(0,h.default)(nt,(0,i.bubbleFormats)(at[0]))}U=o.default.attributes.diff(nt,U)||{}}else if("object"===P(x.insert)){var z=Object.keys(x.insert)[0];if(null==z)return M;S.scroll.insertAt(M,z,x.insert[z])}F+=j}return Object.keys(U).forEach(function(K){S.scroll.formatAt(M,j,K,U[K])}),M+j},0),E.reduce(function(M,x){return"number"==typeof x.delete?(S.scroll.deleteAt(M,x.delete),M):M+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,S){return this.scroll.deleteAt(E,S),this.update((new y.default).retain(E).delete(S))}},{key:"formatLine",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(M){if(null==L.scroll.whitelist||L.scroll.whitelist[M]){var x=L.scroll.lines(E,Math.max(S,1)),j=S;x.forEach(function(U){var H=U.length();if(U instanceof l.default){var V=E-U.offset(L.scroll),Y=U.newlineIndex(V+j)-V+1;U.formatAt(V,Y,M,F[M])}else U.format(M,F[M]);j-=H})}}),this.scroll.optimize(),this.update((new y.default).retain(E).retain(S,(0,g.default)(F)))}},{key:"formatText",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(F).forEach(function(M){L.scroll.formatAt(E,S,M,F[M])}),this.update((new y.default).retain(E).retain(S,(0,g.default)(F)))}},{key:"getContents",value:function(E,S){return this.delta.slice(E,E+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,S){return E.concat(S.delta())},new y.default)}},{key:"getFormat",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,L=[],F=[];0===S?this.scroll.path(E).forEach(function(x){var U=T(x,1)[0];U instanceof f.default?L.push(U):U instanceof e.default.Leaf&&F.push(U)}):(L=this.scroll.lines(E,S),F=this.scroll.descendants(e.default.Leaf,E,S));var M=[L,F].map(function(x){if(0===x.length)return{};for(var j=(0,i.bubbleFormats)(x.shift());Object.keys(j).length>0;){var U=x.shift();if(null==U)return j;j=C((0,i.bubbleFormats)(U),j)}return j});return h.default.apply(h.default,M)}},{key:"getText",value:function(E,S){return this.getContents(E,S).filter(function(L){return"string"==typeof L.insert}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(E,S,L){return this.scroll.insertAt(E,S,L),this.update((new y.default).retain(E).insert(function k(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}({},S,L)))}},{key:"insertText",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return S=S.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(E,S),Object.keys(F).forEach(function(M){L.scroll.formatAt(E,S.length,M,F[M])}),this.update((new y.default).retain(E).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return!(E.statics.blotName!==f.default.blotName||E.children.length>1)&&E.children.head instanceof s.default}},{key:"removeFormat",value:function(E,S){var L=this.getText(E,S),F=this.scroll.line(E+S),M=T(F,2),x=M[0],j=M[1],U=0,H=new y.default;null!=x&&(U=x instanceof l.default?x.newlineIndex(j)-j+1:x.length()-j,H=x.delta().slice(j,j+U-1).insert("\n"));var Y=this.getContents(E,S+U).diff((new y.default).insert(L).concat(H)),X=(new y.default).retain(E).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,F=this.delta;if(1===S.length&&"characterData"===S[0].type&&S[0].target.data.match(q)&&e.default.find(S[0].target)){var M=e.default.find(S[0].target),x=(0,i.bubbleFormats)(M),j=M.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=(new y.default).insert(U),V=(new y.default).insert(M.value());E=(new y.default).retain(j).concat(H.diff(V,L)).reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,L));return E}}]),I}();function C(I,R){return Object.keys(R).reduce(function(E,S){return null==I[S]||(R[S]===I[S]?E[S]=R[S]:Array.isArray(R[S])?R[S].indexOf(I[S])<0&&(E[S]=R[S].concat([I[S]])):E[S]=[R[S],I[S]]),E},{})}O.default=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var D,q=N[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!v||h.length!==v);d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),m=r(p(0)),c=r(p(21)),t=r(p(11)),u=r(p(8));function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var N=0,v=Array(b.length);N<b.length;N++)v[N]=b[N];return v}return Array.from(b)}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,r(p(10)).default)("quill:selection"),s=function b(N){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,b),this.index=N,this.length=v},A=function(){function b(N,v){var h=this;f(this,b),this.emitter=v,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(d,k){d===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();null!=d&&d.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(d,k){if(k.range){var _=k.range;h.setNativeRange(_.startNode,_.startOffset,_.endNode,_.endOffset)}}),this.update(u.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var h=v.cursor.restore();if(!h)return;setTimeout(function(){v.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,h){if(null==this.scroll.whitelist||this.scroll.whitelist[v]){this.scroll.update();var d=this.getNativeRange();if(null!=d&&d.native.collapsed&&!m.default.query(v,m.default.Scope.BLOCK)){if(d.start.node!==this.cursor.textNode){var k=m.default.find(d.start.node,!1);if(null==k)return;if(k instanceof m.default.Leaf){var _=k.split(d.start.offset);k.parent.insertBefore(this.cursor,_)}else k.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(v,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=this.scroll.length();v=Math.min(v,d-1),h=Math.min(v+h,d-1)-v;var k=void 0,_=this.scroll.leaf(v),q=P(_,2),D=q[0],C=q[1];if(null==D)return null;var Z=D.position(C,!0),I=P(Z,2);k=I[0],C=I[1];var R=document.createRange();if(h>0){R.setStart(k,C);var E=this.scroll.leaf(v+h),S=P(E,2);if(null==(D=S[0]))return null;var L=D.position(C=S[1],!0),F=P(L,2);return R.setEnd(k=F[0],C=F[1]),R.getBoundingClientRect()}var M="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),M="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(null==v||v.rangeCount<=0)return null;var h=v.getRangeAt(0);if(null==h)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var v=this.getNativeRange();return null==v?[null,null]:[this.normalizedToRange(v),v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var h=this,d=[[v.start.node,v.start.offset]];v.native.collapsed||d.push([v.end.node,v.end.offset]);var k=d.map(function(D){var C=P(D,2),Z=C[0],I=C[1],R=m.default.find(Z,!0),E=R.offset(h.scroll);return 0===I?E:R instanceof m.default.Container?E+R.length():E+R.index(Z,I)}),_=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),q=Math.min.apply(Math,[_].concat(i(k)));return new s(q,_-q)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var h={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[h.start,h.end].forEach(function(d){for(var k=d.node,_=d.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>_)k=k.childNodes[_],_=0;else{if(k.childNodes.length!==_)break;_=(k=k.lastChild)instanceof Text?k.data.length:k.childNodes.length+1}d.node=k,d.offset=_}),h}},{key:"rangeToNative",value:function(v){var h=this,d=v.collapsed?[v.index]:[v.index,v.index+v.length],k=[],_=this.scroll.length();return d.forEach(function(q,D){q=Math.min(_-1,q);var Z=h.scroll.leaf(q),I=P(Z,2),E=I[1],S=I[0].position(E,0!==D),L=P(S,2);k.push(L[0],E=L[1])}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(v){var h=this.lastRange;if(null!=h){var d=this.getBounds(h.index,h.length);if(null!=d){var k=this.scroll.length()-1,_=this.scroll.line(Math.min(h.index,k)),D=P(_,1)[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,k));C=P(Z,1)[0]}if(null!=D&&null!=C){var R=v.getBoundingClientRect();d.top<R.top?v.scrollTop-=R.top-d.top:d.bottom>R.bottom&&(v.scrollTop+=d.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(v,h){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h,_=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(n.info("setNativeRange",v,h,d,k),null==v||null!=this.root.parentNode&&null!=v.parentNode&&null!=d.parentNode){var q=document.getSelection();if(null!=q)if(null!=v){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(null==D||_||v!==D.startContainer||h!==D.startOffset||d!==D.endContainer||k!==D.endOffset){"BR"==v.tagName&&(h=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),"BR"==d.tagName&&(k=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(v,h),C.setEnd(d,k),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var h=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof h&&(d=h,h=!1),n.info("setRange",v),null!=v){var k=this.rangeToNative(v);this.setNativeRange.apply(this,i(k).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,h=this.lastRange,d=this.getRange(),k=P(d,2),q=k[1];if(this.lastRange=k[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&null!=q&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var Z,C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),v];(D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),v!==u.default.sources.SILENT&&(Z=this.emitter).emit.apply(Z,C)}}}]),b}();function g(b,N){return N instanceof Text&&(N=N.parentNode),b.contains(N)}O.Range=s,O.default=A},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"insertInto",value:function(r,i){0===r.children.length?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(0)).default.Embed);e.blotName="break",e.tagName="BR",O.default=e},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(44),w=p(30),m=p(1),y=function(o){function t(e){var u=o.call(this,e)||this;return u.build(),u}return P(t,o),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(0===e&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return null==e.blotName&&e(a)||null!=e.blotName&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){void 0===u&&(u=0),void 0===l&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0];if(r)r.insertAt(a[1],u,l);else{var f=null==l?m.create("text",u):m.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new m.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var u=m.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){void 0===u&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(null!=a&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(void 0===u&&(u=!1),!u){if(0===e)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&"childList"===i.type&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(null!=i.parentNode&&"IFRAME"!==i.tagName&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=m.find(i);null!=f&&(null==f.domNode.parentNode||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;null!=i.nextSibling&&(f=m.find(i.nextSibling));var n=c(i);(n.next!=f||null==n.next)&&(null!=n.parent&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(w.default);function c(o){var t=m.find(o);if(null==t)try{t=m.create(o)}catch{t=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}O.default=y},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(12),w=p(31),m=p(17),y=p(1),c=function(o){function t(e){var u=o.call(this,e)||this;return u.attributes=new w.default(u.domNode),u}return P(t,o),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,u){var l=y.query(e);l instanceof T.default?this.attributes.attribute(l,u):u&&null!=l&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return null!=u&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&"attributes"===a.type})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(m.default);O.default=c},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(30),w=p(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return(o={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){var P=p(11),T=p(3),w={attributes:{compose:function(y,c,o){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var t=T(!0,{},c);for(var e in o||(t=Object.keys(t).reduce(function(u,l){return null!=t[l]&&(u[l]=t[l]),u},{})),y)void 0!==y[e]&&void 0===c[e]&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,c){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(t,e){return P(y[e],c[e])||(t[e]=void 0===c[e]?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if("object"!=typeof y)return c;if("object"==typeof c){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return void 0===y[u]&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new m(y)},length:function(y){return"number"==typeof y.delete?y.delete:"number"==typeof y.retain?y.retain:"string"==typeof y.insert?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=w.length(c);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,"number"==typeof c.delete)return{delete:y};var e={};return c.attributes&&(e.attributes=c.attributes),"number"==typeof c.retain?e.retain=y:e.insert="string"==typeof c.insert?c.insert.substr(o,y):c.insert,e}return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?w.length(this.ops[this.index])-this.offset:1/0},m.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(t)}return[]},B.exports=w},function(B,O){var p=function(){"use strict";function P(l,a){return null!=a&&l instanceof a}var T,w,m;try{T=Map}catch{T=function(){}}try{w=Set}catch{w=function(){}}try{m=Promise}catch{m=function(){}}function y(l,a,r,i,f){"object"==typeof a&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof Buffer<"u";return typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0),function g(b,N){if(null===b)return null;if(0===N)return b;var v,h;if("object"!=typeof b)return b;if(P(b,T))v=new T;else if(P(b,w))v=new w;else if(P(b,m))v=new m(function(R,E){b.then(function(S){R(g(S,N-1))},function(S){E(g(S,N-1))})});else if(y.__isArray(b))v=[];else if(y.__isRegExp(b))v=new RegExp(b.source,u(b)),b.lastIndex&&(v.lastIndex=b.lastIndex);else if(y.__isDate(b))v=new Date(b.getTime());else{if(A&&Buffer.isBuffer(b))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(b.length):new Buffer(b.length),b.copy(v),v;P(b,Error)?v=Object.create(b):typeof i>"u"?(h=Object.getPrototypeOf(b),v=Object.create(h)):(v=Object.create(i),h=i)}if(a){var d=n.indexOf(b);if(-1!=d)return s[d];n.push(b),s.push(v)}for(var k in P(b,T)&&b.forEach(function(R,E){var S=g(E,N-1),L=g(R,N-1);v.set(S,L)}),P(b,w)&&b.forEach(function(R){var E=g(R,N-1);v.add(E)}),b){var _;h&&(_=Object.getOwnPropertyDescriptor(h,k)),(!_||null!=_.set)&&(v[k]=g(b[k],N-1))}if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(b);for(k=0;k<q.length;k++){var D=q[k];(C=Object.getOwnPropertyDescriptor(b,D))&&!C.enumerable&&!f||(v[D]=g(b[D],N-1),C.enumerable||Object.defineProperty(v,D,{enumerable:!1}))}}if(f){var Z=Object.getOwnPropertyNames(b);for(k=0;k<Z.length;k++){var C,I=Z[k];(C=Object.getOwnPropertyDescriptor(b,I))&&C.enumerable||(v[I]=g(b[I],N-1),Object.defineProperty(v,I,{enumerable:!1}))}}return v}(l,r)}function c(l){return Object.prototype.toString.call(l)}function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.clonePrototype=function(a){if(null===a)return null;var r=function(){};return r.prototype=a,new r},y.__objToStr=c,y.__isDate=function o(l){return"object"==typeof l&&"[object Date]"===c(l)},y.__isArray=function t(l){return"object"==typeof l&&"[object Array]"===c(l)},y.__isRegExp=function e(l){return"object"==typeof l&&"[object RegExp]"===c(l)},y.__getRegExpFlags=u,y}();"object"==typeof B&&B.exports&&(B.exports=p)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(_=(Z=C.next()).done)&&(k.push(Z.value),!d||k.length!==d);_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),w=function v(h,d,k){null===h&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(void 0===_){var q=Object.getPrototypeOf(h);return null===q?void 0:v(q,d,k)}if("value"in _)return _.value;var D=_.get;return void 0===D?void 0:D.call(k)},y=n(p(0)),o=n(p(8)),t=p(4),e=n(t),l=n(p(16)),r=n(p(13)),f=n(p(25));function n(v){return v&&v.__esModule?v:{default:v}}function b(v){return v instanceof e.default||v instanceof t.BlockEmbed}var N=function(v){function h(d,k){!function s(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h);var _=function A(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?v:h}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return _.emitter=k.emitter,Array.isArray(k.whitelist)&&(_.whitelist=k.whitelist.reduce(function(q,D){return q[D]=!0,q},{})),_.domNode.addEventListener("DOMNodeInserted",function(){}),_.optimize(),_.enable(),_}return function g(v,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}(h,v),T(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,_){var q=this.line(k),D=P(q,2),C=D[0],Z=D[1],I=this.line(k+_),E=P(I,1)[0];if(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,_),null!=E&&C!==E&&Z>0){if(C instanceof t.BlockEmbed||E instanceof t.BlockEmbed)return void this.optimize();if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1))===E)return void this.optimize()}else if(E instanceof r.default){var L=E.newlineIndex(0);L>-1&&E.split(L+1)}C.moveChildren(E,E.children.head instanceof l.default?null:E.children.head),C.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(k,_,q,D){null!=this.whitelist&&!this.whitelist[q]||(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,_,q,D),this.optimize())}},{key:"insertAt",value:function(k,_,q){if(null==q||null==this.whitelist||this.whitelist[_]){if(k>=this.length())if(null==q||null==y.default.query(_,y.default.Scope.BLOCK)){var D=y.default.create(this.statics.defaultChild);this.appendChild(D),null==q&&_.endsWith("\n")&&(_=_.slice(0,-1)),D.insertAt(0,_,q)}else{var C=y.default.create(_,q);this.appendChild(C)}else w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,k,_,q);this.optimize()}}},{key:"insertBefore",value:function(k,_){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var q=y.default.create(this.statics.defaultChild);q.appendChild(k),k=q}w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,k,_)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(b,k)}},{key:"lines",value:function(){return function D(C,Z,I){var R=[],E=I;return C.children.forEachAt(Z,I,function(S,L,F){b(S)?R.push(S):S instanceof y.default.Container&&(R=R.concat(D(S,L,E))),E-=F}),R}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,k,_),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,_))}},{key:"path",value:function(k){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(!0!==this.batch){var _=o.default.sources.USER;"string"==typeof k&&(_=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,_,k),w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,_,k)}}}]),h}(y.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[e.default,t.BlockEmbed,f.default],O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(j,U){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function x(j,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var nt,Q=j[Symbol.iterator]();!(V=(nt=Q.next()).done)&&(H.push(nt.value),!U||H.length!==U);V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}(j,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function x(j,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(j,V.key,V)}}return function(j,U,H){return U&&x(j.prototype,U),H&&x(j,H),j}}(),y=v(p(21)),o=v(p(11)),e=v(p(3)),l=v(p(2)),r=v(p(20)),f=v(p(0)),s=v(p(5)),g=v(p(10)),N=v(p(9));function v(x){return x&&x.__esModule?x:{default:x}}function h(x,j,U){return j in x?Object.defineProperty(x,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[j]=U,x}var q=(0,g.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){function j(U,H){!function d(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}(this,j);var V=function k(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!j||"object"!=typeof j&&"function"!=typeof j?x:j}(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){"list autofill"===Y&&null!=U.scroll.whitelist&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:j.keys.ENTER,shiftKey:null},S),V.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:j.keys.DELETE},{collapsed:!1},E),V.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),V.listen(),V}return function _(x,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}(j,x),w(j,null,[{key:"match",value:function(H,V){return V=M(V),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&null!==V[Y]})&&V.key===(H.which||H.keyCode)}}]),w(j,[{key:"addBinding",value:function(H){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},X=M(H);if(null==X||null==X.key)return q.warn("Attempted to add invalid keyboard binding",X);"function"==typeof V&&(V={handler:V}),"function"==typeof Y&&(Y={handler:Y}),X=(0,e.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var X=(H.bindings[V.which||V.keyCode]||[]).filter(function(ot){return j.match(V,ot)});if(0!==X.length){var Q=H.quill.getSelection();if(null!=Q&&H.quill.hasFocus()){var nt=H.quill.getLine(Q.index),rt=T(nt,2),at=rt[0],lt=rt[1],z=H.quill.getLeaf(Q.index),K=T(z,2),$=K[0],G=K[1],W=0===Q.length?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=T(W,2),tt=J[0],et=J[1],ut=$ instanceof f.default.Text?$.value().slice(0,G):"",ft=tt instanceof f.default.Text?tt.value().slice(et):"",it={collapsed:0===Q.length,empty:0===Q.length&&at.length()<=1,format:H.quill.getFormat(Q),offset:lt,prefix:ut,suffix:ft};X.some(function(ot){if(null!=ot.collapsed&&ot.collapsed!==it.collapsed||null!=ot.empty&&ot.empty!==it.empty||null!=ot.offset&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(st){return null==it.format[st]}))return!1}else if("object"===P(ot.format)&&!Object.keys(ot.format).every(function(st){return!0===ot.format[st]?null!=it.format[st]:!1===ot.format[st]?null==it.format[st]:(0,o.default)(ot.format[st],it.format[st])}))return!1;return!(null!=ot.prefix&&!ot.prefix.test(it.prefix)||null!=ot.suffix&&!ot.suffix.test(it.suffix))&&!0!==ot.handler.call(H,Q,it)})&&V.preventDefault()}}}})}}]),j}(N.default);function Z(x,j){var U;return h(U={key:x,shiftKey:j,altKey:null},x===C.keys.LEFT?"prefix":"suffix",/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X);return!(T(Q,1)[0]instanceof f.default.Embed&&(x===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),1))}),U}function I(x,j){if(!(0===x.index||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),V=T(U,1)[0],Y={};if(0===j.offset){var X=this.quill.getLine(x.index-1),nt=T(X,1)[0];if(null!=nt&&nt.length()>1){var rt=V.formats(),at=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,at)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,s.default.sources.USER),this.quill.focus()}}function R(x,j){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),Q=T(Y,1)[0];if(j.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),at=T(nt,1)[0];if(at){var lt=Q.formats(),z=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(lt,z)||{},V=at.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function E(x){var j=this.quill.getLines(x),U={};if(j.length>1){var H=j[0].formats(),V=j[j.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function S(x,j){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(j.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(V[Y]=j.format[Y]),V},{});this.quill.insertText(x.index,"\n",H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(V){null==H[V]&&(Array.isArray(j.format[V])||"link"!==V&&U.quill.format(V,j.format[V],s.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=T(X,2),nt=Q[0],rt=Q[1];if(null!=nt){var at=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,z=nt.newlineIndex(at+rt+Y),K=nt.domNode.textContent.slice(lt,z).split("\n");rt=0,K.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,0===G?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,0===G?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function M(x){if("string"==typeof x||"number"==typeof x)return M({key:x});if("object"===(typeof x>"u"?"undefined":P(x))&&(x=(0,y.default)(x,!1)),"string"==typeof x.key)if(null!=C.keys[x.key.toUpperCase()])x.key=C.keys[x.key.toUpperCase()];else{if(1!==x.key.length)return null;x.key=x.key.toUpperCase().charCodeAt(0)}return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,U){null!=U.format.indent?this.quill.format("indent","-1",s.default.sources.USER):null!=U.format.list&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var U=(new l.default).retain(j.index).delete(j.length).insert("\t");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=(0,e.default)({},V.formats(),{list:"checked"}),Q=(new l.default).retain(j.index).insert("\n",X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,U){var H=this.quill.getLine(j.index),V=T(H,2),Y=V[0],X=V[1],Q=(new l.default).retain(j.index).insert("\n",U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,U){var H=U.prefix.length,V=this.quill.getLine(j.index),Y=T(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(j.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=(new l.default).retain(j.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=(new l.default).retain(j.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}},O.default=C,O.SHORTKEY=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var N,b=i[Symbol.iterator]();!(s=(N=b.next()).done)&&(n.push(N.value),!f||n.length!==f);s=!0);}catch(v){A=!0,g=v}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},w=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=t(p(0)),o=t(p(7));function t(r){return r&&r.__esModule?r:{default:r}}var a=function(r){function i(f,n){!function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var s=function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return function l(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),w(i,null,[{key:"value",value:function(){}}]),w(i,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(0!==this._length)return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;null!=A&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;null!=A&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(null!=s&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],b=N[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var v=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=i.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=g){var h=[g,b].map(function(k){return Math.max(0,Math.min(A.data.length,k-1))}),d=P(h,2);return{startNode:A,startOffset:g=d[0],endNode:A,endOffset:b=d[1]}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return"characterData"===b.type&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\ufeff",O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=y(p(0)),w=p(4),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),l}(T.default.Container);e.allowedChildren=[m.default,w.BlockEmbed,e],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function y(a){return a&&a.__esModule?a:{default:a}}(p(0));var e=function(a){function r(){return function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function t(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"value",value:function(f){var n=T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join(""):n}}]),r}(m.default.Attributor.Style),u=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new e("color","color",{scope:m.default.Scope.INLINE});O.ColorAttributor=e,O.ColorClass=u,O.ColorStyle=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)};var e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=T(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(function y(l){return l&&l.__esModule?l:{default:l}}(p(6)).default);function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"],O.default=e,O.sanitize=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},T=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),m=o(p(23)),c=o(p(107));function o(a){return a&&a.__esModule?a:{default:a}}var e=0;function u(a,r){a.setAttribute(r,"true"!==a.getAttribute(r))}var l=function(){function a(r){var i=this;(function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")})(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:i.togglePicker();break;case m.default.keys.ESCAPE:i.escape(),f.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return T(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case m.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case m.default.keys.ESCAPE:f.escape(),s.preventDefault()}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),!0===n.selected&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(i!==n&&(n?.classList.remove("ql-selected"),null!=i&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":P(Event))){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=null!=i&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=q(p(0)),m=q(p(5)),y=p(4),c=q(y),t=q(p(16)),u=q(p(25)),a=q(p(24)),i=q(p(35)),n=q(p(6)),A=q(p(22)),b=q(p(7)),v=q(p(55)),d=q(p(42)),_=q(p(23));function q(D){return D&&D.__esModule?D:{default:D}}m.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":v.default,"modules/history":d.default,"modules/keyboard":_.default}),T.default.register(c.default,t.default,a.default,n.default,A.default,b.default),O.default=m.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m){this.domNode=m,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(w.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),w.create=function(m){if(null==this.tagName)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?("string"==typeof m&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),y="number"==typeof m?document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?document.createElement(m):document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},w.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},w.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return P.create(m)},w.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},w.prototype.deleteAt=function(m,y){this.isolate(m,y).remove()},w.prototype.formatAt=function(m,y,c,o){var t=this.isolate(m,y);if(null!=P.query(c,P.Scope.BLOT)&&o)t.wrap(c,o);else if(null!=P.query(c,P.Scope.ATTRIBUTE)){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},w.prototype.insertAt=function(m,y,c){var o=null==c?P.create("text",y):P.create(y,c),t=this.split(m);this.parent.insertBefore(o,t)},w.prototype.insertInto=function(m,y){void 0===y&&(y=null),null!=this.parent&&this.parent.children.remove(this);var c=null;m.children.insertBefore(this,y),null!=y&&(c=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=c)&&m.domNode.insertBefore(this.domNode,c),this.parent=m,this.attach()},w.prototype.isolate=function(m,y){var c=this.split(m);return c.split(y),c},w.prototype.length=function(){return 1},w.prototype.offset=function(m){return void 0===m&&(m=this.parent),null==this.parent||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},w.prototype.optimize=function(m){null!=this.domNode[P.DATA_KEY]&&delete this.domNode[P.DATA_KEY].mutations},w.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},w.prototype.replace=function(m){null!=m.parent&&(m.parent.insertBefore(this,m.next),m.remove())},w.prototype.replaceWith=function(m,y){var c="string"==typeof m?P.create(m,y):m;return c.replace(this),c},w.prototype.split=function(m,y){return 0===m?this:this.next},w.prototype.update=function(m,y){},w.prototype.wrap=function(m,y){var c="string"==typeof m?P.create(m,y):m;return null!=this.parent&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},w.blotName="abstract",w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),w=p(33),m=p(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(null!=o.value(this.domNode)?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=T.default.keys(this.domNode),u=w.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();O.default=y},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function w(y,c){return(y.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(c+"-")})}Object.defineProperty(O,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(this.remove(o),o.classList.add(this.keyName+"-"+t),!0)},c.prototype.remove=function(o){w(o,this.keyName).forEach(function(e){o.classList.remove(e)}),0===o.classList.length&&o.removeAttribute("class")},c.prototype.value=function(o){var e=(w(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(p(12).default);O.default=m},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function w(y){var c=y.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}Object.defineProperty(O,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(o.style[w(this.keyName)]=t,!0)},c.prototype.remove=function(o){o.style[w(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[w(this.keyName)];return this.canAdd(o,t)?t:""},c}(p(12).default);O.default=m},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();var w=function(){function m(y,c){(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.options=c,this.modules={}}return P(m,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){null==c.modules[o]&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),m}();w.DEFAULTS={modules:{}},w.themes={default:w},O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=o(p(0)),c=o(p(7));function o(r){return r&&r.__esModule?r:{default:r}}var l="\ufeff",a=function(r){function i(f){!function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function u(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if("characterData"===g.type&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(m.default.Embed);O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var T=function w(t){return t&&t.__esModule?t:{default:t}}(p(0));var m={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",m),c=new T.default.Attributor.Class("align","ql-align",m),o=new T.default.Attributor.Style("align","text-align",m);O.AlignAttribute=y,O.AlignClass=c,O.AlignStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var T=function m(o){return o&&o.__esModule?o:{default:o}}(p(0)),w=p(26);var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),c=new w.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});O.BackgroundClass=y,O.BackgroundStyle=c},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var T=function w(t){return t&&t.__esModule?t:{default:t}}(p(0));var m={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",m),c=new T.default.Attributor.Class("direction","ql-direction",m),o=new T.default.Attributor.Style("direction","direction",m);O.DirectionAttribute=y,O.DirectionClass=c,O.DirectionStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=function y(r){return r&&r.__esModule?r:{default:r}}(p(0));var e={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new m.default.Attributor.Class("font","ql-font",e),l=function(r){function i(){return function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function t(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"value",value:function(n){return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(m.default.Attributor.Style),a=new l("font","font-family",e);O.FontStyle=a,O.FontClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var T=function w(c){return c&&c.__esModule?c:{default:c}}(p(0));var m=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=m,O.SizeStyle=y},function(B,O,p){"use strict";B.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),w=t(p(0)),y=t(p(5));function t(f){return f&&f.__esModule?f:{default:f}}var a=function(f){function n(s,A){!function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var g=function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(b,N,v,h){b!==y.default.events.TEXT_CHANGE||g.ignoreChange||(g.options.userOnly&&h!==y.default.sources.USER?g.transform(N):g.record(N,v))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return function l(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}(n,f),P(n,[{key:"change",value:function(A,g){if(0!==this.stack[A].length){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],y.default.sources.USER),this.ignoreChange=!1;var N=i(b[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(0!==A.ops.length){this.stack.redo=[];var b=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var v=this.stack.undo.pop();b=b.compose(v.undo),A=v.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(t(p(9)).default);function i(f){var n=f.reduce(function(A,g){return A+(g.delete||0)},0),s=f.length()-n;return function r(f){var n=f.ops[f.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some(function(s){return null!=w.default.query(s,w.default.Scope.BLOCK)}))}(f)&&(s-=1),s}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},O.default=a,O.getLastChangeIndex=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(L,F){for(var M=0;M<F.length;M++){var x=F[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,M){return F&&S(L.prototype,F),M&&S(L,M),L}}(),T=function S(L,F,M){null===L&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(void 0===x){var j=Object.getPrototypeOf(L);return null===j?void 0:S(j,F,M)}if("value"in x)return x.value;var U=x.get;return void 0===U?void 0:U.call(M)},m=N(p(3)),c=N(p(2)),t=N(p(8)),u=N(p(23)),a=N(p(34)),i=N(p(59)),n=N(p(60)),A=N(p(28)),b=N(p(61));function N(S){return S&&S.__esModule?S:{default:S}}function v(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||"object"!=typeof L&&"function"!=typeof L?S:L}function d(S,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var k=[!1,"center","right","justify"],_=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return F.emitter.listenDOM("click",document.body,function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);null!=x.tooltip&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),null!=x.pickers&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})}),x}return d(L,S),P(L,[{key:"addModule",value:function(M){var x=T(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,M);return"toolbar"===M&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(j){(j.getAttribute("class")||"").split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),null!=x[H]))if("direction"===H)j.innerHTML=x[H][""]+x[H].rtl;else if("string"==typeof x[H])j.innerHTML=x[H];else{var V=j.value||"";null!=V&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(M,x){var j=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return null==H.querySelector("option")&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return null==H.querySelector("option")&&E(H,_,"background"===V?"#ffffff":"#000000"),new i.default(H,x[V])}return null==H.querySelector("option")&&(H.classList.contains("ql-font")?E(H,q):H.classList.contains("ql-header")?E(H,D):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)}),this.quill.on(t.default.events.EDITOR_CHANGE,function(){j.pickers.forEach(function(V){V.update()})})}}]),L}(a.default);Z.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");null==F&&((F=document.createElement("input")).setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(null!=F.files&&null!=F.files[0]){var M=new FileReader;M.onload=function(x){var j=L.quill.getSelection(!0);L.quill.updateContents((new c.default).retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),L.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},M.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return d(L,S),P(L,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=x?this.textbox.value=x:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break;case"video":M=function R(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}(M);case"formula":if(!M)break;var j=this.quill.getSelection(!0);if(null!=j){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}}this.textbox.value="",this.hide()}}]),L}(b.default);function E(S,L){var F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];L.forEach(function(M){var x=document.createElement("option");M===F?x.setAttribute("selected","selected"):x.setAttribute("value",M),S.appendChild(x)})}O.BaseTooltip=I,O.default=Z},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];this.insertBefore(w[0],null),w.length>1&&this.append.apply(this,w.slice(1))},T.prototype.contains=function(w){for(var m,y=this.iterator();m=y();)if(m===w)return!0;return!1},T.prototype.insertBefore=function(w,m){w&&(w.next=m,null!=m?(w.prev=m.prev,null!=m.prev&&(m.prev.next=w),m.prev=w,m===this.head&&(this.head=w)):null!=this.tail?(this.tail.next=w,w.prev=this.tail,this.tail=w):(w.prev=null,this.head=this.tail=w),this.length+=1)},T.prototype.offset=function(w){for(var m=0,y=this.head;null!=y;){if(y===w)return m;m+=y.length(),y=y.next}return-1},T.prototype.remove=function(w){this.contains(w)&&(null!=w.prev&&(w.prev.next=w.next),null!=w.next&&(w.next.prev=w.prev),w===this.head&&(this.head=w.next),w===this.tail&&(this.tail=w.prev),this.length-=1)},T.prototype.iterator=function(w){return void 0===w&&(w=this.head),function(){var m=w;return null!=w&&(w=w.next),m}},T.prototype.find=function(w,m){void 0===m&&(m=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(w<o||m&&w===o&&(null==y.next||0!==y.next.length()))return[y,w];w-=o}return[null,0]},T.prototype.forEach=function(w){for(var m,y=this.iterator();m=y();)w(m)},T.prototype.forEachAt=function(w,m,y){if(!(m<=0))for(var e,c=this.find(w),u=w-c[1],l=this.iterator(c[0]);(e=l())&&u<w+m;){var a=e.length();w>u?y(e,w-u,Math.min(m,u+a-w)):y(e,0,Math.min(a,w+m-u)),u+=a}},T.prototype.map=function(w){return this.reduce(function(m,y){return m.push(w(y)),m},[])},T.prototype.reduce=function(w,m){for(var y,c=this.iterator();y=c();)m=w(m,y);return m},T}();O.default=P},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(17),w=p(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(o){function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,m),u.attach(),u}return P(t,o),t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),0===e&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;void 0===e&&(e=[]),void 0===u&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){void 0===A&&(A=!0),null!=s&&s!==l&&null!=s.domNode.parentNode&&(null==s.domNode[w.DATA_KEY].mutations&&(s.domNode[w.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){null==s.domNode[w.DATA_KEY]||null==s.domNode[w.DATA_KEY].mutations||(s instanceof T.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=w.find(s.target,!0);null!=A&&(A.domNode===s.target&&("childList"===s.type?(r(w.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=w.find(g,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(N){r(N,!1)})})):"attributes"===s.type&&r(A.prev)),r(A))}),this.children.forEach(i),a=(f=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;void 0===u&&(u={}),(e=e||this.observer.takeRecords()).map(function(a){var r=w.find(a.target,!0);return null==r?null:null==r.domNode[w.DATA_KEY].mutations?(r.domNode[w.DATA_KEY].mutations=[a],r):(r.domNode[w.DATA_KEY].mutations.push(a),null)}).forEach(function(a){null==a||a===l||null==a.domNode[w.DATA_KEY]||a.update(a.domNode[w.DATA_KEY].mutations||[],u)}),null!=this.domNode[w.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=w.Scope.BLOCK_BLOT,t.tagName="DIV",t}(T.default);O.default=c},function(B,O,p){"use strict";var c,P=this&&this.__extends||(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])},function(o,t){function e(){this.constructor=o}c(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1);var y=function(c){function o(){return null!==c&&c.apply(this,arguments)||this}return P(o,c),o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t!==this.statics.blotName||e?c.prototype.format.call(this,t,e):(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap())},o.prototype.formatAt=function(t,e,u,l){null!=this.formats()[u]||w.query(u,w.Scope.ATTRIBUTE)?this.isolate(t,e).format(u,l):c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&function m(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=w.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);O.default=y},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.formats=function(o){var t=w.query(c.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},c.prototype.format=function(o,t){null!=w.query(o,w.Scope.BLOCK)&&(o!==this.statics.blotName||t?y.prototype.format.call(this,o,t):this.replaceWith(c.blotName))},c.prototype.formatAt=function(o,t,e,u){null!=w.query(e,w.Scope.BLOCK)?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(null==e||null!=w.query(t,w.Scope.INLINE))y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=w.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},c.blotName="block",c.scope=w.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=m},function(B,O,p){"use strict";var m,P=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])},function(y,c){function o(){this.constructor=y}m(y,c),y.prototype=null===c?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(O,"__esModule",{value:!0});var w=function(m){function y(){return null!==m&&m.apply(this,arguments)||this}return P(y,m),y.formats=function(c){},y.prototype.format=function(c,o){m.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,t,e){0===c&&o===this.length()?this.format(t,e):m.prototype.formatAt.call(this,c,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(p(19).default);O.default=w},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=p(1),m=function(y){function c(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return P(c,y),c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){null==e?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return void 0===t&&(t=!1),[this.domNode,o]},c.prototype.split=function(o,t){if(void 0===t&&(t=!1),!t){if(0===o)return this;if(o===this.length())return this.next}var e=w.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return"characterData"===u.type&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(w,m){return arguments.length>1&&!this.contains(w)==!m?m:T.call(this,w)}}String.prototype.startsWith||(String.prototype.startsWith=function(w,m){return this.substr(m=m||0,w.length)===w}),String.prototype.endsWith||(String.prototype.endsWith=function(w,m){var y=this.toString();("number"!=typeof m||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length);var c=y.indexOf(w,m-=w.length);return-1!==c&&c===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof m)throw new TypeError("predicate must be a function");for(var t,y=Object(this),c=y.length>>>0,o=arguments[1],e=0;e<c;e++)if(m.call(o,t=y[e],e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,O){var p=-1,P=1,T=0;function w(n,s,A){if(n==s)return n?[[T,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),b=n.substring(0,g);g=t(n=n.substring(g),s=s.substring(g));var N=n.substring(n.length-g),v=function m(n,s){var A;if(!n)return[[P,s]];if(!s)return[[p,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,N=g.indexOf(b);if(-1!=N)return A=[[P,g.substring(0,N)],[T,b],[P,g.substring(N+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=p),A;if(1==b.length)return[[p,n],[P,s]];var v=function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||2*g.length<A.length)return null;function b(C,Z,I){for(var L,F,M,x,R=C.substring(I,I+Math.floor(C.length/4)),E=-1,S="";-1!=(E=Z.indexOf(R,E+1));){var j=o(C.substring(I),Z.substring(E)),U=t(C.substring(0,I),Z.substring(0,E));S.length<U+j&&(S=Z.substring(E-U,E)+Z.substring(E,E+j),L=C.substring(0,I-U),F=C.substring(I+j),M=Z.substring(0,E-U),x=Z.substring(E+j))}return 2*S.length>=C.length?[L,F,M,x,S]:null}var h,d,k,_,q,N=b(A,g,Math.ceil(A.length/4)),v=b(A,g,Math.ceil(A.length/2));return N||v?(h=v?N&&N[4].length>v[4].length?N:v:N,n.length>s.length?(d=h[0],k=h[1],_=h[2],q=h[3]):(_=h[0],q=h[1],d=h[2],k=h[3]),[d,k,_,q,h[4]]):null}(n,s);if(v){var d=v[1],_=v[3],q=v[4],D=w(v[0],v[2]),C=w(d,_);return D.concat([[T,q]],C)}return function y(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),N=b,v=2*b,h=new Array(v),d=new Array(v),k=0;k<v;k++)h[k]=-1,d[k]=-1;h[N+1]=0,d[N+1]=0;for(var _=A-g,q=_%2!=0,D=0,C=0,Z=0,I=0,R=0;R<b;R++){for(var E=-R+D;E<=R-C;E+=2){for(var S=N+E,F=(L=E==-R||E!=R&&h[S-1]<h[S+1]?h[S+1]:h[S-1]+1)-E;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[S]=L,L>A)C+=2;else if(F>g)D+=2;else if(q&&(M=N+_-E)>=0&&M<v&&-1!=d[M]&&L>=(x=A-d[M]))return c(n,s,L,F)}for(var j=-R+Z;j<=R-I;j+=2){for(var x,M=N+j,U=(x=j==-R||j!=R&&d[M-1]<d[M+1]?d[M+1]:d[M-1]+1)-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(d[M]=x,x>A)I+=2;else if(U>g)Z+=2;else if(!q){var L;if((S=N+_-j)>=0&&S<v&&-1!=h[S]&&(F=N+(L=h[S])-S,L>=(x=A-x)))return c(n,s,L,F)}}}return[[p,n],[P,s]]}(n,s)}(n=n.substring(0,n.length-g),s=s.substring(0,s.length-g));return b&&v.unshift([T,b]),N&&v.push([T,N]),u(v),null!=A&&(v=function r(n,s){var A=function a(n,s){if(0===s)return[T,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===p||b[0]===T){var N=A+b[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var v=s-A,h=[b[0],b[1].slice(0,v)],d=[b[0],b[1].slice(v)];return n.splice(g,1,h,d),[g+1,n]}A=N}}throw new Error("cursor_pos is out of bounds!")}(n,s),g=A[1],b=A[0],N=g[b],v=g[b+1];if(null==N)return n;if(N[0]!==T)return n;if(null!=v&&N[1]+v[1]===v[1]+N[1])return g.splice(b,2,v,N),f(g,b,2);if(null!=v&&0===v[1].indexOf(N[1])){g.splice(b,2,[v[0],N[1]],[0,N[1]]);var h=v[1].slice(N[1].length);return h.length>0&&g.splice(b+2,0,[v[0],h]),f(g,b,3)}return n}(v,A)),function i(n){for(var s=!1,A=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===T&&g(n[b-2][1])&&n[b-1][0]===p&&A(n[b-1][1])&&n[b][0]===P&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;var N=[];for(b=0;b<n.length;b+=1)n[b][1].length>0&&N.push(n[b]);return N}(v)}function c(n,s,A,g){var b=n.substring(0,A),N=s.substring(0,g),v=n.substring(A),h=s.substring(g),d=w(b,N),k=w(v,h);return d.concat(k)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(N,b)==s.substring(N,b)?N=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(n.length-b,n.length-N)==s.substring(s.length-b,s.length-N)?N=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function u(n){n.push([T,""]);for(var v,s=0,A=0,g=0,b="",N="";s<n.length;)switch(n[s][0]){case P:g++,N+=n[s][1],s++;break;case p:A++,b+=n[s][1],s++;break;case T:A+g>1?(0!==A&&0!==g&&(0!==(v=o(N,b))&&(s-A-g>0&&n[s-A-g-1][0]==T?n[s-A-g-1][1]+=N.substring(0,v):(n.splice(0,0,[T,N.substring(0,v)]),s++),N=N.substring(v),b=b.substring(v)),0!==(v=t(N,b))&&(n[s][1]=N.substring(N.length-v)+n[s][1],N=N.substring(0,N.length-v),b=b.substring(0,b.length-v))),0===A?n.splice(s-g,A+g,[P,N]):0===g?n.splice(s-A,A+g,[p,b]):n.splice(s-A-g,A+g,[p,b],[P,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):0!==s&&n[s-1][0]==T?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",N=""}""===n[n.length-1][1]&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==T&&n[s+1][0]==T&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=w;function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],N=n[g+1];b[0]===N[1]&&n.splice(g,2,[b[0],b[1]+N[1]])}return n}l.INSERT=P,l.DELETE=p,l.EQUAL=T,B.exports=l},function(B,O){function p(P){var T=[];for(var w in P)T.push(w);return T}(B.exports="function"==typeof Object.keys?Object.keys:p).shim=p},function(B,O){var p="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function P(w){return"[object Arguments]"==Object.prototype.toString.call(w)}function T(w){return w&&"object"==typeof w&&"number"==typeof w.length&&Object.prototype.hasOwnProperty.call(w,"callee")&&!Object.prototype.propertyIsEnumerable.call(w,"callee")||!1}(O=B.exports=p?P:T).supported=P,O.unsupported=T},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function T(){}function w(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function m(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),(new T).__proto__||(P=!1)),m.prototype.eventNames=function(){var o,t,c=[];if(0===this._eventsCount)return c;for(t in o=this._events)p.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},m.prototype.listeners=function(c,o){var e=this._events[P?P+c:c];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},m.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var f,n,r=this._events[a],i=arguments.length;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var A,s=r.length;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},m.prototype.on=function(c,o,t){var e=new w(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.once=function(c,o,t){var e=new w(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return 0==--this._eventsCount?this._events=new T:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(0==--this._eventsCount?this._events=new T:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=1===r.length?r[0]:r:0==--this._eventsCount?this._events=new T:delete this._events[u]}return this},m.prototype.removeAllListeners=function(c){var o;return c?this._events[o=P?P+c:c]&&(0==--this._eventsCount?this._events=new T:delete this._events[o]):(this._events=new T,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=P,m.EventEmitter=m,typeof B<"u"&&(B.exports=m)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},T=function(K,$){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return function z(K,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var ut,et=K[Symbol.iterator]();!(W=(ut=et.next()).done)&&(G.push(ut.value),!$||G.length!==$);W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}(K,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function z(K,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(K,W.key,W)}}return function(K,$,G){return $&&z(K.prototype,$),G&&z(K,G),K}}(),y=d(p(3)),o=d(p(2)),e=d(p(0)),l=d(p(5)),r=d(p(10)),f=d(p(9)),n=p(36),s=p(37),g=d(p(13)),b=p(26),N=p(38),v=p(39),h=p(40);function d(z){return z&&z.__esModule?z:{default:z}}function k(z,K,$){return K in z?Object.defineProperty(z,K,{value:$,enumerable:!0,configurable:!0,writable:!0}):z[K]=$,z}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",function Y(z,K){return M(K,"\n")||K.insert("\n"),K}],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,function at(z,K){var $={},G=z.style||{};return G.fontStyle&&"italic"===F(z).fontStyle&&($.italic=!0),G.fontWeight&&(F(z).fontWeight.startsWith("bold")||parseInt(F(z).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(K=L(K,$)),parseFloat(G.textIndent||0)>0&&(K=(new o.default).insert("\t").concat(K)),K}],["li",function Q(z,K){var $=e.default.query(z);if(null==$||"list-item"!==$.blotName||!M(K,"\n"))return K;for(var G=-1,W=z.parentNode;!W.classList.contains("ql-clipboard");)"list"===(e.default.query(W)||{}).blotName&&(G+=1),W=W.parentNode;return G<=0?K:K.compose((new o.default).retain(K.length()-1).retain(1,{indent:G}))}],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",function X(){return new o.default}]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),E=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,N.DirectionStyle,v.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){function K($,G){!function _(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}(this,K);var W=function q(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!K||"object"!=typeof K&&"function"!=typeof K?z:K}(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=T(J,2),ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(tt[0],ut)}),W}return function D(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}(K,z),w(K,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if("string"==typeof G)return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(J,k({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),it=j(this.container,et[0],et[1]);return M(it,"\n")&&null==it.ops[it.ops.length-1].attributes&&(it=it.compose((new o.default).retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof G)this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents((new o.default).retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!G.defaultPrevented&&this.quill.isEnabled()){var J=this.quill.getSelection(),tt=(new o.default).retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[Z]=it[Z]||[],it[Z].push(ft)})}}),[W,J]}}]),K}(f.default);function L(z,K,$){return"object"===(typeof K>"u"?"undefined":P(K))?Object.keys(K).reduce(function(G,W){return L(G,W,K[W])},z):z.reduce(function(G,W){return W.attributes&&W.attributes[K]?G.push(W):G.insert(W.insert,(0,y.default)({},k({},K,$),W.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var $="",G=z.ops.length-1;G>=0&&$.length<K.length;--G){var W=z.ops[G];if("string"!=typeof W.insert)break;$=W.insert+$}return $.slice(-1*K.length)===K}function x(z){if(0===z.childNodes.length)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,$){return z.nodeType===z.TEXT_NODE?$.reduce(function(G,W){return W(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,W){var J=j(W,K,$);return W.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et(W,tt)},J),J=(W[Z]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,$){return L($,z,!0)}function H(z,K){var $=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),W=e.default.Attributor.Style.keys(z),J={};return $.concat(G).concat(W).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);null!=et&&(J[et.attrName]=et.value(z),J[et.attrName])||(null!=(et=R[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),null!=(et=E[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[(et=E[tt]).attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=L(K,J)),K}function V(z,K){var $=e.default.query(z);if(null==$)return K;if($.prototype instanceof e.default.Embed){var G={},W=$.value(z);null!=W&&(G[$.blotName]=W,K=(new o.default).insert(G,$.formats(z)))}else"function"==typeof $.formats&&(K=L(K,$.blotName,$.formats(z)));return K}function nt(z,K){return M(K,"\n")||(x(z)||K.length()>0&&z.nextSibling&&x(z.nextSibling))&&K.insert("\n"),K}function rt(z,K){if(x(z)&&null!=z.nextElementSibling&&!M(K,"\n\n")){var $=z.offsetHeight+parseFloat(F(z).marginTop)+parseFloat(F(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+1.5*$&&K.insert("\n")}return K}function lt(z,K){var $=z.data;if("O:P"===z.parentNode.tagName)return K.insert($.trim());if(0===$.trim().length&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!F(z.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return(tt=tt.replace(/[^\u00a0]/g,"")).length<1&&J?" ":tt};$=($=$.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,G.bind(G,!0)),(null==z.previousSibling&&x(z.parentNode)||null!=z.previousSibling&&x(z.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(null==z.nextSibling&&x(z.parentNode)||null!=z.nextSibling&&x(z.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return K.insert($)}S.DEFAULTS={matchers:[],matchVisual:!0},O.default=S,O.matchAttributor=H,O.matchBlot=V,O.matchNewline=nt,O.matchSpacing=rt,O.matchText=lt},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"optimize",value:function(r){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(6)).default);e.blotName="bold",e.tagName=["STRONG","B"],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=function(d,k){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return function h(d,k){var _=[],q=!0,D=!1,C=void 0;try{for(var I,Z=d[Symbol.iterator]();!(q=(I=Z.next()).done)&&(_.push(I.value),!k||_.length!==k);q=!0);}catch(R){D=!0,C=R}finally{try{!q&&Z.return&&Z.return()}finally{if(D)throw C}}return _}(d,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),m=r(p(2)),c=r(p(0)),t=r(p(5)),u=r(p(10)),a=r(p(9));function r(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}var A=(0,u.default)("quill:toolbar"),g=function(h){function d(k,_){!function f(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d);var C,q=n(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k,_));if(Array.isArray(q.options.container)){var D=document.createElement("div");N(D,q.options.container),k.container.parentNode.insertBefore(D,k.container),q.container=D}else q.container="string"==typeof q.options.container?document.querySelector(q.options.container):q.options.container;return q.container instanceof HTMLElement?(q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(Z){q.addHandler(Z,q.options.handlers[Z])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(Z){q.attach(Z)}),q.quill.on(t.default.events.EDITOR_CHANGE,function(Z,I){Z===t.default.events.SELECTION_CHANGE&&q.update(I)}),q.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=q.quill.selection.getRange(),I=P(Z,1);q.update(I[0])}),q):(C=A.error("Container required for toolbar",q.options),n(q,C))}return function s(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}(d,h),T(d,[{key:"addHandler",value:function(_,q){this.handlers[_]=q}},{key:"attach",value:function(_){var q=this,D=[].find.call(_.classList,function(Z){return 0===Z.indexOf("ql-")});if(D){if(D=D.slice(3),"BUTTON"===_.tagName&&_.setAttribute("type","button"),null==this.handlers[D]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[D])return void A.warn("ignoring attaching to disabled format",D,_);if(null==c.default.query(D))return void A.warn("ignoring attaching to nonexistent format",D,_)}_.addEventListener("SELECT"===_.tagName?"change":"click",function(Z){var I=void 0;if("SELECT"===_.tagName){if(_.selectedIndex<0)return;var R=_.options[_.selectedIndex];I=!R.hasAttribute("selected")&&(R.value||!1)}else I=!_.classList.contains("ql-active")&&(_.value||!_.hasAttribute("value")),Z.preventDefault();q.quill.focus();var E=q.quill.selection.getRange(),L=P(E,1)[0];if(null!=q.handlers[D])q.handlers[D].call(q,I);else if(c.default.query(D).prototype instanceof c.default.Embed){if(!(I=prompt("Enter "+D)))return;q.quill.updateContents((new m.default).retain(L.index).delete(L.length).insert(function i(h,d,k){return d in h?Object.defineProperty(h,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):h[d]=k,h}({},D,I)),t.default.sources.USER)}else q.quill.format(D,I,t.default.sources.USER);q.update(L)}),this.controls.push([D,_])}}},{key:"update",value:function(_){var q=null==_?{}:this.quill.getFormat(_);this.controls.forEach(function(D){var C=P(D,2),Z=C[0],I=C[1];if("SELECT"===I.tagName){var R=void 0;if(null==_)R=null;else if(null==q[Z])R=I.querySelector("option[selected]");else if(!Array.isArray(q[Z])){var E=q[Z];"string"==typeof E&&(E=E.replace(/\"/g,'\\"')),R=I.querySelector('option[value="'+E+'"]')}null==R?(I.value="",I.selectedIndex=-1):R.selected=!0}else if(null==_)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var S=q[Z]===I.getAttribute("value")||null!=q[Z]&&q[Z].toString()===I.getAttribute("value")||null==q[Z]&&!I.getAttribute("value");I.classList.toggle("ql-active",S)}else I.classList.toggle("ql-active",null!=q[Z])})}}]),d}(a.default);function b(h,d,k){var _=document.createElement("button");_.setAttribute("type","button"),_.classList.add("ql-"+d),null!=k&&(_.value=k),h.appendChild(_)}function N(h,d){Array.isArray(d[0])||(d=[d]),d.forEach(function(k){var _=document.createElement("span");_.classList.add("ql-formats"),k.forEach(function(q){if("string"==typeof q)b(_,q);else{var D=Object.keys(q)[0],C=q[D];Array.isArray(C)?function v(h,d,k){var _=document.createElement("select");_.classList.add("ql-"+d),k.forEach(function(q){var D=document.createElement("option");!1!==q?D.setAttribute("value",q):D.setAttribute("selected","selected"),_.appendChild(D)}),h.appendChild(_)}(_,D,C):b(_,D,C)}}),h.appendChild(_)})}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var d=this,k=this.quill.getSelection();if(null!=k)if(0==k.length){var _=this.quill.getFormat();Object.keys(_).forEach(function(q){null!=c.default.query(q,c.default.Scope.INLINE)&&d.quill.format(q,!1)})}else this.quill.removeFormat(k,t.default.sources.USER)},direction:function(d){var k=this.quill.getFormat().align;"rtl"===d&&null==k?this.quill.format("align","right",t.default.sources.USER):!d&&"right"===k&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",d,t.default.sources.USER)},indent:function(d){var k=this.quill.getSelection(),_=this.quill.getFormat(k),q=parseInt(_.indent||0);if("+1"===d||"-1"===d){var D="+1"===d?1:-1;"rtl"===_.direction&&(D*=-1),this.quill.format("indent",q+D,t.default.sources.USER)}},link:function(d){!0===d&&(d=prompt("Enter link URL:")),this.quill.format("link",d,t.default.sources.USER)},list:function(d){var k=this.quill.getSelection(),_=this.quill.getFormat(k);this.quill.format("list","check"===d?"checked"!==_.list&&"unchecked"!==_.list&&"unchecked":d,t.default.sources.USER)}}},O.default=g,O.addControls=N},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"buildItem",value:function(r){var i=T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&("line"===f.tagName?f.style.stroke=n:f.style.fill=n)}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(28)).default);O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"selectItem",value:function(r,i){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),this.label.innerHTML=(r=r||this.defaultItem).innerHTML}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(28)).default);O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();var w=function(){function m(y,c){var o=this;(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.boundsContainer=c||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return P(m,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,t=c.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;return u.right>e.right&&(this.root.style.left=o+(l=e.right-u.right)+"px"),u.left<e.left&&(this.root.style.left=o+(l=e.left-u.left)+"px"),u.bottom>e.bottom&&(this.root.style.top=t-(c.bottom-c.top+(u.bottom-u.top))+"px",this.root.classList.add("ql-flip")),l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),m}();O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(_=(Z=C.next()).done)&&(k.push(Z.value),!d||k.length!==d);_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function v(h,d,k){null===h&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(void 0===_){var q=Object.getPrototypeOf(h);return null===q?void 0:v(q,d,k)}if("value"in _)return _.value;var D=_.get;return void 0===D?void 0:D.call(k)},w=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),y=f(p(3)),o=f(p(8)),t=p(43),e=f(t),l=f(p(27)),a=p(15),i=f(p(41));function f(v){return v&&v.__esModule?v:{default:v}}function n(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function s(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?v:h}function A(v,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(v){function h(d,k){n(this,h),null!=k.modules.toolbar&&null==k.modules.toolbar.container&&(k.modules.toolbar.container=g);var _=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,k));return _.quill.container.classList.add("ql-snow"),_}return A(h,v),w(h,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),i.default),this.tooltip=new N(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(_,q){k.handlers.link.call(k,!q.format.link)})}}]),h}(e.default);b.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var d=this.quill.getSelection();if(null==d||0==d.length)return;var k=this.quill.getText(d);/^\S+@\S+\.\S+$/.test(k)&&0!==k.indexOf("mailto:")&&(k="mailto:"+k),this.quill.theme.tooltip.edit("link",k)}else this.quill.format("link",!1)}}}}});var N=function(v){function h(d,k){n(this,h);var _=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,k));return _.preview=_.root.querySelector("a.ql-preview"),_}return A(h,v),w(h,[{key:"listen",value:function(){var k=this;T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(_){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),_.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(_){if(null!=k.linkRange){var q=k.linkRange;k.restoreFocus(),k.quill.formatText(q,"link",!1,o.default.sources.USER),delete k.linkRange}_.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(_,q,D){if(null!=_){if(0===_.length&&D===o.default.sources.USER){var C=k.quill.scroll.descendant(l.default,_.index),Z=P(C,2),I=Z[0];if(null!=I){k.linkRange=new a.Range(_.index-Z[1],I.length());var E=l.default.formats(I.domNode);return k.preview.textContent=E,k.preview.setAttribute("href",E),k.show(),void k.position(k.quill.getBounds(k.linkRange))}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(t.BaseTooltip);N.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),O.default=b},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=W(p(29)),w=p(36),m=p(38),y=p(64),o=W(p(65)),e=W(p(66)),u=p(67),l=W(u),a=p(37),r=p(26),i=p(39),f=p(40),s=W(p(56)),g=W(p(68)),N=W(p(27)),h=W(p(69)),k=W(p(70)),q=W(p(71)),C=W(p(72)),I=W(p(73)),R=p(13),E=W(R),L=W(p(74)),M=W(p(75)),j=W(p(57)),H=W(p(41)),Y=W(p(28)),Q=W(p(59)),rt=W(p(60)),lt=W(p(61)),K=W(p(108)),G=W(p(62));function W(J){return J&&J.__esModule?J:{default:J}}T.default.register({"attributors/attribute/direction":m.DirectionAttribute,"attributors/class/align":w.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":m.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":w.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":m.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),T.default.register({"formats/align":w.AlignClass,"formats/direction":m.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":E.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":s.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":N.default,"formats/script":h.default,"formats/strike":k.default,"formats/underline":q.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":u.ListItem,"modules/formula":L.default,"modules/syntax":M.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":lt.default},!0),O.default=T.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)},m=function y(l){return l&&l.__esModule?l:{default:l}}(p(0));var e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"add",value:function(i,f){if("+1"===f||"-1"===f){var n=this.value(i)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(i),!0):T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,f)||T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(m.default.Attributor.Class),u=new e("indent","ql-indent",{scope:m.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(4)).default);o.blotName="blockquote",o.tagName="blockquote",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function e(u,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}();var t=function(e){function u(){return function y(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function c(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?e:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function o(e,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}(u,e),P(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(function m(e){return e&&e.__esModule?e:{default:e}}(p(4)).default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],O.default=t},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var P=function(){function n(s,A){for(var g=0;g<A.length;g++){var b=A[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}return function(s,A,g){return A&&n(s.prototype,A),g&&n(s,g),s}}(),T=function n(s,A,g){null===s&&(s=Function.prototype);var b=Object.getOwnPropertyDescriptor(s,A);if(void 0===b){var N=Object.getPrototypeOf(s);return null===N?void 0:n(N,A,g)}if("value"in b)return b.value;var v=b.get;return void 0===v?void 0:v.call(g)},m=e(p(0)),c=e(p(4)),t=e(p(25));function e(n){return n&&n.__esModule?n:{default:n}}function l(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function a(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?n:s}function r(n,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}var i=function(n){function s(){return l(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return r(s,n),P(s,[{key:"format",value:function(g,b){g!==f.blotName||b?T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,g,b):this.replaceWith(m.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,b){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,b),this):(this.parent.unwrap(),T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,g,b))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:T(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,g)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(n){function s(A){l(this,s);var g=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,A)),b=function(v){if(v.target.parentNode===A){var h=g.statics.formats(A),d=m.default.find(v.target);"checked"===h?d.format("list","unchecked"):"unchecked"===h&&d.format("list","checked")}};return A.addEventListener("touchstart",b),A.addEventListener("mousedown",b),g}return r(s,n),P(s,null,[{key:"create",value:function(g){var b="ordered"===g?"OL":"UL",N=T(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,b);return("checked"===g||"unchecked"===g)&&N.setAttribute("data-checked","checked"===g),N}},{key:"formats",value:function(g){return"OL"===g.tagName?"ordered":"UL"===g.tagName?g.hasAttribute("data-checked")?"true"===g.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),P(s,[{key:"format",value:function(g,b){this.children.length>0&&this.children.tail.format(g,b)}},{key:"formats",value:function(){return function u(n,s,A){return s in n?Object.defineProperty(n,s,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[s]=A,n}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,b){if(g instanceof i)T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,g,b);else{var N=null==b?this.length():b.offset(this),v=this.split(N);v.parent.insertBefore(g,v)}}},{key:"optimize",value:function(g){T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,g);var b=this.next;null!=b&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var b=m.default.create(this.statics.defaultChild);g.moveChildren(b),this.appendChild(b)}T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,g)}}]),s}(t.default);f.blotName="list",f.scope=m.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],O.ListItem=i,O.default=f},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(56)).default);o.blotName="italic",o.tagName=["EM","I"],O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,null,[{key:"create",value:function(r){return"super"===r?document.createElement("sup"):"sub"===r?document.createElement("sub"):T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){return"SUB"===r.tagName?"sub":"SUP"===r.tagName?"super":void 0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(6)).default);e.blotName="script",e.tagName=["SUB","SUP"],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(6)).default);o.blotName="strike",o.tagName="S",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(6)).default);o.blotName="underline",o.tagName="U",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function c(a){return a&&a.__esModule?a:{default:a}}(p(0)),y=p(27);var u=["alt","height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return"string"==typeof f&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(m.default.Embed);l.blotName="image",l.tagName="IMG",O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},w=p(4),y=function c(a){return a&&a.__esModule?a:{default:a}}(p(27));var u=["height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(w.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),T=function f(n,s,A){null===n&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,s);if(void 0===g){var b=Object.getPrototypeOf(n);return null===b?void 0:f(b,s,A)}if("value"in g)return g.value;var N=g.get;return void 0===N?void 0:N.call(A)},m=e(p(35)),c=e(p(5)),t=e(p(9));function e(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}function a(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,f),P(n,null,[{key:"create",value:function(A){var g=T(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return"string"==typeof A&&(window.katex.render(A,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",A)),g}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(m.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){function n(){u(this,n);var s=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return s}return a(n,f),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]),n}(t.default);O.FormulaBlot=r,O.default=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var P=function(){function A(g,b){for(var N=0;N<b.length;N++){var v=b[N];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,b,N){return b&&A(g.prototype,b),N&&A(g,N),g}}(),T=function A(g,b,N){null===g&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,b);if(void 0===v){var h=Object.getPrototypeOf(g);return null===h?void 0:A(h,b,N)}if("value"in v)return v.value;var d=v.get;return void 0===d?void 0:d.call(N)},m=l(p(0)),c=l(p(5)),t=l(p(9));function l(A){return A&&A.__esModule?A:{default:A}}function a(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function r(A,g){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?A:g}function i(A,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);A.prototype=Object.create(g&&g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(A,g):A.__proto__=g)}var f=function(A){function g(){return a(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,A),P(g,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var v=this.domNode.textContent;this.cachedText!==v&&((v.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=N(v),this.domNode.normalize(),this.attach()),this.cachedText=v)}}]),g}(l(p(13)).default);f.className="ql-syntax";var n=new m.default.Attributor.Class("token","hljs",{scope:m.default.Scope.INLINE}),s=function(A){function g(b,N){a(this,g);var v=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b,N));if("function"!=typeof v.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return v.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){v.highlight(),h=null},v.options.interval)}),v.highlight(),v}return i(g,A),P(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(f,!0)}}]),P(g,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var v=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(h){h.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),null!=v&&this.quill.setSelection(v,c.default.sources.SILENT)}}}]),g}(t.default);s.DEFAULTS={highlight:null==window.hljs?null:function(A){return window.hljs.highlightAuto(A).value},interval:1e3},O.CodeBlock=f,O.CodeToken=n,O.default=s},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(B,O){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(B,O){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(B,O){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(B,O){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function g(b,N,v){null===b&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,N);if(void 0===h){var d=Object.getPrototypeOf(b);return null===d?void 0:g(d,N,v)}if("value"in h)return h.value;var k=h.get;return void 0===k?void 0:k.call(v)},T=function(){function g(b,N){for(var v=0;v<N.length;v++){var h=N[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(b,h.key,h)}}return function(b,N,v){return N&&g(b.prototype,N),v&&g(b,v),b}}(),m=a(p(3)),c=a(p(8)),o=p(43),t=a(o),e=p(15),l=a(p(41));function a(g){return g&&g.__esModule?g:{default:g}}function r(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function i(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?g:b}function f(g,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(g){function b(N,v){r(this,b),null!=v.modules.toolbar&&null==v.modules.toolbar.container&&(v.modules.toolbar.container=n);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,v));return h.quill.container.classList.add("ql-bubble"),h}return f(b,g),T(b,[{key:"extendToolbar",value:function(v){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(v.container),this.buildButtons([].slice.call(v.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(v.container.querySelectorAll("select")),l.default)}}]),b}(t.default);s.DEFAULTS=(0,m.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(g){function b(N,v){r(this,b);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,v));return h.quill.on(c.default.events.EDITOR_CHANGE,function(d,k,_,q){if(d===c.default.events.SELECTION_CHANGE)if(null!=k&&k.length>0&&q===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var D=h.quill.getLines(k.index,k.length);if(1===D.length)h.position(h.quill.getBounds(k));else{var C=D[D.length-1],Z=h.quill.getIndex(C),I=Math.min(C.length()-1,k.index+k.length-Z),R=h.quill.getBounds(new e.Range(Z,I));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return f(b,g),T(b,[{key:"listen",value:function(){var v=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){v.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!v.root.classList.contains("ql-hidden")){var h=v.quill.getSelection();null!=h&&v.position(v.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(v){var h=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,v),d=this.root.querySelector(".ql-tooltip-arrow");if(d.style.marginLeft="",0===h)return h;d.style.marginLeft=-1*h-d.offsetWidth/2+"px"}}]),b}(o.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),O.BubbleTooltip=A,O.default=s},function(B,O,p){B.exports=p(63)}]).default}}]);
|
|
4
|
+
"use strict";(self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[792],{3624:(gn,ct,N)=>{var e=N(345),h=N(7705),ne=N(2771),Z=N(7786),De=N(5558),we=N(6354);const Ie={schedule(C,v){const u=setTimeout(C,v);return()=>clearTimeout(u)},scheduleBeforeRender(C){if(typeof window>"u")return Ie.schedule(C,0);if(typeof window.requestAnimationFrame>"u")return Ie.schedule(C,16);const v=window.requestAnimationFrame(C);return()=>window.cancelAnimationFrame(v)}};let Ue;function tn(C,v,u){let w=u;return function Fe(C){return!!C&&C.nodeType===Node.ELEMENT_NODE}(C)&&v.some((F,$)=>!("*"===F||!function Ct(C,v){if(!Ue){const u=Element.prototype;Ue=u.matches||u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}return C.nodeType===Node.ELEMENT_NODE&&Ue.call(C,v)}(C,F)||(w=$,0))),w}class Pt{constructor(v,u){this.componentFactory=u.get(h.OM3).resolveComponentFactory(v)}create(v){return new me(this.componentFactory,v)}}class me{constructor(v,u){this.componentFactory=v,this.injector=u,this.eventEmitters=new ne.m(1),this.events=this.eventEmitters.pipe((0,De.n)(w=>(0,Z.h)(...w))),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:w})=>w)),this.ngZone=this.injector.get(h.SKi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(v){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(v)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ie.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(v){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(v):this.componentRef.instance[v])}setInputValue(v,u,w){this.runInZone(()=>{w&&(u=w.call(this.componentRef?.instance,u)),null!==this.componentRef?function _t(C,v){return C===v||C!=C&&v!=v}(u,this.getInputValue(v))&&(void 0!==u||!this.unchangedInputs.has(v))||(this.recordInputChange(v,u),this.unchangedInputs.delete(v),this.hasInputChanges=!0,this.componentRef.instance[v]=u,this.scheduleDetectChanges()):this.initialInputValues.set(v,u)})}initializeComponent(v){const u=h.zZn.create({providers:[],parent:this.injector}),w=function mt(C,v){const u=C.childNodes,w=v.map(()=>[]);let F=-1;v.some(($,pe)=>"*"===$&&(F=pe,!0));for(let $=0,pe=u.length;$<pe;++$){const Pe=u[$],tt=tn(Pe,v,F);-1!==tt&&w[tt].push(Pe)}return w}(v,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(u,w,v),this.viewChangeDetectorRef=this.componentRef.injector.get(h.gRc),this.implementsOnChanges=function Me(C){return"function"==typeof C}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(h.o8S).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:v,transform:u})=>{this.initialInputValues.has(v)&&this.setInputValue(v,this.initialInputValues.get(v),u)}),this.initialInputValues.clear()}initializeOutputs(v){const u=this.componentFactory.outputs.map(({propName:w,templateName:F})=>v.instance[w].pipe((0,we.T)(pe=>({name:F,value:pe}))));this.eventEmitters.next(u)}callNgOnChanges(v){if(!this.implementsOnChanges||null===this.inputChanges)return;const u=this.inputChanges;this.inputChanges=null,v.instance.ngOnChanges(u)}markViewForCheck(v){this.hasInputChanges&&(this.hasInputChanges=!1,v.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ie.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(v,u){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const w=this.inputChanges[v];if(w)return void(w.currentValue=u);const F=this.unchangedInputs.has(v),$=F?void 0:this.getInputValue(v);this.inputChanges[v]=new h.FRM($,u,F)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(v){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(v):v()}}class at extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}var kt=N(467),Tt=N(177);let cn={production:!1,googleRecaptchaSiteKey:"",htmlDirection:"ltr"};function kn(C){return{name:C.result.name,formConfiguration:Kt(C.result.moduleConfiguration),pages:C.result.pages.map(v=>function Ye(C){return{title:C.title,testElementName:C.testElementName,rows:C.rows.map(v=>ye(v))}}(v)),questionAnswers:C.result.questionAnswers,parentId:C.result.parentId,emitters:C.result.emittersDTOS?C.result.emittersDTOS.map(v=>function dn(C){return{id:C.id,keyName:C.keyName,valueSource:C.valueSource,questionId:C.questionId,inputValue:C.inputValue,isConflict:C.isConflict??!1}}(v)):[]}}function Kt(C){return{saveAutomatically:C?.saveAutomatically,saveInterval:C?.saveInterval,customizeFont:C?.customizeFont,fontFamily:C?.fontFamily,fontSize:C?.fontSize,enableDataExport:C?.enableDataExport,fileFormats:C?.fileFormats,enableQuestionNumbering:C?.enableQuestionNumbering,questionNumbering:C?.questionNumbering,enableGoogleRecaptcha:C?.enableGoogleRecaptcha,googleRecaptchaKey:C?.googleRecaptchaKey,googleRecaptchaSecret:C?.googleRecaptchaSecret,navigation:C?.navigation,markAllQuestionsAsRequired:C?.markAllQuestionsAsRequired}}function ye(C){return{grid:C.grid.map(v=>function Se(C){let v;switch(C.entityType){case"QUESTION":v=function K(C){return{count:C.count,id:C.id,questionNumber:C.questionNumber,required:C.required,hint:C.hint,question:C.question,testElementName:C.testElementName,answer:C?.answer,validation:!0,formElement:je(C.formElement),childLogics:C?.childLogics?.map(v=>function Le(C){return{id:C.id,inputValue:C.inputValue,condition:C.condition,showLogic:!1,rows:C?.rows?.map(v=>ye(v))}}(v)),answerId:C?.answerId,attachments:C?.attachments?.map(v=>ge(v))||[],deleteFiles:[],defaultValue:C?.defaultValue,disableEdit:C?.disableEdit}}(C.element);break;case"SECTION":v=function Nt(C){return{id:C.id,title:C.title,description:C.description,testElementName:C.testElementName}}(C.element);break;case"SUBFORM":v=function ue(C){return{id:C.id,count:C.count,title:C.title,description:C.description,testElementName:C.testElementName,rows:C.rows.map(v=>ye(v)),submissions:C?.submissions?.map(v=>Gt(v)),property:C.property?Be(C.property):void 0,defaultAnswers:C.defaultAnswers?He(C.defaultAnswers):void 0,deleted:!1}}(C.element);break;case"QUESTION_GROUP":v=function pt(C){return{id:C.id,count:C.count,title:C.title,description:C.description,testElementName:C.testElementName,rows:C.rows.map(v=>ye(v)),submissions:C?.submissions?.map(v=>Gt(v))}}(C.element);break;case"MULTIFIELD":v=function dt(C){return{id:C.id,question:C.question,questionNumber:C.questionNumber,count:C.count,testElementName:C.testElementName,rows:C.rows.map(v=>ye(v)),submissions:C?.submissions?.map(v=>Gt(v))}}(C.element);break;default:throw new Error(`Unknown entity type: ${C.entityType}`)}return{entityType:C.entityType,element:v}}(v))}}function ge(C){return{fileId:C.fileId,fileName:C.fileName,fileUrl:C.fileUrl,fileSize:C?.fileSize}}function je(C){return{elementType:C.elementType,appearance:Vn(C.appearance),validation:oi(C.validation),option:xe(C?.option),aggregateFunction:le(C?.aggregateFunction),selectionMatrixLabel:C.selectionMatrixLabel,selectionMatrixColumn:C.selectionMatrixColumn,termsAndConditionType:de(C)}}function le(C){if(C)return{aggregateOperation:C.aggregateOperation,formula:C.formula}}function de(C){if(null!=C.termsAndCondition){let v=C.termsAndCondition;return{termsAndConditionType:v.termsAndConditionType,fileUrl:v.fileUrl,fileName:v.fileName}}return{termsAndConditionType:"",fileUrl:"",fileName:""}}function He(C){return{answers:C.answers.map(v=>function L(C){return{isDeleteEnable:C.isDeleteEnable,defaultQuestionsAnswers:C.defaultQuestionsAnswers.map(v=>function q(C){return{defaultAnswer:C.defaultAnswer,readOnly:C.readOnly,isDeleteEnable:C.isDeleteEnable,questionId:C.questionId}}(v))}}(v))}}function Be(C){return{subFormStructure:C.subFormStructure,subFormType:C.subFormType,allowDelete:C.allowDelete,allowCopy:C.allowCopy}}function Gt(C){return{submissionId:C?.submissionId,answers:C?.answers?.map(v=>function Cn(C){return{questionId:C.questionId,answer:C?.answer,answerId:C?.answerId,attachments:C?.attachments?.map(v=>ge(v))}}(v)),configuration:jn(C?.configuration)}}function jn(C){if(C)return{allowDelete:!!C.allowDelete,isDefault:!!C.isDefault}}function Vn(C){return{placeholder:C?.placeholder,fontSize:C?.fontSize,textAlign:C?.textAlign,font:C?.font,underline:C?.underline,bold:C?.bold,italics:C?.italics,defaultValue:C?.defaultValue,numberOfRows:C?.numberOfRows,singleSelection:C?.singleSelection,displayCountryCode:C?.displayCountryCode,displayFlag:C?.displayFlag,displayCode:C?.displayCode,showCountryName:C?.showCountryName,beautifyNumbers:C?.beautifyNumbers,upAndDownButton:C?.upAndDownButton,allowNegativeValues:C?.allowNegativeValues,showPreviewButton:C?.showPreviewButton,confirmPassword:C?.confirmPassword,viewButton:C?.viewButton,displayStrong:C?.displayStrong,dateType:C?.dateType,format:C?.format,setCurrentPosition:C?.setCurrentPosition,defaultZoomLevel:C?.defaultZoomLevel,allowFullScreen:C?.allowFullScreen,latitude:C?.latitude,longitude:C?.longitude,showAcceptButton:C?.showAcceptButton,labelOnValue:C?.labelOnValue,labelOffValue:C?.labelOffValue,labelOnColor:C?.labelOnColor,labelOffColor:C?.labelOffColor,minValue:C?.minValue,maxValue:C?.maxValue,stepValue:C?.stepValue,changeSliderColor:C?.changeSliderColor,sliderColor:C?.sliderColor,canvasOption:C?.canvasOption,selectionType:C?.selectionType,dragAndDrop:C?.dragAndDrop,previewUploadedFiles:C?.previewUploadedFiles,multiFileUploads:C?.multiFileUploads,selectionColorRequired:C?.selectionColorRequired,selectionColor:C?.selectionColor,color:C?.color,avatarPicker:C?.avatarPicker,timeFormat:C?.timeFormat,displayOptionsInColumn:C?.displayOptionsInColumn}}function oi(C){return{regexValidation:C?.regexValidation,regex:C?.regex,validationMessage:C?.validationMessage,limitedCharacters:C?.limitedCharacters,count:C?.count,minimumSelection:C?.minimumSelection,maximumSelection:C?.maximumSelection,countryWiseValidation:C?.countryWiseValidation,restrictCountry:C?.restrictCountry,allowedCountries:C?.allowedCountries,blockedCountries:C?.blockedCountries,regularExpression:C?.regularExpression,expectedDomains:C?.expectedDomains,min:C?.min,max:C?.max,minLength:C?.minLength,maxLength:C?.maxLength,requireLowercaseLetters:C?.requireLowercaseLetters,requireUppercaseLetters:C?.requireUppercaseLetters,requireNumbers:C?.requireNumbers,requireSpecialCharacters:C?.requireSpecialCharacters,allowedSpecialCharacters:C?.allowedSpecialCharacters,minDateOption:C?.minDateOption,minDate:C?.minDate,maxDateOption:C?.maxDateOption,maxDate:C?.maxDate,regionBoundary:C?.regionBoundary,region:C?.region,preventFromProceedingWithoutAgree:C?.preventFromProceedingWithoutAgree,buttonColour:C?.buttonColour,maxFileSize:C?.maxFileSize,minFileSize:C?.minFileSize,minSelection:C?.minSelection,maxSelection:C?.maxSelection,fileTypes:C?.fileTypes,fileSize:C?.fileSize,fileSizeUnit:C?.fileSizeUnit,totalFileSize:C?.totalFileSize,minSelectionRequired:C?.minSelectionRequired,minSelectionValue:C?.minSelectionValue,validationType:C?.validationType,validation:C?.validation,minTime:C?.minTime,maxTime:C?.maxTime,minTimeOption:C?.minTimeOption,maxTimeOption:C?.maxTimeOption}}function yi(C){return{tableName:C.tableName,valueField:C.valueField,labelField:C.labelField,criteria:C?.criteria.map(v=>function It(C){return{field:C?.field,condition:C?.condition,valueSource:C?.valueSource,inputValue:C?.inputValue,logicalOperator:C?.logicalOperator}}(v))}}function ke(C){return{external:C?.external,url:C?.url,valueField:C?.valueField,labelField:C?.labelField,pathToValue:C?.pathToValue,headers:C?.headers?.map(re),params:C?.params?.map(re),pathVariables:C?.pathVariables?.map(re)}}function re(C){return{keyName:C?.keyName,valueSource:C?.valueSource,inputValue:C?.inputValue}}function xe(C){return{optionType:C?.optionType,lookupTable:C?.lookupTable,customOptions:C?.customOptions?.map(v=>({value:v.value})),database:C?.database?yi(C?.database):void 0,api:C?.api?ke(C.api):void 0}}var Ve=N(3628);let ut=(()=>{class C{constructor(u){this.validationService=u}validateRequiredQuestions(u){const w=(F,$=null)=>{for(let pe of F)if("QUESTION"===pe.entityType){const Pe=pe.element,tt=Pe.required,Ot=Pe.id;let en;if($?.isInMultipleSubform){const{submission:Dn}=$;en=Dn.answers.find(An=>An.questionId===Ot)?.answer}else en=Pe.answer;const Un=null==en||"string"==typeof en&&""===en.trim()||"object"==typeof en&&0===Object.keys(en).length;if(tt&&Un){const Dn=$?.isInMultipleSubform?`Required question ${Pe.questionNumber} is not answered in a subform.`:`Required question ${Pe.questionNumber} is not answered.`;return this.validationService.setInvalid(Ot,Dn,u.pageIndex??0),{isValid:!1,message:Dn}}if(Pe.childLogics)for(let Dn of Pe.childLogics)if(Dn.showLogic)for(let An of Dn.rows){const zn=w(An.grid,$);if(!zn.isValid)return zn}}else if("SUBFORM"===pe.entityType){const Pe=pe.element;if("multiple"===Pe.property?.subFormStructure){const tt=Pe.submissions||[];if(tt.length>0){if(Pe.rows.some(en=>en.grid.some(Un=>"QUESTION"===Un.entityType&&Un.element.required))&&0===tt.length){const en=`Subform "${Pe.title||"Untitled"}" is missing required submissions.`;return this.validationService.setInvalid(Pe.id,en,u.pageIndex??0),{isValid:!1,message:en}}const an=new Map;Pe.rows.forEach(en=>en.grid.forEach(Un=>{"QUESTION"===Un.entityType&&an.set(Un.element.id,Un.element)}));for(let en of tt)for(let Un of Pe.rows){const Dn=w(Un.grid,{isInMultipleSubform:!0,submission:en,questionMap:an});if(!Dn.isValid)return Dn}}}else for(let tt of Pe.rows||[]){const Ot=w(tt.grid);if(!Ot.isValid)return Ot}}else if(("QUESTION_GROUP"===pe.entityType||"MULTIFIELD"===pe.entityType)&&pe.element.rows)for(let Pe of pe.element.rows){const tt=w(Pe.grid,$);if(!tt.isValid)return tt}return{isValid:!0,message:"All required questions are answered."}};for(const F of u.rows){const $=w(F.grid);if(!$.isValid)return $}return{isValid:!0,message:"All required questions are answered."}}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(Ve.B))}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})();var Ft=N(7869),on=N(7673),Ln=N(3726),Qt=N(1397),Xt=N(8141),nt=N(5964),Mt=N(3236),Dt=N(9974),Nn=N(4360),yn=N(8750),di=N(1584);function cs(C,v,u,w){const F=window&&!!window.document&&window.document.documentElement;let $=F&&v?window:u;if(C&&($=C&&F&&"string"==typeof C?function Bi(C,v,u){return(u?window.document:v).querySelector(C)}(C,u.nativeElement,w):C,!$))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return $}function As(C){return C&&!C.firstChange}const to={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},mn={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class Hs{constructor(v=!0){this.vertical=v,this.propsMap=v?to:mn}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function Ae(C){return["Window","global"].some(u=>Object.prototype.toString.call(C).includes(u))}function Ne(C,v){return C?v.document.documentElement:null}function We(C,v){const u=function qe({container:C,isWindow:v,axis:u}){const{offsetHeightKey:w,clientHeightKey:F}=gt(u);return Ee(C,v,w,F)}(v);return v.isWindow?function qt(C,v,u){const{axis:w,container:F,isWindow:$}=u,{offsetHeightKey:pe,clientHeightKey:Pe}=gt(w),tt=C+jt(Ne($,F),w,$),Ot=Ee(v.nativeElement,$,pe,Pe),an=function Ke(C,v,u){const w=v.topKey();if(C.getBoundingClientRect)return C.getBoundingClientRect()[w]+jt(C,v,u)}(v.nativeElement,w,$)+Ot;return{height:C,scrolled:tt,totalToScroll:an,isWindow:$}}(u,C,v):function fn(C,v,u){const{axis:w,container:F}=u;return{height:C,scrolled:F[w.scrollTopKey()],totalToScroll:F[w.scrollHeightKey()],isWindow:!1}}(u,0,v)}function gt(C){return{offsetHeightKey:C.offsetHeightKey(),clientHeightKey:C.clientHeightKey()}}function Ee(C,v,u,w){if(isNaN(C[u])){const F=Ne(v,C);return F?F[w]:0}return C[u]}function jt(C,v,u){const w=v.pageYOffsetKey(),F=v.scrollTopKey(),$=v.offsetTopKey();return isNaN(window.pageYOffset)?Ne(u,C)[F]:C.ownerDocument?C.ownerDocument.defaultView[w]:C[$]}function pn(C,v={down:0,up:0},u){let w,F;if(C.totalToScroll<=0)return!1;const $=C.isWindow?C.scrolled:C.height+C.scrolled;return u?(w=(C.totalToScroll-$)/C.totalToScroll,F=(v?.down?v.down:0)/10):(w=C.scrolled/(C.scrolled+(C.totalToScroll-$)),F=(v?.up?v.up:0)/10),w<=F}class bn{constructor({totalToScroll:v}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=v}updateScrollPosition(v){return this.lastScrollPosition=v}updateTotalToScroll(v){this.lastTotalToScroll!==v&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=v)}updateScroll(v,u){this.updateScrollPosition(v),this.updateTotalToScroll(u)}updateTriggeredFlag(v,u){u?this.triggered.down=v:this.triggered.up=v}isTriggeredScroll(v,u){return u?this.triggered.down===v:this.triggered.up===v}}function Mi(C){const{scrollContainer:v,scrollWindow:u,element:w,fromRoot:F}=C,$=function xt({windowElement:C,axis:v}){return function ve(C,v){const u=C.isWindow||v&&!v.nativeElement?v:v.nativeElement;return{...C,container:u}}({axis:v,isWindow:Ae(C)},C)}({axis:new Hs(!C.horizontal),windowElement:cs(v,u,w,F)}),pe=new bn({totalToScroll:We(w,$)}),tt={up:C.upDistance,down:C.downDistance};return function Ps(C){let v=(0,Ln.R)(C.container,"scroll");return C.throttle&&(v=v.pipe(function ai(C,v=Mt.E,u){const w=(0,di.O)(C,v);return function $n(C,v){return(0,Dt.N)((u,w)=>{const{leading:F=!0,trailing:$=!1}=v??{};let pe=!1,Pe=null,tt=null,Ot=!1;const an=()=>{tt?.unsubscribe(),tt=null,$&&(Dn(),Ot&&w.complete())},en=()=>{tt=null,Ot&&w.complete()},Un=An=>tt=(0,yn.Tg)(C(An)).subscribe((0,Nn._)(w,an,en)),Dn=()=>{if(pe){pe=!1;const An=Pe;Pe=null,w.next(An),!Ot&&Un(An)}};u.subscribe((0,Nn._)(w,An=>{pe=!0,Pe=An,(!tt||tt.closed)&&(F?Dn():Un(An))},()=>{Ot=!0,(!($&&pe&&tt)||tt.closed)&&w.complete()}))})}(()=>w,u)}(C.throttle,void 0,{leading:!0,trailing:!0}))),v}({container:$.container,throttle:C.throttle}).pipe((0,Qt.Z)(()=>(0,on.of)(We(w,$))),(0,we.T)(Ot=>function bs(C,v,u){const{scrollDown:w,fire:F}=function $e(C,v,u){const w=function Je(C,v){return C<v.scrolled}(C,v);return{fire:pn(v,u,w),scrollDown:w}}(C,v,u);return{scrollDown:w,fire:F,stats:v}}(pe.lastScrollPosition,Ot,tt)),(0,Xt.M)(({stats:Ot})=>pe.updateScroll(Ot.scrolled,Ot.totalToScroll)),(0,nt.p)(({fire:Ot,scrollDown:an,stats:{totalToScroll:en}})=>function rn(C,v,u){return!!(C&&v||!u&&v)}(C.alwaysCallback,Ot,pe.isTriggeredScroll(en,an))),(0,Xt.M)(({scrollDown:Ot,stats:{totalToScroll:an}})=>{pe.updateTriggeredFlag(an,Ot)}),(0,we.T)(ps))}const ds={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function ps(C){const{scrollDown:v,stats:{scrolled:u}}=C;return{type:v?ds.DOWN:ds.UP,payload:{currentScrollPosition:u}}}let Ts=(()=>{class C{constructor(u,w){this.element=u,this.zone=w,this.scrolled=new h.bkB,this.scrolledUp=new h.bkB,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:u,infiniteScrollDisabled:w,infiniteScrollDistance:F}){const $=As(u),pe=As(w),Pe=As(F),tt=!pe&&!this.infiniteScrollDisabled||pe&&!w.currentValue||Pe;($||pe||Pe)&&(this.destroyScroller(),tt&&this.setup())}setup(){(function Ms(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=Mi({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(u=>this.handleOnScroll(u))})}handleOnScroll({type:u,payload:w}){const F=u===ds.DOWN?this.scrolled:this.scrolledUp;(function ki(C){return C.observed??C.observers.length>0})(F)&&this.zone.run(()=>F.emit(w))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(w){return new(w||C)(h.rXU(h.aKT),h.rXU(h.SKi))}}static{this.\u0275dir=h.FsC({type:C,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[h.OA$]})}}return C})(),Re=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({})}}return C})();const Rt=function(C,v){return{"nav-item-ara":C,"nav-item-default":v}};function oe(C,v){if(1&C){const u=h.RV6();h.j41(0,"li",9)(1,"button",10),h.bIt("click",function(){const $=h.eBV(u).index,pe=h.XpG(2);return h.Njj(pe.setCurrentPage($))}),h.EFF(2),h.k0s()()}if(2&C){const u=v.$implicit,w=v.index,F=h.XpG(2);h.Y8G("ngClass",h.l_i(8,Rt,"ara"===F.acceptedLanguage,"ara"!==F.acceptedLanguage)),h.R7$(1),h.AVh("active",w===F.currentPageIndex),h.Mz_("id","tab-",w,""),h.Y8G("title",u.name),h.BMQ("aria-controls","content-"+w)("aria-selected",w===F.currentPageIndex),h.R7$(1),h.SpI(" ",u.name," ")}}function _e(C,v){if(1&C&&(h.j41(0,"div",6)(1,"ul",7),h.DNE(2,oe,3,11,"li",8),h.k0s()()),2&C){const u=h.XpG();h.R7$(2),h.Y8G("ngForOf",u.pageDetails)("ngForTrackBy",u.trackByIndex)}}function et(C,v){if(1&C){const u=h.RV6();h.j41(0,"div",11)(1,"button",12)(2,"img",13),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.scrollTabs(-1))}),h.k0s(),h.j41(3,"img",14),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.scrollTabs(1))}),h.k0s()()()}}const Vt=function(C){return{"width.%":C}};function At(C,v){if(1&C){const u=h.RV6();h.j41(0,"div",23)(1,"octa-form-elements",24),h.bIt("subFormChange",function(F){h.eBV(u);const $=h.XpG(4);return h.Njj($.updateSubFormWithSubmissions(F))}),h.k0s()()}if(2&C){const u=v.$implicit,w=h.XpG(4);h.Y8G("ngStyle",h.eq3(5,Vt,u.element.count*(100/12))),h.R7$(1),h.Y8G("grid",u)("edit",w.edit)("acceptedLanguage",w.acceptedLanguage)("pages",w.pages)}}function In(C,v){if(1&C&&(h.j41(0,"div")(1,"div",21),h.DNE(2,At,2,7,"div",22),h.k0s()()),2&C){const u=v.$implicit;h.R7$(2),h.Y8G("ngForOf",u.grid)}}function Hn(C,v){1&C&&(h.qex(0),h.nrm(1,"span",30),h.EFF(2," Submitting... "),h.bVm())}function mi(C,v){1&C&&h.EFF(0," Submit ")}const Kn=function(C){return{"background-color":C}};function ri(C,v){if(1&C){const u=h.RV6();h.j41(0,"button",27),h.bIt("click",function(){h.eBV(u);const F=h.XpG(4);return h.Njj(F.submitForm())}),h.DNE(1,Hn,3,0,"ng-container",28),h.DNE(2,mi,1,0,"ng-template",null,29,h.C5r),h.k0s()}if(2&C){const u=h.sdS(3),w=h.XpG(4);h.Y8G("ngStyle",h.eq3(4,Kn,w.primaryColor?w.primaryColor:"#084fff"))("disabled",!w.eligibleForSubmission.status||w.submissionInProgress),h.R7$(1),h.Y8G("ngIf",w.submissionInProgress)("ngIfElse",u)}}function Ki(C,v){if(1&C&&(h.j41(0,"div",31),h.EFF(1),h.k0s()),2&C){const u=h.XpG(4);h.R7$(1),h.SpI(" ",u.eligibleForSubmission.message," ")}}function Ls(C,v){if(1&C&&(h.j41(0,"div"),h.DNE(1,ri,4,6,"button",25),h.DNE(2,Ki,2,1,"div",26),h.k0s()),2&C){const u=h.XpG(3);h.R7$(1),h.Y8G("ngIf",!u.isActionTriggered),h.R7$(1),h.Y8G("ngIf",u.showTooltip&&!u.eligibleForSubmission.status)}}const la=function(C){return{display:C}};function er(C,v){if(1&C){const u=h.RV6();h.j41(0,"div")(1,"div",16),h.bIt("scrolled",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.loadMoreData())}),h.DNE(2,In,3,1,"div",17),h.k0s(),h.j41(3,"div",18),h.nrm(4,"div",19),h.j41(5,"div",20),h.bIt("mouseenter",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.showTooltip=!0)})("mouseleave",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.showTooltip=!1)}),h.DNE(6,Ls,3,2,"div",5),h.k0s()()()}if(2&C){const u=h.XpG(2);h.R7$(1),h.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",200),h.R7$(1),h.Y8G("ngForOf",u.pages[u.currentPageIndex].rows),h.R7$(2),h.Y8G("ngStyle",h.eq3(5,la,u.currentPageIndex===u.pageDetails.length-1?"block":"none")),h.R7$(2),h.Y8G("ngIf",u.currentPageIndex==u.pageDetails.length-1)}}function os(C,v){if(1&C&&(h.qex(0),h.j41(1,"div",15),h.DNE(2,er,7,7,"div",5),h.k0s(),h.bVm()),2&C){const u=h.XpG();h.R7$(1),h.Mz_("id","content-",u.currentPageIndex,""),h.BMQ("aria-labelledby","tab-"+u.currentPageIndex),h.R7$(1),h.Y8G("ngIf",u.loadedPages[u.currentPageIndex])}}const Bs=function(C){return{"skip-margin":C}};let Vs=(()=>{class C{constructor(u,w){this.formValidationService=u,this.cdr=w,this.pages=[],this.currentPageIndex=0,this.pageChanged=new h.bkB,this.submitEmit=new h.bkB,this.edit=!1,this.acceptedLanguage="",this.eligibleForSubmission={status:!0,message:""},this.subFormChange=new h.bkB,this.pageDetails=[],this.markAllQuestionsAsRequired=!1,this.skipMargin=!1,this.rowSetIndex=new h.bkB,this.primaryColor="",this.secondaryColor="",this.isActionTriggered=!1,this.submissionInProgress=!1,this.loadedPages={},this.showTooltip=!1,this.showNavArrows=!1,this.hideTabs=!1,this.loadedPages[this.currentPageIndex]=!0}ngOnInit(){this.checkPageDetails()}ngAfterViewInit(){setTimeout(()=>this.checkOverflow()),this.cdr.detectChanges()}checkPageDetails(){this.pageDetails&&1==this.pageDetails?.length&&""==this.pageDetails[0]?.name&&(this.hideTabs=!0)}updateSubFormWithSubmissions(u){this.subFormChange.emit(u)}triggerFunction(u){this.setCurrentPage(u)}setCurrentPage(u){this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.pageChanged.emit(u),this.currentPageIndex=u,this.loadedPages[u]||(this.loadedPages[u]=!0)):(this.pageChanged.emit(u),this.currentPageIndex=u,this.loadedPages[u]||(this.loadedPages[u]=!0))}submitForm(){this.submitEmit.emit()}trackByIndex(u,w){return u}loadMoreData(){this.rowSetIndex.emit(this.currentPageIndex)}toggleTooltip(){this.showTooltip=!this.eligibleForSubmission.status}scrollTabs(u){const w=document.querySelector(".navTabs");w&&(w.scrollBy({left:100*u,behavior:"smooth"}),setTimeout(()=>this.checkOverflow(),300))}checkOverflow(){const u=document.querySelector(".navTabs");u&&(this.showNavArrows=u.scrollWidth>u.clientWidth)}static{this.\u0275fac=function(w){return new(w||C)(h.rXU(ut),h.rXU(h.gRc))}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-navigation-tabs"]],inputs:{pages:"pages",currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",eligibleForSubmission:"eligibleForSubmission",pageDetails:"pageDetails",markAllQuestionsAsRequired:"markAllQuestionsAsRequired",skipMargin:"skipMargin",primaryColor:"primaryColor",secondaryColor:"secondaryColor",isActionTriggered:"isActionTriggered",submissionInProgress:"submissionInProgress"},outputs:{pageChanged:"pageChanged",submitEmit:"submitEmit",subFormChange:"subFormChange",rowSetIndex:"rowSetIndex"},decls:6,vars:7,consts:[[1,"tab-inner-container",3,"ngClass"],[1,"d-flex","gap-2"],["class","tab-navigation",4,"ngIf"],["class","d-flex align-items-center",4,"ngIf"],[1,"tab-content","pt-5","pb-3","px-1"],[4,"ngIf"],[1,"tab-navigation"],["id","myTab","role","tablist",1,"nav","nav-tabs","navTabs"],["class","nav-item","role","presentation",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"nav-item",3,"ngClass"],["data-bs-toggle","tooltip","data-bs-placement","top","data-bs-custom-class","custom-tooltip","type","button","role","tab",1,"nav-link",3,"title","id","click"],[1,"d-flex","align-items-center"],[1,"nav-arrow"],["src","/assets/octa-form-submission-webcomponent/icons/left_arrow.svg","alt","left arrow",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/right_arrow.svg","alt","right arrow",3,"click"],["role","tabpanel",1,"tab-pane","fade","show","active",3,"id"],["infiniteScroll","",1,"data-container",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],[4,"ngFor","ngForOf"],[1,"footerButton","d-flex","justify-content-between","align-items-center","me-4","ms-4","position-relative"],["id","captcha-container",3,"ngStyle"],[1,"button-container","position-relative",3,"mouseenter","mouseleave"],[1,"margin","d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"grid","edit","acceptedLanguage","pages","subFormChange"],["class","btn rounded-pill submitButton text-white","type","button",3,"ngStyle","disabled","click",4,"ngIf"],["class","custom-tooltip",4,"ngIf"],["type","button",1,"btn","rounded-pill","submitButton","text-white",3,"ngStyle","disabled","click"],[4,"ngIf","ngIfElse"],["showSubmitText",""],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-2"],[1,"custom-tooltip"]],template:function(w,F){1&w&&(h.j41(0,"div",0)(1,"div",1),h.DNE(2,_e,3,2,"div",2),h.DNE(3,et,4,0,"div",3),h.k0s(),h.j41(4,"div",4),h.DNE(5,os,3,3,"ng-container",5),h.k0s()()),2&w&&(h.Y8G("ngClass",h.eq3(5,Bs,F.skipMargin)),h.R7$(2),h.Y8G("ngIf",!F.hideTabs),h.R7$(1),h.Y8G("ngIf",F.showNavArrows),h.R7$(1),h.BMQ("name",F.pages[F.currentPageIndex].testElementName),h.R7$(1),h.Y8G("ngIf",F.pages[F.currentPageIndex]))},dependencies:[Tt.YU,Tt.Sq,Tt.bT,Tt.B3,Ft.FormElementsComponent,Ts],styles:['.tab-inner-container[_ngcontent-%COMP%]{width:100%;position:relative;padding:3rem}@media (max-width: 1024px){.tab-inner-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.tab-inner-container[_ngcontent-%COMP%]{padding:2rem .5rem}}.skip-margin[_ngcontent-%COMP%]{padding:0}.custom-tooltip[_ngcontent-%COMP%]{visibility:hidden;position:absolute;top:-40px;right:0;background:#efefef;color:#7b7878;padding:8px 12px;border-radius:12px;box-shadow:0 4px 8px #00000026;font-size:14px;white-space:nowrap;z-index:10}.custom-tooltip.warning[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ffd700,#ffb400)}.fade-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeIn .3s ease-in-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.footerButton[_ngcontent-%COMP%]:hover .custom-tooltip[_ngcontent-%COMP%]{visibility:visible}.navTabs[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden;flex-wrap:unset;margin:0 0 -1px!important;padding-right:0}.nav-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px}.nav-item.nav-item-default[_ngcontent-%COMP%]{margin-right:.5%}.nav-item.nav-item-ara[_ngcontent-%COMP%]{margin-left:.5%}.nav-link[_ngcontent-%COMP%]{position:relative;margin-bottom:-2px;padding-left:25px;padding-right:25px}.nav-link[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;width:101%;height:6px;background:#efefef}.nav-link.active[_ngcontent-%COMP%]:after{display:none}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.custom-tooltip[_ngcontent-%COMP%]{--bs-tooltip-bg: var(--bd-violet-bg);--bs-tooltip-color: var(--bs-white)}.tab-navigation[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:95%}.navTabs[_ngcontent-%COMP%]{display:flex;overflow-x:auto;scroll-behavior:smooth;white-space:nowrap;width:100%;padding:0;margin:0;scrollbar-width:none;-ms-overflow-style:none}.navTabs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.nav-arrow[_ngcontent-%COMP%]{position:absolute;background:white;border:none;cursor:pointer;font-size:20px;font-weight:700;padding:5px 10px;z-index:1000;box-shadow:0 2px 5px #0003;width:45px;height:27px;gap:13px;display:flex;justify-content:center;align-items:center;border-radius:6px}.nav-arrow[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8px;height:15px}.spinner-border[_ngcontent-%COMP%]{display:inline-block;width:1rem;height:1rem;vertical-align:text-bottom;border:.15em solid currentColor;border-right-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spinner-border .75s linear infinite}@keyframes _ngcontent-%COMP%_spinner-border{to{transform:rotate(360deg)}}']})}}return C})();var Ja=N(541),wn=N(9969),Ys=N(1413);const ms=["toast-component",""];function mo(C,v){if(1&C){const u=h.RV6();h.j41(0,"button",5),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.remove())}),h.j41(1,"span",6),h.EFF(2,"\xd7"),h.k0s()()}}function ca(C,v){if(1&C&&(h.qex(0),h.EFF(1),h.bVm()),2&C){const u=h.XpG(2);h.R7$(1),h.SpI("[",u.duplicatesCount+1,"]")}}function tr(C,v){if(1&C&&(h.j41(0,"div"),h.EFF(1),h.DNE(2,ca,2,1,"ng-container",4),h.k0s()),2&C){const u=h.XpG();h.HbH(u.options.titleClass),h.BMQ("aria-label",u.title),h.R7$(1),h.SpI(" ",u.title," "),h.R7$(1),h.Y8G("ngIf",u.duplicatesCount)}}function go(C,v){if(1&C&&h.nrm(0,"div",7),2&C){const u=h.XpG();h.HbH(u.options.messageClass),h.Y8G("innerHTML",u.message,h.npT)}}function Po(C,v){if(1&C&&(h.j41(0,"div",8),h.EFF(1),h.k0s()),2&C){const u=h.XpG();h.HbH(u.options.messageClass),h.BMQ("aria-label",u.message),h.R7$(1),h.SpI(" ",u.message," ")}}function Ko(C,v){if(1&C&&(h.j41(0,"div"),h.nrm(1,"div",9),h.k0s()),2&C){const u=h.XpG();h.R7$(1),h.xc7("width",u.width()+"%")}}class xr{_attachedHost;component;viewContainerRef;injector;constructor(v,u){this.component=v,this.injector=u}attach(v,u){return this._attachedHost=v,v.attach(this,u)}detach(){const v=this._attachedHost;if(v)return this._attachedHost=void 0,v.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(v){this._attachedHost=v}}class Rs{_attachedPortal;_disposeFn;attach(v,u){return this._attachedPortal=v,this.attachComponentPortal(v,u)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(v){this._disposeFn=v}}class no{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new Ys.B;_activate=new Ys.B;_manualClose=new Ys.B;_resetTimeout=new Ys.B;_countDuplicate=new Ys.B;constructor(v){this._overlayRef=v}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(v,u){v&&this._resetTimeout.next(),u&&this._countDuplicate.next(++this.duplicatesCount)}}class Lo{toastId;config;message;title;toastType;toastRef;_onTap=new Ys.B;_onAction=new Ys.B;constructor(v,u,w,F,$,pe){this.toastId=v,this.config=u,this.message=w,this.title=F,this.toastType=$,this.toastRef=pe,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(v){this._onAction.next(v)}onAction(){return this._onAction.asObservable()}}const Vi=new h.nKC("ToastConfig");class Rn extends Rs{_hostDomElement;_componentFactoryResolver;_appRef;constructor(v,u,w){super(),this._hostDomElement=v,this._componentFactoryResolver=u,this._appRef=w}attachComponentPortal(v,u){const w=this._componentFactoryResolver.resolveComponentFactory(v.component);let F;return F=w.create(v.injector),this._appRef.attachView(F.hostView),this.setDisposeFn(()=>{this._appRef.detachView(F.hostView),F.destroy()}),u?this._hostDomElement.insertBefore(this._getComponentRootNode(F),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(F)),F}_getComponentRootNode(v){return v.hostView.rootNodes[0]}}let ei=(()=>{class C{_document=(0,h.WQX)(Tt.qQ);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const u=this._document.createElement("div");u.classList.add("overlay-container"),u.setAttribute("aria-live","polite"),this._document.body.appendChild(u),this._containerElement=u}static \u0275fac=function(w){return new(w||C)};static \u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();class Qi{_portalHost;constructor(v){this._portalHost=v}attach(v,u=!0){return this._portalHost.attach(v,u)}detach(){return this._portalHost.detach()}}let qs=(()=>{class C{_overlayContainer=(0,h.WQX)(ei);_componentFactoryResolver=(0,h.WQX)(h.OM3);_appRef=(0,h.WQX)(h.o8S);_document=(0,h.WQX)(Tt.qQ);_paneElements=new Map;create(u,w){return this._createOverlayRef(this.getPaneElement(u,w))}getPaneElement(u="",w){return this._paneElements.get(w)||this._paneElements.set(w,{}),this._paneElements.get(w)[u]||(this._paneElements.get(w)[u]=this._createPaneElement(u,w)),this._paneElements.get(w)[u]}_createPaneElement(u,w){const F=this._document.createElement("div");return F.id="toast-container",F.classList.add(u),F.classList.add("toast-container"),w?w.getContainerElement().appendChild(F):this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalHost(u){return new Rn(u,this._componentFactoryResolver,this._appRef)}_createOverlayRef(u){return new Qi(this._createPortalHost(u))}static \u0275fac=function(w){return new(w||C)};static \u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})(),io=(()=>{class C{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(u,w,F,$,pe){this.overlay=w,this._injector=F,this.sanitizer=$,this.ngZone=pe,this.toastrConfig={...u.default,...u.config},u.config.iconClasses&&(this.toastrConfig.iconClasses={...u.default.iconClasses,...u.config.iconClasses})}show(u,w,F={},$=""){return this._preBuildNotification($,u,w,this.applyConfig(F))}success(u,w,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",u,w,this.applyConfig(F))}error(u,w,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",u,w,this.applyConfig(F))}info(u,w,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",u,w,this.applyConfig(F))}warning(u,w,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",u,w,this.applyConfig(F))}clear(u){for(const w of this.toasts)if(void 0!==u){if(w.toastId===u)return void w.toastRef.manualClose()}else w.toastRef.manualClose()}remove(u){const w=this._findToast(u);if(!w||(w.activeToast.toastRef.close(),this.toasts.splice(w.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const F=this.toasts[this.currentlyActive].toastRef;F.isInactive()||(this.currentlyActive=this.currentlyActive+1,F.activate())}return!0}findDuplicate(u="",w="",F,$){const{includeTitleDuplicates:pe}=this.toastrConfig;for(const Pe of this.toasts)if((!pe||pe&&Pe.title===u)&&Pe.message===w)return Pe.toastRef.onDuplicate(F,$),Pe;return null}applyConfig(u={}){return{...this.toastrConfig,...u}}_findToast(u){for(let w=0;w<this.toasts.length;w++)if(this.toasts[w].toastId===u)return{index:w,activeToast:this.toasts[w]};return null}_preBuildNotification(u,w,F,$){return $.onActivateTick?this.ngZone.run(()=>this._buildNotification(u,w,F,$)):this._buildNotification(u,w,F,$)}_buildNotification(u,w,F,$){if(!$.toastComponent)throw new Error("toastComponent required");const pe=this.findDuplicate(F,w,this.toastrConfig.resetTimeoutOnDuplicate&&$.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&F||w)&&this.toastrConfig.preventDuplicates&&null!==pe)return pe;this.previousToastMessage=w;let Pe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Pe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const tt=this.overlay.create($.positionClass,this.overlayContainer);this.index=this.index+1;let Ot=w;w&&$.enableHtml&&(Ot=this.sanitizer.sanitize(h.WPN.HTML,w));const an=new no(tt),en=new Lo(this.index,$,Ot,F,u,an),Dn=h.zZn.create({providers:[{provide:Lo,useValue:en}],parent:this._injector}),An=new xr($.toastComponent,Dn),zn=tt.attach(An,$.newestOnTop);an.componentInstance=zn.instance;const $i={toastId:this.index,title:F||"",message:w||"",toastRef:an,onShown:an.afterActivate(),onHidden:an.afterClosed(),onTap:en.onTap(),onAction:en.onAction(),portal:zn};return Pe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{$i.toastRef.activate()})),this.toasts.push($i),$i}static \u0275fac=function(w){return new(w||C)(h.KVO(Vi),h.KVO(qs),h.KVO(h.zZn),h.KVO(e.up),h.KVO(h.SKi))};static \u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();const Qo={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class C{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=(0,h.vPA)(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(u,w,F){this.toastrService=u,this.toastPackage=w,this.ngZone=F,this.message=w.message,this.title=w.title,this.options=w.config,this.originalTimeout=w.config.timeOut,this.toastClasses=`${w.toastType} ${w.config.toastClass}`,this.sub=w.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=w.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=w.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=w.toastRef.countDuplicate().subscribe($=>{this.duplicatesCount=$}),this.state=(0,h.vPA)({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(u=>({...u,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const u=(new Date).getTime();this.width.set((this.hideTime-u)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(F=>100-F),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(u=>({...u,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(u=>({...u,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(u,w){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(u),w)):this.timeout=setTimeout(()=>u(),w)}outsideInterval(u,w){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(u),w)):this.intervalId=setInterval(()=>u(),w)}runInsideAngular(u){this.ngZone?this.ngZone.run(()=>u()):u()}static \u0275fac=function(w){return new(w||C)(h.rXU(io),h.rXU(Lo),h.rXU(h.SKi))};static \u0275cmp=h.VBU({type:C,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(w,F){1&w&&h.bIt("click",function(){return F.tapToast()})("mouseenter",function(){return F.stickAround()})("mouseleave",function(){return F.delayedHideToast()}),2&w&&(h.zvX("@flyInOut",F._state),h.HbH(F.toastClasses),h.xc7("display",F.displayStyle))},standalone:!0,features:[h.aNF],attrs:ms,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(w,F){1&w&&(h.DNE(0,mo,3,0,"button",0),h.DNE(1,tr,3,5,"div",1),h.DNE(2,go,1,3,"div",2),h.DNE(3,Po,2,4,"div",3),h.DNE(4,Ko,2,2,"div",4)),2&w&&(h.Y8G("ngIf",F.options.closeButton),h.R7$(1),h.Y8G("ngIf",F.title),h.R7$(1),h.Y8G("ngIf",F.message&&F.options.enableHtml),h.R7$(1),h.Y8G("ngIf",F.message&&!F.options.enableHtml),h.R7$(1),h.Y8G("ngIf",F.options.progressBar))},dependencies:[Tt.bT],encapsulation:2,data:{animation:[(0,wn.hZ)("flyInOut",[(0,wn.wk)("inactive",(0,wn.iF)({opacity:0})),(0,wn.wk)("active",(0,wn.iF)({opacity:1})),(0,wn.wk)("removed",(0,wn.iF)({opacity:0})),(0,wn.kY)("inactive => active",(0,wn.i0)("{{ easeTime }}ms {{ easing }}")),(0,wn.kY)("active => removed",(0,wn.i0)("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return C})()},Zi=(C={})=>(0,h.EmA)([{provide:Vi,useValue:{default:Qo,config:C}}]);let nr=(()=>{class C{static forRoot(u={}){return{ngModule:C,providers:[Zi(u)]}}static \u0275fac=function(w){return new(w||C)};static \u0275mod=h.$C({type:C});static \u0275inj=h.G2t({})}return C})();var Ir=N(1593),Ri=N(1339),zr=N(1626);let rs=(()=>{class C{constructor(u,w,F){this.toastr=u,this.http=w,this.dataService=F,this.siteKey="",this.apiUrl="",this.widgetId=null,this.initialized=!1,this.resolved=!1,this.dataService.apiUrl$.subscribe($=>{this.apiUrl=$})}ngOnInit(){this.fetchSiteKeyFromApi().subscribe({next:u=>this.siteKey=u,error:()=>this.toastr.error("Failed to load CAPTCHA config")})}fetchSiteKeyFromApi(){return this.http.get(`${this.apiUrl}/api/application-settings/recaptcha/siteKey`).pipe((0,we.T)(u=>u.message))}initialize(){return(!this.siteKey||""===this.siteKey)&&this.fetchSiteKeyFromApi().subscribe({next:u=>this.siteKey=u,error:()=>this.toastr.error("Failed to load CAPTCHA config")}),new Promise((u,w)=>{if(null!==this.widgetId)return console.log("reCAPTCHA already initialized, skipping initialization."),void u();if(this.initialized&&typeof grecaptcha<"u"&&"function"==typeof grecaptcha.render)return void u();const F=document.querySelector('script[src*="recaptcha/api.js"]');if(F)return F.addEventListener("load",()=>u()),void u();const $=document.createElement("script");$.src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit",$.async=!0,$.defer=!0,window.onRecaptchaLoadCallback=()=>{this.initialized=!0,u()},$.onerror=()=>{w("Failed to load reCAPTCHA script")},document.head.appendChild($)})}render(u,w){if(typeof grecaptcha>"u")throw new Error("reCAPTCHA is not loaded");null===this.widgetId?this.widgetId=grecaptcha.render(u,{sitekey:this.siteKey,callback:F=>{this.resolved=!0,w(F)},"expired-callback":()=>{this.resolved=!1,this.toastr.warning("reCAPTCHA expired, please verify again")},"error-callback":()=>{this.resolved=!1,this.toastr.error("reCAPTCHA error occurred")},size:"normal",theme:"light"}):console.warn("reCAPTCHA already rendered, skipping render.")}reset(){typeof grecaptcha<"u"&&null!==this.widgetId&&(grecaptcha.reset(this.widgetId),this.resolved=!1)}getResponse(){return typeof grecaptcha>"u"||null===this.widgetId?"":grecaptcha.getResponse(this.widgetId)}isRendered(){return null!==this.widgetId}isResolved(){return this.resolved&&!!this.getResponse()}removeRecaptchaScript(){const u=document.querySelector('script[src*="recaptcha/api.js"]');u&&u.remove();const w=document.querySelector(".grecaptcha-badge");w&&w.remove(),this.widgetId=null,this.initialized=!1,this.resolved=!1}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(io),h.KVO(zr.Qq),h.KVO(Ri.u))}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})();var So=N(1852),Zo=N(6);function Or(C,v){1&C&&h.SdG(0,0,["*ngIf","appearance === 'custom-content'"])}const Es=function(C,v,u,w,F){return{"custom-content":C,circle:v,progress:u,"progress-dark":w,pulse:F}};function _o(C,v){if(1&C&&(h.j41(0,"div",1),h.DNE(1,Or,1,0,"ng-content",2),h.k0s()),2&C){const u=h.XpG();h.Y8G("ngClass",h.s1E(5,Es,"custom-content"===u.appearance,"circle"===u.appearance,"progress"===u.animation,"progress-dark"===u.animation,"pulse"===u.animation))("ngStyle",u.theme),h.BMQ("aria-label",u.ariaLabel)("aria-valuetext",u.loadingText),h.R7$(1),h.Y8G("ngIf","custom-content"===u.appearance)}}const ur=["*"],da=new h.nKC("ngx-skeleton-loader.config");let gi=(()=>{class C{constructor(u){this.config=u;const{appearance:w="line",animation:F="progress",theme:$=null,loadingText:pe="Loading...",count:Pe=1,ariaLabel:tt="loading"}=u||{};this.appearance=w,this.animation=F,this.theme=$,this.loadingText=pe,this.count=Pe,this.items=[],this.ariaLabel=tt}ngOnInit(){this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||((0,h.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),"custom-content"===this.appearance&&(0,h.naY)()&&1!==this.count&&(console.error('`NgxSkeletonLoaderComponent` enforces elements with "custom-content" appearance as DOM nodes. Forcing "count" to "1".'),this.count=1),this.items.length=this.count;const u=["progress","progress-dark","pulse","false"];-1===u.indexOf(String(this.animation))&&((0,h.naY)()&&console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${u.join(", ")}. Forcing default to "progress".`),this.animation="progress"),-1===["circle","line","custom-content",""].indexOf(String(this.appearance))&&((0,h.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or custom-content or empty string. Forcing default to \"''\"."),this.appearance="");const{theme:w}=this.config||{};w&&w.extendsFromRoot&&null!==this.theme&&(this.theme={...this.config.theme,...this.theme})}ngOnChanges(u){["count","animation","appearance"].find(w=>u[w]&&(u[w].isFirstChange()||u[w].previousValue===u[w].currentValue))||this.validateInputValues()}static{this.\u0275fac=function(w){return new(w||C)(h.rXU(da,8))}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[h.OA$],ngContentSelectors:ur,decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",1,"skeleton-loader",3,"ngClass","ngStyle"],[4,"ngIf"]],template:function(w,F){1&w&&(h.NAR(),h.DNE(0,_o,2,11,"div",0)),2&w&&h.Y8G("ngForOf",F.items)},dependencies:[Tt.YU,Tt.Sq,Tt.bT,Tt.B3],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:rgb(239,241,246) no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}.skeleton-loader.custom-content[_ngcontent-%COMP%]{height:100%;background:none}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]:before{animation:none}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%]{background-image:none}}@media screen and (min-device-width: 1200px){.skeleton-loader[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:wait}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0})}}return C})(),js=(()=>{class C{static forRoot(u){return{ngModule:C,providers:[{provide:da,useValue:u}]}}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tt.MD]})}}return C})();function Rr(C,v){1&C&&h.nrm(0,"div",3)}let hr=(()=>{class C{constructor(){this.name="",this.skipMargin=!1}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-header"]],inputs:{name:"name",skipMargin:"skipMargin"},decls:5,vars:2,consts:[[1,"head","container"],[1,"registration-header"],["class","line",4,"ngIf"],[1,"line"]],template:function(w,F){1&w&&(h.j41(0,"div",0)(1,"div",1)(2,"p"),h.EFF(3),h.k0s()(),h.DNE(4,Rr,1,0,"div",2),h.k0s()),2&w&&(h.R7$(3),h.JRh(F.name),h.R7$(1),h.Y8G("ngIf",!F.skipMargin))},dependencies:[Tt.bT],styles:[".head[_ngcontent-%COMP%]{background-color:#fff;padding:0!important}.registration-header[_ngcontent-%COMP%]{top:20px;left:50%}.registration-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:20px;font-weight:600}.line[_ngcontent-%COMP%]{margin-top:1%;margin-bottom:2%;width:100%;height:0px;border:1.5px solid #eaeaea;transform:rotate(180deg)}@media (max-width: 576px){.line[_ngcontent-%COMP%]{margin-bottom:5%}}"]})}}return C})();function ro(C,v){if(1&C&&(h.j41(0,"div",14)(1,"p",15),h.EFF(2),h.k0s()()),2&C){const u=h.XpG();h.R7$(2),h.JRh(null==u.pageDetails[u.currentPageIndex]?null:u.pageDetails[u.currentPageIndex].name)}}const ws=function(C){return{"width.%":C}};function Bo(C,v){if(1&C){const u=h.RV6();h.j41(0,"div",18)(1,"octa-form-elements",19),h.bIt("subFormChange",function(F){h.eBV(u);const $=h.XpG(2);return h.Njj($.updateSubFormWithSubmissions(F))}),h.k0s()()}if(2&C){const u=v.$implicit,w=h.XpG(2);h.Y8G("ngStyle",h.eq3(5,ws,u.element.count*(100/12))),h.R7$(1),h.Y8G("grid",u)("currentPageIndex",w.currentPageIndex)("edit",w.edit)("acceptedLanguage",w.acceptedLanguage)}}function ir(C,v){if(1&C&&(h.j41(0,"div",16),h.DNE(1,Bo,2,7,"div",17),h.k0s()),2&C){const u=v.$implicit;h.R7$(1),h.Y8G("ngForOf",u.grid)}}function Ss(C,v){1&C&&(h.qex(0),h.qSk(),h.j41(1,"svg",23),h.nrm(2,"path",24)(3,"path",25),h.k0s(),h.bVm())}function qr(C,v){1&C&&(h.qSk(),h.j41(0,"svg",23),h.nrm(1,"path",26)(2,"path",27),h.k0s())}const Ns=function(C){return{"background-color":C}};function zi(C,v){if(1&C){const u=h.RV6();h.j41(0,"button",20),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.onNavigatePrevious())}),h.DNE(1,Ss,4,0,"ng-container",21),h.DNE(2,qr,3,0,"ng-template",null,22,h.C5r),h.EFF(4),h.k0s()}if(2&C){const u=h.sdS(3),w=h.XpG();h.Y8G("ngStyle",h.eq3(4,Ns,w.primaryColor?w.primaryColor:"#084fff")),h.R7$(1),h.Y8G("ngIf","ara"===w.acceptedLanguage)("ngIfElse",u),h.R7$(3),h.SpI(" Previous | ",w.previousPage.name," ")}}function fr(C,v){1&C&&(h.qex(0),h.qSk(),h.j41(1,"svg",23),h.nrm(2,"path",26)(3,"path",27),h.k0s(),h.bVm())}function Vo(C,v){1&C&&(h.qSk(),h.j41(0,"svg",23),h.nrm(1,"path",24)(2,"path",25),h.k0s())}function Xr(C,v){if(1&C){const u=h.RV6();h.j41(0,"button",28),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.onNavigateNext())}),h.EFF(1),h.DNE(2,fr,4,0,"ng-container",21),h.DNE(3,Vo,3,0,"ng-template",null,22,h.C5r),h.k0s()}if(2&C){const u=h.sdS(4),w=h.XpG();h.Y8G("ngStyle",h.eq3(4,Ns,w.primaryColor?w.primaryColor:"#084fff")),h.R7$(1),h.SpI(" Next | ",w.nextPage.name," "),h.R7$(1),h.Y8G("ngIf","ara"===w.acceptedLanguage)("ngIfElse",u)}}function Ti(C,v){1&C&&(h.qex(0),h.nrm(1,"span",31),h.EFF(2," Submitting... "),h.bVm())}function ua(C,v){1&C&&h.EFF(0," Submit ")}function cl(C,v){if(1&C){const u=h.RV6();h.j41(0,"button",29),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())}),h.DNE(1,Ti,3,0,"ng-container",21),h.DNE(2,ua,1,0,"ng-template",null,30,h.C5r),h.k0s()}if(2&C){const u=h.sdS(3),w=h.XpG();h.Y8G("ngStyle",h.eq3(4,Ns,w.primaryColor?w.primaryColor:"#084fff"))("disabled",!w.eligibleForSubmission.status||w.submissionInProgress),h.R7$(1),h.Y8G("ngIf",w.submissionInProgress)("ngIfElse",u)}}function Ma(C,v){if(1&C&&(h.j41(0,"div",32),h.EFF(1),h.k0s()),2&C){const u=h.XpG();h.R7$(1),h.SpI(" ",u.eligibleForSubmission.message," ")}}const Rl=function(C){return{"skip-margin":C}},sr=function(C){return{display:C}},J=function(C){return{"prevDirection-rtl":C}},ee=function(C){return{"nextDirection-rtl":C}};let U=(()=>{class C{constructor(){this.currentPageIndex=0,this.pages=[],this.previousPage={},this.nextPage={},this.currentPage={},this.pageDetails=[],this.skipMargin=!1,this.navigateNext=new h.bkB,this.navigatePrevious=new h.bkB,this.submitEmit=new h.bkB,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new h.bkB,this.rowSetIndex=new h.bkB,this.primaryColor="",this.secondaryColor="",this.isActionTriggered=!1,this.submissionInProgress=!1,this.eligibleForSubmission={status:!0,message:""},this.showTooltip=!1}ngOnInit(){}updateSubFormWithSubmissions(u){this.subFormChange.emit(u)}onNavigateNext(){this.navigateNext.emit()}onNavigatePrevious(){this.navigatePrevious.emit()}submitForm(){this.submitEmit.emit()}loadMoreData(){this.rowSetIndex.emit(this.currentPageIndex)}toggleTooltip(){this.showTooltip=!this.eligibleForSubmission.status}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-next-prev-navigation"]],inputs:{currentPageIndex:"currentPageIndex",pages:"pages",previousPage:"previousPage",nextPage:"nextPage",currentPage:"currentPage",pageDetails:"pageDetails",skipMargin:"skipMargin",edit:"edit",acceptedLanguage:"acceptedLanguage",primaryColor:"primaryColor",secondaryColor:"secondaryColor",isActionTriggered:"isActionTriggered",submissionInProgress:"submissionInProgress",eligibleForSubmission:"eligibleForSubmission"},outputs:{navigateNext:"navigateNext",navigatePrevious:"navigatePrevious",submitEmit:"submitEmit",subFormChange:"subFormChange",rowSetIndex:"rowSetIndex"},decls:14,vars:21,consts:[["class","pageTitleDiv",4,"ngIf"],[1,"button-inner-container","rounded",3,"ngClass"],[1,"tab-content","pt-5","pb-3","row"],["infiniteScroll","",1,"data-container",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],["class","marginSize d-flex",4,"ngFor","ngForOf"],["id","captcha-container",3,"ngStyle"],[1,"footerButton"],[1,"prevButtonDiv",3,"ngClass"],["class","me-md-2 rounded-pill navButton","type","button",3,"ngStyle","click",4,"ngIf"],[1,"nextButtonDiv",3,"ngClass"],["class","md-2 rounded-pill navButton","type","button",3,"ngStyle","click",4,"ngIf"],[1,"button-container","position-relative",3,"mouseenter","mouseleave"],["class","submitBtn ms-md-2 me-md-2 rounded-pill d-flex align-items-center justify-content-center","type","button",3,"ngStyle","disabled","click",4,"ngIf"],["class","custom-tooltip",4,"ngIf"],[1,"pageTitleDiv"],[1,"pageTitle"],[1,"marginSize","d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],["state","parent",3,"grid","currentPageIndex","edit","acceptedLanguage","subFormChange"],["type","button",1,"me-md-2","rounded-pill","navButton",3,"ngStyle","click"],[4,"ngIf","ngIfElse"],["defaultSvg",""],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19.4897 12.0117L4.49975 12.0117","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M13.486 6.02344L19.502 12.0004L13.486 17.9774","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M4.51025 11.9883L19.5003 11.9883","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M10.514 17.9766L4.49805 11.9996L10.514 6.02256","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["type","button",1,"md-2","rounded-pill","navButton",3,"ngStyle","click"],["type","button",1,"submitBtn","ms-md-2","me-md-2","rounded-pill","d-flex","align-items-center","justify-content-center",3,"ngStyle","disabled","click"],["showSubmitText",""],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-2"],[1,"custom-tooltip"]],template:function(w,F){1&w&&(h.DNE(0,ro,3,1,"div",0),h.j41(1,"div",1)(2,"div",2)(3,"div",3),h.bIt("scrolled",function(){return F.loadMoreData()}),h.DNE(4,ir,2,1,"div",4),h.k0s(),h.nrm(5,"div",5),h.j41(6,"div",6)(7,"div",7),h.DNE(8,zi,5,6,"button",8),h.k0s(),h.j41(9,"div",9),h.DNE(10,Xr,5,6,"button",10),h.j41(11,"div",11),h.bIt("mouseenter",function(){return F.showTooltip=!0})("mouseleave",function(){return F.showTooltip=!1}),h.DNE(12,cl,4,6,"button",12),h.DNE(13,Ma,2,1,"div",13),h.k0s()()()()()),2&w&&(h.Y8G("ngIf",!F.skipMargin),h.R7$(1),h.Y8G("ngClass",h.eq3(13,Rl,F.skipMargin)),h.R7$(1),h.BMQ("name",F.pages[F.currentPageIndex].testElementName),h.R7$(1),h.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",200),h.R7$(1),h.Y8G("ngForOf",null==F.pages[F.currentPageIndex]?null:F.pages[F.currentPageIndex].rows),h.R7$(1),h.Y8G("ngStyle",h.eq3(15,sr,F.currentPageIndex===F.pageDetails.length-1?"block":"none")),h.R7$(2),h.Y8G("ngClass",h.eq3(17,J,"ara"===F.acceptedLanguage)),h.R7$(1),h.Y8G("ngIf",0<F.currentPageIndex),h.R7$(1),h.Y8G("ngClass",h.eq3(19,ee,"ara"===F.acceptedLanguage)),h.R7$(1),h.Y8G("ngIf",F.currentPageIndex<F.pageDetails.length-1),h.R7$(2),h.Y8G("ngIf",F.currentPageIndex==F.pageDetails.length-1&&!F.isActionTriggered),h.R7$(1),h.Y8G("ngIf",F.showTooltip&&!F.eligibleForSubmission.status))},dependencies:[Tt.YU,Tt.Sq,Tt.bT,Tt.B3,Ft.FormElementsComponent,Ts],styles:[".pageTitle[_ngcontent-%COMP%]{font-size:15px;font-weight:500}#captcha-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding-left:1.8rem}.grecaptcha-popup[_ngcontent-%COMP%]{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:9999;border-radius:50%}@media (max-width: 480px){.g-recaptcha[_ngcontent-%COMP%]{transform:scale(.85);transform-origin:center}}.pageTitleDiv[_ngcontent-%COMP%]{padding-left:3rem;padding-top:3rem;padding-right:3rem}@media (max-width: 1024px){.pageTitleDiv[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;padding-top:2rem}}@media (max-width: 576px){.pageTitleDiv[_ngcontent-%COMP%]{padding-left:.4rem;padding-right:.4rem;padding-top:1.5rem}}.button-inner-container[_ngcontent-%COMP%]{width:100%;position:relative;padding:0rem 3rem 3rem}@media (max-width: 1024px){.button-inner-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.button-inner-container[_ngcontent-%COMP%]{padding:.1rem .5rem 2rem}}.skip-margin[_ngcontent-%COMP%]{padding:0}@media (max-width: 576px){.marginSize[_ngcontent-%COMP%]{padding:0!important}}.footerButton[_ngcontent-%COMP%]{padding:10px 32px 16px 30px;display:flex;flex-wrap:wrap}@media (max-width: 576px){.footerButton[_ngcontent-%COMP%]{padding-left:20px;padding-right:17px}}.navButton[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px 8px;width:auto}.submitBtn[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px 27px;width:auto}.prevButtonDiv[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:5px}.nextButtonDiv[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-left:auto;margin-bottom:5px}.nextDirection-rtl[_ngcontent-%COMP%]{margin-left:0;margin-right:auto}.tab-content[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]{background-color:#fff}.spinner-border[_ngcontent-%COMP%]{display:inline-block;width:1rem;height:1rem;vertical-align:text-bottom;border:.15em solid currentColor;border-right-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spinner-border .75s linear infinite}@keyframes _ngcontent-%COMP%_spinner-border{to{transform:rotate(360deg)}}"]})}}return C})();function Ce(C,v){if(1&C&&(h.qex(0),h.nrm(1,"img",11),h.bVm()),2&C){const u=h.XpG().$implicit;h.R7$(1),h.FS9("alt",u.fileName),h.Y8G("src",u.fileUrl,h.B4B)}}function Ze(C,v){if(1&C&&(h.j41(0,"p"),h.EFF(1),h.k0s(),h.j41(2,"a",12),h.nrm(3,"i",13),h.k0s()),2&C){const u=h.XpG().$implicit;h.R7$(1),h.JRh(u.fileName),h.R7$(1),h.Y8G("href",u.fileUrl,h.B4B)}}function Yn(C,v){if(1&C&&(h.j41(0,"div",9),h.DNE(1,Ce,2,2,"ng-container",6),h.DNE(2,Ze,4,2,"ng-template",null,10,h.C5r),h.k0s()),2&C){const u=v.$implicit,w=h.sdS(3),F=h.XpG(3);h.R7$(1),h.Y8G("ngIf",F.isImageUrl(u.fileName))("ngIfElse",w)}}function _i(C,v){if(1&C&&(h.qex(0),h.DNE(1,Yn,4,2,"div",8),h.bVm()),2&C){const u=h.XpG().$implicit;h.R7$(1),h.Y8G("ngForOf",u.attachments)}}function wr(C,v){if(1&C&&h.nrm(0,"p",18),2&C){const u=h.XpG(2).$implicit;h.Y8G("innerHTML",u.values,h.npT)}}function Nr(C,v){if(1&C&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&C){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values.join(", "))}}function dl(C,v){if(1&C&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&C){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values.join(", "))}}function vc(C,v){if(1&C&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&C){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values)}}function bc(C,v){if(1&C&&(h.qex(0,14),h.DNE(1,wr,1,1,"p",15),h.DNE(2,Nr,2,1,"p",16),h.DNE(3,dl,2,1,"p",16),h.DNE(4,vc,2,1,"p",17),h.bVm()),2&C){const u=h.XpG().$implicit;h.Y8G("ngSwitch",u.elementType),h.R7$(1),h.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),h.R7$(1),h.Y8G("ngSwitchCase","DROP_DOWN"),h.R7$(1),h.Y8G("ngSwitchCase","SELECTION_MATRIX")}}function ul(C,v){if(1&C&&(h.j41(0,"div",3)(1,"div",4),h.EFF(2),h.k0s(),h.j41(3,"div",5),h.DNE(4,_i,2,1,"ng-container",6),h.DNE(5,bc,5,4,"ng-template",null,7,h.C5r),h.k0s()()),2&C){const u=v.$implicit,w=h.sdS(6);h.R7$(2),h.JRh(u.question),h.R7$(2),h.Y8G("ngIf","FILE_PICKER"===u.elementType)("ngIfElse",w)}}let el=(()=>{class C{isImageUrl(u){return null!=u.match(/\.(jpeg|jpg|gif|png)$/)}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-submission-container"]],inputs:{parentQuestionAnswers:"parentQuestionAnswers"},decls:3,vars:1,consts:[[1,"subModule"],[1,"submission-container"],["class","submission-item",4,"ngFor","ngForOf"],[1,"submission-item"],[1,"key"],[1,"value"],[4,"ngIf","ngIfElse"],["text",""],["class","files",4,"ngFor","ngForOf"],[1,"files"],["fileLink",""],[1,"image",3,"src","alt"],["target","_blank",1,"fileName",3,"href"],[1,"bi","bi-file-earmark"],[3,"ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHTML"]],template:function(w,F){1&w&&(h.j41(0,"div",0)(1,"div",1),h.DNE(2,ul,7,3,"div",2),h.k0s()()),2&w&&(h.R7$(2),h.Y8G("ngForOf",F.parentQuestionAnswers))},dependencies:[Tt.Sq,Tt.bT,Tt.ux,Tt.e1,Tt.fG],styles:[".subModule[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:3rem;padding-right:3rem;padding-top:4rem}@media (max-width: 1024px){.subModule[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.subModule[_ngcontent-%COMP%]{padding:2rem .5rem}}.submission-container[_ngcontent-%COMP%]{background:#fff;display:flex;flex-wrap:wrap;box-shadow:0 4px 4px #00000040;border-radius:6px}.submission-item[_ngcontent-%COMP%]{flex:1 0 15%;margin:5px;padding:10px;border-radius:4px;display:flex;flex-direction:column}.key[_ngcontent-%COMP%]{font-weight:700;margin-bottom:5px}.value[_ngcontent-%COMP%]{word-break:break-word}.image[_ngcontent-%COMP%]{max-width:100%;height:auto;max-height:100px;margin-top:5px;border:1px solid #ddd;border-radius:4px;margin-bottom:10px}.files[_ngcontent-%COMP%]{display:flex;flex-direction:row}.fileName[_ngcontent-%COMP%]{text-decoration:none;margin-left:2%}.fileName[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}"]})}}return C})();function Ql(C,v){1&C&&(h.qex(0),h.nrm(1,"ngx-skeleton-loader",7),h.bVm())}function yc(C,v){if(1&C&&(h.j41(0,"div",8),h.nrm(1,"octa-header",9),h.k0s()),2&C){const u=h.XpG();h.R7$(1),h.Y8G("name",u.name)("skipMargin",u.skipMargin)}}function hl(C,v){if(1&C&&h.nrm(0,"octa-submission-container",10),2&C){const u=h.XpG();h.Y8G("parentQuestionAnswers",u.parentQuestionAnswers)}}function ha(C,v){if(1&C){const u=h.RV6();h.j41(0,"octa-navigation-tabs",11),h.bIt("pageChanged",function(F){h.eBV(u);const $=h.XpG();return h.Njj($.setCurrentPage(F))})("submitEmit",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())})("subFormChange",function(F){h.eBV(u);const $=h.XpG();return h.Njj($.updateSubFormWithSubmissions(F))})("rowSetIndex",function(F){h.eBV(u);const $=h.XpG();return h.Njj($.loadMoreData(F))}),h.k0s()}if(2&C){const u=h.XpG();h.Y8G("skipMargin",u.skipMargin)("pages",u.pages)("currentPageIndex",u.currentPageIndex)("pageDetails",u.pageDetails)("eligibleForSubmission",u.eligibleForSubmission)("edit",u.edit)("acceptedLanguage",u.acceptedLanguage)("isActionTriggered",u.isActionTriggered)("primaryColor",u.primaryColor)("secondaryColor",u.secondaryColor)("markAllQuestionsAsRequired",u.markAllQuestionsAsRequired)("submissionInProgress",u.submissionInProgress)}}function jo(C,v){if(1&C){const u=h.RV6();h.j41(0,"octa-next-prev-navigation",12),h.bIt("rowSetIndex",function(F){h.eBV(u);const $=h.XpG();return h.Njj($.loadMoreData(F))})("navigateNext",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.navigateToNextPage())})("navigatePrevious",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.navigateToPreviousPage())})("submitEmit",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())})("subFormChange",function(F){h.eBV(u);const $=h.XpG();return h.Njj($.updateSubFormWithSubmissions(F))}),h.k0s()}if(2&C){const u=h.XpG();h.Y8G("skipMargin",u.skipMargin)("currentPageIndex",u.currentPageIndex)("pageDetails",u.pageDetails)("pages",u.pages)("previousPage",u.previousPage)("isActionTriggered",u.isActionTriggered)("currentPage",u.currentPage)("primaryColor",u.primaryColor)("secondaryColor",u.secondaryColor)("nextPage",u.nextPage)("acceptedLanguage",u.acceptedLanguage)("edit",u.edit)("eligibleForSubmission",u.eligibleForSubmission)("submissionInProgress",u.submissionInProgress)}}const Go=function(C,v){return{"skip-margin":C,container:v}};let pr=(()=>{class C{constructor(u,w,F,$,pe,Pe,tt,Ot,an,en){this.formService=u,this.toastr=w,this.router=F,this.dataService=$,this.recaptchaService=pe,this.validationService=Pe,this.changeDetectorRef=tt,this.elementTracker=Ot,this.formValidationService=an,this.aggregateService=en,this.question=null,this.edit=!1,this.submissionid="",this.acceptedLanguage="",this.skipMargin=!1,this.submit=new h.bkB,this.apiCalled=new h.bkB,this.currentPageIndexChange=new h.bkB,this.isActionTriggered=!1,this.isLoading=!1,this.name="",this.saveAutomatically=!1,this.saveInterval=0,this.customizeFont=!1,this.fontFamily="",this.fontSize=0,this.enableDataExport=!1,this.fileFormats=[],this.enableQuestionNumbering=!1,this.questionNumbering="",this.enableGoogleRecaptcha=!1,this.googleRecaptchaKey="",this.googleRecaptchaSecret="",this.navigation="",this.markAllQuestionsAsRequired=!1,this.pages=[],this.currentPageIndex=0,this.previousPage={},this.currentPage={},this.nextPage={},this.lastTab=!1,this.questionAnswers={parentId:"",answers:[],forms:[],copySubForms:[]},this.files=[],this.submission={},this.parentSubmissionId="",this.submissionInProgress=!1,this.recaptchaToken="",this.isRefreshing=!1,this.intervalId=null,this.pageDetails=[],this.pageNumber=1,this.rowSet=0,this.rowSetCount=[0],this.retryCount=0,this.maxRetries=5,this.eligibleForSubmission={status:!0,message:""},this.webhookPayloadArray=[],this.inValidQuestions=new Map,this.visitedRows=new Map,this.allElementIds=[],this.primaryColor="",this.secondaryColor="",this.isLoadingPages=!1,this.copySubforms=[],this.emitters=[],this.updateSubForm=(Dn,An)=>{Dn.forEach(zn=>{zn.rows.forEach($i=>{$i.grid.forEach(Xi=>{"SUBFORM"===Xi.entityType&&Xi.element.id===An.formId&&(Xi.element=An)})})})};const Un=this.router.getCurrentNavigation();this.submission=Un?.extras.state?.submission,this.parentSubmissionId=this.submission?.id,this.parentQuestionAnswers=this.submission?.questionAnswers,this.parentQuestions=Un?.extras.state?.parentQuestions,this.dataService.setParentQuestions(this.parentQuestions)}ngOnDestroy(){this.visitedRows.clear(),this.recaptchaService.removeRecaptchaScript(),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null,this.isRefreshing=!1),this.aggregateService.clearAll(),this.recaptchaService.removeRecaptchaScript()}ngOnChanges(u){u.acceptedLanguage&&(this.currentPageIndex=0,this.acceptedLanguage=u.acceptedLanguage.currentValue,console.log("ngOnChanges edit",this.edit),this.edit||setTimeout(()=>{this.getFormData()},500))}ngOnInit(){this.edit&&this.submissionid&&this.getSubmittedFormData(),this.enableGoogleRecaptcha&&this.recaptchaInitialized()}recaptchaInitialized(){var u=this;return(0,kt.A)(function*(){yield u.recaptchaService.initialize(),u.recaptchaService.render("captcha-container",w=>{})})()}getToken(){var u=this;return(0,kt.A)(function*(){return new Promise(function(){var w=(0,kt.A)(function*(F){try{return yield u.recaptchaService.initialize(),u.recaptchaService.isRendered()?u.recaptchaService.isResolved()?F(u.recaptchaService.getResponse()):(console.warn("reCAPTCHA not resolved or expired."),F("")):(console.warn("reCAPTCHA not rendered yet."),F(""))}catch($){return console.error("reCAPTCHA initialization failed:",$),F("")}});return function(F){return w.apply(this,arguments)}}())})()}loadFont(u){const w=`/assets/octa-form-submission-webcomponent/fonts/${u}.woff2`,F=document.createElement("style");F.innerHTML=`\n @font-face {\n font-family: '${u}';\n src: url('${w}') format('woff2');\n font-weight: normal;\n font-style: normal;\n }\n body {\n font-family: '${u}', sans-serif;\n }\n `,document.head.appendChild(F)}getFormData(){this.isLoadingPages=!0,console.log("getFormData modulename",this.modulename),this.formService.getQuestions(this.modulename,1,0,!0).subscribe(u=>{this.isLoadingPages=!1,this.enableGoogleRecaptcha=u.result.moduleConfiguration?.enableGoogleRecaptcha,this.question=kn(u),this.emitters=this.question.emitters||[],this.assignQuestionProperties(this.question),this.setUpFontFamily(u),this.primaryColor=u.result.primaryColor,this.secondaryColor=u.result.secondaryColor,this.enableGoogleRecaptcha&&this.recaptchaInitialized(),u?.result?.pageDetails&&(this.pageDetails=u.result.pageDetails,this.nextPage=this.pageDetails[1]),this.webhookPayloadArray=u?.result?.webhooks?.map(w=>({id:w.id,...this.extractGroupedWebhookData([w])})),this.rowSetCount[0]=u.result.totalNumberRow;for(let w=0;w<this.pageDetails.length;w++)this.pages[w]||(this.pages[w]=[]);this.checkSubmissionEligibility()})}getSubmittedFormData(){this.formService.getSubmittedForm(this.modulename,this.submissionid).subscribe(u=>{this.enableGoogleRecaptcha=u.result.moduleConfiguration.enableGoogleRecaptcha,this.question=kn(u),this.assignQuestionProperties(this.question),this.primaryColor=u.result.primaryColor,this.secondaryColor=u.result.secondaryColor,this.emitters=this.question.emitters||[],u?.result?.pageDetails&&(this.pageDetails=u.result.pageDetails,this.nextPage=this.pageDetails[1]),this.webhookPayloadArray=u?.result?.webhooks?.map(w=>({id:w.id,...this.extractGroupedWebhookData([w])})),this.rowSetCount[0]=u.result.totalNumberRow;for(let w=0;w<this.pageDetails.length;w++)this.pages[w]||(this.pages[w]=[]);this.setUpFontFamily(u),this.enableGoogleRecaptcha&&this.recaptchaInitialized(),this.checkSubmissionEligibility()})}setUpFontFamily(u){u.result?.moduleConfiguration?.customizeFont?(this.fontFamily=u.result.moduleConfiguration?.fontFamily,this.fontSize=u.result.moduleConfiguration?.fontSize||18):(this.fontFamily="Poppins",this.fontSize=18),this.loadFont(this.fontFamily),document.documentElement.style.setProperty("--library-font-family",this.fontFamily),document.documentElement.style.setProperty("--library-font-size",this.fontSize+"px")}assignQuestionProperties(u){this.name=u.name,this.pages=u.pages,this.parentQuestions&&(this.parentQuestionAnswers=u?.questionAnswers,this.parentSubmissionId=u?.parentId),this.currentPage=this.pages[0],this.nextPage=this.pages[1],this.saveAutomatically=u.formConfiguration.saveAutomatically,this.saveInterval=u.formConfiguration.saveInterval,this.customizeFont=u.formConfiguration.customizeFont,this.fontFamily=u.formConfiguration.fontFamily,this.fontSize=u.formConfiguration.fontSize,this.enableDataExport=u.formConfiguration.enableDataExport,this.fileFormats=u.formConfiguration.fileFormats,this.enableQuestionNumbering=u.formConfiguration.enableQuestionNumbering,this.questionNumbering=u.formConfiguration.questionNumbering,this.enableGoogleRecaptcha=u.formConfiguration.enableGoogleRecaptcha,this.googleRecaptchaKey=u.formConfiguration.googleRecaptchaKey,this.googleRecaptchaSecret=u.formConfiguration.googleRecaptchaSecret,this.navigation=u.formConfiguration.navigation,this.markAllQuestionsAsRequired=u.formConfiguration.markAllQuestionsAsRequired,this.apiCalled.emit(!0)}navigateToNextPage(){if(!this.isLoading){this.isLoading=!0;const u=this.currentPageIndex+1;u<this.pageDetails.length&&(this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.previousPage=this.pageDetails[this.currentPageIndex],0!=this.pages[u].length?(this.currentPage=this.pages[u],this.currentPageIndex=u):this.setCurrentPage(u),this.nextPage=this.pageDetails[u+1]):(this.previousPage=this.pageDetails[this.currentPageIndex],0!=this.pages[u].length?(this.currentPage=this.pages[u],this.currentPageIndex=u):this.setCurrentPage(u),this.nextPage=this.pageDetails[u+1])),this.isLoading=!1,this.checkSubmissionEligibility()}}navigateToPreviousPage(){this.currentPageIndex>0&&(this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.nextPage=this.pageDetails[this.currentPageIndex],this.currentPageIndex--,this.currentPage=this.pages[this.currentPageIndex],this.previousPage=this.pageDetails[this.currentPageIndex-1]):(this.nextPage=this.pageDetails[this.currentPageIndex],this.currentPageIndex--,this.currentPage=this.pages[this.currentPageIndex],this.previousPage=this.pageDetails[this.currentPageIndex-1])),this.checkSubmissionEligibility()}checkSubmissionEligibility(){this.eligibleForSubmission=this.validateAllElementLoaded()}setCurrentPage(u){if(!(u<this.pages.length)||this.pages[u]&&0==this.pages[u].length)if(this.pageNumber=u+1,this.edit?this.formService.getSubmittedForm(this.modulename,this.submissionid,this.pageNumber,this.rowSet).subscribe(w=>{w?.result?.pages&&(this.pages[u]=w.result.pages[0]),this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=w.result.totalNumberRow,this.checkSubmissionEligibility()}):this.formService.getQuestions(this.modulename,this.pageNumber,this.rowSet,!0).subscribe(w=>{w?.result?.pages&&(this.pages[u]=w.result.pages[0]),this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=w.result.totalNumberRow,this.checkSubmissionEligibility()}),this.markAllQuestionsAsRequired){if(!this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid)return void this.checkSubmissionEligibility();this.currentPageIndex=u}else this.checkSubmissionEligibility(),this.currentPageIndex=u;else this.checkSubmissionEligibility()}loadMoreData(u){if(!this.isLoading){this.isLoading=!0;let w=this.rowSetCount[u],F=0;this.pages[u].rows.forEach(pe=>{pe.grid.forEach(Pe=>{F++})});let $=F/20;if($=Math.ceil($),this.visitedRows.has(u)&&this.visitedRows.get(u)===$)return void(this.isLoading=!1);if($+1>w)return this.checkSubmissionEligibility(),void(this.isLoading=!1);this.visitedRows.set(u,$),this.edit?this.formService.getSubmittedForm(this.modulename,this.submissionid,u+1,$).subscribe(pe=>{const Pe=pe?.result?.pages[0]?.rows??[];this.pages[u].rows=[...this.pages[u]?.rows??[],...Pe],this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=pe.result.totalNumberRow,this.checkSubmissionEligibility(),this.isLoading=!1}):this.formService.getQuestions(this.modulename,u+1,$).subscribe(pe=>{const Pe=pe?.result?.pages[0]?.rows??[];this.pages[u].rows=[...this.pages[u]?.rows??[],...Pe],this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=pe.result.totalNumberRow,this.checkSubmissionEligibility(),this.isLoading=!1}),this.checkSubmissionEligibility()}}generateQuestionAnswers(){this.copySubforms=[];const u=($,pe=null,Pe=!1,tt=0)=>{const Ot=[],an=[];return $.forEach(en=>{if("QUESTION"===en.entityType){let Un;if("FILE_PICKER"===en.element.formElement.elementType?(Un={questionId:en.element.id,answer:""},Array.isArray(en.element.answer)&&this.files.push({questionId:Pe?`${pe}_${tt}_${en.element.id}`:en.element.id,file:en.element.answer})):Un={questionId:en.element.id,answer:en.element.answer},Ot.push(this.edit?{...Un,answerId:en.element.answerId||"",deleteFiles:en.element.deleteFiles||[]}:Un),en.element.childLogics)for(let Dn of en.element.childLogics)if(Dn.showLogic)for(let An of Dn.rows){const zn=u(An.grid,pe,Pe,tt);Ot.push(...zn.answers),an.push(...zn.forms)}}else if("SUBFORM"===en.entityType){const Un=en.element.id,Dn=en.element.submissionId;if(en.element.copySubformMeta&&this.copySubforms.push(en.element.copySubformMeta),"single"===en.element.property.subFormStructure){let zn,An=[];en.element.rows.forEach(Xi=>{u(Xi.grid,Un,!0,an.length).answers.forEach(Ks=>{An.push({...Ks})})}),en.element.copiedForms&&(zn=en.element.copiedForms),an.push({formId:Un,deleted:en.element.deleted,deletedSubmissions:[],submissions:[{submissionId:Dn,answers:An}],copiedForms:zn})}else if("multiple"===en.element.property.subFormStructure){let Xi,zn={answers:[]};en.element.rows.forEach(Ks=>{zn=u(Ks.grid,Un,!0,an.length)}),an.find(Ks=>Ks.formId===Un),("inline"==en.element.property.subFormType||"card"==en.element.property.subFormType)&&en.element.submissions&&(en.element.submissions=this.clearEmptySubmissions(en.element.submissions)),en.element?.submissions?.forEach((Ks,Xo)=>{Ks.answers.forEach(cr=>{delete cr.htmlContent,Array.isArray(cr.files)&&(this.files.push({questionId:`${Un}_${Xo}_${cr.questionId}`,file:cr.files}),delete cr.files),delete cr.attachments})}),en.element.copiedForms&&(Xi=en.element.copiedForms),an.push({formId:Un,deleted:en.element.deleted,deletedSubmissions:en.element.deletedSubmissions,submissions:en.element.submissions,copiedForms:Xi})}}else"QUESTION_GROUP"===en.entityType?en.element.rows.forEach(Un=>{Un.grid.forEach(Dn=>{if("QUESTION"===Dn.entityType){let An;if("FILE_PICKER"===Dn.element?.formElement.elementType?(An={questionId:Dn.element.id,answer:""},Array.isArray(Dn.element.answer)&&this.files.push({questionId:Pe?`${pe}_${tt}_${Dn.element.id}`:Dn.element.id,file:Dn.element.answer})):An={questionId:Dn.element.id,answer:Dn.element.answer},Ot.push(this.edit?{...An,answerId:Dn.element.answerId||"",deleteFiles:Dn.element.deleteFiles||[]}:An),Dn.element.childLogics)for(let zn of Dn.element.childLogics)if(zn.showLogic)for(let $i of zn.rows){const Xi=u($i.grid,pe,Pe,tt);Ot.push(...Xi.answers),an.push(...Xi.forms)}}})}):"MULTIFIELD"===en.entityType&&en.element.rows.forEach(Un=>{Un.grid.forEach(Dn=>{"QUESTION"===Dn.entityType&&Ot.push({questionId:Dn.element.id,answer:Dn.element.answer||""})})})}),{answers:Ot,forms:an}},F=($=>{const pe=[],Pe=[];return this.pages.forEach(tt=>{tt.rows.forEach(Ot=>{const an=u(Ot.grid);pe.push(...an.answers),Pe.push(...an.forms)})}),{answers:pe,forms:Pe}})();this.questionAnswers={parentId:"",answers:F.answers,forms:F.forms,copySubForms:this.copySubforms}}clearEmptySubmissions(u){const w=[],F=[];return u.forEach($=>{$.answers.some(Pe=>""!==Pe.answer&&null!=Pe.answer)?w.push($):$.submissionId&&F.push($.submissionId)}),w}validateAllElementLoaded(){if(this.pages.length<this.pageDetails.length)return{status:!1,message:"Please ensure all pages are fully visible before submitting the form."};const u=[];return this.pages.forEach((w,F)=>{if(w&&Array.isArray(w.rows)){let $=0;w.rows.forEach(pe=>{pe.grid.forEach(Pe=>{$++})}),(!w||!Array.isArray(w.rows)||Math.ceil($/20)!=this.rowSetCount[F])&&u.push(this.pageDetails[F].name)}else u.push(this.pageDetails[F].name)}),u.length>0?(console.log(u.length>0),{status:!1,message:`Some sections are still loading. Please scroll through the following pages to ensure all questions are loaded: ${u.join(", ")}.`}):{status:!0,message:"Great! All sections are complete. You can now submit the form."}}submitForm(){var u=this;return(0,kt.A)(function*(){if(!u.validateAllElementLoaded().status)return void u.toastr.warning("Please wait for all elements to load");if(u.submissionInProgress)return;let w;if(u.inValidQuestions.clear(),u.validationService.clearAll(),u.enableGoogleRecaptcha)try{if(w=yield u.getToken(),!w)return u.toastr.error("Please complete the CAPTCHA verification before submitting the form."),void(u.submissionInProgress=!1)}catch(pe){return console.error("Error while getting reCAPTCHA token:",pe.error?.message),u.toastr.error("Failed to verify reCAPTCHA."),void(u.submissionInProgress=!1)}u.submissionInProgress=!0;let F=u.validateForm(u.pages);if(u.generateQuestionAnswers(),F.isValid){const pe=new FormData;if(u.questionAnswers.parentId=u.parentSubmissionId,pe.append("json",JSON.stringify(u.questionAnswers,(()=>{const pe=new WeakSet;return(Pe,tt)=>{if("object"==typeof tt&&null!==tt){if(pe.has(tt))return;pe.add(tt)}return tt}})())),pe.append("webhookPayload",u.webhookPayloadArray?JSON.stringify(u.webhookPayloadArray):JSON.stringify([])),u.files.length>0){const tt=new Set;u.files.filter(an=>!tt.has(an.questionId)&&(tt.add(an.questionId),!0)).forEach(an=>{an.file.forEach(en=>{pe.append(an.questionId,en._file)})})}(u.edit&&u.submissionid?u.formService.updateForm(u.modulename,u.submissionid,pe,w??""):u.formService.submitForm(u.modulename,pe,w??"")).subscribe({next:tt=>{let Ot;u.toastr.success(u.edit?"Form updated successfully":"Form submitted successfully"),u.emitters&&(Ot=u.mapEmittersToValues()),u.submit.emit({status:"success",submissionId:tt.result,...Ot||{}}),u.submissionInProgress=!1},error:tt=>{u.validationService.clearAll(),u.findQuestionPageIndex(u.parseErrorsToMap(tt.error.message)),u.currentPageIndex=u.pages.length-1,u.navigateToFirstError(),u.submissionInProgress=!1}})}else u.submissionInProgress=!1})()}mapEmittersToValues(){const u=new Map(this.questionAnswers.answers.map(F=>[F.questionId,F.answer])),w={};return this.emitters.forEach(F=>{"CUSTOM_INPUT"===F.valueSource?w[F.keyName]=F.inputValue:"QUESTION"===F.valueSource&&F.questionId&&u.has(F.questionId)&&(w[F.keyName]=u.get(F.questionId))}),w}parseErrorsToMap(u){const w=new Map;return u.replace(/[{}]/g,"").split(", ").forEach(F=>{const[$,pe]=F.split("=");$&&pe&&w.set($.trim(),pe.trim())}),w}navigateToFirstError(){var u=this;return(0,kt.A)(function*(){const w=u.validationService.getFirstInvalid();if(!w)return;const F=`question-${w.id}`;u.retryCount=0,u.currentPageIndex!==w.pageIndex&&(u.currentPageIndex=w.pageIndex,u.currentPageIndex+1<u.pageDetails.length&&(u.nextPage=u.pageDetails[u.currentPageIndex+1]),u.currentPageIndex-1>=0&&(u.previousPage=u.pageDetails[u.currentPageIndex-1]),u.debounce(()=>u.changeDetectorRef.detectChanges(),100),"TAB"===u.navigation&&u.child.triggerFunction(w.pageIndex)),yield u.scrollToElementWithRetry(F)})()}scrollToElementWithRetry(u){var w=this;return(0,kt.A)(function*(){w.retryCount++;const F=document.getElementById(u);if(!F)return w.retryCount<w.maxRetries?(yield new Promise($=>setTimeout($,100)),w.scrollToElementWithRetry(u)):(console.error(`Element ${u} not found after ${w.maxRetries} attempts`),void requestAnimationFrame(()=>w.fallbackScroll()));requestAnimationFrame(()=>w.scrollAndFocus(F))})()}scrollAndFocus(u){u.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),u.querySelector('input, select, textarea, button, [tabindex]:not([tabindex="-1"])')?.focus()}fallbackScroll(){document.querySelector(`.page-${this.currentPageIndex}`)?.scrollIntoView({behavior:"auto"})}debounce(u,w){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(u,w)}findQuestionPageIndex(u){for(let w=0;w<this.pages.length;w++){const F=this.pages[w];for(const $ of F.rows)for(const pe of $.grid)this.checkAndStoreInvalidQuestions(pe,u,w)}}checkAndStoreInvalidQuestions(u,w,F){if(u.element.id&&w.has(u.element.id)&&this.validationService.setInvalid(u.element.id,w.get(u.element.id),F),"SUBFORM"===u.entityType&&u.element.rows)for(const $ of u.element.rows)for(const pe of $.grid)this.checkAndStoreInvalidQuestions(pe,w,F);if(("QUESTION_GROUP"===u.entityType||"MULTIFIELD"===u.entityType)&&u.element.rows)for(const $ of u.element.rows)for(const pe of $.grid)this.checkAndStoreInvalidQuestions(pe,w,F);if("QUESTION"===u.entityType&&u.element.childLogics)for(const $ of u.element.childLogics)if($.showLogic)for(const pe of $.rows)for(const Pe of pe.grid)this.checkAndStoreInvalidQuestions(Pe,w,F)}focusQuestionElement(u){const w=u.querySelector("input, select, textarea, [tabindex]");w?w.focus():u.focus()}validateForm(u){const w=F=>{for(let $ of F)if("QUESTION"===$.entityType){const pe=$.element.required,Pe=$.element.answer,tt=$.element.validation;if("FILE_PICKER"===$.element.formElement.elementType){const Ot=$.element.attachments;if(pe&&(!Pe||0===Pe?.length)&&(!Ot||0==Ot?.length))return this.inValidQuestions.set($.element.id,"Required file question has no files uploaded."),{isValid:!1,message:`Form is invalid - Required file question ${$.element.questionNumber} has no files uploaded.`,pageIndex:0}}else if(pe){if(!Pe||0===Object.keys(Pe).length)return this.inValidQuestions.set($.element.id,"Question is required but no answer provided."),{isValid:!1,message:`Form is invalid - Question ${$.element.questionNumber} is required but no answer provided.`,pageIndex:0};if(!1===tt)return this.inValidQuestions.set($.element.id,"Question is required but validation is false."),{isValid:!1,message:`Form is invalid - Question ${$.element.questionNumber} is required but validation is false.`,pageIndex:0}}else if(!pe&&Pe&&Object.keys(Pe).length>0&&!1===tt)return this.inValidQuestions.set($.element.id,"Question is not required but answer provided with validation false."),{isValid:!1,message:`Form is invalid - Question ${$.element.questionNumber} is not required but answer provided with validation false.`,pageIndex:0};if($.element.childLogics)for(let Ot of $.element.childLogics)if(Ot.showLogic){const an=w(Ot.rows);if(!an.isValid)return an}}else if(("QUESTION_GROUP"===$.entityType||"MULTIFIELD"===$.entityType)&&$.element.rows)for(const pe of $.element.rows){const Pe=w(pe.grid);if(!Pe.isValid&&"MULTIFIELD"!=$.entityType)return Pe}return{isValid:!0,message:"",pageIndex:0}};for(let F=0;F<u.length;F++){const $=u[F];for(let pe of $.rows)w(pe.grid),this.inValidQuestions.forEach((tt,Ot)=>{this.validationService.setInvalid(Ot,tt,F)}),this.inValidQuestions=new Map}return this.currentPageIndex=u.length-1,this.validationService.getFirstInvalid()?(this.navigateToFirstError(),{isValid:!1,message:"Page",pageIndex:0}):{isValid:!0,message:"Form is valid.",pageIndex:0}}updateSubFormWithSubmissions(u){this.updateSubForm(this.pages,u)}extractGroupedWebhookData(u){const w={headers:{},params:{},pathVariables:{},requestBodies:{}};for(const F of u??[]){for(const $ of F?.headers??[]){const pe=this.getValueFromStorage($.valueSource,$.keyName);null!==pe&&(w.headers[$.keyName]=pe)}for(const $ of F?.params??[]){const pe=this.getValueFromStorage($.valueSource,$.keyName);null!==pe&&(w.params[$.keyName]=pe)}for(const $ of F?.pathVariables??[]){const pe=this.getValueFromStorage($.valueSource,$.keyName);null!==pe&&(w.pathVariables[$.keyName]=pe)}for(const $ of F?.requestBodies??[]){const pe=this.getValueFromStorage($.valueSource,$.keyName);null!==pe&&(w.requestBodies[$.keyName]=pe)}}return w}getValueFromStorage(u,w){return"LOCAL_STORAGE"===u?localStorage.getItem(w):"SESSION_STORAGE"===u?sessionStorage.getItem(w):null}static{this.\u0275fac=function(w){return new(w||C)(h.rXU(Ja.u),h.rXU(io),h.rXU(Ir.Ix),h.rXU(Ri.u),h.rXU(rs),h.rXU(Ve.B),h.rXU(h.gRc),h.rXU(So.U),h.rXU(ut),h.rXU(Zo.q))}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-submit-form"]],viewQuery:function(w,F){if(1&w&&h.GBs(Vs,5),2&w){let $;h.mGM($=h.lsd())&&(F.child=$.first)}},inputs:{modulename:"modulename",edit:"edit",submissionid:"submissionid",acceptedLanguage:"acceptedLanguage",skipMargin:"skipMargin",isActionTriggered:"isActionTriggered"},outputs:{submit:"submit",apiCalled:"apiCalled",currentPageIndexChange:"currentPageIndexChange"},features:[h.OA$],decls:7,vars:9,consts:[[1,"outer-container"],[4,"ngIf"],["class","head container",4,"ngIf"],[1,"body",3,"ngClass"],[3,"parentQuestionAnswers",4,"ngIf"],[3,"skipMargin","pages","currentPageIndex","pageDetails","eligibleForSubmission","edit","acceptedLanguage","isActionTriggered","primaryColor","secondaryColor","markAllQuestionsAsRequired","submissionInProgress","pageChanged","submitEmit","subFormChange","rowSetIndex",4,"ngIf"],[3,"skipMargin","currentPageIndex","pageDetails","pages","previousPage","isActionTriggered","currentPage","primaryColor","secondaryColor","nextPage","acceptedLanguage","edit","eligibleForSubmission","submissionInProgress","rowSetIndex","navigateNext","navigatePrevious","submitEmit","subFormChange",4,"ngIf"],["count","5"],[1,"head","container"],[3,"name","skipMargin"],[3,"parentQuestionAnswers"],[3,"skipMargin","pages","currentPageIndex","pageDetails","eligibleForSubmission","edit","acceptedLanguage","isActionTriggered","primaryColor","secondaryColor","markAllQuestionsAsRequired","submissionInProgress","pageChanged","submitEmit","subFormChange","rowSetIndex"],[3,"skipMargin","currentPageIndex","pageDetails","pages","previousPage","isActionTriggered","currentPage","primaryColor","secondaryColor","nextPage","acceptedLanguage","edit","eligibleForSubmission","submissionInProgress","rowSetIndex","navigateNext","navigatePrevious","submitEmit","subFormChange"]],template:function(w,F){1&w&&(h.j41(0,"div",0),h.DNE(1,Ql,2,0,"ng-container",1),h.DNE(2,yc,2,2,"div",2),h.j41(3,"div",3),h.DNE(4,hl,1,1,"octa-submission-container",4),h.DNE(5,ha,1,12,"octa-navigation-tabs",5),h.DNE(6,jo,1,14,"octa-next-prev-navigation",6),h.k0s()()),2&w&&(h.R7$(1),h.Y8G("ngIf",F.isLoadingPages),h.R7$(1),h.Y8G("ngIf",!F.skipMargin),h.R7$(1),h.Y8G("ngClass",h.l_i(6,Go,F.skipMargin,!F.skipMargin)),h.R7$(1),h.Y8G("ngIf",F.parentQuestionAnswers),h.R7$(1),h.Y8G("ngIf","TAB"==F.navigation),h.R7$(1),h.Y8G("ngIf","NEXT_AND_PREVIOUS_BUTTON"==F.navigation))},dependencies:[Tt.YU,Tt.bT,gi,hr,Vs,U,el],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;padding:20px;position:relative;margin-top:25px}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.head[_ngcontent-%COMP%]{background-color:#fff;padding:0!important}.body[_ngcontent-%COMP%]{position:relative;z-index:1;background:#efefef;border-radius:6px}.skip-margin[_ngcontent-%COMP%]{background:#fff}"]})}}return C})(),Nl=(()=>{class C{constructor(u,w){this.dataService=u,this.document=w,this.formdata={},this.edit=!1,this.submissionid="",this.submitForm=new h.bkB,this.apiCalled=new h.bkB,this.triggerFormSave=null,this.formElements=[],this.isActionTriggered=!1}ngOnChanges(u){if(console.log("Changes detected:",u),u.formdata&&u.formdata.currentValue){if("string"==typeof this.formdata)try{this.formdata=JSON.parse(this.formdata),this.modulename=this.formdata.modulename,console.log("Changes detected: formdata",this.formdata)}catch{this.formdata={},console.log("Changes detected: catch",this.formdata)}this.setHeaders()}u.triggerFormSave&&u.triggerFormSave.currentValue&&("submit"===u.triggerFormSave.currentValue&&(this.isActionTriggered=!0),this.submitFormComponent&&this.submitFormComponent.submitForm())}loadScript(u){return new Promise((w,F)=>{if(document.querySelector(`script[src="${u}"]`))return void w();const $=document.createElement("script");$.src=u,$.onload=()=>w(),$.onerror=()=>F(),document.body.appendChild($)})}loadStyle(u){return new Promise((w,F)=>{if(document.querySelector(`link[href="${u}"]`))return void w();const $=document.createElement("link");$.rel="stylesheet",$.href=u,$.onload=()=>w(),$.onerror=()=>F(),document.head.appendChild($)})}ngAfterViewInit(){var u=this;return(0,kt.A)(function*(){yield u.loadStyle("./assets/bundle.css"),yield u.loadScript("./assets/bundle.js"),setTimeout(()=>{const w=u.document.querySelector("octa-submit-form");console.log("Inner Octa Submit Form element:",w),u.formdata&&(u.dataService.setApiUrl(u.formdata?.apiurl),u.dataService.setHeader(u.formdata?.headers),w?(console.log("el formdata",u.formdata),console.log("el modulename",u.modulename),w.formdata=u.formdata,w.submissionid=u.submissionid,w.edit=u.edit,w.skipMargin=u.formdata?.skipMargin,w.acceptedLanguage=u.formdata?.headers?.acceptedLanguage,w.modulename=u.modulename,console.log("Attributes passed to <octa-submit-form>:",w)):console.warn("<octa-submit-form> not found in DOM."))},500)})()}ngOnDestroy(){const u=document.querySelector("octa-submit-form");u&&u.parentNode&&u.parentNode.removeChild(u)}ngOnInit(){if(console.log("Inputs received:"),console.log("formdata:",this.formdata),console.log("submissionId:",this.submissionid),console.log("edit:",this.edit),this.dataService.formData$.subscribe(u=>{console.log("ngOnInit formdata",this.formdata),this.formdata=u}),"string"==typeof this.formdata)try{this.formdata=JSON.parse(this.formdata)}catch{console.warn("formdata is not valid JSON. Please pass proper JSON string."),this.formdata={}}if("string"==typeof this.formElements)try{this.formElements=JSON.parse(this.formElements)}catch{this.formElements=[]}this.setHeaders(),this.dataService.header$.subscribe(u=>{this.header=u,this.setHtmlDirection(this.header?.acceptedLanguage)})}setHeaders(){if(this.formdata&&this.formdata.headers){let u={};const w=this.formdata&&this.formdata.apiurl?this.formdata.apiurl:"";for(const F in this.formdata.headers)null!=this.formdata.headers[F]&&void 0!==this.formdata.headers[F]&&(u[F]=this.formdata.headers[F]);console.log("[FormBuilderComponent] Setting apiurl:",w),console.log("[FormBuilderComponent] Setting headers:",u),this.dataService.setApiUrl(w),this.dataService.setHeader(u)}}setHtmlDirection(u){const w=this.document.getElementsByTagName("html")[0];cn.htmlDirection="ara"===u||"ar"===u?"rtl":"ltr",w.dir=cn.htmlDirection}submit(u){this.submitForm.emit(u)}getFormApiCalled(u){this.apiCalled.emit(!0)}static{this.\u0275fac=function(w){return new(w||C)(h.rXU(Ri.u),h.rXU(Tt.qQ))}}static{this.\u0275cmp=h.VBU({type:C,selectors:[["octa-formSubmission"]],viewQuery:function(w,F){if(1&w&&h.GBs(pr,5),2&w){let $;h.mGM($=h.lsd())&&(F.submitFormComponent=$.first)}},inputs:{formdata:"formdata",edit:"edit",submissionid:"submissionid",triggerFormSave:"triggerFormSave",formElements:"formElements"},outputs:{submitForm:"submitForm",apiCalled:"apiCalled"},features:[h.OA$],decls:1,vars:6,consts:[[3,"modulename","submissionid","edit","acceptedLanguage","skipMargin","isActionTriggered","submit","apiCalled"]],template:function(w,F){1&w&&(h.j41(0,"octa-submit-form",0),h.bIt("submit",function(pe){return F.submit(pe)})("apiCalled",function(pe){return F.getFormApiCalled(pe)}),h.k0s()),2&w&&h.Y8G("modulename",F.modulename)("submissionid",F.submissionid)("edit",F.edit)("acceptedLanguage",null==F.formdata||null==F.formdata.headers?null:F.formdata.headers.acceptedLanguage)("skipMargin",null==F.formdata?null:F.formdata.skipMargin)("isActionTriggered",F.isActionTriggered)},dependencies:[pr]})}}return C})();function Wr(C){return new h.wOt(3e3,!1)}function Gn(C){switch(C.length){case 0:return new wn.sf;case 1:return C[0];default:return new wn.ui(C)}}function Ji(C,v,u=new Map,w=new Map){const F=[],$=[];let pe=-1,Pe=null;if(v.forEach(tt=>{const Ot=tt.get("offset"),an=Ot==pe,en=an&&Pe||new Map;tt.forEach((Un,Dn)=>{let An=Dn,zn=Un;if("offset"!==Dn)switch(An=C.normalizePropertyName(An,F),zn){case wn.FX:zn=u.get(Dn);break;case wn.kp:zn=w.get(Dn);break;default:zn=C.normalizeStyleValue(Dn,An,zn,F)}en.set(An,zn)}),an||$.push(en),Pe=en,pe=Ot}),F.length)throw function Pi(C){return new h.wOt(3502,!1)}();return $}function ji(C,v,u,w){switch(v){case"start":C.onStart(()=>w(u&&xi(u,"start",C)));break;case"done":C.onDone(()=>w(u&&xi(u,"done",C)));break;case"destroy":C.onDestroy(()=>w(u&&xi(u,"destroy",C)))}}function xi(C,v,u){const $=Zn(C.element,C.triggerName,C.fromState,C.toState,v||C.phaseName,u.totalTime??C.totalTime,!!u.disabled),pe=C._data;return null!=pe&&($._data=pe),$}function Zn(C,v,u,w,F="",$=0,pe){return{element:C,triggerName:v,fromState:u,toState:w,phaseName:F,totalTime:$,disabled:!!pe}}function Ii(C,v,u){let w=C.get(v);return w||C.set(v,w=u),w}function Gi(C){const v=C.indexOf(":");return[C.substring(1,v),C.slice(v+1)]}const Li=(()=>typeof document>"u"?null:document.documentElement)();function Yo(C){const v=C.parentNode||C.host||null;return v===Li?null:v}let Io=null,bo=!1;function gs(C,v){for(;v;){if(v===C)return!0;v=Yo(v)}return!1}function Di(C,v,u){if(u)return Array.from(C.querySelectorAll(v));const w=C.querySelector(v);return w?[w]:[]}let ma=(()=>{class C{validateStyleProperty(u){return function Jr(C){Io||(Io=function zo(){return typeof document<"u"?document.body:null}()||{},bo=!!Io.style&&"WebkitAppearance"in Io.style);let v=!0;return Io.style&&!function as(C){return"ebkit"==C.substring(1,6)}(C)&&(v=C in Io.style,!v&&bo&&(v="Webkit"+C.charAt(0).toUpperCase()+C.slice(1)in Io.style)),v}(u)}matchesElement(u,w){return!1}containsElement(u,w){return gs(u,w)}getParentElement(u){return Yo(u)}query(u,w,F){return Di(u,w,F)}computeStyle(u,w,F){return F||""}animate(u,w,F,$,pe,Pe=[],tt){return new wn.sf(F,$)}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac})}}return C})(),ao=(()=>{class C{static{this.NOOP=new ma}}return C})();const wc=1e3,lo="ng-enter",Oo="ng-leave",ml="ng-trigger",Pl=".ng-trigger",Ro="ng-animating",ga=".ng-animating";function Ea(C){if("number"==typeof C)return C;const v=C.match(/^(-?[\.\d]+)(m?s)/);return!v||v.length<2?0:gl(parseFloat(v[1]),v[2])}function gl(C,v){return"s"===v?C*wc:C}function _a(C,v,u){return C.hasOwnProperty("duration")?C:function Ll(C,v,u){let F,$=0,pe="";if("string"==typeof C){const Pe=C.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Pe)return v.push(Wr()),{duration:0,delay:0,easing:""};F=gl(parseFloat(Pe[1]),Pe[2]);const tt=Pe[3];null!=tt&&($=gl(parseFloat(tt),Pe[4]));const Ot=Pe[5];Ot&&(pe=Ot)}else F=C;if(!u){let Pe=!1,tt=v.length;F<0&&(v.push(function $o(){return new h.wOt(3100,!1)}()),Pe=!0),$<0&&(v.push(function Pa(){return new h.wOt(3101,!1)}()),Pe=!0),Pe&&v.splice(tt,0,Wr())}return{duration:F,delay:$,easing:pe}}(C,v,u)}function Sa(C,v={}){return Object.keys(C).forEach(u=>{v[u]=C[u]}),v}function Jn(C){const v=new Map;return Object.keys(C).forEach(u=>{v.set(u,C[u])}),v}function Ar(C,v=new Map,u){if(u)for(let[w,F]of u)v.set(w,F);for(let[w,F]of C)v.set(w,F);return v}function gr(C,v,u){v.forEach((w,F)=>{const $=Jt(F);u&&!u.has(F)&&u.set(F,C.style[$]),C.style[$]=w})}function qn(C,v){v.forEach((u,w)=>{const F=Jt(w);C.style[F]=""})}function ka(C){return Array.isArray(C)?1==C.length?C[0]:(0,wn.K2)(C):C}const Pr=new RegExp("{{\\s*(.+?)\\s*}}","g");function jc(C){let v=[];if("string"==typeof C){let u;for(;u=Pr.exec(C);)v.push(u[1]);Pr.lastIndex=0}return v}function Qs(C,v,u){const w=C.toString(),F=w.replace(Pr,($,pe)=>{let Pe=v[pe];return null==Pe&&(u.push(function or(C){return new h.wOt(3003,!1)}()),Pe=""),Pe.toString()});return F==w?C:F}function _l(C){const v=[];let u=C.next();for(;!u.done;)v.push(u.value),u=C.next();return v}const ld=/-+([a-z0-9])/g;function Jt(C){return C.replace(ld,(...v)=>v[1].toUpperCase())}function us(C,v,u){switch(v.type){case 7:return C.visitTrigger(v,u);case 0:return C.visitState(v,u);case 1:return C.visitTransition(v,u);case 2:return C.visitSequence(v,u);case 3:return C.visitGroup(v,u);case 4:return C.visitAnimate(v,u);case 5:return C.visitKeyframes(v,u);case 6:return C.visitStyle(v,u);case 8:return C.visitReference(v,u);case 9:return C.visitAnimateChild(v,u);case 10:return C.visitAnimateRef(v,u);case 11:return C.visitQuery(v,u);case 12:return C.visitStagger(v,u);default:throw function La(C){return new h.wOt(3004,!1)}()}}function vl(C,v){return window.getComputedStyle(C)[v]}const Vl="*";function co(C,v){const u=[];return"string"==typeof C?C.split(/\s*,\s*/).forEach(w=>function ar(C,v,u){if(":"==C[0]){const tt=function A(C,v){switch(C){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,w)=>parseFloat(w)>parseFloat(u);case":decrement":return(u,w)=>parseFloat(w)<parseFloat(u);default:return v.push(function tl(C){return new h.wOt(3016,!1)}()),"* => *"}}(C,u);if("function"==typeof tt)return void v.push(tt);C=tt}const w=C.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==w||w.length<4)return u.push(function Ba(C){return new h.wOt(3015,!1)}()),v;const F=w[1],$=w[2],pe=w[3];v.push(j(F,pe));"<"==$[0]&&!(F==Vl&&pe==Vl)&&v.push(j(pe,F))}(w,u,v)):u.push(C),u}const V=new Set(["true","1"]),O=new Set(["false","0"]);function j(C,v){const u=V.has(C)||O.has(C),w=V.has(v)||O.has(v);return(F,$)=>{let pe=C==Vl||C==F,Pe=v==Vl||v==$;return!pe&&u&&"boolean"==typeof F&&(pe=F?V.has(C):O.has(C)),!Pe&&w&&"boolean"==typeof $&&(Pe=$?V.has(v):O.has(v)),pe&&Pe}}const Q=":self",Te=new RegExp(`s*${Q}s*,?`,"g");function Qe(C,v,u,w){return new Ht(C).build(v,u,w)}class Ht{constructor(v){this._driver=v}build(v,u,w){const F=new _s(u);return this._resetContextStyleTimingState(F),us(this,ka(v),F)}_resetContextStyleTimingState(v){v.currentQuerySelector="",v.collectedStyles=new Map,v.collectedStyles.set("",new Map),v.currentTime=0}visitTrigger(v,u){let w=u.queryCount=0,F=u.depCount=0;const $=[],pe=[];return"@"==v.name.charAt(0)&&u.errors.push(function fa(){return new h.wOt(3006,!1)}()),v.definitions.forEach(Pe=>{if(this._resetContextStyleTimingState(u),0==Pe.type){const tt=Pe,Ot=tt.name;Ot.toString().split(/\s*,\s*/).forEach(an=>{tt.name=an,$.push(this.visitState(tt,u))}),tt.name=Ot}else if(1==Pe.type){const tt=this.visitTransition(Pe,u);w+=tt.queryCount,F+=tt.depCount,pe.push(tt)}else u.errors.push(function Uo(){return new h.wOt(3007,!1)}())}),{type:7,name:v.name,states:$,transitions:pe,queryCount:w,depCount:F,options:null}}visitState(v,u){const w=this.visitStyle(v.styles,u),F=v.options&&v.options.params||null;if(w.containsDynamicStyles){const $=new Set,pe=F||{};w.styles.forEach(Pe=>{Pe instanceof Map&&Pe.forEach(tt=>{jc(tt).forEach(Ot=>{pe.hasOwnProperty(Ot)||$.add(Ot)})})}),$.size&&(_l($.values()),u.errors.push(function Fr(C,v){return new h.wOt(3008,!1)}()))}return{type:0,name:v.name,style:w,options:F?{params:F}:null}}visitTransition(v,u){u.queryCount=0,u.depCount=0;const w=us(this,ka(v.animation),u);return{type:1,matchers:co(v.expr,u.errors),animation:w,queryCount:u.queryCount,depCount:u.depCount,options:Ds(v.options)}}visitSequence(v,u){return{type:2,steps:v.steps.map(w=>us(this,w,u)),options:Ds(v.options)}}visitGroup(v,u){const w=u.currentTime;let F=0;const $=v.steps.map(pe=>{u.currentTime=w;const Pe=us(this,pe,u);return F=Math.max(F,u.currentTime),Pe});return u.currentTime=F,{type:3,steps:$,options:Ds(v.options)}}visitAnimate(v,u){const w=function Mr(C,v){if(C.hasOwnProperty("duration"))return C;if("number"==typeof C)return Lr(_a(C,v).duration,0,"");const u=C;if(u.split(/\s+/).some($=>"{"==$.charAt(0)&&"{"==$.charAt(1))){const $=Lr(0,0,"");return $.dynamic=!0,$.strValue=u,$}const F=_a(u,v);return Lr(F.duration,F.delay,F.easing)}(v.timings,u.errors);u.currentAnimateTimings=w;let F,$=v.styles?v.styles:(0,wn.iF)({});if(5==$.type)F=this.visitKeyframes($,u);else{let pe=v.styles,Pe=!1;if(!pe){Pe=!0;const Ot={};w.easing&&(Ot.easing=w.easing),pe=(0,wn.iF)(Ot)}u.currentTime+=w.duration+w.delay;const tt=this.visitStyle(pe,u);tt.isEmptyStep=Pe,F=tt}return u.currentAnimateTimings=null,{type:4,timings:w,style:F,options:null}}visitStyle(v,u){const w=this._makeStyleAst(v,u);return this._validateStyleAst(w,u),w}_makeStyleAst(v,u){const w=[],F=Array.isArray(v.styles)?v.styles:[v.styles];for(let Pe of F)"string"==typeof Pe?Pe===wn.kp?w.push(Pe):u.errors.push(new h.wOt(3002,!1)):w.push(Jn(Pe));let $=!1,pe=null;return w.forEach(Pe=>{if(Pe instanceof Map&&(Pe.has("easing")&&(pe=Pe.get("easing"),Pe.delete("easing")),!$))for(let tt of Pe.values())if(tt.toString().indexOf("{{")>=0){$=!0;break}}),{type:6,styles:w,easing:pe,offset:v.offset,containsDynamicStyles:$,options:null}}_validateStyleAst(v,u){const w=u.currentAnimateTimings;let F=u.currentTime,$=u.currentTime;w&&$>0&&($-=w.duration+w.delay),v.styles.forEach(pe=>{"string"!=typeof pe&&pe.forEach((Pe,tt)=>{const Ot=u.collectedStyles.get(u.currentQuerySelector),an=Ot.get(tt);let en=!0;an&&($!=F&&$>=an.startTime&&F<=an.endTime&&(u.errors.push(function pl(C,v,u,w,F){return new h.wOt(3010,!1)}()),en=!1),$=an.startTime),en&&Ot.set(tt,{startTime:$,endTime:F}),u.options&&function Bl(C,v,u){const w=v.params||{},F=jc(C);F.length&&F.forEach($=>{w.hasOwnProperty($)||u.push(function fl(C){return new h.wOt(3001,!1)}())})}(Pe,u.options,u.errors)})})}visitKeyframes(v,u){const w={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function rr(){return new h.wOt(3011,!1)}()),w;let $=0;const pe=[];let Pe=!1,tt=!1,Ot=0;const an=v.steps.map(Xi=>{const ho=this._makeStyleAst(Xi,u);let Ks=null!=ho.offset?ho.offset:function Ni(C){if("string"==typeof C)return null;let v=null;if(Array.isArray(C))C.forEach(u=>{if(u instanceof Map&&u.has("offset")){const w=u;v=parseFloat(w.get("offset")),w.delete("offset")}});else if(C instanceof Map&&C.has("offset")){const u=C;v=parseFloat(u.get("offset")),u.delete("offset")}return v}(ho.styles),Xo=0;return null!=Ks&&($++,Xo=ho.offset=Ks),tt=tt||Xo<0||Xo>1,Pe=Pe||Xo<Ot,Ot=Xo,pe.push(Xo),ho});tt&&u.errors.push(function pa(){return new h.wOt(3012,!1)}()),Pe&&u.errors.push(function Ei(){return new h.wOt(3200,!1)}());const en=v.steps.length;let Un=0;$>0&&$<en?u.errors.push(function Kr(){return new h.wOt(3202,!1)}()):0==$&&(Un=1/(en-1));const Dn=en-1,An=u.currentTime,zn=u.currentAnimateTimings,$i=zn.duration;return an.forEach((Xi,ho)=>{const Ks=Un>0?ho==Dn?1:Un*ho:pe[ho],Xo=Ks*$i;u.currentTime=An+zn.delay+Xo,zn.duration=Xo,this._validateStyleAst(Xi,u),Xi.offset=Ks,w.styles.push(Xi)}),w}visitReference(v,u){return{type:8,animation:us(this,ka(v.animation),u),options:Ds(v.options)}}visitAnimateChild(v,u){return u.depCount++,{type:9,options:Ds(v.options)}}visitAnimateRef(v,u){return{type:10,animation:this.visitReference(v.animation,u),options:Ds(v.options)}}visitQuery(v,u){const w=u.currentQuerySelector,F=v.options||{};u.queryCount++,u.currentQuery=v;const[$,pe]=function Pn(C){const v=!!C.split(/\s*,\s*/).find(u=>u==Q);return v&&(C=C.replace(Te,"")),C=C.replace(/@\*/g,Pl).replace(/@\w+/g,u=>Pl+"-"+u.slice(1)).replace(/:animating/g,ga),[C,v]}(v.selector);u.currentQuerySelector=w.length?w+" "+$:$,Ii(u.collectedStyles,u.currentQuerySelector,new Map);const Pe=us(this,ka(v.animation),u);return u.currentQuery=null,u.currentQuerySelector=w,{type:11,selector:$,limit:F.limit||0,optional:!!F.optional,includeSelf:pe,animation:Pe,originalSelector:v.selector,options:Ds(v.options)}}visitStagger(v,u){u.currentQuery||u.errors.push(function Fl(){return new h.wOt(3013,!1)}());const w="full"===v.timings?{duration:0,delay:0,easing:"full"}:_a(v.timings,u.errors,!0);return{type:12,animation:us(this,ka(v.animation),u),timings:w,options:null}}}class _s{constructor(v){this.errors=v,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 Ds(C){return C?(C=Sa(C)).params&&(C.params=function Ci(C){return C?Sa(C):null}(C.params)):C={},C}function Lr(C,v,u){return{duration:C,delay:v,easing:u}}function il(C,v,u,w,F,$,pe=null,Pe=!1){return{type:1,element:C,keyframes:v,preStyleProps:u,postStyleProps:w,duration:F,delay:$,totalTime:F+$,easing:pe,subTimeline:Pe}}class ia{constructor(){this._map=new Map}get(v){return this._map.get(v)||[]}append(v,u){let w=this._map.get(v);w||this._map.set(v,w=[]),w.push(...u)}has(v){return this._map.has(v)}clear(){this._map.clear()}}const Ed=new RegExp(":enter","g"),ja=new RegExp(":leave","g");function Gs(C,v,u,w,F,$=new Map,pe=new Map,Pe,tt,Ot=[]){return(new bl).buildKeyframes(C,v,u,w,F,$,pe,Pe,tt,Ot)}class bl{buildKeyframes(v,u,w,F,$,pe,Pe,tt,Ot,an=[]){Ot=Ot||new ia;const en=new Tc(v,u,Ot,F,$,an,[]);en.options=tt;const Un=tt.delay?Ea(tt.delay):0;en.currentTimeline.delayNextStep(Un),en.currentTimeline.setStyles([pe],null,en.errors,tt),us(this,w,en);const Dn=en.timelines.filter(An=>An.containsAnimation());if(Dn.length&&Pe.size){let An;for(let zn=Dn.length-1;zn>=0;zn--){const $i=Dn[zn];if($i.element===u){An=$i;break}}An&&!An.allowOnlyTimelineStyles()&&An.setStyles([Pe],null,en.errors,tt)}return Dn.length?Dn.map(An=>An.buildKeyframes()):[il(u,[],[],[],0,Un,"",!1)]}visitTrigger(v,u){}visitState(v,u){}visitTransition(v,u){}visitAnimateChild(v,u){const w=u.subInstructions.get(u.element);if(w){const F=u.createSubContext(v.options),$=u.currentTimeline.currentTime,pe=this._visitSubInstructions(w,F,F.options);$!=pe&&u.transformIntoNewTimeline(pe)}u.previousNode=v}visitAnimateRef(v,u){const w=u.createSubContext(v.options);w.transformIntoNewTimeline(),this._applyAnimationRefDelays([v.options,v.animation.options],u,w),this.visitReference(v.animation,w),u.transformIntoNewTimeline(w.currentTimeline.currentTime),u.previousNode=v}_applyAnimationRefDelays(v,u,w){for(const F of v){const $=F?.delay;if($){const pe="number"==typeof $?$:Ea(Qs($,F?.params??{},u.errors));w.delayNextStep(pe)}}}_visitSubInstructions(v,u,w){let $=u.currentTimeline.currentTime;const pe=null!=w.duration?Ea(w.duration):null,Pe=null!=w.delay?Ea(w.delay):null;return 0!==pe&&v.forEach(tt=>{const Ot=u.appendInstructionToTimeline(tt,pe,Pe);$=Math.max($,Ot.duration+Ot.delay)}),$}visitReference(v,u){u.updateOptions(v.options,!0),us(this,v.animation,u),u.previousNode=v}visitSequence(v,u){const w=u.subContextCount;let F=u;const $=v.options;if($&&($.params||$.delay)&&(F=u.createSubContext($),F.transformIntoNewTimeline(),null!=$.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=jl);const pe=Ea($.delay);F.delayNextStep(pe)}v.steps.length&&(v.steps.forEach(pe=>us(this,pe,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>w&&F.transformIntoNewTimeline()),u.previousNode=v}visitGroup(v,u){const w=[];let F=u.currentTimeline.currentTime;const $=v.options&&v.options.delay?Ea(v.options.delay):0;v.steps.forEach(pe=>{const Pe=u.createSubContext(v.options);$&&Pe.delayNextStep($),us(this,pe,Pe),F=Math.max(F,Pe.currentTimeline.currentTime),w.push(Pe.currentTimeline)}),w.forEach(pe=>u.currentTimeline.mergeTimelineCollectedStyles(pe)),u.transformIntoNewTimeline(F),u.previousNode=v}_visitTiming(v,u){if(v.dynamic){const w=v.strValue;return _a(u.params?Qs(w,u.params,u.errors):w,u.errors)}return{duration:v.duration,delay:v.delay,easing:v.easing}}visitAnimate(v,u){const w=u.currentAnimateTimings=this._visitTiming(v.timings,u),F=u.currentTimeline;w.delay&&(u.incrementTime(w.delay),F.snapshotCurrentStyles());const $=v.style;5==$.type?this.visitKeyframes($,u):(u.incrementTime(w.duration),this.visitStyle($,u),F.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=v}visitStyle(v,u){const w=u.currentTimeline,F=u.currentAnimateTimings;!F&&w.hasCurrentStyleProperties()&&w.forwardFrame();const $=F&&F.easing||v.easing;v.isEmptyStep?w.applyEmptyStep($):w.setStyles(v.styles,$,u.errors,u.options),u.previousNode=v}visitKeyframes(v,u){const w=u.currentAnimateTimings,F=u.currentTimeline.duration,$=w.duration,Pe=u.createSubContext().currentTimeline;Pe.easing=w.easing,v.styles.forEach(tt=>{Pe.forwardTime((tt.offset||0)*$),Pe.setStyles(tt.styles,tt.easing,u.errors,u.options),Pe.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Pe),u.transformIntoNewTimeline(F+$),u.previousNode=v}visitQuery(v,u){const w=u.currentTimeline.currentTime,F=v.options||{},$=F.delay?Ea(F.delay):0;$&&(6===u.previousNode.type||0==w&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=jl);let pe=w;const Pe=u.invokeQuery(v.selector,v.originalSelector,v.limit,v.includeSelf,!!F.optional,u.errors);u.currentQueryTotal=Pe.length;let tt=null;Pe.forEach((Ot,an)=>{u.currentQueryIndex=an;const en=u.createSubContext(v.options,Ot);$&&en.delayNextStep($),Ot===u.element&&(tt=en.currentTimeline),us(this,v.animation,en),en.currentTimeline.applyStylesToKeyframe(),pe=Math.max(pe,en.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(pe),tt&&(u.currentTimeline.mergeTimelineCollectedStyles(tt),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=v}visitStagger(v,u){const w=u.parentContext,F=u.currentTimeline,$=v.timings,pe=Math.abs($.duration),Pe=pe*(u.currentQueryTotal-1);let tt=pe*u.currentQueryIndex;switch($.duration<0?"reverse":$.easing){case"reverse":tt=Pe-tt;break;case"full":tt=w.currentStaggerTime}const an=u.currentTimeline;tt&&an.delayNextStep(tt);const en=an.currentTime;us(this,v.animation,u),u.previousNode=v,w.currentStaggerTime=F.currentTime-en+(F.startTime-w.currentTimeline.startTime)}}const jl={};class Tc{constructor(v,u,w,F,$,pe,Pe,tt){this._driver=v,this.element=u,this.subInstructions=w,this._enterClassName=F,this._leaveClassName=$,this.errors=pe,this.timelines=Pe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=tt||new ba(this._driver,u,0),Pe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(v,u){if(!v)return;const w=v;let F=this.options;null!=w.duration&&(F.duration=Ea(w.duration)),null!=w.delay&&(F.delay=Ea(w.delay));const $=w.params;if($){let pe=F.params;pe||(pe=this.options.params={}),Object.keys($).forEach(Pe=>{(!u||!pe.hasOwnProperty(Pe))&&(pe[Pe]=Qs($[Pe],pe,this.errors))})}}_copyOptions(){const v={};if(this.options){const u=this.options.params;if(u){const w=v.params={};Object.keys(u).forEach(F=>{w[F]=u[F]})}}return v}createSubContext(v=null,u,w){const F=u||this.element,$=new Tc(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,w||0));return $.previousNode=this.previousNode,$.currentAnimateTimings=this.currentAnimateTimings,$.options=this._copyOptions(),$.updateOptions(v),$.currentQueryIndex=this.currentQueryIndex,$.currentQueryTotal=this.currentQueryTotal,$.parentContext=this,this.subContextCount++,$}transformIntoNewTimeline(v){return this.previousNode=jl,this.currentTimeline=this.currentTimeline.fork(this.element,v),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(v,u,w){const F={duration:u??v.duration,delay:this.currentTimeline.currentTime+(w??0)+v.delay,easing:""},$=new cd(this._driver,v.element,v.keyframes,v.preStyleProps,v.postStyleProps,F,v.stretchStartingKeyframe);return this.timelines.push($),F}incrementTime(v){this.currentTimeline.forwardTime(this.currentTimeline.duration+v)}delayNextStep(v){v>0&&this.currentTimeline.delayNextStep(v)}invokeQuery(v,u,w,F,$,pe){let Pe=[];if(F&&Pe.push(this.element),v.length>0){v=(v=v.replace(Ed,"."+this._enterClassName)).replace(ja,"."+this._leaveClassName);let Ot=this._driver.query(this.element,v,1!=w);0!==w&&(Ot=w<0?Ot.slice(Ot.length+w,Ot.length):Ot.slice(0,w)),Pe.push(...Ot)}return!$&&0==Pe.length&&pe.push(function ks(C){return new h.wOt(3014,!1)}()),Pe}}class ba{constructor(v,u,w,F){this._driver=v,this.element=u,this.startTime=w,this._elementTimelineStylesLookup=F,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,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(v){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+v),u&&this.snapshotCurrentStyles()):this.startTime+=v}fork(v,u){return this.applyStylesToKeyframe(),new ba(this._driver,v,u||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(v){this.applyStylesToKeyframe(),this.duration=v,this._loadKeyframe()}_updateStyle(v,u){this._localTimelineStyles.set(v,u),this._globalTimelineStyles.set(v,u),this._styleSummary.set(v,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(v){v&&this._previousKeyframe.set("easing",v);for(let[u,w]of this._globalTimelineStyles)this._backFill.set(u,w||wn.kp),this._currentKeyframe.set(u,wn.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(v,u,w,F){u&&this._previousKeyframe.set("easing",u);const $=F&&F.params||{},pe=function sl(C,v){const u=new Map;let w;return C.forEach(F=>{if("*"===F){w=w||v.keys();for(let $ of w)u.set($,wn.kp)}else Ar(F,u)}),u}(v,this._globalTimelineStyles);for(let[Pe,tt]of pe){const Ot=Qs(tt,$,w);this._pendingStyles.set(Pe,Ot),this._localTimelineStyles.has(Pe)||this._backFill.set(Pe,this._globalTimelineStyles.get(Pe)??wn.kp),this._updateStyle(Pe,Ot)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((v,u)=>{this._currentKeyframe.set(u,v)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((v,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,v)}))}snapshotCurrentStyles(){for(let[v,u]of this._localTimelineStyles)this._pendingStyles.set(v,u),this._updateStyle(v,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const v=[];for(let u in this._currentKeyframe)v.push(u);return v}mergeTimelineCollectedStyles(v){v._styleSummary.forEach((u,w)=>{const F=this._styleSummary.get(w);(!F||u.time>F.time)&&this._updateStyle(w,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const v=new Set,u=new Set,w=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Pe,tt)=>{const Ot=Ar(Pe,new Map,this._backFill);Ot.forEach((an,en)=>{an===wn.FX?v.add(en):an===wn.kp&&u.add(en)}),w||Ot.set("offset",tt/this.duration),F.push(Ot)});const $=v.size?_l(v.values()):[],pe=u.size?_l(u.values()):[];if(w){const Pe=F[0],tt=new Map(Pe);Pe.set("offset",0),tt.set("offset",1),F=[Pe,tt]}return il(this.element,F,$,pe,this.duration,this.startTime,this.easing,!1)}}class cd extends ba{constructor(v,u,w,F,$,pe,Pe=!1){super(v,u,pe.delay),this.keyframes=w,this.preStyleProps=F,this.postStyleProps=$,this._stretchStartingKeyframe=Pe,this.timings={duration:pe.duration,delay:pe.delay,easing:pe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let v=this.keyframes,{delay:u,duration:w,easing:F}=this.timings;if(this._stretchStartingKeyframe&&u){const $=[],pe=w+u,Pe=u/pe,tt=Ar(v[0]);tt.set("offset",0),$.push(tt);const Ot=Ar(v[0]);Ot.set("offset",Ga(Pe)),$.push(Ot);const an=v.length-1;for(let en=1;en<=an;en++){let Un=Ar(v[en]);const Dn=Un.get("offset");Un.set("offset",Ga((u+Dn*w)/pe)),$.push(Un)}w=pe,u=0,F="",v=$}return il(this.element,v,this.preStyleProps,this.postStyleProps,w,u,F,!0)}}function Ga(C,v=3){const u=Math.pow(10,v-1);return Math.round(C*u)/u}class Tr{}const Ia=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 $a extends Tr{normalizePropertyName(v,u){return Jt(v)}normalizeStyleValue(v,u,w,F){let $="";const pe=w.toString().trim();if(Ia.has(u)&&0!==w&&"0"!==w)if("number"==typeof w)$="px";else{const Pe=w.match(/^[+-]?[\d\.]+([a-z]*)$/);Pe&&0==Pe[1].length&&F.push(function ko(C,v){return new h.wOt(3005,!1)}())}return pe+$}}function nc(C,v,u,w,F,$,pe,Pe,tt,Ot,an,en,Un){return{type:0,element:C,triggerName:v,isRemovalTransition:F,fromState:u,fromStyles:$,toState:w,toStyles:pe,timelines:Pe,queriedElements:tt,preStyleProps:Ot,postStyleProps:an,totalTime:en,errors:Un}}const Ec={};class Js{constructor(v,u,w){this._triggerName=v,this.ast=u,this._stateStyles=w}match(v,u,w,F){return function ol(C,v,u,w,F){return C.some($=>$(v,u,w,F))}(this.ast.matchers,v,u,w,F)}buildStyles(v,u,w){let F=this._stateStyles.get("*");return void 0!==v&&(F=this._stateStyles.get(v?.toString())||F),F?F.buildStyles(u,w):new Map}build(v,u,w,F,$,pe,Pe,tt,Ot,an){const en=[],Un=this.ast.options&&this.ast.options.params||Ec,An=this.buildStyles(w,Pe&&Pe.params||Ec,en),zn=tt&&tt.params||Ec,$i=this.buildStyles(F,zn,en),Xi=new Set,ho=new Map,Ks=new Map,Xo="void"===F,cr={params:yl(zn,Un),delay:this.ast.options?.delay},oa=an?[]:Gs(v,u,this.ast.animation,$,pe,An,$i,cr,Ot,en);let yr=0;if(oa.forEach(Wa=>{yr=Math.max(Wa.duration+Wa.delay,yr)}),en.length)return nc(u,this._triggerName,w,F,Xo,An,$i,[],[],ho,Ks,yr,en);oa.forEach(Wa=>{const zl=Wa.element,Iu=Ii(ho,zl,new Set);Wa.preStyleProps.forEach(Fc=>Iu.add(Fc));const jd=Ii(Ks,zl,new Set);Wa.postStyleProps.forEach(Fc=>jd.add(Fc)),zl!==u&&Xi.add(zl)});const Xa=_l(Xi.values());return nc(u,this._triggerName,w,F,Xo,An,$i,oa,Xa,ho,Ks,yr)}}function yl(C,v){const u=Sa(v);for(const w in C)C.hasOwnProperty(w)&&null!=C[w]&&(u[w]=C[w]);return u}class dd{constructor(v,u,w){this.styles=v,this.defaultParams=u,this.normalizer=w}buildStyles(v,u){const w=new Map,F=Sa(this.defaultParams);return Object.keys(v).forEach($=>{const pe=v[$];null!==pe&&(F[$]=pe)}),this.styles.styles.forEach($=>{"string"!=typeof $&&$.forEach((pe,Pe)=>{pe&&(pe=Qs(pe,F,u));const tt=this.normalizer.normalizePropertyName(Pe,u);pe=this.normalizer.normalizeStyleValue(Pe,tt,pe,u),w.set(Pe,pe)})}),w}}class Cl{constructor(v,u,w){this.name=v,this.ast=u,this._normalizer=w,this.transitionFactories=[],this.states=new Map,u.states.forEach(F=>{this.states.set(F.name,new dd(F.style,F.options&&F.options.params||{},w))}),Oa(this.states,"true","1"),Oa(this.states,"false","0"),u.transitions.forEach(F=>{this.transitionFactories.push(new Js(v,F,this.states))}),this.fallbackTransition=function yo(C,v,u){return new Js(C,{type:1,animation:{type:2,steps:[],options:null},matchers:[(pe,Pe)=>!0],options:null,queryCount:0,depCount:0},v)}(v,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(v,u,w,F){return this.transitionFactories.find(pe=>pe.match(v,u,w,F))||null}matchStyles(v,u,w){return this.fallbackTransition.buildStyles(v,u,w)}}function Oa(C,v,u){C.has(v)?C.has(u)||C.set(u,C.get(v)):C.has(u)&&C.set(v,C.get(u))}const kc=new ia;class _r{constructor(v,u,w){this.bodyNode=v,this._driver=u,this._normalizer=w,this._animations=new Map,this._playersById=new Map,this.players=[]}register(v,u){const w=[],$=Qe(this._driver,u,w,[]);if(w.length)throw function Cc(C){return new h.wOt(3503,!1)}();this._animations.set(v,$)}_buildPlayer(v,u,w){const F=v.element,$=Ji(this._normalizer,v.keyframes,u,w);return this._driver.animate(F,$,v.duration,v.delay,v.easing,[],!0)}create(v,u,w={}){const F=[],$=this._animations.get(v);let pe;const Pe=new Map;if($?(pe=Gs(this._driver,u,$,lo,Oo,new Map,new Map,w,kc,F),pe.forEach(an=>{const en=Ii(Pe,an.element,new Map);an.postStyleProps.forEach(Un=>en.set(Un,null))})):(F.push(function Qr(){return new h.wOt(3300,!1)}()),pe=[]),F.length)throw function nl(C){return new h.wOt(3504,!1)}();Pe.forEach((an,en)=>{an.forEach((Un,Dn)=>{an.set(Dn,this._driver.computeStyle(en,Dn,wn.kp))})});const Ot=Gn(pe.map(an=>{const en=Pe.get(an.element);return this._buildPlayer(an,new Map,en)}));return this._playersById.set(v,Ot),Ot.onDestroy(()=>this.destroy(v)),this.players.push(Ot),Ot}destroy(v){const u=this._getPlayer(v);u.destroy(),this._playersById.delete(v);const w=this.players.indexOf(u);w>=0&&this.players.splice(w,1)}_getPlayer(v){const u=this._playersById.get(v);if(!u)throw function Zr(C){return new h.wOt(3301,!1)}();return u}listen(v,u,w,F){const $=Zn(u,"","","");return ji(this._getPlayer(v),w,$,F),()=>{}}command(v,u,w,F){if("register"==w)return void this.register(v,F[0]);if("create"==w)return void this.create(v,u,F[0]||{});const $=this._getPlayer(v);switch(w){case"play":$.play();break;case"pause":$.pause();break;case"reset":$.reset();break;case"restart":$.restart();break;case"finish":$.finish();break;case"init":$.init();break;case"setPosition":$.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(v)}}}const ya="ng-animate-queued",Ha="ng-animate-disabled",Ca=[],xc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Br="__ng_removed";class oc{get params(){return this.options.params}constructor(v,u=""){this.namespaceId=u;const w=v&&v.hasOwnProperty("value");if(this.value=function $c(C){return C??null}(w?v.value:v),w){const $=Sa(v);delete $.value,this.options=$}else this.options={};this.options.params||(this.options.params={})}absorbOptions(v){const u=v.params;if(u){const w=this.options.params;Object.keys(u).forEach(F=>{null==w[F]&&(w[F]=u[F])})}}}const Xs="void",qo=new oc(Xs);class Ya{constructor(v,u,w){this.id=v,this.hostElement=u,this._engine=w,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+v,ui(u,this._hostClassName)}listen(v,u,w,F){if(!this._triggers.has(u))throw function xo(C,v){return new h.wOt(3302,!1)}();if(null==w||0==w.length)throw function P(C){return new h.wOt(3303,!1)}();if(!function Ml(C){return"start"==C||"done"==C}(w))throw function ae(C,v){return new h.wOt(3400,!1)}();const $=Ii(this._elementListeners,v,[]),pe={name:u,phase:w,callback:F};$.push(pe);const Pe=Ii(this._engine.statesByElement,v,new Map);return Pe.has(u)||(ui(v,ml),ui(v,ml+"-"+u),Pe.set(u,qo)),()=>{this._engine.afterFlush(()=>{const tt=$.indexOf(pe);tt>=0&&$.splice(tt,1),this._triggers.has(u)||Pe.delete(u)})}}register(v,u){return!this._triggers.has(v)&&(this._triggers.set(v,u),!0)}_getTrigger(v){const u=this._triggers.get(v);if(!u)throw function Y(C){return new h.wOt(3401,!1)}();return u}trigger(v,u,w,F=!0){const $=this._getTrigger(u),pe=new Ic(this.id,u,v);let Pe=this._engine.statesByElement.get(v);Pe||(ui(v,ml),ui(v,ml+"-"+u),this._engine.statesByElement.set(v,Pe=new Map));let tt=Pe.get(u);const Ot=new oc(w,this.id);if(!(w&&w.hasOwnProperty("value"))&&tt&&Ot.absorbOptions(tt.options),Pe.set(u,Ot),tt||(tt=qo),Ot.value!==Xs&&tt.value===Ot.value){if(!function kd(C,v){const u=Object.keys(C),w=Object.keys(v);if(u.length!=w.length)return!1;for(let F=0;F<u.length;F++){const $=u[F];if(!v.hasOwnProperty($)||C[$]!==v[$])return!1}return!0}(tt.params,Ot.params)){const zn=[],$i=$.matchStyles(tt.value,tt.params,zn),Xi=$.matchStyles(Ot.value,Ot.params,zn);zn.length?this._engine.reportError(zn):this._engine.afterFlush(()=>{qn(v,$i),gr(v,Xi)})}return}const Un=Ii(this._engine.playersByElement,v,[]);Un.forEach(zn=>{zn.namespaceId==this.id&&zn.triggerName==u&&zn.queued&&zn.destroy()});let Dn=$.matchTransition(tt.value,Ot.value,v,Ot.params),An=!1;if(!Dn){if(!F)return;Dn=$.fallbackTransition,An=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:v,triggerName:u,transition:Dn,fromState:tt,toState:Ot,player:pe,isFallbackTransition:An}),An||(ui(v,ya),pe.onStart(()=>{Na(v,ya)})),pe.onDone(()=>{let zn=this.players.indexOf(pe);zn>=0&&this.players.splice(zn,1);const $i=this._engine.playersByElement.get(v);if($i){let Xi=$i.indexOf(pe);Xi>=0&&$i.splice(Xi,1)}}),this.players.push(pe),Un.push(pe),pe}deregister(v){this._triggers.delete(v),this._engine.statesByElement.forEach(u=>u.delete(v)),this._elementListeners.forEach((u,w)=>{this._elementListeners.set(w,u.filter(F=>F.name!=v))})}clearElementCache(v){this._engine.statesByElement.delete(v),this._elementListeners.delete(v);const u=this._engine.playersByElement.get(v);u&&(u.forEach(w=>w.destroy()),this._engine.playersByElement.delete(v))}_signalRemovalForInnerTriggers(v,u){const w=this._engine.driver.query(v,Pl,!0);w.forEach(F=>{if(F[Br])return;const $=this._engine.fetchNamespacesByElement(F);$.size?$.forEach(pe=>pe.triggerLeaveAnimation(F,u,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>w.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(v,u,w,F){const $=this._engine.statesByElement.get(v),pe=new Map;if($){const Pe=[];if($.forEach((tt,Ot)=>{if(pe.set(Ot,tt.value),this._triggers.has(Ot)){const an=this.trigger(v,Ot,Xs,F);an&&Pe.push(an)}}),Pe.length)return this._engine.markElementAsRemoved(this.id,v,!0,u,pe),w&&Gn(Pe).onDone(()=>this._engine.processLeaveNode(v)),!0}return!1}prepareLeaveAnimationListeners(v){const u=this._elementListeners.get(v),w=this._engine.statesByElement.get(v);if(u&&w){const F=new Set;u.forEach($=>{const pe=$.name;if(F.has(pe))return;F.add(pe);const tt=this._triggers.get(pe).fallbackTransition,Ot=w.get(pe)||qo,an=new oc(Xs),en=new Ic(this.id,pe,v);this._engine.totalQueuedPlayers++,this._queue.push({element:v,triggerName:pe,transition:tt,fromState:Ot,toState:an,player:en,isFallbackTransition:!0})})}}removeNode(v,u){const w=this._engine;if(v.childElementCount&&this._signalRemovalForInnerTriggers(v,u),this.triggerLeaveAnimation(v,u,!0))return;let F=!1;if(w.totalAnimations){const $=w.players.length?w.playersByQueriedElement.get(v):[];if($&&$.length)F=!0;else{let pe=v;for(;pe=pe.parentNode;)if(w.statesByElement.get(pe)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(v),F)w.markElementAsRemoved(this.id,v,!1,u);else{const $=v[Br];(!$||$===xc)&&(w.afterFlush(()=>this.clearElementCache(v)),w.destroyInnerAnimations(v),w._onRemovalComplete(v,u))}}insertNode(v,u){ui(v,this._hostClassName)}drainQueuedTransitions(v){const u=[];return this._queue.forEach(w=>{const F=w.player;if(F.destroyed)return;const $=w.element,pe=this._elementListeners.get($);pe&&pe.forEach(Pe=>{if(Pe.name==w.triggerName){const tt=Zn($,w.triggerName,w.fromState.value,w.toState.value);tt._data=v,ji(w.player,Pe.phase,tt,Pe.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):u.push(w)}),this._queue=[],u.sort((w,F)=>{const $=w.transition.ast.depCount,pe=F.transition.ast.depCount;return 0==$||0==pe?$-pe:this._engine.driver.containsElement(w.element,F.element)?1:-1})}destroy(v){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,v)}}class vr{_onRemovalComplete(v,u){this.onRemovalComplete(v,u)}constructor(v,u,w){this.bodyNode=v,this.driver=u,this._normalizer=w,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=(F,$)=>{}}get queuedPlayers(){const v=[];return this._namespaceList.forEach(u=>{u.players.forEach(w=>{w.queued&&v.push(w)})}),v}createNamespace(v,u){const w=new Ya(v,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(w,u):(this.newHostElements.set(u,w),this.collectEnterElement(u)),this._namespaceLookup[v]=w}_balanceNamespaceList(v,u){const w=this._namespaceList,F=this.namespacesByHostElement;if(w.length-1>=0){let pe=!1,Pe=this.driver.getParentElement(u);for(;Pe;){const tt=F.get(Pe);if(tt){const Ot=w.indexOf(tt);w.splice(Ot+1,0,v),pe=!0;break}Pe=this.driver.getParentElement(Pe)}pe||w.unshift(v)}else w.push(v);return F.set(u,v),v}register(v,u){let w=this._namespaceLookup[v];return w||(w=this.createNamespace(v,u)),w}registerTrigger(v,u,w){let F=this._namespaceLookup[v];F&&F.register(u,w)&&this.totalAnimations++}destroy(v,u){v&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const w=this._fetchNamespace(v);this.namespacesByHostElement.delete(w.hostElement);const F=this._namespaceList.indexOf(w);F>=0&&this._namespaceList.splice(F,1),w.destroy(u),delete this._namespaceLookup[v]}))}_fetchNamespace(v){return this._namespaceLookup[v]}fetchNamespacesByElement(v){const u=new Set,w=this.statesByElement.get(v);if(w)for(let F of w.values())if(F.namespaceId){const $=this._fetchNamespace(F.namespaceId);$&&u.add($)}return u}trigger(v,u,w,F){if(Gl(u)){const $=this._fetchNamespace(v);if($)return $.trigger(u,w,F),!0}return!1}insertNode(v,u,w,F){if(!Gl(u))return;const $=u[Br];if($&&$.setForRemoval){$.setForRemoval=!1,$.setForMove=!0;const pe=this.collectedLeaveElements.indexOf(u);pe>=0&&this.collectedLeaveElements.splice(pe,1)}if(v){const pe=this._fetchNamespace(v);pe&&pe.insertNode(u,w)}F&&this.collectEnterElement(u)}collectEnterElement(v){this.collectedEnterElements.push(v)}markElementAsDisabled(v,u){u?this.disabledNodes.has(v)||(this.disabledNodes.add(v),ui(v,Ha)):this.disabledNodes.has(v)&&(this.disabledNodes.delete(v),Na(v,Ha))}removeNode(v,u,w){if(Gl(u)){const F=v?this._fetchNamespace(v):null;F?F.removeNode(u,w):this.markElementAsRemoved(v,u,!1,w);const $=this.namespacesByHostElement.get(u);$&&$.id!==v&&$.removeNode(u,w)}else this._onRemovalComplete(u,w)}markElementAsRemoved(v,u,w,F,$){this.collectedLeaveElements.push(u),u[Br]={namespaceId:v,setForRemoval:F,hasAnimation:w,removedBeforeQueried:!1,previousTriggersValues:$}}listen(v,u,w,F,$){return Gl(u)?this._fetchNamespace(v).listen(u,w,F,$):()=>{}}_buildInstruction(v,u,w,F,$){return v.transition.build(this.driver,v.element,v.fromState.value,v.toState.value,w,F,v.fromState.options,v.toState.options,u,$)}destroyInnerAnimations(v){let u=this.driver.query(v,Pl,!0);u.forEach(w=>this.destroyActiveAnimationsForElement(w)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(v,ga,!0),u.forEach(w=>this.finishActiveQueriedAnimationOnElement(w)))}destroyActiveAnimationsForElement(v){const u=this.playersByElement.get(v);u&&u.forEach(w=>{w.queued?w.markedForDestroy=!0:w.destroy()})}finishActiveQueriedAnimationOnElement(v){const u=this.playersByQueriedElement.get(v);u&&u.forEach(w=>w.finish())}whenRenderingDone(){return new Promise(v=>{if(this.players.length)return Gn(this.players).onDone(()=>v());v()})}processLeaveNode(v){const u=v[Br];if(u&&u.setForRemoval){if(v[Br]=xc,u.namespaceId){this.destroyInnerAnimations(v);const w=this._fetchNamespace(u.namespaceId);w&&w.clearElementCache(v)}this._onRemovalComplete(v,u.setForRemoval)}v.classList?.contains(Ha)&&this.markElementAsDisabled(v,!1),this.driver.query(v,".ng-animate-disabled",!0).forEach(w=>{this.markElementAsDisabled(w,!1)})}flush(v=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((w,F)=>this._balanceNamespaceList(w,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let w=0;w<this.collectedEnterElements.length;w++)ui(this.collectedEnterElements[w],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const w=[];try{u=this._flushAnimations(w,v)}finally{for(let F=0;F<w.length;F++)w[F]()}}else for(let w=0;w<this.collectedLeaveElements.length;w++)this.processLeaveNode(this.collectedLeaveElements[w]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(w=>w()),this._flushFns=[],this._whenQuietFns.length){const w=this._whenQuietFns;this._whenQuietFns=[],u.length?Gn(u).onDone(()=>{w.forEach(F=>F())}):w.forEach(F=>F())}}reportError(v){throw function te(C){return new h.wOt(3402,!1)}()}_flushAnimations(v,u){const w=new ia,F=[],$=new Map,pe=[],Pe=new Map,tt=new Map,Ot=new Map,an=new Set;this.disabledNodes.forEach(Wn=>{an.add(Wn);const ci=this.driver.query(Wn,".ng-animate-queued",!0);for(let vi=0;vi<ci.length;vi++)an.add(ci[vi])});const en=this.bodyNode,Un=Array.from(this.statesByElement.keys()),Dn=Oc(Un,this.collectedEnterElements),An=new Map;let zn=0;Dn.forEach((Wn,ci)=>{const vi=lo+zn++;An.set(ci,vi),Wn.forEach(ns=>ui(ns,vi))});const $i=[],Xi=new Set,ho=new Set;for(let Wn=0;Wn<this.collectedLeaveElements.length;Wn++){const ci=this.collectedLeaveElements[Wn],vi=ci[Br];vi&&vi.setForRemoval&&($i.push(ci),Xi.add(ci),vi.hasAnimation?this.driver.query(ci,".ng-star-inserted",!0).forEach(ns=>Xi.add(ns)):ho.add(ci))}const Ks=new Map,Xo=Oc(Un,Array.from(Xi));Xo.forEach((Wn,ci)=>{const vi=Oo+zn++;Ks.set(ci,vi),Wn.forEach(ns=>ui(ns,vi))}),v.push(()=>{Dn.forEach((Wn,ci)=>{const vi=An.get(ci);Wn.forEach(ns=>Na(ns,vi))}),Xo.forEach((Wn,ci)=>{const vi=Ks.get(ci);Wn.forEach(ns=>Na(ns,vi))}),$i.forEach(Wn=>{this.processLeaveNode(Wn)})});const cr=[],oa=[];for(let Wn=this._namespaceList.length-1;Wn>=0;Wn--)this._namespaceList[Wn].drainQueuedTransitions(u).forEach(vi=>{const ns=vi.player,Is=vi.element;if(cr.push(ns),this.collectedEnterElements.length){const dr=Is[Br];if(dr&&dr.setForMove){if(dr.previousTriggersValues&&dr.previousTriggersValues.has(vi.triggerName)){const _d=dr.previousTriggersValues.get(vi.triggerName),Da=this.statesByElement.get(vi.element);if(Da&&Da.has(vi.triggerName)){const vd=Da.get(vi.triggerName);vd.value=_d,Da.set(vi.triggerName,vd)}}return void ns.destroy()}}const Ka=!en||!this.driver.containsElement(en,Is),$r=Ks.get(Is),kl=An.get(Is),Fs=this._buildInstruction(vi,w,kl,$r,Ka);if(Fs.errors&&Fs.errors.length)return void oa.push(Fs);if(Ka)return ns.onStart(()=>qn(Is,Fs.fromStyles)),ns.onDestroy(()=>gr(Is,Fs.toStyles)),void F.push(ns);if(vi.isFallbackTransition)return ns.onStart(()=>qn(Is,Fs.fromStyles)),ns.onDestroy(()=>gr(Is,Fs.toStyles)),void F.push(ns);const td=[];Fs.timelines.forEach(dr=>{dr.stretchStartingKeyframe=!0,this.disabledNodes.has(dr.element)||td.push(dr)}),Fs.timelines=td,w.append(Is,Fs.timelines),pe.push({instruction:Fs,player:ns,element:Is}),Fs.queriedElements.forEach(dr=>Ii(Pe,dr,[]).push(ns)),Fs.preStyleProps.forEach((dr,_d)=>{if(dr.size){let Da=tt.get(_d);Da||tt.set(_d,Da=new Set),dr.forEach((vd,ou)=>Da.add(ou))}}),Fs.postStyleProps.forEach((dr,_d)=>{let Da=Ot.get(_d);Da||Ot.set(_d,Da=new Set),dr.forEach((vd,ou)=>Da.add(ou))})});if(oa.length){const Wn=[];oa.forEach(ci=>{Wn.push(function zt(C,v){return new h.wOt(3505,!1)}())}),cr.forEach(ci=>ci.destroy()),this.reportError(Wn)}const yr=new Map,Xa=new Map;pe.forEach(Wn=>{const ci=Wn.element;w.has(ci)&&(Xa.set(ci,ci),this._beforeAnimationBuild(Wn.player.namespaceId,Wn.instruction,yr))}),F.forEach(Wn=>{const ci=Wn.element;this._getPreviousPlayers(ci,!1,Wn.namespaceId,Wn.triggerName,null).forEach(ns=>{Ii(yr,ci,[]).push(ns),ns.destroy()})});const Wa=$i.filter(Wn=>Tl(Wn,tt,Ot)),zl=new Map;Uc(zl,this.driver,ho,Ot,wn.kp).forEach(Wn=>{Tl(Wn,tt,Ot)&&Wa.push(Wn)});const jd=new Map;Dn.forEach((Wn,ci)=>{Uc(jd,this.driver,new Set(Wn),tt,wn.FX)}),Wa.forEach(Wn=>{const ci=zl.get(Wn),vi=jd.get(Wn);zl.set(Wn,new Map([...ci?.entries()??[],...vi?.entries()??[]]))});const Fc=[],Ou=[],Ru={};pe.forEach(Wn=>{const{element:ci,player:vi,instruction:ns}=Wn;if(w.has(ci)){if(an.has(ci))return vi.onDestroy(()=>gr(ci,ns.toStyles)),vi.disabled=!0,vi.overrideTotalTime(ns.totalTime),void F.push(vi);let Is=Ru;if(Xa.size>1){let $r=ci;const kl=[];for(;$r=$r.parentNode;){const Fs=Xa.get($r);if(Fs){Is=Fs;break}kl.push($r)}kl.forEach(Fs=>Xa.set(Fs,Is))}const Ka=this._buildAnimation(vi.namespaceId,ns,yr,$,jd,zl);if(vi.setRealPlayer(Ka),Is===Ru)Fc.push(vi);else{const $r=this.playersByElement.get(Is);$r&&$r.length&&(vi.parentPlayer=Gn($r)),F.push(vi)}}else qn(ci,ns.fromStyles),vi.onDestroy(()=>gr(ci,ns.toStyles)),Ou.push(vi),an.has(ci)&&F.push(vi)}),Ou.forEach(Wn=>{const ci=$.get(Wn.element);if(ci&&ci.length){const vi=Gn(ci);Wn.setRealPlayer(vi)}}),F.forEach(Wn=>{Wn.parentPlayer?Wn.syncPlayerEvents(Wn.parentPlayer):Wn.destroy()});for(let Wn=0;Wn<$i.length;Wn++){const ci=$i[Wn],vi=ci[Br];if(Na(ci,Oo),vi&&vi.hasAnimation)continue;let ns=[];if(Pe.size){let Ka=Pe.get(ci);Ka&&Ka.length&&ns.push(...Ka);let $r=this.driver.query(ci,ga,!0);for(let kl=0;kl<$r.length;kl++){let Fs=Pe.get($r[kl]);Fs&&Fs.length&&ns.push(...Fs)}}const Is=ns.filter(Ka=>!Ka.destroyed);Is.length?br(this,ci,Is):this.processLeaveNode(ci)}return $i.length=0,Fc.forEach(Wn=>{this.players.push(Wn),Wn.onDone(()=>{Wn.destroy();const ci=this.players.indexOf(Wn);this.players.splice(ci,1)}),Wn.play()}),Fc}afterFlush(v){this._flushFns.push(v)}afterFlushAnimationsDone(v){this._whenQuietFns.push(v)}_getPreviousPlayers(v,u,w,F,$){let pe=[];if(u){const Pe=this.playersByQueriedElement.get(v);Pe&&(pe=Pe)}else{const Pe=this.playersByElement.get(v);if(Pe){const tt=!$||$==Xs;Pe.forEach(Ot=>{Ot.queued||!tt&&Ot.triggerName!=F||pe.push(Ot)})}}return(w||F)&&(pe=pe.filter(Pe=>!(w&&w!=Pe.namespaceId||F&&F!=Pe.triggerName))),pe}_beforeAnimationBuild(v,u,w){const $=u.element,pe=u.isRemovalTransition?void 0:v,Pe=u.isRemovalTransition?void 0:u.triggerName;for(const tt of u.timelines){const Ot=tt.element,an=Ot!==$,en=Ii(w,Ot,[]);this._getPreviousPlayers(Ot,an,pe,Pe,u.toState).forEach(Dn=>{const An=Dn.getRealPlayer();An.beforeDestroy&&An.beforeDestroy(),Dn.destroy(),en.push(Dn)})}qn($,u.fromStyles)}_buildAnimation(v,u,w,F,$,pe){const Pe=u.triggerName,tt=u.element,Ot=[],an=new Set,en=new Set,Un=u.timelines.map(An=>{const zn=An.element;an.add(zn);const $i=zn[Br];if($i&&$i.removedBeforeQueried)return new wn.sf(An.duration,An.delay);const Xi=zn!==tt,ho=function Sd(C){const v=[];return rc(C,v),v}((w.get(zn)||Ca).map(yr=>yr.getRealPlayer())).filter(yr=>!!yr.element&&yr.element===zn),Ks=$.get(zn),Xo=pe.get(zn),cr=Ji(this._normalizer,An.keyframes,Ks,Xo),oa=this._buildPlayer(An,cr,ho);if(An.subTimeline&&F&&en.add(zn),Xi){const yr=new Ic(v,Pe,zn);yr.setRealPlayer(oa),Ot.push(yr)}return oa});Ot.forEach(An=>{Ii(this.playersByQueriedElement,An.element,[]).push(An),An.onDone(()=>function Ra(C,v,u){let w=C.get(v);if(w){if(w.length){const F=w.indexOf(u);w.splice(F,1)}0==w.length&&C.delete(v)}return w}(this.playersByQueriedElement,An.element,An))}),an.forEach(An=>ui(An,Ro));const Dn=Gn(Un);return Dn.onDestroy(()=>{an.forEach(An=>Na(An,Ro)),gr(tt,u.toStyles)}),en.forEach(An=>{Ii(F,An,[]).push(Dn)}),Dn}_buildPlayer(v,u,w){return u.length>0?this.driver.animate(v.element,u,v.duration,v.delay,v.easing,w):new wn.sf(v.duration,v.delay)}}class Ic{constructor(v,u,w){this.namespaceId=v,this.triggerName=u,this.element=w,this._player=new wn.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(v){this._containsRealPlayer||(this._player=v,this._queuedCallbacks.forEach((u,w)=>{u.forEach(F=>ji(v,w,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(v.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(v){this.totalTime=v}syncPlayerEvents(v){const u=this._player;u.triggerCallback&&v.onStart(()=>u.triggerCallback("start")),v.onDone(()=>this.finish()),v.onDestroy(()=>this.destroy())}_queueEvent(v,u){Ii(this._queuedCallbacks,v,[]).push(u)}onDone(v){this.queued&&this._queueEvent("done",v),this._player.onDone(v)}onStart(v){this.queued&&this._queueEvent("start",v),this._player.onStart(v)}onDestroy(v){this.queued&&this._queueEvent("destroy",v),this._player.onDestroy(v)}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(v){this.queued||this._player.setPosition(v)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(v){const u=this._player;u.triggerCallback&&u.triggerCallback(v)}}function Gl(C){return C&&1===C.nodeType}function $l(C,v){const u=C.style.display;return C.style.display=v??"none",u}function Uc(C,v,u,w,F){const $=[];u.forEach(tt=>$.push($l(tt)));const pe=[];w.forEach((tt,Ot)=>{const an=new Map;tt.forEach(en=>{const Un=v.computeStyle(Ot,en,F);an.set(en,Un),(!Un||0==Un.length)&&(Ot[Br]=Gc,pe.push(Ot))}),C.set(Ot,an)});let Pe=0;return u.forEach(tt=>$l(tt,$[Pe++])),pe}function Oc(C,v){const u=new Map;if(C.forEach(Pe=>u.set(Pe,[])),0==v.length)return u;const F=new Set(v),$=new Map;function pe(Pe){if(!Pe)return 1;let tt=$.get(Pe);if(tt)return tt;const Ot=Pe.parentNode;return tt=u.has(Ot)?Ot:F.has(Ot)?1:pe(Ot),$.set(Pe,tt),tt}return v.forEach(Pe=>{const tt=pe(Pe);1!==tt&&u.get(tt).push(Pe)}),u}function ui(C,v){C.classList?.add(v)}function Na(C,v){C.classList?.remove(v)}function br(C,v,u){Gn(u).onDone(()=>C.processLeaveNode(v))}function rc(C,v){for(let u=0;u<C.length;u++){const w=C[u];w instanceof wn.ui?rc(w.players,v):v.push(w)}}function Tl(C,v,u){const w=u.get(C);if(!w)return!1;let F=v.get(C);return F?w.forEach($=>F.add($)):v.set(C,w),u.delete(C),!0}class Ul{constructor(v,u,w){this.bodyNode=v,this._driver=u,this._normalizer=w,this._triggerCache={},this.onRemovalComplete=(F,$)=>{},this._transitionEngine=new vr(v,u,w),this._timelineEngine=new _r(v,u,w),this._transitionEngine.onRemovalComplete=(F,$)=>this.onRemovalComplete(F,$)}registerTrigger(v,u,w,F,$){const pe=v+"-"+F;let Pe=this._triggerCache[pe];if(!Pe){const tt=[],an=Qe(this._driver,$,tt,[]);if(tt.length)throw function Al(C,v){return new h.wOt(3404,!1)}();Pe=function Ua(C,v,u){return new Cl(C,v,u)}(F,an,this._normalizer),this._triggerCache[pe]=Pe}this._transitionEngine.registerTrigger(u,F,Pe)}register(v,u){this._transitionEngine.register(v,u)}destroy(v,u){this._transitionEngine.destroy(v,u)}onInsert(v,u,w,F){this._transitionEngine.insertNode(v,u,w,F)}onRemove(v,u,w){this._transitionEngine.removeNode(v,u,w)}disableAnimations(v,u){this._transitionEngine.markElementAsDisabled(v,u)}process(v,u,w,F){if("@"==w.charAt(0)){const[$,pe]=Gi(w);this._timelineEngine.command($,u,pe,F)}else this._transitionEngine.trigger(v,u,w,F)}listen(v,u,w,F,$){if("@"==w.charAt(0)){const[pe,Pe]=Gi(w);return this._timelineEngine.listen(pe,u,Pe,$)}return this._transitionEngine.listen(v,u,w,F,$)}flush(v=-1){this._transitionEngine.flush(v)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(v){this._transitionEngine.afterFlushAnimationsDone(v)}}let Hc=(()=>{class C{static{this.initialStylesByElement=new WeakMap}constructor(u,w,F){this._element=u,this._startStyles=w,this._endStyles=F,this._state=0;let $=C.initialStylesByElement.get(u);$||C.initialStylesByElement.set(u,$=new Map),this._initialStyles=$}start(){this._state<1&&(this._startStyles&&gr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(gr(this._element,this._initialStyles),this._endStyles&&(gr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(C.initialStylesByElement.delete(this._element),this._startStyles&&(qn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qn(this._element,this._endStyles),this._endStyles=null),gr(this._element,this._initialStyles),this._state=3)}}return C})();function ac(C){let v=null;return C.forEach((u,w)=>{(function Yc(C){return"display"===C||"position"===C})(w)&&(v=v||new Map,v.set(w,u))}),v}class ud{constructor(v,u,w,F){this.element=v,this.keyframes=u,this.options=w,this._specialStyles=F,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=w.duration,this._delay=w.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(v=>v()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const v=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,v,this.options),this._finalKeyframe=v.length?v[v.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(v){const u=[];return v.forEach(w=>{u.push(Object.fromEntries(w))}),u}_triggerWebAnimation(v,u,w){return v.animate(this._convertKeyframesToObject(u),w)}onStart(v){this._originalOnStartFns.push(v),this._onStartFns.push(v)}onDone(v){this._originalOnDoneFns.push(v),this._onDoneFns.push(v)}onDestroy(v){this._onDestroyFns.push(v)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(v=>v()),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(v=>v()),this._onDestroyFns=[])}setPosition(v){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=v*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const v=new Map;this.hasStarted()&&this._finalKeyframe.forEach((w,F)=>{"offset"!==F&&v.set(F,this._finished?w:vl(this.element,F))}),this.currentSnapshot=v}triggerCallback(v){const u="start"===v?this._onStartFns:this._onDoneFns;u.forEach(w=>w()),u.length=0}}class eo{validateStyleProperty(v){return!0}validateAnimatableStyleProperty(v){return!0}matchesElement(v,u){return!1}containsElement(v,u){return gs(v,u)}getParentElement(v){return Yo(v)}query(v,u,w){return Di(v,u,w)}computeStyle(v,u,w){return window.getComputedStyle(v)[u]}animate(v,u,w,F,$,pe=[]){const tt={duration:w,delay:F,fill:0==F?"both":"forwards"};$&&(tt.easing=$);const Ot=new Map,an=pe.filter(Dn=>Dn instanceof ud);(function No(C,v){return 0===C||0===v})(w,F)&&an.forEach(Dn=>{Dn.currentSnapshot.forEach((An,zn)=>Ot.set(zn,An))});let en=function va(C){return C.length?C[0]instanceof Map?C:C.map(v=>Jn(v)):[]}(u).map(Dn=>Ar(Dn));en=function Dr(C,v,u){if(u.size&&v.length){let w=v[0],F=[];if(u.forEach(($,pe)=>{w.has(pe)||F.push(pe),w.set(pe,$)}),F.length)for(let $=1;$<v.length;$++){let pe=v[$];F.forEach(Pe=>pe.set(Pe,vl(C,Pe)))}}return v}(v,en,Ot);const Un=function Fo(C,v){let u=null,w=null;return Array.isArray(v)&&v.length?(u=ac(v[0]),v.length>1&&(w=ac(v[v.length-1]))):v instanceof Map&&(u=ac(v)),u||w?new Hc(C,u,w):null}(v,en);return new ud(v,en,tt,Un)}}let S=(()=>{class C extends wn.S6{constructor(u,w){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(w.body,{id:"0",encapsulation:h.gXe.None,styles:[],data:{animation:[]}})}build(u){const w=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(u)?(0,wn.K2)(u):u;return I(this._renderer,null,w,"register",[F]),new y(w,this._renderer)}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(h._9s),h.KVO(Tt.qQ))}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac})}}return C})();class y extends wn.Ro{constructor(v,u){super(),this._id=v,this._renderer=u}create(v,u){return new b(this._id,v,u||{},this._renderer)}}class b{constructor(v,u,w,F){this.id=v,this.element=u,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",w)}_listen(v,u){return this._renderer.listen(this.element,`@@${this.id}:${v}`,u)}_command(v,...u){return I(this._renderer,this.element,this.id,v,u)}onDone(v){this._listen("done",v)}onStart(v){this._listen("start",v)}onDestroy(v){this._listen("destroy",v)}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(v){this._command("setPosition",v)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function I(C,v,u,w,F){return C.setProperty(v,`@@${u}:${w}`,F)}const z="@",ce="@.disabled";let rt=(()=>{class C{constructor(u,w,F){this.delegate=u,this.engine=w,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,w.onRemovalComplete=($,pe)=>{const Pe=pe?.parentNode($);Pe&&pe.removeChild(Pe,$)}}createRenderer(u,w){const $=this.delegate.createRenderer(u,w);if(!(u&&w&&w.data&&w.data.animation)){let an=this._rendererCache.get($);return an||(an=new yt("",$,this.engine,()=>this._rendererCache.delete($)),this._rendererCache.set($,an)),an}const pe=w.id,Pe=w.id+"-"+this._currentId;this._currentId++,this.engine.register(Pe,u);const tt=an=>{Array.isArray(an)?an.forEach(tt):this.engine.registerTrigger(pe,Pe,u,an.name,an)};return w.data.animation.forEach(tt),new Lt(this,Pe,$,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,w,F){u>=0&&u<this._microtaskId?this._zone.run(()=>w(F)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach($=>{const[pe,Pe]=$;pe(Pe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([w,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(h._9s),h.KVO(Ul),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac})}}return C})();class yt{constructor(v,u,w,F){this.namespaceId=v,this.delegate=u,this.engine=w,this._onDestroy=F}get data(){return this.delegate.data}destroyNode(v){this.delegate.destroyNode?.(v)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(v,u){return this.delegate.createElement(v,u)}createComment(v){return this.delegate.createComment(v)}createText(v){return this.delegate.createText(v)}appendChild(v,u){this.delegate.appendChild(v,u),this.engine.onInsert(this.namespaceId,u,v,!1)}insertBefore(v,u,w,F=!0){this.delegate.insertBefore(v,u,w),this.engine.onInsert(this.namespaceId,u,v,F)}removeChild(v,u,w){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(v,u){return this.delegate.selectRootElement(v,u)}parentNode(v){return this.delegate.parentNode(v)}nextSibling(v){return this.delegate.nextSibling(v)}setAttribute(v,u,w,F){this.delegate.setAttribute(v,u,w,F)}removeAttribute(v,u,w){this.delegate.removeAttribute(v,u,w)}addClass(v,u){this.delegate.addClass(v,u)}removeClass(v,u){this.delegate.removeClass(v,u)}setStyle(v,u,w,F){this.delegate.setStyle(v,u,w,F)}removeStyle(v,u,w){this.delegate.removeStyle(v,u,w)}setProperty(v,u,w){u.charAt(0)==z&&u==ce?this.disableAnimations(v,!!w):this.delegate.setProperty(v,u,w)}setValue(v,u){this.delegate.setValue(v,u)}listen(v,u,w){return this.delegate.listen(v,u,w)}disableAnimations(v,u){this.engine.disableAnimations(v,u)}}class Lt extends yt{constructor(v,u,w,F,$){super(u,w,F,$),this.factory=v,this.namespaceId=u}setProperty(v,u,w){u.charAt(0)==z?"."==u.charAt(1)&&u==ce?this.disableAnimations(v,w=void 0===w||!!w):this.engine.process(this.namespaceId,v,u.slice(1),w):this.delegate.setProperty(v,u,w)}listen(v,u,w){if(u.charAt(0)==z){const F=function vn(C){switch(C){case"body":return document.body;case"document":return document;case"window":return window;default:return C}}(v);let $=u.slice(1),pe="";return $.charAt(0)!=z&&([$,pe]=function ii(C){const v=C.indexOf(".");return[C.substring(0,v),C.slice(v+1)]}($)),this.engine.listen(this.namespaceId,F,$,pe,Pe=>{this.factory.scheduleListenerCallback(Pe._data||-1,w,Pe)})}return this.delegate.listen(v,u,w)}}const uo=[{provide:wn.S6,useClass:S},{provide:Tr,useFactory:function Si(){return new $a}},{provide:Ul,useClass:(()=>{class C extends Ul{constructor(u,w,F,$){super(u.body,w,F)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(Tt.qQ),h.KVO(ao),h.KVO(Tr),h.KVO(h.o8S))}}static{this.\u0275prov=h.jDH({token:C,factory:C.\u0275fac})}}return C})()},{provide:h._9s,useFactory:function si(C,v,u){return new rt(C,v,u)},deps:[e.B7,Ul,h.SKi]}],Co=[{provide:ao,useFactory:()=>new eo},{provide:h.bc$,useValue:"BrowserAnimations"},...uo],Vr=[{provide:ao,useClass:ma},{provide:h.bc$,useValue:"NoopAnimations"},...uo];let jr=(()=>{class C{static withConfig(u){return{ngModule:C,providers:u.disableAnimations?Vr:Co}}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({providers:Co,imports:[e.Bb]})}}return C})(),El=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({})}}return C})();var lr=N(9417),qi=N(6600),Er=N(6939),Id=N(2318),mu=N(6039);N(6860);let vs=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tt.MD,qi.yE,Er.jc,qi.pZ,Id.w5,mu.Pd,qi.yE]})}}return C})();var Sr=N(3881),wo=N(8031),Nc=N(969),Tu=N(4958),Ld=N(8737),Eu=N(5686),Bd=N(8466);let Su=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tt.MD,lr.YN,Sr.Ez,wo.YN.forRoot(),Tu.kr,Ld.GQ,Nc.rJ,El,Eu.c9,Bd.Qs]})}}return C})();var su=N(5351),Ju=N(7675),ku=N(9115),eh=N(9213),th=N(6911);let Gr=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tt.MD,Su,su.hM,Ju.tP,ku.Cn,eh.m_,Bd.Qs,lr.YN,th.UN]})}}return C})(),Vd=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tt.MD,wo.YN.forRoot(),nr,Gr,Re,js]})}}return C})(),xu=(()=>{class C{static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[Tu.kr,El,Ld.GQ,lr.YN,vs,Su,Vd,nr.forRoot({positionClass:"toast-bottom-left"}),Gr]})}}return C})(),qa=(()=>{class C{constructor(u){this.injector=u}ngDoBootstrap(){const u="octa-form-submission-webcomponent";if(customElements.get(u))console.warn(`${u} is already defined`);else{const w=function ot(C,v){const u=function ft(C,v){return v.get(h.OM3).resolveComponentFactory(C).inputs}(C,v.injector),w=v.strategyFactory||new Pt(C,v.injector),F=function bt(C){const v={};return C.forEach(({propName:u,templateName:w,transform:F})=>{v[function Oe(C){return C.replace(/[A-Z]/g,v=>`-${v.toLowerCase()}`)}(w)]=[u,F]}),v}(u);class $ extends at{static{this.observedAttributes=Object.keys(F)}get ngElementStrategy(){if(!this._ngElementStrategy){const Pe=this._ngElementStrategy=w.create(this.injector||v.injector);u.forEach(({propName:tt,transform:Ot})=>{if(!this.hasOwnProperty(tt))return;const an=this[tt];delete this[tt],Pe.setInputValue(tt,an,Ot)})}return this._ngElementStrategy}constructor(Pe){super(),this.injector=Pe}attributeChangedCallback(Pe,tt,Ot,an){const[en,Un]=F[Pe];this.ngElementStrategy.setInputValue(en,Ot,Un)}connectedCallback(){let Pe=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Pe=!0),this.ngElementStrategy.connect(this),Pe||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Pe=>{const tt=new CustomEvent(Pe.name,{detail:Pe.value});this.dispatchEvent(tt)})}}return u.forEach(({propName:pe,transform:Pe})=>{Object.defineProperty($.prototype,pe,{get(){return this.ngElementStrategy.getInputValue(pe)},set(tt){this.ngElementStrategy.setInputValue(pe,tt,Pe)},configurable:!0,enumerable:!0})}),$}(Nl,{injector:this.injector});customElements.define(u,w)}}static{this.\u0275fac=function(w){return new(w||C)(h.KVO(h.zZn))}}static{this.\u0275mod=h.$C({type:C})}static{this.\u0275inj=h.G2t({imports:[e.Bb,jr,zr.q1,xu]})}}return C})();e.sG().bootstrapModule(qa).catch(C=>console.error(C))},7869:(gn,ct,N)=>{N.r(ct),N.d(ct,{FormElementsComponent:()=>Sh});var e=N(7705),h=N(177);let ne=(()=>{class _{constructor(){this.section={},this.decodedDescription=""}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}ngOnChanges(){this.section.description&&(this.decodedDescription=this.decodeHtml(this.section.description))}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-section-fields"]],inputs:{section:"section"},features:[e.OA$],decls:4,vars:3,consts:[[1,"mb-4","px-3"],[1,"sectionTitle"],[1,"description",3,"innerHTML"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.k0s(),e.nrm(3,"p",2),e.k0s()),2&k&&(e.BMQ("name",M.section.testElementName),e.R7$(2),e.JRh(M.section.title),e.R7$(1),e.Y8G("innerHTML",M.decodedDescription,e.npT))},styles:[".sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}"]})}}return _})();var Z=N(467),De=N(541),we=N(3628),Ie=N(1852);function Oe(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Fe(_,ie){1&_&&e.nrm(0,"span",11)}function Me(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Ge(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ue(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,Oe,1,1,"div",7),e.DNE(2,Fe,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Me,2,0,"span",5),e.DNE(7,Ge,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ct(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",18)(1,"input",19),e.bIt("change",function(M){const be=e.eBV(l).$implicit,St=e.XpG();return e.Njj(St.onCheckboxChange(be,M))}),e.k0s(),e.j41(2,"label",20),e.EFF(3),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG();e.R7$(1),e.Y8G("id",l.value+(null==k.question?null:k.question.id))("name",l.value+"Checkbox")("value",l.value)("disabled",k.isOptionDisabled(l))("checked",k.selectedOptions.includes(l)),e.BMQ("data-value",k.selectedOptions.includes(l)),e.R7$(1),e.Y8G("for",l.value+(null==k.question?null:k.question.id)),e.R7$(1),e.JRh(l.label)}}function _t(_,ie){if(1&_&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function bt(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",22),e.nrm(2,"path",23)(3,"path",24)(4,"path",25)(5,"circle",26),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const ft=function(_){return{"mb-4":_}};let mt=(()=>{class _{constructor(l,k,M){this.formService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionType="",this.optionType="",this.lookupTable={},this.customOptions=[],this.database={},this.api={},this.apiOptions=[],this.selectedOptions=[],this.validationFailed=!1,this.displayOptionsInColumn=!1,this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionType=this.question.formElement.appearance.selectionType,this.displayOptionsInColumn=this.question.formElement.appearance.displayOptionsInColumn??!1,this.minimumSelection=this.question.formElement.validation.minimumSelection,this.maximumSelection=this.question.formElement.validation.maximumSelection,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions,this.customOptions=this.question.formElement.option.customOptions.map(l=>({value:l.value,label:l.value})),this.question.answer&&this.initializeCustomOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}"SINGLE"===this.selectionType&&(this.minimumSelection=1,this.maximumSelection=1),"MULTIPLE"===this.selectionType&&!this.minimumSelection&&!this.maximumSelection&&(this.minimumSelection=void 0,this.maximumSelection=void 0)}initializeCustomOption(){this.selectedOptions=[],this.customOptions?.forEach(l=>{this.question?.answer?.find(k=>"string"==typeof k&&k.includes("|")?k.split("|")[1]===l.value.toString():k.toString()===l.value.toString())&&this.selectedOptions.push(l)}),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}onCheckboxChange(l,k){"SINGLE"===this.selectionType?(k.target.checked?(this.selectedOptions=[l],this.question.answer=[`${l.label}|${l.value}`]):(this.selectedOptions=[],this.question.answer=[]),this.isMinimumSelectionValid()):"MULTIPLE"===this.selectionType&&(k.target.checked?this.selectedOptions.includes(l)||this.selectedOptions.push(l):this.selectedOptions=this.selectedOptions.filter(M=>M!==l),this.question.answer=this.selectedOptions.map(M=>`${M.label}|${M.value}`),this.isMinimumSelectionValid()),void 0!==this.maximumSelection&&this.selectedOptions.length>this.maximumSelection&&(k.target.checked=!1,this.selectedOptions=this.selectedOptions.filter(M=>M!==l),this.question.answer=this.selectedOptions.map(M=>`${M.label}|${M.value}`),this.isMinimumSelectionValid()),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{if("SINGLE"===this.selectionType)0===this.selectedOptions.length?(k.showLogic=!1,this.clearAnswersRecursively(k)):this.evaluateCondition(this.selectedOptions[0]?.label,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k));else if("MULTIPLE"===this.selectionType)if(0===this.selectedOptions.length)k.showLogic=!1,this.clearAnswersRecursively(k);else{const M=this.selectedOptions.map(H=>H.label);this.evaluateMultipleCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}evaluateCondition(l,k,M){const H=Array.isArray(M)?M.map(be=>be.toString()):[M.toString()];switch(k){case"!=":case"NOT IN":return!H.includes(l);case"=":case"IN":return H.includes(l);default:return!1}}evaluateMultipleCondition(l,k,M){const H=Array.isArray(M)?M.map(be=>be.toString()):[M.toString()];switch(k){case"!=":case"NOT IN":return l.every(be=>!H.includes(be));case"=":case"IN":return l.some(be=>H.includes(be));default:return!1}}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.question.answer&&this.initializeCustomOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.question.answer&&this.initializeCustomOption()):console.error("Error fetching data from database:",k.message)},k=>{console.error("HTTP Error:",k)})}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k?.field,valueSource:k?.valueSource,condition:k?.condition,value:k?.inputValue,logicalOperator:k?.logicalOperator}))}}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map(H=>({value:H[l.valueField],label:H[l.labelField]})),this.question.answer&&this.initializeCustomOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,H)=>M&&M[H],l)}isMinimumSelectionValid(){this.validationFailed=!1,0==this.selectedOptions.length&&this.required?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):void 0!==this.minimumSelection?"SINGLE"==this.selectionType?(this.validationService.clearInvalid(this.question.id),this.selectedOptions.length<this.minimumSelection&&this.required?(this.validationFailed=!0,this.validationMessage=`Minimum ${this.minimumSelection} selection(s) required.`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)):this.selectedOptions.length<this.minimumSelection?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage=`Minimum ${this.minimumSelection} selection(s) required.`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}getOptions(){return"OPTION"===this.optionType?this.customOptions:"LOOKUP"===this.optionType?Object.values(this.lookupTable):"API"===this.optionType?this.apiOptions.map(l=>l.valueField):[]}isOptionDisabled(l){return void 0!==this.maximumSelection&&this.selectedOptions.length>=this.maximumSelection&&!this.selectedOptions.includes(l)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-check-box-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:6,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-3",4,"ngIf"],[1,"checkboxField-container"],["class","form-check",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-3"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","name","value","disabled","checked","change"],[1,"formCheckLabel","me-4","mb-2",3,"for"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ue,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,Ct,4,8,"div",3),e.k0s(),e.DNE(4,_t,2,1,"div",4),e.DNE(5,bt,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,ft,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("two-column",M.displayOptionsInColumn),e.R7$(1),e.Y8G("ngForOf",M.customOptions),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0===M.selectedOptions.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT],styles:['@charset "UTF-8";.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-check-input[_ngcontent-%COMP%]{cursor:pointer}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.formCheckLabel[_ngcontent-%COMP%]{margin-top:5px;cursor:pointer}.checkboxField-container[_ngcontent-%COMP%]{display:block}.checkboxField-container.two-column[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr)}']})}}return _})();var tn=N(1593),vt=N(9417),Pt=N(8031),me=N(5686);const at=["datepickerYMD"],ot=["daterangepicker"],ht=["dateAndTimePicker"],kt=["fullTime3"],Tt=["fullTime4"];function cn(_,ie){if(1&_&&e.nrm(0,"div",8),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function kn(_,ie){1&_&&e.nrm(0,"span",9)}function dn(_,ie){1&_&&(e.j41(0,"span",10),e.EFF(1,"*"),e.k0s())}function Kt(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",12),e.nrm(2,"path",13)(3,"path",14)(4,"path",15),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ye(_,ie){if(1&_&&(e.j41(0,"div",3),e.DNE(1,cn,1,1,"div",4),e.DNE(2,kn,1,0,"span",5),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,dn,2,0,"span",6),e.DNE(7,Kt,5,1,"div",7),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function ye(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Se(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Nt=function(_){return{dateInputFormat:_,containerClass:"theme-custom"}};function K(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",17,18),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedDate=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDatePicker())}),e.k0s()(),e.DNE(5,ye,2,1,"div",20),e.DNE(6,Se,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(10,Nt,l.format))("ngModel",l.selectedDate),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.R7$(1),e.Y8G("ngIf",l.validationFailed)}}function ge(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function je(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const le=function(_){return{containerClass:"theme-dark-blue",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1,minMode:"month",dateInputFormat:_}};function de(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",17,18),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedDate=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDatePicker())}),e.k0s()(),e.DNE(5,ge,2,1,"div",20),e.DNE(6,je,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(10,le,l.format))("ngModel",l.selectedDate),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.R7$(1),e.Y8G("ngIf",l.validationFailed)}}function Le(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function ue(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function He(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",29),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedTime=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(3,"i",30),e.bIt("click",function(){e.eBV(l);const M=e.sdS(5);return e.Njj(M.open())}),e.k0s(),e.nrm(4,"ngx-material-timepicker",null,31),e.k0s(),e.DNE(6,Le,2,1,"div",20),e.DNE(7,ue,7,1,"div",21),e.bVm()}if(2&_){const l=e.sdS(5),k=e.XpG();e.R7$(2),e.AVh("invalid",k.validationFailed)("invalid-question",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.Y8G("format","24"===k.timeFormat?24:12)("ngxTimepicker",l)("ngModel",k.selectedTime)("max",k.maxTime)("min",k.minTime),e.R7$(4),e.Y8G("ngIf",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.R7$(1),e.Y8G("ngIf",k.validationFailed)}}function L(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",16)(1,"input",35),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.selectedTime=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.validateField())})("focus",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.closeDatepicker())}),e.k0s(),e.j41(2,"i",30),e.bIt("click",function(){e.eBV(l);const M=e.sdS(4);return e.Njj(M.open())}),e.k0s(),e.nrm(3,"ngx-material-timepicker",null,36),e.k0s()}if(2&_){const l=e.sdS(4),k=e.XpG(2);e.R7$(1),e.AVh("invalid",k.timeValidationFailed)("invalid-question",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.Y8G("format","24"===k.timeFormat?24:12)("ngxTimepicker",l)("ngModel",k.selectedTime)("max",k.maxTime)("min",k.minTime)}}function q(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Be(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function pt(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",32,33),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedDateAndTime=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDateAndTimePicker())}),e.k0s()(),e.DNE(5,L,5,9,"div",34),e.DNE(6,q,2,1,"div",20),e.DNE(7,Be,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(11,Nt,l.format))("ngModel",l.selectedDateAndTime),e.R7$(3),e.Y8G("ngIf",l.selectedDateAndTime&&null!=l.selectedDateAndTime),e.R7$(1),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedTime)),e.R7$(1),e.Y8G("ngIf",l.validationFailed||l.timeValidationFailed)}}function dt(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Gt(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Cn=function(_,ie){return{rangeInputFormat:_,dateInputFormat:ie,containerClass:"theme-custom",displayOneMonthRange:!0}};function jn(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",37,38),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedDateRange=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDateRangePicker())}),e.k0s()(),e.DNE(5,dt,2,1,"div",20),e.DNE(6,Gt,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDateRange)),e.Y8G("minDate",l.minDate)("maxDate",l.maxDate)("bsConfig",e.l_i(10,Cn,l.format,l.format))("ngModel",l.selectedDateRange),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDateRange)),e.R7$(1),e.Y8G("ngIf",l.validationFailed&&!l.isInvalid)}}const sn=function(_){return{"mb-4":_}};let Vn=(()=>{class _{constructor(l,k,M,H){this.datePipe=l,this.router=k,this.validationService=M,this.tracker=H,this.bsConfig={containerClass:"theme-custom",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1},this.rangeBsConfig={},this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.required=!1,this.hint="",this.count=0,this.minTime="",this.maxTime="",this.dateType="",this.format="",this.Dateformat="",this.timeFormat="",this.minDateOption="",this.maxDateOption="",this.todayDate=new Date,this.selectedDate=null,this.selectedTime="",this.selectedDateRange="",this.selectedDateAndTime=null,this.validationMessage="",this.maxTimeOption="",this.minTimeOption="",this.elementId="",this.timePickerOpened=!1,this.subscriptions=[],this.timePickersOpened={}}ngOnInit(){this.valueAssigned(),this.setRangeConfig()}setRangeConfig(){this.rangeBsConfig={containerClass:"theme-custom",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1,dateInputFormat:this.format,rangeInputFormat:this.format,displayOneMonthRange:!0}}valueAssigned(){if(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.dateType=this.question.formElement.appearance.dateType,this.minDateOption=this.question.formElement.validation.minDateOption,this.Dateformat=this.question.formElement.appearance.format.replace(/DD/g,"dd"),this.minDate=this.getMinDate(),this.maxDateOption=this.question.formElement.validation.maxDateOption,this.maxDate=this.getMaxDate(),this.setDateTimeFormat(),this.question?.answer&&(this.question?.answer).length>0&&(this.selectedDate=this.question?.answer),this.selectedTime=this.question.answer,this.question?.answer&&(this.question?.answer).length>0&&(this.selectedDateAndTime=new Date(this.question.answer)),this.selectedDateRange=this.question.answer,this.minTimeOption=this.question.formElement.validation.minTimeOption,this.maxTimeOption=this.question.formElement.validation.maxTimeOption,"DATE_AND_TIME"!==this.dateType&&(this.minTime=this.getMinTime().toString(),this.maxTime=this.getMaxTime().toString()),"DATE_AND_TIME"===this.dateType&&this.question?.answer){const l=this.question.answer?this.question.answer.split(","):[];if(2===l.length){const be=l[0].trim(),St=l[1].trim();this.selectedDate=be,this.selectedTime=St}const k=this.datePipe.transform(this.selectedDateAndTime,this.Dateformat),M=this.datePipe.transform(this.minDate,this.Dateformat),H=this.datePipe.transform(this.maxDate,this.Dateformat);k===M&&(this.minTime=this.getMinTime().toString(),this.maxTime="12"===this.timeFormat?"12:00 pm":"23:59"),k===H&&(this.maxTime=this.getMaxTime().toString(),this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),k!==M&&k!==H&&("12"===this.timeFormat?(this.minTime="12:00 am",this.maxTime="12:00 pm"):(this.minTime="00:00",this.maxTime="23:59"))}(!this.minTime||0===this.minTime.length)&&(this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),(!this.maxTime||0===this.maxTime.length)&&(this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59")}setDateTimeFormat(){switch(this.dateType){case"DATE_ONLY":case"DATE_RANGE":case"MONTH_YEAR":this.format=this.question.formElement.appearance.format;break;case"TIME_ONLY":this.timeFormat=this.question.formElement.appearance.timeFormat;break;case"DATE_AND_TIME":this.format=this.question.formElement.appearance.format,this.timeFormat=this.question.formElement.appearance.timeFormat;break;default:this.format="DD/MM/YYYY"}}getMinDate(){if("CURRENT_DATE"===this.minDateOption)return this.todayDate;if("CUSTOM"===this.minDateOption)return new Date(this.question.formElement.validation.minDate);if("MONTH_YEAR"===this.dateType){const k=new Date(this.question.formElement.validation.minDate).getFullYear();return new Date(k,0,1)}}getMaxDate(){if("CURRENT_DATE"===this.maxDateOption)return this.todayDate;if("CUSTOM"===this.maxDateOption)return new Date(this.question.formElement.validation.maxDate);if("MONTH_YEAR"===this.dateType){const k=new Date(this.question.formElement.validation.maxDate).getFullYear();return new Date(k,11,31)}}getMinTime(){if(this.minTimeOption){const l="24"===this.timeFormat?"HH:mm":"hh:mm a";if("CURRENT_TIME"===this.minTimeOption)return this.datePipe.transform(new Date,l)||"";if("CUSTOM"===this.minTimeOption){const k=this.question.formElement.validation.minTime,[M,H]=k.split(":"),be=new Date;return be.setHours(parseInt(M,10),parseInt(H,10),0,0),this.datePipe.transform(be,l)||""}}return""}getMaxTime(){if(this.maxTimeOption){const l="24"===this.timeFormat?"HH:mm":"hh:mm a";if("CURRENT_TIME"===this.maxTimeOption)return this.datePipe.transform(new Date,l)||"";if("CUSTOM"===this.maxTimeOption){const k=this.question.formElement.validation.maxTime,[M,H]=k.split(":"),be=new Date;return be.setHours(parseInt(M,10),parseInt(H,10),0,0),this.datePipe.transform(be,l)||""}}return""}openDatePicker(){this.datepicker.toggle()}openDateRangePicker(){this.dateRangePicker.toggle()}openDateAndTimePicker(){this.dateAndTimePicker.toggle()}closeDatepicker(){this.dateAndTimePicker&&this.dateAndTimePicker.hide()}validateField(){"DATE_ONLY"===this.dateType||"MONTH_YEAR"===this.dateType?(this.question.answer=this.selectedDate?this.formatDate(this.selectedDate.toString()):"",this.validateDateOnly()):"TIME_ONLY"===this.dateType?(this.question.answer=String(this.selectedTime),this.validateTimeOnly()):"DATE_AND_TIME"===this.dateType?(this.question.answer=this.selectedDateAndTime?this.formatDate(this.selectedDateAndTime.toString()):"",this.validateDateAndTime()):(this.question.answer=this.formatDate(this.selectedDateRange),this.validateDateRange()),this.answerChange.emit(this.question.answer)}formatDate(l,k="dateTime"){switch(this.dateType){case"DATE_ONLY":return this.datePipe.transform(this.selectedDate,this.Dateformat)||"";case"MONTH_YEAR":const M=this.extractMonthYear(this.selectedDate?.toString());return M?(this.selectedDate=new Date(M.year,M.month-1,1),this.datePipe.transform(this.selectedDate,this.Dateformat)||""):(console.error("Invalid date format"),"");case"DATE_AND_TIME":const H=this.datePipe.transform(this.selectedDateAndTime,this.Dateformat),be=this.datePipe.transform(this.minDate,this.Dateformat),St=this.datePipe.transform(this.maxDate,this.Dateformat);H===be&&(this.minTime=this.getMinTime().toString(),this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59"),H===St&&(this.maxTime=this.getMaxTime().toString(),this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),H!==be&&H!==St&&(this.minTime="12"===this.timeFormat?"12:00 am":"00:00",this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59");const En=this.selectedTime||"";return H&&En?`${H}, ${En}`:"";case"DATE_RANGE":const xn=l;return Array.isArray(xn)&&2===xn.length?`${this.datePipe.transform(xn[0],this.Dateformat)} - ${this.datePipe.transform(xn[1],this.Dateformat)}`:"";default:return this.datePipe.transform(l,this.Dateformat)||""}}extractMonthYear(l){if(!l)return null;if("string"==typeof l){const k=new Date(l);if(!isNaN(k.getTime()))return{month:k.getMonth()+1,year:k.getFullYear()};const M=l.split(/[-/]/);if(2!==M.length)return null;let H=0,be=0;return 4===M[0].length?(H=parseInt(M[0],10),be=parseInt(M[1],10)):(be=parseInt(M[0],10),H=parseInt(M[1],10)),{month:be,year:H}}return l instanceof Date&&!isNaN(l.getTime())?{month:l.getMonth()+1,year:l.getFullYear()}:null}validateDateOnly(){this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedDate?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question",this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}validateTimeOnly(){this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedTime?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}validateDateRange(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedDateRange?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}validateDateAndTime(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.timeValidationFailed=!1,this.validationMessage="",this.required&&!this.selectedDateAndTime?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.required&&!this.selectedTime?(this.timeValidationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}convertToISODate(l){if(!l)return null;let k,M,H;if(Array.isArray(l)){if([k,M,H]=l,"number"!=typeof k||"number"!=typeof M||"number"!=typeof H||isNaN(k)||isNaN(M)||isNaN(H)||!Number.isInteger(k)||!Number.isInteger(M)||!Number.isInteger(H)||M<1||M>12||H<1||H>31)return null}else{if("string"!=typeof l)return null;{const St=l.split("-");if(3!==St.length||([k,M,H]=St.map(Number),isNaN(k)||isNaN(M)||isNaN(H)||!Number.isInteger(k)||!Number.isInteger(M)||!Number.isInteger(H)||M<1||M>12||H<1||H>31))return null}}const be=new Date(k,M-1,H);return be.getFullYear()!==k||be.getMonth()!==M-1||be.getDate()!==H?null:be}ngAfterViewInit(){if(this.initializeTimePickers(),this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId),0===this.subscriptions.length){const l=this.router.events.subscribe(k=>{k instanceof tn.wF&&this.closeTimepickers()});this.subscriptions.push(l)}}ngAfterViewChecked(){this.initializeTimePickers()}ngOnDestroy(){this.closeTimepickers(),this.elementId&&this.tracker.unregisterElement(this.elementId),this.subscriptions.forEach(l=>{l&&"function"==typeof l.unsubscribe&&l.unsubscribe()})}initializeTimePickers(){this.fullTime3&&!this.timePickersOpened.fullTime3&&this.trackTimePicker(this.fullTime3,"fullTime3"),this.fullTime4&&!this.timePickersOpened.fullTime4&&this.trackTimePicker(this.fullTime4,"fullTime4")}trackTimePicker(l,k){if(l){const M=l.opened.subscribe(()=>{this.timePickersOpened[k]=!0});this.subscriptions.push(M)}}closeTimepickers(){this.fullTime3&&this.timePickersOpened.fullTime3&&"function"==typeof this.fullTime3.close&&(this.fullTime3.close(),this.timePickersOpened.fullTime3=!1),this.fullTime4&&this.timePickersOpened.fullTime4&&"function"==typeof this.fullTime4.close&&(this.fullTime4.close(),this.timePickersOpened.fullTime4=!1)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(h.vh),e.rXU(tn.Ix),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-date-time-fields"]],viewQuery:function(k,M){if(1&k&&(e.GBs(at,5),e.GBs(ot,5),e.GBs(ht,5),e.GBs(kt,5),e.GBs(Tt,5)),2&k){let H;e.mGM(H=e.lsd())&&(M.datepicker=H.first),e.mGM(H=e.lsd())&&(M.dateRangePicker=H.first),e.mGM(H=e.lsd())&&(M.dateAndTimePicker=H.first),e.mGM(H=e.lsd())&&(M.fullTime3=H.first),e.mGM(H=e.lsd())&&(M.fullTime4=H.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},features:[e.Jv_([h.vh])],decls:7,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"input-container"],["bsDatepicker","","placeholder","Select date",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["datepickerYMD","bsDatepicker"],[1,"fa-solid","fa-calendar-days","calendar-icon","text-primary","fs-5",3,"click"],["class","error-message",4,"ngIf"],["class","text-danger mt-2",4,"ngIf"],[1,"error-message"],[1,"text-danger","mt-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"],["aria-label","Select time","placeholder","Select time","readonly","",1,"form-control","height","appearanceInput","mt-3",3,"format","ngxTimepicker","ngModel","max","min","ngModelChange"],["id","startDateIcon",1,"fa-solid","fa-clock","text-primary","fs-6","clock-icon",2,"cursor","pointer",3,"click"],["fullTime3",""],["type","text","placeholder","Select date","bsDatepicker","",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["dateAndTimePicker","bsDatepicker"],["class","input-container",4,"ngIf"],["aria-label","Select time","placeholder","Select time","readonly","",1,"form-control","height","appearanceInput","mt-3",3,"format","ngxTimepicker","ngModel","max","min","ngModelChange","focus"],["fullTime4",""],["type","text","bsDaterangepicker","","placeholder","Select date",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["daterangepicker","bsDaterangepicker"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ye,8,5,"div",1),e.DNE(2,K,7,12,"ng-container",2),e.DNE(3,de,7,12,"ng-container",2),e.DNE(4,He,8,11,"ng-container",2),e.DNE(5,pt,8,13,"ng-container",2),e.DNE(6,jn,7,13,"ng-container",2),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,sn,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngIf","DATE_ONLY"===M.dateType),e.R7$(1),e.Y8G("ngIf","MONTH_YEAR"===M.dateType),e.R7$(1),e.Y8G("ngIf","TIME_ONLY"===M.dateType),e.R7$(1),e.Y8G("ngIf","DATE_AND_TIME"===M.dateType),e.R7$(1),e.Y8G("ngIf","DATE_RANGE"===M.dateType))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS,Pt.pc,Pt.p0,Pt.Kn,Pt.mO,me.zk,me.v2],styles:['.input-wrapper{display:flex;align-items:flex-start}.svg-wrapper{margin-inline-start:auto;z-index:999}.hintIcon{position:relative;cursor:pointer}.hintIcon:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height{height:42px}.invalid{border-color:red}.hintSvg{width:30px;height:30px;fill:none}.validationSvg{width:24px;height:24px;fill:none}::ng-deep html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important}::ng-deep .timepicker-overlay{z-index:1000!important}::ng-deep .timepicker-backdrop-overlay{z-index:1000!important}.space{width:5px}.error-message{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.input-container{position:relative}.input-container .form-control{padding-right:30px}.input-container .calendar-icon,.clock-icon{position:absolute;top:50%;right:10px;transform:translateY(-50%);cursor:pointer}.appearanceInput{background-color:#fff}::ng-deep ngx-material-timepicker-content{--body-background-color: #fff;--button-color: #08bff6 !important;--dial-active-color: #fff;--dial-inactive-color: rgba(255, 255, 255, .5);--dial-background-color: #08bff6 !important;--dial-editable-active-color: #08bff6!important;--dial-editable-background-color: #fff;--clock-face-time-active-color: #fff;--clock-face-time-inactive-color: #6c6c6c;--clock-face-inner-time-inactive-color: #929292;--clock-face-time-disabled-color: #c5c5c5;--clock-face-background-color: #f0f0f0;--clock-hand-color: #08bff6 !important;position:relative;z-index:99999999}::ng-deep ngx-material-timepicker-container{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000052;z-index:99998}.theme-custom .bs-datepicker-head,.timepicker__header{background-color:#08bff6!important}.invalid-question{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.bs-datepicker-body table td span.selected,.bs-datepicker-body table td.selected span{color:#fff!important;background-color:#08bff6!important;border-radius:50%}\n'],encapsulation:2})}}return _})();var oi=N(4958);function yi(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function It(_,ie){1&_&&e.nrm(0,"span",11)}function ke(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function re(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function xe(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,yi,1,1,"div",6),e.DNE(2,It,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ke,2,0,"span",8),e.DNE(7,re,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ve(_,ie){if(1&_&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function ut(_,ie){if(1&_&&(e.j41(0,"div",19),e.qSk(),e.j41(1,"svg",20),e.nrm(2,"path",21)(3,"path",22)(4,"path",23)(5,"circle",24),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Ft=function(_){return{"mb-4":_}};let on=(()=>{class _{constructor(l,k,M,H){this.formService=l,this.cdr=k,this.validationService=M,this.tracker=H,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionType="",this.minimumSelection=0,this.maximumSelection=0,this.optionType="",this.lookupTable="",this.customOptions=[],this.database={},this.api={},this.selectedValue=[],this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}onValueChange(l){this.selectedValue=l,this.selectItems()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionType=this.question.formElement.appearance.selectionType,this.minimumSelection=this.question.formElement.validation.minimumSelection,this.maximumSelection=this.question.formElement.validation.maximumSelection,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions.map(l=>({label:l.value,value:l.value,image:""})),this.question.answer&&this.initializeCustomOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}}initializeCustomOption(){this.customOptions.forEach(l=>{this.question?.answer?.some(M=>{const H=M.trim().split("|");return 2===H.length&&H[1]===l.value})&&this.selectedValue.push(l),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}),this.cdr.detectChanges()}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k.field,valueSource:k?.valueSource,condition:k.condition,value:k.inputValue,logicalOperator:k.logicalOperator}))}}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.question.answer&&this.initializeCustomOption()):console.error("Error fetching data from database:",k.message),this.cdr.detectChanges()},k=>{console.error("HTTP Error:",k),this.cdr.detectChanges()})}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.question.answer&&this.initializeCustomOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map(H=>({value:H[l.valueField.trim()],label:H[l.labelField.trim()]})),this.question.answer&&this.initializeCustomOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,H)=>M&&M[H],l)}selectItems(){const l=this.selectedValue.map(k=>`${k.label}|${k.value}`);this.question.answer=l,this.validationFailed=!1,this.validationMessage="",0==this.selectedValue.length&&this.required?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question",this.question.validation=!1):this.selectedValue.length<this.minimumSelection||this.selectedValue.length>this.maximumSelection?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage=`selected options must be between ${this.minimumSelection} & ${this.maximumSelection}`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{if("SINGLE"==this.selectionType)if(0==this.selectedValue.length)k.show=!1,this.clearAnswersRecursively(k);else{const M=this.selectedValue[0]?.label;this.evaluateCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}else if("MULTIPLE"===this.selectionType)if(0==this.selectedValue.length)k.show=!1,this.clearAnswersRecursively(k);else{const M=this.selectedValue.map(H=>H.label);this.evaluateMultipleCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}evaluateCondition(l,k,M){const H=Array.isArray(M)?M.map(be=>be.toString().toLowerCase()):M.toLowerCase();switch(l=Array.isArray(l)?l?.map(be=>be.toLowerCase()):l.toLowerCase(),k){case"!=":return l!=M;case"=":return l==M;case"IN":return H.includes(l);case"NOT IN":return!H.includes(l);default:return!1}}evaluateMultipleCondition(l,k,M){const H=Array.isArray(M)?M.map(be=>be.toString()):M.toString();switch(l=Array.isArray(l)?l?.map(be=>be.toLowerCase()):l.toLowerCase(),k){case"!=":return l.every(be=>be!=H);case"=":return l.some(be=>be==H);case"IN":return l.some(be=>H.includes(be));case"NOT IN":return l.every(be=>!H.includes(be));default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(e.gRc),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-drop-down-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:5,vars:12,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"placeholder","items","multiple","selectedItems","click","selectedItemsChange"],["class","error-message",4,"ngIf"],["class","text-danger mb-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],[1,"text-danger","mb-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,xe,8,5,"div",1),e.j41(2,"lib-dropdown",2),e.bIt("click",function(){return M.selectItems()})("selectedItemsChange",function(be){return M.selectedValue=be}),e.k0s(),e.DNE(3,Ve,2,1,"div",3),e.DNE(4,ut,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(10,Ft,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("placeholder","select")("items",M.customOptions)("multiple","SINGLE"!==M.selectionType)("selectedItems",M.selectedValue),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0===M.selectedValue.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,oi.Ps],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Ln=N(1339),Qt=N(8737);function Xt(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function nt(_,ie){1&_&&e.nrm(0,"span",10)}function Mt(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Dt(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Nn(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,Xt,1,1,"div",6),e.DNE(2,nt,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Mt,2,0,"span",4),e.DNE(7,Dt,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function yn(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function $n(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const di=function(_){return{"mb-4":_}};let ai=(()=>{class _{constructor(l,k,M){this.validationService=l,this.tracker=k,this.dataService=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.inlineDeleteFiles=new e.bkB,this.count=0,this.required=!1,this.hint="",this.multiFileUploads=!0,this.fileTypes=[],this.fileSize=0,this.fileSizeUnit="",this.totalFileSize=0,this.initialFileSize=0,this.initialTotalSize=0,this.dragAndDrop=!1,this.previewUploadedFiles=!0,this.validationFailed=!1,this.validationMessage="",this.attachments=[],this.avatarPicker=!1,this.elementId="",this.apiUrl="",this.selectedFiles=[],this.dataService.apiUrl$.subscribe(H=>{this.apiUrl=H+"/api/cdn/preview?url="})}handleFileTypeNotAllowed(l){this.validationFailed=!0,this.validationMessage="File type not allowed",this.clearValidationMessageAfterTimeout()}handleFileSize(l){this.validationFailed=!0,this.validationMessage="File size exceeds the limit"===l?`${l} ${this.initialFileSize} ${this.fileSizeUnit}`:"Total size exceeds the limit"===l?`${l} ${this.initialTotalSize} ${this.fileSizeUnit}`:l,this.clearValidationMessageAfterTimeout()}clearValidationMessageAfterTimeout(){setTimeout(()=>{this.validationMessage="",this.validationFailed=!1},5e3)}handleFinalArray(l){const k=l.map(H=>({name:H._file.name,size:H._file.size,type:H._file.type}));JSON.stringify(k),this.question.answer=l,this.answerChange.emit(this.question.answer)}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.multiFileUploads=this.question.formElement.appearance.multiFileUploads,this.dragAndDrop=this.question.formElement.appearance.dragAndDrop,this.previewUploadedFiles=this.question.formElement.appearance.previewUploadedFiles,this.fileTypes=this.question.formElement.validation.fileTypes,this.fileSizeUnit=this.question.formElement.validation.fileSizeUnit,this.avatarPicker=this.question.formElement.appearance.avatarPicker,this.initialFileSize=this.question.formElement.validation?.fileSize,this.fileSize=this.convertToBytes(this.initialFileSize,this.fileSizeUnit),this.initialTotalSize=this.question.formElement.validation?.totalFileSize,this.totalFileSize=this.convertToBytes(this.initialTotalSize,this.fileSizeUnit),this.question.answer&&(this.files=this.question.answer),this.attachments=this.question?.attachments,this.convertUrl()}convertUrl(){this.attachments&&(this.attachments=this.attachments.map(l=>({...l,fileUrl:this.apiUrl+l.fileUrl.replace(/\//g,"%2F")})))}convertToBytes(l,k){return l*({B:1,KB:1024,MB:1048576,GB:1073741824}[k.toUpperCase()]||1)}onFileChange(l){this.selectedFile=l.target.files[0],this.selectedFiles.push(this.selectedFile),this.question.answer=this.selectedFiles,this.answerChange.emit(this.question.answer)}deleteFiles(l){this.question.deleteFiles=l,this.question.attachments=this.question.attachments.filter(k=>!l.includes(k.fileId)),this.inlineDeleteFiles.emit(this.question.deleteFiles)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ln.u))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-file-picker-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange",inlineDeleteFiles:"inlineDeleteFiles"},decls:5,vars:14,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"totalSize","fileAllowed","multiple","fileSize","avatarPicker","attachments","fileTypeNotAllowed","fileSizeAllowed","finalArray","deleteFiles"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Nn,8,5,"div",1),e.j41(2,"lib-docUpload",2),e.bIt("fileTypeNotAllowed",function(be){return M.handleFileTypeNotAllowed(be)})("fileSizeAllowed",function(be){return M.handleFileSize(be)})("finalArray",function(be){return M.handleFinalArray(be)})("deleteFiles",function(be){return M.deleteFiles(be)}),e.k0s(),e.DNE(3,yn,2,1,"div",3),e.DNE(4,$n,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(12,di,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("totalSize",M.totalFileSize)("fileAllowed",M.fileTypes)("multiple",M.multiFileUploads)("fileSize",M.fileSize)("avatarPicker",M.avatarPicker)("attachments",M.attachments),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.question.answer||!M.attachments)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,Qt.pl],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.fileInput[_ngcontent-%COMP%]{position:relative;height:44px;width:111px;background:#d3d3d3;border-radius:6px;padding:0 16px;display:flex;align-items:center;justify-content:center;cursor:pointer}.fileInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute;left:0;top:0;width:100%;height:inherit}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Ai=N(969);const cs=["mapSearchField"];function Bi(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function As(_,ie){1&_&&e.nrm(0,"span",14)}function Ms(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function to(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function mn(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,Bi,1,1,"div",9),e.DNE(2,As,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Ms,2,0,"span",11),e.DNE(7,to,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const Hs=function(_){return{"mb-4":_}};let rn=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.defaultZoomLevel=0,this.setCurrentPosition=!1,this.allowFullScreen=!1,this.latitude=0,this.longitude=0,this.regionBoundary=!1,this.region="",this.mapConfigurations={}}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.defaultZoomLevel=this.question.formElement.appearance.defaultZoomLevel,this.setCurrentPosition=this.question.formElement.appearance.setCurrentPosition,this.allowFullScreen=this.question.formElement.appearance.allowFullScreen,this.latitude=this.question.formElement.appearance.latitude,this.longitude=this.question.formElement.appearance.longitude,this.regionBoundary=this.question.formElement.validation.regionBoundary,this.region=this.question.formElement.validation.region,this.mapConfigurations={disableDefaultUI:!0,fullscreenControl:this.allowFullScreen,zoomControl:!0}}ngAfterViewInit(){const l=new google.maps.places.SearchBox(this.searchField.nativeElement);this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(this.searchField.nativeElement),l.addListener("places_changed",()=>{const k=l.getPlaces();if(0===k?.length)return;const M=new google.maps.LatLngBounds;k?.forEach(H=>{!H.geometry||!H.geometry.location||(H.geometry.viewport?M.union(H.geometry.viewport):M.extend(H.geometry.location))}),this.map.fitBounds(M)})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-location-fields"]],viewQuery:function(k,M){if(1&k&&(e.GBs(cs,5),e.GBs(Ai.u6,5)),2&k){let H;e.mGM(H=e.lsd())&&(M.searchField=H.first),e.mGM(H=e.lsd())&&(M.map=H.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:6,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group"],["type","text","placeholder","Enter location",1,"form-control","location-input"],["locationInput",""],["type","text",1,"my-map-search-field"],["mapSearchField",""],["width","100%",3,"options"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,mn,8,5,"div",1),e.j41(2,"div",2),e.nrm(3,"input",3,4),e.k0s(),e.nrm(5,"input",5,6)(7,"google-map",7),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(4,Hs,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(6),e.Y8G("options",M.mapConfigurations))},dependencies:[h.YU,h.bT,Ai.u6],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.location-input[_ngcontent-%COMP%]{position:relative}.input-group-append[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function xt(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ve(_,ie){1&_&&e.nrm(0,"span",10)}function Ae(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Ne(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function We(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,xt,1,1,"div",6),e.DNE(2,ve,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Ae,2,0,"span",4),e.DNE(7,Ne,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function qt(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function fn(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const gt=function(_){return{"mb-4":_}};let qe=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.expectedDomains=[],this.regularExpression="",this.email="",this.validationFailed=!1,this.validationMessage="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.expectedDomains=this.question?.formElement?.validation?.expectedDomains?.split(",").map(l=>l.trim()),this.regularExpression=this.question.formElement.validation.regularExpression,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.email=this.defaultValue,this.question.answer?this.email=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}validateEmail(){this.validationFailed=!1,this.validationMessage="";const l=this.email?.trim().toLowerCase();if(this.required&&!this.email)this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1;else if(this.expectedDomains){const k=this.expectedDomains?.some(M=>l?.endsWith(M));this.validationFailed=!k,this.validationMessage="Please enter valid email address",this.question.validation=!this.validationFailed}else this.question.validation=!0}validateInput(l){this.validationService.clearInvalid(this.question.id),this.question.answer=l.target.value,this.answerChange.emit(this.question.answer),this.validateEmail()}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-mail-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:5,vars:15,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","email",1,"form-control","mb-2","height",3,"placeholder","ngModel","disabled","ngModelChange","blur","input"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,We,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(be){return M.email=be})("blur",function(){return M.validateEmail()})("input",function(be){return M.validateInput(be)}),e.k0s(),e.DNE(3,qt,2,1,"div",3),e.DNE(4,fn,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(13,gt,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.email)),e.Y8G("placeholder",M.placeholder)("ngModel",M.email)("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.email)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Ee=N(1626);let Ke=(()=>{class _{constructor(l,k){this.http=l,this.dataService=k,this.apiUrl="",this.header={},this.dataService.apiUrl$.subscribe(M=>{this.apiUrl=M})}loadCountryDetails(l,k,M,H){return this.http.get(`${this.apiUrl}/api/public/json/country?page=${k}&size=${M}&searchKey=${H}`)}processCountryDetails(l,k,M,H){const be=[];return l.forEach(St=>{const En=k&&St.flag?St.flag:"",xn=H&&St.name||"",fi=St.isd?.root||"",vs=St.isd?.suffixes||[];if(fi&&vs.length>0)vs.forEach(Sr=>{const wo=`${fi}${Sr}`;if(!k||M||H){let Nc="";H&&(Nc+=xn),M&&(Nc+=(Nc?" ":"")+wo),Nc||(Nc=wo),be.push({value:wo,label:Nc.trim(),image:En})}else be.push({value:wo,label:"",image:En})});else{const Sr=fi||St.code||"";if(!k||M||H){let wo="";H&&(wo+=xn),M&&(wo+=(wo?" ":"")+Sr),wo||(wo=Sr),be.push({value:Sr,label:wo.trim(),image:En})}else be.push({value:Sr,label:"",image:En})}}),be}static{this.\u0275fac=function(k){return new(k||_)(e.KVO(Ee.Qq),e.KVO(Ln.u))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();function jt(_,ie){if(1&_&&e.nrm(0,"div",11),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function pn(_,ie){1&_&&e.nrm(0,"span",12)}function Je(_,ie){1&_&&(e.j41(0,"span",13),e.EFF(1,"*"),e.k0s())}function $e(_,ie){if(1&_&&(e.j41(0,"div",14),e.qSk(),e.j41(1,"svg",15),e.nrm(2,"path",16)(3,"path",17)(4,"path",18),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function it(_,ie){if(1&_&&(e.j41(0,"div",7),e.DNE(1,jt,1,1,"div",8),e.DNE(2,pn,1,0,"span",9),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Je,2,0,"span",6),e.DNE(7,$e,5,1,"div",10),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const Zt=function(_){return{disable:_}};function nn(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",19)(2,"lib-dropdown",20),e.bIt("selectedItemsChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedCountry=M)})("selectedItemsChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onCountryChange())})("onDropdownScroll",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.getNextSetOfItems(M))})("onSearch",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.search(M))}),e.k0s()(),e.j41(3,"input",21),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateMobile())})("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.mobileNumber=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onMobileNumberChange())})("input",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.onInput(M))}),e.k0s(),e.bVm()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngClass",e.eq3(7,Zt,l.disableEdit)),e.R7$(1),e.Y8G("items",l.countryDetails)("multiple",!1)("selectedItems",l.selectedCountry),e.R7$(1),e.Y8G("placeholder",l.placeholder)("ngModel",l.mobileNumber)("disabled",l.disableEdit)}}function un(_,ie){if(1&_){const l=e.RV6();e.j41(0,"input",22),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateMobile())})("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.mobileNumber=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onMobileNumberChange())})("input",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.onInput(M))}),e.k0s()}if(2&_){const l=e.XpG();e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid),e.Y8G("placeholder",l.placeholder)("ngModel",l.mobileNumber)}}function Tn(_,ie){if(1&_&&(e.j41(0,"div",23),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function li(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const bn=function(_){return{"mb-4":_}};let Mi=(()=>{class _{constructor(l,k,M){this.countryService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.displayCountryCode=!0,this.displayFlag=!0,this.displayCode=!0,this.showCountryName=!0,this.beautifyNumbers=!0,this.countryWiseValidation=!0,this.countryDetails=[],this.selectedCountry=[],this.validationFailed=!1,this.validationMessage="",this.mobileNumber="",this.questionId="",this.currentPage=0,this.size=30,this.totalPages=0,this.searchKey="",this.lastPage=!1,this.isFirstPage=!1,this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement.appearance.placeholder,this.displayCountryCode=this.question.formElement.appearance.displayCountryCode,this.displayFlag=this.question.formElement.appearance.displayFlag,this.displayCode=this.question.formElement.appearance.displayCode,this.showCountryName=this.question.formElement.appearance.showCountryName,this.beautifyNumbers=this.question.formElement.appearance.beautifyNumbers,this.countryWiseValidation=this.question.formElement.validation.countryWiseValidation,this.questionId=this.question.id,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.loadCountry(this.questionId,this.currentPage,this.size,this.searchKey)}initializeAnswer(l){let k,M;[k,M]="answer"===l&&this.question?.answer?this.question.answer.split(" "):this.question.defaultValue.split(" "),this.mobileNumber=M||"",this.selectedCountry||(this.selectedCountry=[]);const H=this.countryDetails.find(be=>be.value===k);H&&this.selectedCountry.push(H)}onCountryChange(){this.validationFailed=!1,this.validationMessage="",this.updateAnswer()}onInput(l){this.validationService.clearInvalid(this.question.id);const k=l.target;/^(\d+)(-\d+)*$/.test(k.value)||(k.value=k.value.replace(/[^\d-]/g,""),k.value=k.value.split("-").filter((H,be,St)=>H||0===be||be===St.length-1).join("-")),this.mobileNumber=k.value,this.updateAnswer()}onMobileNumberChange(){}updateAnswer(){this.displayCountryCode?this.selectedCountry.length>0&&this.mobileNumber&&(this.question.answer=`${this.selectedCountry[0].value} ${this.mobileNumber}`):this.question.answer=this.mobileNumber,this.answerChange.emit(this.question.answer)}validateMobile(){this.validationFailed=!1,this.validationMessage="",this.required&&(!this.mobileNumber||this.displayCountryCode&&0===this.selectedCountry.length)?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question"):this.updateAnswer()}loadCountry(l,k,M,H){this.countryService.loadCountryDetails(this.questionId,k,M,H).subscribe(be=>{0===this.totalPages&&(this.totalPages=be.result.totalPages),this.lastPage=be.result.last,this.isFirstPage=be.result.first;let St=this.countryService.processCountryDetails(be.result.content,this.displayFlag,this.displayCode,this.showCountryName);this.countryDetails=this.currentPage>0?[...this.countryDetails,...St.filter(En=>!this.countryDetails.some(xn=>xn.value===En.value))]:[...St.filter(En=>!this.countryDetails.some(xn=>xn.value===En.value)),...this.countryDetails],this.defaultValue&&this.initializeAnswer("default"),this.question.answer&&this.initializeAnswer("answer")})}getNextSetOfItems(l){const k=l.target;this.lastPage||Math.floor(k.scrollHeight-k.scrollTop)<=k.clientHeight&&this.loadMoreData(),!this.isFirstPage&&k.scrollTop<=150&&this.loadPreviousData()}loadMoreData(){setTimeout(()=>{this.currentPage++,this.currentPage>=0&&this.loadCountry(this.questionId,this.currentPage,this.size,"")},0)}loadPreviousData(){setTimeout(()=>{this.currentPage--,this.currentPage>=0&&this.loadCountry(this.questionId,this.currentPage,this.size,"")},0)}search(l){""==l?this.loadCountry(this.questionId,this.currentPage,this.size,""):(this.countryDetails=[],this.loadCountry(this.questionId,this.currentPage,this.size,l))}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Ke),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-mobile-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:10,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group","mb-2"],[4,"ngIf","ngIfElse"],["fullWidthInput",""],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"col-xs-5","col-5","col-md-3","px-0","pe-2","ps-2",3,"ngClass"],[3,"items","multiple","selectedItems","selectedItemsChange","onDropdownScroll","onSearch"],["type","text","aria-label","Mobile Number",1,"form-control","col-xs-7","col-7","col-md-9","height","mobileField",3,"placeholder","ngModel","disabled","blur","ngModelChange","input"],["type","text","aria-label","Mobile Number",1,"form-control","col-12","height","mobileField",3,"placeholder","ngModel","blur","ngModelChange","input"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){if(1&k&&(e.j41(0,"div",0),e.DNE(1,it,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,nn,4,9,"ng-container",3),e.DNE(4,un,1,6,"ng-template",null,4,e.C5r),e.k0s(),e.DNE(6,Tn,2,1,"div",5),e.DNE(7,li,7,1,"div",6),e.k0s()),2&k){const H=e.sdS(5);e.Y8G("ngClass",e.eq3(8,bn,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.Y8G("ngIf",M.displayCountryCode)("ngIfElse",H),e.R7$(3),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.mobileNumber)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid)}},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS,oi.Ps],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.mobileField[_ngcontent-%COMP%]{border-radius:6px!important} .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:80%!important}@media (max-width: 992px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:50%!important}}@media screen and (max-width: 786px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:50%!important}}@media screen and (max-width: 576px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:39%!important}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.disable[_ngcontent-%COMP%]{pointer-events:none} .disable .dropdown .dropdown-field .input-field .dropdown_text{background:#e9ecef!important} .disable .dropdown .dropdown-field{background:#e9ecef!important}']})}}return _})();var Ps=N(6);function bs(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ds(_,ie){1&_&&e.nrm(0,"span",10)}function ps(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Ts(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ki(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,bs,1,1,"div",6),e.DNE(2,ds,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ps,2,0,"span",4),e.DNE(7,Ts,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Re(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Rt(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const oe=function(_){return{"mb-4":_}};let _e=(()=>{class _{constructor(l,k,M){this.validationService=l,this.tracker=k,this.aggregateService=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.validationFailed=!1,this.validationMessage="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.upDown=this.question.formElement.appearance.upAndDownButton,this.allowNegativeValues=this.question.formElement.appearance.allowNegativeValues,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.min=this.question.formElement.validation.min,this.max=this.question.formElement.validation.max,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredNumber=this.defaultValue,this.question.answer?this.enteredNumber=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question),this.aggregateService.setNumberField(this.rowId,this.question.id,this.question.answer)}preventNumberScroll(l){document.activeElement===l.target&&l.preventDefault()}validateNumber(){this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.enteredNumber?(this.validationFailed=!0,this.validationMessage="Please enter a valid number",this.question.validation=!1):!this.allowNegativeValues&&this.enteredNumber<0?(this.validationFailed=!0,this.validationMessage="Please enter a positive number",this.question.validation=!1):void 0!==this.min&&this.enteredNumber<this.min||void 0!==this.max&&this.enteredNumber>this.max?(this.validationFailed=!0,void 0!==this.min&&void 0!==this.max?this.validationMessage=`Please enter a valid number between ${this.min} and ${this.max}`:void 0!==this.min?this.validationMessage=`Please enter a number greater than or equal to ${this.min}`:void 0!==this.max&&(this.validationMessage=`Please enter a number less than or equal to ${this.max}`),this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question)}validateInput(l){this.validationService.clearInvalid(this.question.id),this.question.answer=l.target.value,this.aggregateService.setNumberField(this.rowId,this.question.id,l.target.value),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(l.answer,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}evaluateCondition(l,k,M){switch(k){case">":return l>Number(M);case"<":return l<Number(M);case">=":return l>=Number(M);case"<=":return l<=Number(M);case"=":return l==M;case"!=":return l!=M;default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ps.q))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-number-fields"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:5,vars:19,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","number",1,"form-control","mb-2","height",3,"placeholder","ngModel","disabled","blur","ngModelChange","input","wheel"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ki,8,5,"div",1),e.j41(2,"input",2),e.bIt("blur",function(){return M.validateNumber()})("ngModelChange",function(be){return M.enteredNumber=be})("input",function(be){return M.validateInput(be)})("wheel",function(be){return M.preventNumberScroll(be)}),e.k0s(),e.DNE(3,Re,2,1,"div",3),e.DNE(4,Rt,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(17,oe,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("hide-spin-buttons",!M.upDown)("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredNumber)),e.Y8G("placeholder",M.placeholder)("ngModel",M.enteredNumber)("disabled",M.disableEdit),e.BMQ("min",M.min)("max",M.max),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredNumber)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.Q0,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.hide-spin-buttons[_ngcontent-%COMP%]::-webkit-outer-spin-button, .hide-spin-buttons[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function et(_,ie){if(1&_&&e.nrm(0,"div",15),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Vt(_,ie){1&_&&e.nrm(0,"span",16)}function At(_,ie){1&_&&(e.j41(0,"span",17),e.EFF(1,"*"),e.k0s())}function In(_,ie){if(1&_&&(e.j41(0,"div",18),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",20)(3,"path",21)(4,"path",22),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Hn(_,ie){if(1&_&&(e.j41(0,"div",10),e.DNE(1,et,1,1,"div",11),e.DNE(2,Vt,1,0,"span",12),e.j41(3,"label",13),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,At,2,0,"span",9),e.DNE(7,In,5,1,"div",14),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("for","passwordField"+l.questionId),e.R7$(1),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function mi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",23),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.togglePasswordVisibility())}),e.nrm(1,"i",24),e.k0s()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("id","passwordEyeIcon"+l.questionId)}}function Kn(_,ie){if(1&_&&(e.j41(0,"div",25)(1,"div",26),e.nrm(2,"div",27),e.k0s()()),2&_){const l=e.XpG();e.R7$(2),e.xc7("width",l.passwordStrength+"%"),e.AVh("bg-danger",l.passwordStrength<30)("bg-warning",l.passwordStrength>=30&&l.passwordStrength<70)("bg-success",l.passwordStrength>=70)}}function ri(_,ie){if(1&_&&(e.j41(0,"div",28),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Ki(_,ie){if(1&_&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32)(4,"path",33)(5,"circle",34),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function Ls(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.toggleCnfrmPasswordVisibility())}),e.nrm(1,"i",24),e.k0s()}if(2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("id","CnfrmPasswordEyeIcon"+l.questionId)}}function la(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",35)(1,"label",36),e.EFF(2,"Confirm password"),e.k0s(),e.j41(3,"input",3),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.checkPasswordMatch())})("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.enteredCnfrmPassword=M)})("input",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.validateCnfrm(M))}),e.k0s(),e.DNE(4,Ls,2,1,"button",37),e.k0s()}if(2&_){const l=e.XpG();e.R7$(3),e.AVh("invalid",l.validatedCnfrmPassword),e.Y8G("id","cnfrmPasswordField"+l.questionId)("ngModel",l.enteredCnfrmPassword),e.R7$(1),e.Y8G("ngIf",l.viewButton)}}function er(_,ie){if(1&_&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32)(4,"path",33)(5,"circle",34),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.cnfrmValidationMessage," ")}}const os=function(_){return{"mb-4":_}};let Bs=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.allowedSpecialCharacters=[],this.validationMessage="",this.cnfrmValidationMessage="",this.validationFailed=!1,this.validatedCnfrmPassword=!1,this.enteredPassword="",this.enteredCnfrmPassword="",this.passwordStrength=0,this.questionId="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.questionId=this.question.id,this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.confirmPassword=this.question.formElement.appearance.confirmPassword,this.displayStrength=this.question.formElement.appearance.displayStrong,this.viewButton=this.question.formElement.appearance.viewButton,this.maxLength=this.question.formElement.validation.maxLength,this.minLength=this.question.formElement.validation.minLength,this.requireLowercaseLetters=this.question.formElement.validation.requireLowercaseLetters,this.requireUppercaseLetters=this.question.formElement.validation.requireUppercaseLetters,this.requireNumbers=this.question.formElement.validation.requireNumbers,this.requireSpecialCharacters=this.question.formElement.validation.requireSpecialCharacters,this.requireSpecialCharacters&&(this.allowedSpecialCharacters=this.question.formElement.validation.allowedSpecialCharacters.split(",").map(l=>l.trim())),this.enteredPassword=this.question?.answer}togglePasswordVisibility(){let l=document.getElementById("passwordField"+this.questionId),k=document.getElementById("passwordEyeIcon"+this.questionId);"password"===l.type?(l.type="text",k.classList.remove("bi-eye-fill"),k.classList.add("bi-eye-slash-fill")):(l.type="password",k.classList.remove("bi-eye-slash-fill"),k.classList.add("bi-eye-fill"))}toggleCnfrmPasswordVisibility(){let l=document.getElementById("cnfrmPasswordField"+this.questionId),k=document.getElementById("CnfrmPasswordEyeIcon"+this.questionId);"password"===l.type?(l.type="text",k.classList.remove("bi-eye-fill"),k.classList.add("bi-eye-slash-fill")):(l.type="password",k.classList.remove("bi-eye-slash-fill"),k.classList.add("bi-eye-fill"))}checkPasswordMatch(){this.validationService.clearInvalid(this.question.id),this.validatedCnfrmPassword=!1,this.cnfrmValidationMessage="",this.required&&this.confirmPassword&&!this.enteredCnfrmPassword?(this.validatedCnfrmPassword=!0,this.cnfrmValidationMessage="Please enter a valid password",this.question.validation=!1):this.enteredPassword!=this.enteredCnfrmPassword&&this.confirmPassword?(this.validatedCnfrmPassword=!0,this.cnfrmValidationMessage="Passwords do not match",this.question.validation=!1):this.question.validation=!0,this.validatePassword()}validatePassword(){if(this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.enteredPassword)this.validationFailed=!0,this.validationMessage="Please enter a valid password",this.question.validation=!1;else if(this.requireLowercaseLetters||this.requireUppercaseLetters||this.requireNumbers||this.requireSpecialCharacters||this.minLength||this.maxLength){const l=/[a-z]/,k=/[A-Z]/,M=/\d/,H=new RegExp(`[${this.allowedSpecialCharacters.join("")}]`),be=new RegExp(`[^a-zA-Z0-9${this.allowedSpecialCharacters.join("")}]`);let St=l.test(this.enteredPassword),En=k.test(this.enteredPassword),xn=M.test(this.enteredPassword),fi=H.test(this.enteredPassword),vs=be.test(this.enteredPassword);!St&&this.requireLowercaseLetters?(this.validationFailed=!0,this.validationMessage="Password must contain at least one lowercase letter",this.question.validation=!1):!En&&this.requireUppercaseLetters?(this.validationFailed=!0,this.validationMessage="Password must contain at least one uppercase letter",this.question.validation=!1):!xn&&this.requireNumbers?(this.validationFailed=!0,this.validationMessage="Password must contain at least one number",this.question.validation=!1):this.enteredPassword.length<this.minLength?(this.validationFailed=!0,this.validationMessage=`Password must contain at least ${this.minLength} characters`,this.question.validation=!1):this.enteredPassword.length>this.maxLength?(this.validationFailed=!0,this.validationMessage=`Password must be less than ${this.maxLength} characters`,this.question.validation=!1):!fi&&this.allowedSpecialCharacters.length>0?(this.validationFailed=!0,this.validationMessage=`Password must contain at least one special character from ${this.allowedSpecialCharacters}`,this.question.validation=!1):vs&&this.allowedSpecialCharacters.length>0?(this.validationFailed=!0,this.validationMessage="Password contains an invalid special character",this.question.validation=!1):this.confirmPassword?this.checkPasswordMatch():this.question.validation=!0}else this.passwordStrength=this.calculateStrength(this.enteredPassword);this.passwordStrength=this.calculateStrength(this.enteredPassword)}validateInput(l){const k=l.target.value.replace(/\s+/g,"");this.enteredPassword=k,this.question.answer=k,this.validatePassword(),this.answerChange.emit(this.question.answer)}validateCnfrm(l){const k=l.target.value.replace(/\s+/g,"");this.enteredCnfrmPassword=k,this.checkPasswordMatch()}calculateStrength(l){return Math.min(100,l.length/12*100)+(/[a-z]/.test(l)?20:0)+(/[A-Z]/.test(l)?20:0)+(/\d/.test(l)?20:0)+(/[!@#$%^&*(),.?":{}|<>]/.test(l)?20:0)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-password-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:10,vars:18,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"passwordWrapper"],["type","password",1,"form-control","mb-2","height",3,"id","ngModel","blur","ngModelChange","input"],["id","togglePasswordBtn","class","toggle-password-btn",3,"click",4,"ngIf"],["class","password-strength-meter",4,"ngIf"],["class","error-message",4,"ngIf"],["class","text-danger mb-2",4,"ngIf"],["class","cnfrmPasswordWrapper",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],[3,"for"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","togglePasswordBtn",1,"toggle-password-btn",3,"click"],[1,"bi","bi-eye-fill",3,"id"],[1,"password-strength-meter"],[1,"progress"],["role","progressbar",1,"progress-bar"],[1,"error-message"],[1,"text-danger","mb-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"],[1,"cnfrmPasswordWrapper"],["for","'cnfrmPasswordField'+questionId"],["id","toggleCnfrmPasswordBtn","class","toggle-password-btn",3,"click",4,"ngIf"],["id","toggleCnfrmPasswordBtn",1,"toggle-password-btn",3,"click"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Hn,8,6,"div",1),e.j41(2,"div",2)(3,"input",3),e.bIt("blur",function(){return M.validatePassword()})("ngModelChange",function(be){return M.enteredPassword=be})("input",function(be){return M.validateInput(be)}),e.k0s(),e.DNE(4,mi,2,1,"button",4),e.k0s(),e.DNE(5,Kn,3,8,"div",5),e.DNE(6,ri,2,1,"div",6),e.DNE(7,Ki,7,1,"div",7),e.DNE(8,la,5,5,"div",8),e.DNE(9,er,7,1,"div",9),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(16,os,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredPassword)),e.Y8G("id","passwordField"+M.questionId)("ngModel",M.enteredPassword),e.R7$(1),e.Y8G("ngIf",M.viewButton),e.R7$(1),e.Y8G("ngIf",M.displayStrength),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredPassword)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid),e.R7$(1),e.Y8G("ngIf",M.confirmPassword),e.R7$(1),e.Y8G("ngIf",M.validatedCnfrmPassword))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-control[_ngcontent-%COMP%], .password-input-wrapper[_ngcontent-%COMP%]{position:relative}.password-input[_ngcontent-%COMP%]{padding-right:40px}.toggle-password-btn[_ngcontent-%COMP%]{position:absolute;top:70%;right:15px;transform:translateY(-50%);border:none;background-color:transparent;cursor:pointer}.toggle-password-btn[_ngcontent-%COMP%]:focus{outline:none}.passwordWrapper[_ngcontent-%COMP%], .cnfrmPasswordWrapper[_ngcontent-%COMP%]{position:relative}.password-strength-meter[_ngcontent-%COMP%]{width:40%;margin-top:10px;margin-left:auto}.progress[_ngcontent-%COMP%]{height:10px}.progress-bar[_ngcontent-%COMP%]{transition:width .3s ease-in-out}.bi[_ngcontent-%COMP%]{font-size:20px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function Vs(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Ja(_,ie){1&_&&e.nrm(0,"span",11)}function wn(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Ys(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ms(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,Vs,1,1,"div",7),e.DNE(2,Ja,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,wn,2,0,"span",5),e.DNE(7,Ys,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function mo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",18)(1,"input",19),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateInput())})("ngModelChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.selectedOption=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateInput())}),e.k0s(),e.j41(2,"label",20),e.EFF(3),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG();e.R7$(1),e.xc7("accent-color",k.color),e.Y8G("name",k.question.id+"-"+k.rowId)("id",l.value)("value",l.label+"|"+l.value)("ngModel",k.selectedOption),e.BMQ("data-state",l.label+"|"+l.value)("data-value",k.selectedOption==l.label+"|"+l.value),e.R7$(1),e.Y8G("for",l.value),e.R7$(1),e.JRh(l.label)}}function ca(_,ie){if(1&_&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function tr(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",22),e.nrm(2,"path",23)(3,"path",24)(4,"path",25)(5,"circle",26),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const go=function(_){return{"mb-4":_}};let Po=(()=>{class _{constructor(l,k,M){this.formService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.rowId=0,this.count=0,this.required=!1,this.hint="",this.color="",this.minimumSelection=0,this.maximumSelection=0,this.optionType="",this.lookupTable="",this.customOptions=[],this.database={},this.api={},this.apiOptions=[],this.validationMessage="",this.displayOptionsInColumn=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.color=this.question.formElement.appearance.color,this.displayOptionsInColumn=this.question.formElement.appearance.displayOptionsInColumn,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions.map(l=>({value:l.value,label:l.value})),this.initializeOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}initializeOption(){if(this.question.answer){let k;switch(typeof this.customOptions[0]?.value){case"number":k=Number(this.question.answer);break;case"boolean":k="true"===this.question.answer;break;case"string":k=String(this.question.answer);break;default:k=this.question.answer}this.selectedOption=k}}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.initializeOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.initializeOption()):console.error("Error fetching data from database:",k.message)},k=>{console.error("HTTP Error:",k)})}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k.field,valueSource:k?.valueSource,condition:k.condition,value:k.inputValue,logicalOperator:k.logicalOperator}))}}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map(H=>({value:H[l.valueField],label:H[l.labelField]})),this.initializeOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,H)=>M&&M[H],l)}validateInput(){this.question.answer=this.selectedOption,this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.selectedOption?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(this.selectedOption,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}evaluateCondition(l,k,M){let H=l;"string"==typeof l&&l.includes("|")&&(H=l.split("|")[0]);const be=Array.isArray(M)?M.map(St=>St.toString()):M;switch(k){case"!=":return H!=be;case"=":return H==be;case"IN":return be.includes(H);case"NOT IN":return!be.includes(H);default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-radio-button-fields"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:6,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-3",4,"ngIf"],[1,"checkboxField-container"],["class","checkboxField",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-3"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"checkboxField"],["type","radio",1,"formCheckbox","mb-2",3,"name","id","value","ngModel","blur","ngModelChange"],[1,"formCheckLabel","ms-2","me-2","mb-2",3,"for"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ms,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,mo,4,10,"div",3),e.k0s(),e.DNE(4,ca,2,1,"div",4),e.DNE(5,tr,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,go,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("two-column",M.displayOptionsInColumn),e.R7$(1),e.Y8G("ngForOf",M.customOptions),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.selectedOption)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT,vt.me,vt.Fm,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.formCheckbox[_ngcontent-%COMP%], .formCheckLabel[_ngcontent-%COMP%]{cursor:pointer}.formCheckbox[_ngcontent-%COMP%]{width:15px;height:15px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.checkboxField-container[_ngcontent-%COMP%]{display:block}.checkboxField-container.two-column[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}']})}}return _})();var Ko=N(8466);function To(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function zs(_,ie){1&_&&e.nrm(0,"span",10)}function bi(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function ys(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Yi(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,To,1,1,"div",6),e.DNE(2,zs,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,bi,2,0,"span",4),e.DNE(7,ys,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Eo(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Cs(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const xr=function(_){return{"mb-4":_}},Rs=function(_,ie){return{inSubform:_,disable:ie}};let no=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.inSubForm=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.limitedCharacters=!1,this.counts=0,this.htmlContent="",this.validationFailed=!1,this.validationMessage="",this.elementId="",this.defaultValue="",this.disableEdit=!1}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.counts=this.question.formElement.validation.count,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.limitedCharacters&&(this.characterCount=this.question.formElement.validation.count),this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.htmlContent=this.defaultValue,this.question.answer?this.htmlContent=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}editorCreated(l){this.editor=l,this.updateEditorContent(this.htmlContent),this.editor.on("selection-change",k=>{null===k&&this.validateEditor()})}updateEditorContent(l){if(this.editor){const k=this.editor.clipboard.convert(l);this.editor.setContents(k,"silent")}this.htmlContent=l}validateEditor(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",!this.htmlContent&&this.required&&(this.validationFailed=!0,this.validationMessage="This is a required question")}updateAnswer(l){this.question.answer=l,this.validationService.clearInvalid(this.question.id),this.htmlContent?.length>=this.characterCount&&(this.htmlContent=this.htmlContent.substring(0,this.characterCount)),this.question.answer=this.htmlContent,this.validateEditor(),this.answerChange.emit(this.question.answer)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-rich-text-editor-fields"]],inputs:{question:"question",inLine:"inLine",inSubForm:"inSubForm"},outputs:{answerChange:"answerChange"},decls:5,vars:14,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["placeholder","",1,"editor",3,"ngModel","ngClass","disabled","ngModelChange","onEditorCreated","blur"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Yi,8,5,"div",1),e.j41(2,"quill-editor",2),e.bIt("ngModelChange",function(be){return M.htmlContent=be})("ngModelChange",function(be){return M.updateAnswer(be)})("onEditorCreated",function(be){return M.editorCreated(be)})("blur",function(){return M.validateEditor()}),e.k0s(),e.DNE(3,Eo,2,1,"div",3),e.DNE(4,Cs,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,xr,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngModel",M.htmlContent)("ngClass",e.l_i(11,Rs,M.inSubForm&&!M.disableEdit,M.disableEdit))("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.htmlContent)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.BC,vt.vS,Ko.i9],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.editor[_ngcontent-%COMP%]{width:100%} .ql-container{min-height:150px}.inSubform[_ngcontent-%COMP%]{background:#fff!important}.disable[_ngcontent-%COMP%]{background:#e9ecef}']})}}return _})();function Lo(_,ie){if(1&_&&e.nrm(0,"div",14),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Hr(_,ie){1&_&&e.nrm(0,"span",15)}function Vi(_,ie){1&_&&(e.j41(0,"span",16),e.EFF(1,"*"),e.k0s())}function Rn(_,ie){if(1&_&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ei(_,ie){if(1&_&&(e.j41(0,"div",9),e.DNE(1,Lo,1,1,"div",10),e.DNE(2,Hr,1,0,"span",11),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Vi,2,0,"span",12),e.DNE(7,Rn,5,1,"div",13),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Qi(_,ie){if(1&_&&(e.j41(0,"th",22),e.EFF(1),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.SpI(" ",l.column," ")}}function qs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",25)(1,"input",26),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG().index,be=e.XpG();return e.Njj(be.selectedOptions[H]=M)})("ngModelChange",function(){const H=e.eBV(l).$implicit,be=e.XpG(),St=be.index,En=be.$implicit,xn=e.XpG();return e.Njj(xn.onSelectionChange(St,En.label+"_"+H.column))}),e.k0s()()}if(2&_){const l=ie.$implicit,k=ie.index,M=e.XpG(),H=M.index,be=M.$implicit,St=e.XpG();e.R7$(1),e.xc7("accent-color",St.selectionColor),e.Y8G("name","radio-"+H+"-"+k+"-"+St.rowId)("value",be.label+"_"+l.column)("ngModel",St.selectedOptions[H]),e.BMQ("id","radio-"+H+"-"+k+"-"+St.rowId)}}function io(_,ie){if(1&_&&(e.j41(0,"tr")(1,"td",23),e.EFF(2),e.k0s(),e.DNE(3,qs,2,6,"td",24),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG();e.R7$(2),e.JRh(l.label),e.R7$(1),e.Y8G("ngForOf",k.selectionMatrixColumn)}}function so(_,ie){if(1&_&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Qo(_,ie){if(1&_&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"circle",33),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Zi=function(_){return{"mb-4":_}},nr=function(_){return{"labelBorder-rtl":_}};let oo=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.acceptedLanguage="",this.rowId=0,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionMatrixColumn=[],this.selectionMatrixLabel=[],this.selectedOptions=[],this.validationMessage="",this.elementId="",this.selectionColor="",this.selectionColorRequired=!1}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionColorRequired=this.question.formElement.appearance.selectionColorRequired,this.selectionColorRequired&&(this.selectionColor=this.question.formElement.appearance.selectionColor),(this.question?.formElement?.selectionMatrixLabel||this.question?.element?.formElement?.selectionMatrixColumn)&&(this.selectionMatrixLabel=(this.question?.formElement?.selectionMatrixLabel||[]).flatMap(l=>{const k=this.isParsableJSON(l)?JSON.parse(l):l;return Array.isArray(k)?k.map(M=>({label:M})):{label:k}}).filter(l=>""!==l.label),this.selectionMatrixColumn=(this.question?.formElement?.selectionMatrixColumn||[]).flatMap(l=>{const k=this.isParsableJSON(l)?JSON.parse(l):l;return Array.isArray(k)?k.map(M=>({column:M})):{column:k}}).filter(l=>""!==l.column)),this.minSelectionValue=this.question?.formElement?.validation?.minSelectionValue,this.question.answer&&(this.selectedOptions=this.question.answer)}isParsableJSON(l){if("string"!=typeof l)return!1;try{return JSON.parse(l),!0}catch{return!1}}onSelectionChange(l,k){this.selectedOptions[l]=k,this.validateInput()}validateInput(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.question.answer=this.selectedOptions,this.required&&0==this.selectedOptions.length?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.selectedOptions.length<this.minSelectionValue?(this.validationFailed=!0,this.validationMessage=`selected options must be greater than ${this.minSelectionValue}`,this.question.validation=!1):this.question.validation=!0,this.answerChange.emit(this.question.answer)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-selection-matrix-fields"]],inputs:{question:"question",inLine:"inLine",acceptedLanguage:"acceptedLanguage",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:12,vars:13,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"ngClass"],[1,"selectionMatrix"],["class","text-center table-cell-wrap",4,"ngFor","ngForOf"],[1,"table-group-divider"],[4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger mt-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"text-center","table-cell-wrap"],[1,"table-cell-wrap"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center"],["type","radio",1,"selectionRadio",3,"name","value","ngModel","ngModelChange"],[1,"error-message"],[1,"text-danger","mt-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ei,8,5,"div",1),e.j41(2,"div",2)(3,"table",3)(4,"thead")(5,"tr"),e.nrm(6,"th"),e.DNE(7,Qi,2,1,"th",4),e.k0s()(),e.j41(8,"tbody",5),e.DNE(9,io,4,2,"tr",6),e.k0s()()(),e.DNE(10,so,2,1,"div",7),e.DNE(11,Qo,7,1,"div",8),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,Zi,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngClass",e.eq3(11,nr,"ara"===M.acceptedLanguage)),e.R7$(5),e.Y8G("ngForOf",M.selectionMatrixColumn),e.R7$(2),e.Y8G("ngForOf",M.selectionMatrixLabel),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0==M.selectedOptions.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT,vt.me,vt.Fm,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.selectionMatrix[_ngcontent-%COMP%]{border-collapse:collapse;width:100%}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .selectionMatrix[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:8px}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:2px solid black}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, .selectionMatrix[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, .labelBorder-rtl[_ngcontent-%COMP%] .selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{border-right:1px solid #C9C8C8}.table-group-divider[_ngcontent-%COMP%]{border-top:1px solid #000000}.selectionRadio[_ngcontent-%COMP%]{cursor:pointer;width:18px;height:18px}.table-cell-wrap[_ngcontent-%COMP%]{word-wrap:break-word;white-space:normal;max-width:200px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function ti(_,ie){if(1&_&&e.nrm(0,"div",7),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Yr(_,ie){1&_&&e.nrm(0,"span",8)}function Aa(_,ie){1&_&&(e.j41(0,"span",9),e.EFF(1,"*"),e.k0s())}function Ir(_,ie){if(1&_&&(e.j41(0,"div",10),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13)(4,"path",14),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ri(_,ie){if(1&_&&(e.j41(0,"div",2),e.DNE(1,ti,1,1,"div",3),e.DNE(2,Yr,1,0,"span",4),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Aa,2,0,"span",5),e.DNE(7,Ir,5,1,"div",6),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const zr=function(_){return{"mb-4":_}};let rs=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.count=0,this.required=!1,this.hint="",this.maxFileSize=0,this.minFileSize=0}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.maxFileSize=this.question.formElement.validation.maxFileSize,this.minFileSize=this.question.formElement.validation.minFileSize}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-signature-fields"]],inputs:{question:"question",inLine:"inLine"},decls:2,vars:5,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ri,8,5,"div",1),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(3,zr,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine))},dependencies:[h.YU,h.bT],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var So=N(3881);function Zo(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Or(_,ie){1&_&&e.nrm(0,"span",14)}function Es(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function _o(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ur(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,Zo,1,1,"div",9),e.DNE(2,Or,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Es,2,0,"span",11),e.DNE(7,_o,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const da=function(_){return{"mb-4":_}},gi=function(_){return{"--mdc-slider-active-track-color":_}};let js=(()=>{class _{constructor(l,k){this.renderer=l,this.el=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.minValue=0,this.maxValue=0,this.stepValue=0,this.changeSliderColor=!1,this.sliderColor="",this.validationFailed=!1,this.validationMessage="",this.selectedValue=0}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.minValue=this.question.formElement.appearance.minValue,this.maxValue=this.question.formElement.appearance.maxValue,this.stepValue=this.question.formElement.appearance.stepValue,this.changeSliderColor=this.question.formElement.appearance.changeSliderColor,this.changeSliderColor&&(this.sliderColor=this.question.formElement.appearance.sliderColor),this.selectedValue=this.question.answer&&Object.keys(this.question.answer).length>0?this.question?.answer:this.minValue}validateInput(l){this.question.answer=String(this.selectedValue),this.question.validation=!0,this.answerChange.emit(this.question.answer)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(e.sFG),e.rXU(e.aKT))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-slider-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:9,vars:13,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"sliderRow"],[1,"sliderLeft"],[3,"min","max","step","ngStyle"],["matSliderThumb","",3,"ngModel","ngModelChange","input"],[1,"sliderRight"],[1,"selected-count","font-weight-bold"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ur,8,5,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"mat-slider",4)(5,"input",5),e.bIt("ngModelChange",function(be){return M.selectedValue=be})("input",function(be){return M.validateInput(be)}),e.k0s()()(),e.j41(6,"div",6)(7,"label",7),e.EFF(8),e.k0s()()()()),2&k&&(e.Y8G("ngClass",e.eq3(9,da,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(3),e.Y8G("min",M.minValue)("max",M.maxValue)("step",M.stepValue)("ngStyle",e.eq3(11,gi,M.changeSliderColor?M.sliderColor:"")),e.R7$(1),e.Y8G("ngModel",M.selectedValue),e.R7$(3),e.JRh(M.selectedValue))},dependencies:[h.YU,h.bT,h.B3,vt.me,vt.BC,vt.vS,So.IV,So.OU],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.selected-count[_ngcontent-%COMP%]{font-size:.8rem;color:#000}mat-slider[_ngcontent-%COMP%]{width:100%}.mat-mdc-slider.mat-primary[_ngcontent-%COMP%]{--mdc-slider-handle-color: #fcfcfc;--mdc-slider-handle-width: 15px;--mdc-slider-handle-height: 15px;--mat-mdc-slider-focus-ripple-color: none;--mat-mdc-slider-hover-ripple-color: none;--mdc-slider-focus-handle-color: #fcfcfc;--mdc-slider-inactive-track-color: #9e9d9d}.mat-mdc-slider[_ngcontent-%COMP%] .mdc-slider__thumb-knob[_ngcontent-%COMP%]{outline:1px solid #ff0000!important}.mat-slider-thumb[_ngcontent-%COMP%]{background-color:none!important;border:none!important;box-shadow:none;outline:none}.sliderRow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px;width:100%}.sliderLeft[_ngcontent-%COMP%]{flex:1}.sliderRight[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function Rr(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function hr(_,ie){1&_&&e.nrm(0,"span",10)}function ro(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function ws(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Bo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",3),e.DNE(1,Rr,1,1,"div",4),e.DNE(2,hr,1,0,"span",5),e.j41(3,"label",6),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.preview())}),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ro,2,0,"span",7),e.DNE(7,ws,5,1,"div",8),e.k0s()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function ir(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.closeModal())}),e.EFF(3,"\xd7"),e.k0s(),e.j41(4,"div",20),e.nrm(5,"img",21),e.k0s()()()}if(2&_){const l=e.XpG();e.R7$(5),e.Y8G("src",l.imgUrl,e.B4B)}}const Ss=function(_){return{"mb-4":_}};let qr=(()=>{class _{constructor(l,k,M){this.formService=l,this.http=k,this.dataService=M,this.question={},this.inLine=!1,this.count=0,this.required=!1,this.hint="",this.apiUrl="",this.header={},this.visible=!1,this.dataService.apiUrl$.subscribe(H=>{this.apiUrl=H})}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.fileDataUrl=this.question.formElement.termsAndConditionType.fileUrl}preview(){const M={headers:new Ee.Lr({"Content-Type":this.header.contentType,"auth-user":this.header.authUser}),body:{}},St=`?url=${encodeURIComponent(this.fileDataUrl)}`;return this.imgUrl=this.apiUrl+`/api/cdn/preview${St}`,this.visible=!0,this.http.get(this.apiUrl+`/api/cdn/preview${St}`,M)}closeModal(){this.visible=!1}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(Ee.Qq),e.rXU(Ln.u))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-terms-and-condition-fields"]],inputs:{question:"question",inLine:"inLine"},decls:3,vars:6,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],["class","modal1",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],[3,"click"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"modal1"],[1,"modal-content1"],[1,"close",3,"click"],[1,"imgContiner"],["alt","Image",3,"src"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Bo,8,5,"div",1),e.DNE(2,ir,6,1,"div",2),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(4,Ss,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngIf",M.visible))},dependencies:[h.YU,h.bT],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}label[_ngcontent-%COMP%]{color:#084fff}.modal1[_ngcontent-%COMP%]{display:flex;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:#000;background-color:#0006;align-items:center}.modal-content1[_ngcontent-%COMP%]{background-color:#fefefe;margin:15% auto;padding:20px;border:1px solid #888;width:80%;max-width:877px}.close[_ngcontent-%COMP%]{color:#aaa;float:right;font-size:28px;font-weight:700;justify-content:flex-end;display:flex;opacity:1}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer}.imgContiner[_ngcontent-%COMP%]{height:500px;overflow-y:auto}.imgContiner[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:100%}div[_ngcontent-%COMP%]::-webkit-scrollbar, main[_ngcontent-%COMP%]::-webkit-scrollbar, ul[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px;height:8px;visibility:hidden}div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, main[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, ul[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--scrollBarThumbColor);border-radius:8px;visibility:hidden}div[_ngcontent-%COMP%]:hover::-webkit-scrollbar, main[_ngcontent-%COMP%]:hover::-webkit-scrollbar, ul[_ngcontent-%COMP%]:hover::-webkit-scrollbar{visibility:unset}div[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb, main[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb, ul[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{visibility:unset}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();const Ns=["textarea"];function zi(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function fr(_,ie){1&_&&e.nrm(0,"span",11)}function Vo(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Xr(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ti(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,zi,1,1,"div",7),e.DNE(2,fr,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Vo,2,0,"span",5),e.DNE(7,Xr,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function ua(_,ie){if(1&_&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function cl(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",20)(3,"path",21)(4,"path",22)(5,"circle",23),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Ma=function(_){return{"mb-4":_}},Rl=function(_){return{"no-scroll":_}};let sr=(()=>{class _{ngOnInit(){this.valueAssigned()}constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.validationFailed=!1,this.validationMessage="",this.enteredText="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngAfterViewInit(){this.textarea?.nativeElement&&this.calculateMaxHeight(),this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredText=this.defaultValue,this.limitedCharacters&&(this.characterCount=this.question.formElement.validation.count),this.question.answer?this.enteredText=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}calculateMaxHeight(){const l=this.textarea.nativeElement,k=window.getComputedStyle(l);this.lineHeight=parseFloat(k.lineHeight);const M=parseFloat(k.paddingTop)||0,H=parseFloat(k.paddingBottom)||0,be=parseFloat(k.borderTopWidth)||0,St=parseFloat(k.borderBottomWidth)||0;this.maxHeight=this.lineHeight*this.numberOfRows+M+H+be+St,l.style.height=`${this.maxHeight}px`}validateInput(l){const k=l.target;for(;k.scrollHeight>this.maxHeight;)k.value=k.value.slice(0,-1);this.question.answer=k.value,this.answerChange.emit(this.question.answer),this.validateTextarea()}validateTextarea(){this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",!this.enteredText&&this.required?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-text-area-fields"]],viewQuery:function(k,M){if(1&k&&e.GBs(Ns,5),2&k){let H;e.mGM(H=e.lsd())&&(M.textarea=H.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:6,vars:19,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["wrap","hard",1,"form-control","mb-2",3,"ngClass","rows","ngModel","maxlength","disabled","input","blur","ngModelChange"],["textarea",""],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ti,8,5,"div",1),e.j41(2,"textarea",2,3),e.bIt("input",function(be){return M.validateInput(be)})("blur",function(){return M.validateTextarea()})("ngModelChange",function(be){return M.enteredText=be}),e.k0s(),e.DNE(4,ua,2,1,"div",4),e.DNE(5,cl,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(15,Ma,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredText)),e.Y8G("ngClass",e.eq3(17,Rl,M.numberOfRows))("rows",M.numberOfRows)("ngModel",M.enteredText)("maxlength",M.characterCount)("disabled",M.disableEdit),e.R7$(2),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredText)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.tU,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.no-scroll[_ngcontent-%COMP%]{overflow:hidden!important;resize:none;line-height:1.5;padding:5px 10px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function J(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ee(_,ie){1&_&&e.nrm(0,"span",10)}function U(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Ce(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ze(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,J,1,1,"div",6),e.DNE(2,ee,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,U,2,0,"span",4),e.DNE(7,Ce,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Yn(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function _i(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const wr=function(_){return{"mb-4":_}};let Nr=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.inCard=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.placeholder="",this.defaultValue="",this.disableEdit=!1,this.validationType="",this.validation="",this.enteredText="",this.validationFailed=!1,this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question?.count,this.required=this.question?.required,this.hint=this.question?.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredText=this.defaultValue,this.validationType=this.question.formElement.validation?.validationType,"CUSTOM_VALIDATION"==this.validationType?this.validation=this.question.formElement.validation?.validation:"REGULAR_EXPRESSION"==this.validationType&&(this.regex=this.question.formElement.validation?.regex),null!=this.question.answer&&("string"==typeof this.question.answer&&""!==this.question.answer.trim()||Array.isArray(this.question.answer)&&this.question.answer.length>0||"object"==typeof this.question.answer&&Object.keys(this.question.answer).length>0)?this.enteredText=this.question.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}validatetextField(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.enteredText?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question)}validateInput(l){this.validationService.clearInvalid(this.question.id);let k=l.target.value;"Numbers only"==this.validation?l.target.value=k?.replace(/\D/g,""):"Alphanumeric"==this.validation?l.target.value=k?.replace(/[^a-zA-Z0-9]/g,""):"REGULAR_EXPRESSION"==this.validationType&&this.regex&&(l.target.value=new RegExp(this.regex).test(k)?k:k.slice(0,-1)),this.question.answer=l.target.value,this.answerChange.emit(l.target.value),this.validatetextField(),!this.inLine&&!this.inCard&&setTimeout(()=>{const M=document.getElementById(this.question.id);M&&M.focus()})}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(this.enteredText,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}evaluateCondition(l,k,M){switch(k){case"!=":return l!=M;case"=":return l==M;case"LIKE":return l.includes(M);case"NOT LIKE":return!l.includes(M);case"BEGIN WITH":return l.startsWith(M);case"END WITH":return l.endsWith(M);default:return!1}}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-text-fields"]],inputs:{question:"question",inLine:"inLine",inCard:"inCard"},outputs:{answerChange:"answerChange"},decls:5,vars:16,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","text",1,"form-control","mb-2","height",3,"placeholder","ngModel","id","disabled","ngModelChange","blur","input"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ze,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(be){return M.enteredText=be})("blur",function(){return M.validatetextField()})("input",function(be){return M.validateInput(be)}),e.k0s(),e.DNE(3,Yn,2,1,"div",3),e.DNE(4,_i,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(14,wr,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredText)),e.Y8G("placeholder",M.placeholder)("ngModel",M.enteredText)("id",M.question.id)("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredText)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).bold{font-weight:700}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).underline{text-decoration:underline}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).italics{font-style:italic}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function dl(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function vc(_,ie){1&_&&e.nrm(0,"span",14)}function bc(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function ul(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function el(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,dl,1,1,"div",9),e.DNE(2,vc,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,bc,2,0,"span",11),e.DNE(7,ul,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const Ql=function(_){return{"mb-4":_}},yc=function(_,ie){return{"direction-rtl":_,"direction-ltr":ie}},hl=function(_){return{"background-color":_}};let ha=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.acceptedLanguage="",this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.labelOnValue="",this.labelOffValue="",this.labelOnColor="",this.labelOffColor="",this.toggleBackgroundColor="",this.selectedValue=""}ngOnInit(){this.valueAssigned()}getDirectionClass(){return"ara"===this.acceptedLanguage?"direction-rtl":"direction-ltr"}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.labelOnValue=this.question.formElement.appearance.labelOnValue,this.labelOffValue=this.question.formElement.appearance.labelOffValue,this.labelOnColor=this.question.formElement.appearance.labelOnColor,this.labelOffColor=this.question.formElement.appearance.labelOffColor,this.question.answer||(this.question.answer=this.labelOffValue,this.question.validation=!0,this.selectedValue=this.labelOffValue,this.toggleBackgroundColor=this.labelOffColor),this.question.answer&&(this.question.answer===this.labelOnValue?(this.selectedValue=this.labelOnValue,this.toggleBackgroundColor=this.labelOnColor):(this.selectedValue=this.labelOffValue,this.toggleBackgroundColor=this.labelOffColor),this.question.validation=!0)}toggleSliderColor(l){let k=l.target.checked;this.question.answer=k?this.labelOnValue:this.labelOffValue,this.question.validation=!0,this.selectedValue=this.question.answer,this.toggleBackgroundColor=k?this.question.formElement.appearance.labelOnColor:this.question.formElement.appearance.labelOffColor,this.answerChange.emit(this.question.answer)}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-toggle-switch-fields"]],inputs:{question:"question",inLine:"inLine",acceptedLanguage:"acceptedLanguage"},outputs:{answerChange:"answerChange"},decls:10,vars:18,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"mt-2"],[1,"switch",3,"ngClass"],["type","checkbox","id","togBtn",3,"checked","change"],[1,"slider","round",3,"ngClass","ngStyle"],[1,"on","action-btn-text"],[1,"off","action-btn-text"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,el,8,5,"div",1),e.j41(2,"div",2)(3,"label",3)(4,"input",4),e.bIt("change",function(be){return M.toggleSliderColor(be)}),e.k0s(),e.j41(5,"div",5)(6,"span",6),e.EFF(7),e.k0s(),e.j41(8,"span",7),e.EFF(9),e.k0s()()()()()),2&k&&(e.Y8G("ngClass",e.eq3(11,Ql,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.Y8G("ngClass",e.l_i(13,yc,"ara"===M.acceptedLanguage,"ara"!==M.acceptedLanguage)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("checked",M.selectedValue===M.labelOnValue),e.BMQ("data-state",M.selectedValue),e.R7$(1),e.Y8G("ngClass",M.getDirectionClass())("ngStyle",e.eq3(16,hl,M.toggleBackgroundColor)),e.R7$(2),e.JRh(M.labelOnValue),e.R7$(2),e.JRh(M.labelOffValue))},dependencies:[h.YU,h.bT,h.B3],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:auto;height:34px;min-width:120px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#00c48c}input[_ngcontent-%COMP%]:not(:checked) + .slider[_ngcontent-%COMP%]{background-color:#00c48c}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}.direction-rtl[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(-86px)}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(86px)}.on[_ngcontent-%COMP%]{display:none}.on[_ngcontent-%COMP%], .off[_ngcontent-%COMP%]{color:#fff;position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;font-size:13px;font-weight:500}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .on[_ngcontent-%COMP%]{display:block}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{display:none}.slider.round[_ngcontent-%COMP%]{border-radius:28px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.direction-rtl[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{left:59px;right:4px}.direction-ltr[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{left:4px;right:59px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function jo(_,ie){if(1&_&&e.nrm(0,"div",12),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Go(_,ie){1&_&&e.nrm(0,"span",13)}function pr(_,ie){1&_&&(e.j41(0,"span",14),e.EFF(1,"*"),e.k0s())}function Nl(_,ie){if(1&_&&(e.j41(0,"div",15),e.qSk(),e.j41(1,"svg",16),e.nrm(2,"path",17)(3,"path",18)(4,"path",19),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function vo(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,jo,1,1,"div",9),e.DNE(2,Go,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,pr,2,0,"span",7),e.DNE(7,Nl,5,1,"div",11),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Wr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.handleClick())}),e.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25),e.k0s()()}}function $o(_,ie){if(1&_&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Pa(_,ie){if(1&_&&(e.j41(0,"div",14),e.qSk(),e.j41(1,"svg",27),e.nrm(2,"path",28)(3,"path",29)(4,"path",30)(5,"circle",31),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const fl=function(_){return{"mb-4":_}};let or=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.enteredUrl="",this.validationFailed=!1,this.validationMessage="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}handleClick(){let l=document.getElementById("textField").value.trim();/^https?:\/\//i.test(l)||(l="http://"+l),window.open(l,"_blank")}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement.appearance.placeholder,this.showPreviewButton=this.question.formElement.appearance.showPreviewButton,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredUrl=this.defaultValue,this.question.answer?this.enteredUrl=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}validateUrl(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.enteredUrl?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}validateInput(l){this.validateUrl(),this.question.answer=l.target.value,this.answerChange.emit(l.target.value)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-url-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:17,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group"],["type","text",1,"form-control","col-11.5","rounded","height",3,"id","placeholder","ngModel","disabled","ngModelChange","blur","input"],[1,"ps-2","pe-2"],["type","button","class","btn col-.5 custom-button rounded d-flex justify-content-center align-items-center height",3,"click",4,"ngIf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["type","button",1,"btn","col-.5","custom-button","rounded","d-flex","justify-content-center","align-items-center","height",3,"click"],["width","30","height","30","viewBox","0 0 30 30","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.99561 16.2503C4.99561 21.7754 9.47462 26.2544 14.9998 26.2544C20.5249 26.2544 25.0039 21.7754 25.0039 16.2503C25.0039 10.7251 20.5249 6.24609 14.9998 6.24609H6.24613","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M9.99766 2.49219L6.24609 6.24375","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M9.99766 9.99766L6.24609 6.24609","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M17.7924 14.8125L14.3035 18.3015L12.2051 16.2106","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,vo,8,5,"div",1),e.j41(2,"div",2)(3,"input",3),e.bIt("ngModelChange",function(be){return M.enteredUrl=be})("blur",function(){return M.validateUrl()})("input",function(be){return M.validateInput(be)}),e.k0s(),e.j41(4,"div",4),e.DNE(5,Wr,6,0,"button",5),e.k0s()(),e.DNE(6,$o,2,1,"div",6),e.DNE(7,Pa,7,1,"div",7),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(15,fl,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredUrl)),e.Y8G("id",M.question.id)("placeholder",M.placeholder)("ngModel",M.enteredUrl)("disabled",M.disableEdit),e.R7$(2),e.Y8G("ngIf",M.showPreviewButton),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredUrl)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.custom-button[_ngcontent-%COMP%]{border:1px solid #ced4da;background-color:transparent;padding:.375rem .75rem;line-height:1.5;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function La(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ko(_,ie){1&_&&e.nrm(0,"span",10)}function fa(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Uo(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Fr(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,La,1,1,"div",6),e.DNE(2,ko,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,fa,2,0,"span",4),e.DNE(7,Uo,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ta(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Ho(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const pl=function(_){return{"mb-4":_}};let rr=(()=>{class _{constructor(l,k,M,H){this.validationService=l,this.tracker=k,this.aggregateService=M,this.cdr=H,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.placeholder="",this.validationFailed=!1,this.validationMessage="",this.elementId="",this.result=0}ngOnInit(){this.valueAssigned(),this.aggregateService.setAggregateField(this.rowId,this.question.id,this.question.formElement.aggregateFunction.aggregateOperation,this.question.formElement.aggregateFunction.formula),this.subscription=this.aggregateService.aggregateFieldResults$.subscribe(l=>{l&&l.id===`${this.rowId}:${this.question.id}`&&(l.evaluated?(this.result=l.result,this.question.answer=String(this.result),this.answerChange.emit(this.question.answer),this.validationService.clearInvalid(this.question.id)):(this.result=0,this.question.answer="",this.answerChange.emit(this.question.answer)))})}valueAssigned(){this.count=this.question?.count,this.required=this.question?.required,this.hint=this.question?.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",null!=this.question.answer&&("string"==typeof this.question.answer&&""!==this.question.answer.trim()||Array.isArray(this.question.answer)&&this.question.answer.length>0||"object"==typeof this.question.answer&&Object.keys(this.question.answer).length>0)&&(this.result=this.question.answer)}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const H=M.element;"QUESTION"===M.entityType&&H&&("answer"in H&&(H.answer=""),H.childLogics&&H.childLogics.length>0&&H.childLogics.forEach(be=>{this.clearAnswersRecursively(be)})),"SUBFORM"===M.entityType&&H&&H.rows&&this.clearAnswersRecursively({rows:H.rows})})})}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId),this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ps.q),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-aggregate-function"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:5,vars:13,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","text","readonly","",1,"form-control","mb-2","height",3,"placeholder","ngModel","id","ngModelChange"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Fr,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(be){return M.result=be}),e.k0s(),e.DNE(3,Ta,2,1,"div",3),e.DNE(4,Ho,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(11,pl,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid-question",M.isInvalid&&(!M.inLine||!M.result)),e.Y8G("placeholder",M.placeholder)("ngModel",M.result)("id",M.question.id),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.result)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}']})}}return _})();function pa(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Ei(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Kr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Fl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function ks(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Ba(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function tl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Zl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",6),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("rowId","0")}}function Jl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Al(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Pi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Cc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",7),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("acceptedLanguage",l.acceptedLanguage)}}function Qr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-signature-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function nl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Zr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function xo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function P(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function ae(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",7),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("acceptedLanguage",l.acceptedLanguage)}}function Y(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",5),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function te(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",6),e.bIt("validate",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("rowId","0")}}function Xe(_,ie){1&_&&e.eu8(0)}const zt=function(_,ie){return{grid:_,answer:ie,state:"child"}};function hn(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Xe,1,0,"ng-container",8),e.bVm()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",l.componentToLoad)("ngComponentOutletInputs",e.l_i(2,zt,l.question.childLogics,null==l.question?null:l.question.answer))}}function Gn(_,ie){if(1&_&&(e.qex(0),e.DNE(1,hn,2,5,"ng-container",4),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}let Ji=(()=>{class _{constructor(l){this.cdr=l,this.question={},this.edit=!1,this.acceptedLanguage="",this.currentPageIndex=0,this.emitValidations=new e.bkB,this.subFormChange=new e.bkB,this.validations=[],this.childLogicCache={}}ngOnInit(){this.loadComponent()}removeCircularReferences(l){const k=new WeakSet;return function M(H){if(null===H||"object"!=typeof H)return H;if(k.has(H))return"[Circular]";if(k.add(H),Array.isArray(H))return H.map(St=>M(St));const be={};for(const St of Object.keys(H))be[St]=M(H[St]);return k.delete(H),be}(l)}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.question?.childLogics},{provide:"state",useValue:"child"}]})}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}handleValidation(l){this.validations.push(l),this.emitValidations.emit(this.validations),this.cdr.detectChanges()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-question"]],inputs:{question:"question",edit:"edit",acceptedLanguage:"acceptedLanguage",currentPageIndex:"currentPageIndex"},outputs:{emitValidations:"emitValidations",subFormChange:"subFormChange"},decls:22,vars:22,consts:[[3,"ngSwitch"],[3,"question","validate",4,"ngSwitchCase"],[3,"question","rowId","validate",4,"ngSwitchCase"],[3,"question","acceptedLanguage","validate",4,"ngSwitchCase"],[4,"ngIf"],[3,"question","validate"],[3,"question","rowId","validate"],[3,"question","acceptedLanguage","validate"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,pa,1,1,"octa-check-box-fields",1),e.DNE(2,Ei,1,1,"octa-date-time-fields",1),e.DNE(3,Kr,1,1,"octa-drop-down-fields",1),e.DNE(4,Fl,1,1,"octa-file-picker-fields",1),e.DNE(5,ks,1,1,"octa-location-fields",1),e.DNE(6,Ba,1,1,"octa-mail-fields",1),e.DNE(7,tl,1,1,"octa-mobile-fields",1),e.DNE(8,Zl,1,2,"octa-number-fields",2),e.DNE(9,Jl,1,1,"octa-password-fields",1),e.DNE(10,Al,1,1,"octa-radio-button-fields",1),e.DNE(11,Pi,1,1,"octa-rich-text-editor-fields",1),e.DNE(12,Cc,1,2,"octa-selection-matrix-fields",3),e.DNE(13,Qr,1,1,"octa-signature-fields",1),e.DNE(14,nl,1,1,"octa-slider-fields",1),e.DNE(15,Zr,1,1,"octa-terms-and-condition-fields",1),e.DNE(16,xo,1,1,"octa-text-area-fields",1),e.DNE(17,P,1,1,"octa-text-fields",1),e.DNE(18,ae,1,2,"octa-toggle-switch-fields",3),e.DNE(19,Y,1,1,"octa-url-fields",1),e.DNE(20,te,1,2,"octa-aggregate-function",2),e.k0s(),e.DNE(21,Gn,2,1,"ng-container",4)),2&k&&(e.Y8G("ngSwitch",M.question.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",M.question.childLogics))},dependencies:[h.OI,h.bT,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,rr]})}}return _})();var ji=N(6911);let xi=(()=>{class _{constructor(l){this.activeModal=l}dismiss(){this.activeModal.close()}confirm(){this.activeModal.close("yes")}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(ji.Lw))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-confirm-dialog"]],inputs:{message:"message"},decls:17,vars:1,consts:[[1,"modal-body"],[1,"modal-header","p-2"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],["aria-hidden","true"],[1,"modal-body","p-2"],[1,"sec-title","mb-3"],[1,"mb-0","text-center"],[1,"d-flex","justify-content-center"],[1,"text-center"],[1,"sec-buttons","d-flex","justify-content-center","mb-4","gap-4"],[1,"btn","btn-secondary","cancelBtn",3,"click"],[1,"btn","btn-primary","submitBtn",3,"click"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return M.dismiss()}),e.nrm(3,"span",3),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"h4",6),e.EFF(7,"Are you sure ?"),e.k0s()(),e.j41(8,"div",7)(9,"div")(10,"p",8),e.EFF(11),e.k0s()()()(),e.j41(12,"div",9)(13,"button",10),e.bIt("click",function(){return M.dismiss()}),e.EFF(14," No "),e.k0s(),e.j41(15,"button",11),e.bIt("click",function(){return M.confirm()}),e.EFF(16," Yes "),e.k0s()()()),2&k&&(e.R7$(11),e.JRh(M.message))}})}}return _})();const Ii={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Gi;const Li=new Uint8Array(16),as=[];for(let _=0;_<256;++_)as.push((_+256).toString(16).slice(1));const zo=function es(_,ie,l){if(Ii.randomUUID&&!ie&&!_)return Ii.randomUUID();const k=(_=_||{}).random??_.rng?.()??function Yo(){if(!Gi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Gi=crypto.getRandomValues.bind(crypto)}return Gi(Li)}();if(k.length<16)throw new Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,ie){if((l=l||0)<0||l+16>ie.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let M=0;M<16;++M)ie[l+M]=k[M];return ie}return function Io(_,ie=0){return(as[_[ie+0]]+as[_[ie+1]]+as[_[ie+2]]+as[_[ie+3]]+"-"+as[_[ie+4]]+as[_[ie+5]]+"-"+as[_[ie+6]]+as[_[ie+7]]+"-"+as[_[ie+8]]+as[_[ie+9]]+"-"+as[_[ie+10]]+as[_[ie+11]]+as[_[ie+12]]+as[_[ie+13]]+as[_[ie+14]]+as[_[ie+15]]).toLowerCase()}(k)};let gs=(()=>{class _{copySubform(l,k){const M={},H=this.deepCopyWithNewIds(l,M);H.copySubformMeta={id:H.id,title:"",description:"",parentSubform:l.id,questionRelation:M},l.copiedForms||(l.copiedForms=[]),l.copiedForms.push(H.id);const be=this.findPageContainingSubform(l.id,k);if(be){const St=be.rows.findIndex(En=>En.grid.some(xn=>"SUBFORM"===xn.entityType&&xn.element.id===l.id));H.submissions=[],-1!==St&&be.rows.splice(St+1,0,{grid:[{entityType:"SUBFORM",element:H}]})}return{updatedPages:k}}deepCopyWithNewIds(l,k){const M=new Map,H=En=>{if(Array.isArray(En))return En.map(H);if(null!==En&&"object"==typeof En){const xn={};for(const fi of Object.keys(En)){const vs=En[fi];"id"===fi&&"string"==typeof vs?(M.has(vs)||M.set(vs,zo()),xn[fi]=M.get(vs)):xn[fi]=H(vs)}if("QUESTION"===En.entityType&&En.element&&"string"==typeof En.element.id){const fi=En.element.id,vs=xn.element?.id;fi&&vs&&(k[vs]=fi),xn.element&&(xn.element.answer="",xn.element.files="")}return xn}return En},St=H(JSON.parse(JSON.stringify(l,(()=>{const En=new WeakSet;return(xn,fi)=>{if("object"==typeof fi&&null!==fi){if(En.has(fi))return;En.add(fi)}return fi}})())));return St.defaultAnswers&&Array.isArray(St.defaultAnswers.answers)&&St.defaultAnswers.answers.forEach(En=>{Array.isArray(En.defaultQuestionsAnswers)&&En.defaultQuestionsAnswers.forEach(xn=>{const fi=xn.questionId;M.has(fi)&&(xn.questionId=M.get(fi))})}),St.copied=!0,St}findPageContainingSubform(l,k){return k.find(M=>M.rows.some(H=>H.grid.some(be=>"SUBFORM"===be.entityType&&be.element&&be.element.id===l)))}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Di=N(5351);function ec(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ma(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ao(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function wc(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Va(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ea(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function lo(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Oo(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",18),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function ml(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Pl(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ro(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ga(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",19),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Ea(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function gl(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function _a(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ll(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Sa(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Jn(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",19),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function va(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function mr(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",18),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function Ar(_,ie){1&_&&e.eu8(0)}const gr=function(_,ie){return{grid:_,answer:ie,state:"child"}};function qn(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Ar,1,0,"ng-container",20),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,gr,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function ka(_,ie){if(1&_&&(e.qex(0),e.DNE(1,qn,2,5,"ng-container",13),e.bVm()),2&_){const l=e.XpG(4);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Bl(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,ec,1,1,"octa-check-box-fields",14),e.DNE(2,ma,1,1,"octa-date-time-fields",14),e.DNE(3,ao,1,1,"octa-drop-down-fields",14),e.DNE(4,wc,1,1,"octa-file-picker-fields",14),e.DNE(5,Va,1,1,"octa-location-fields",14),e.DNE(6,ea,1,1,"octa-mail-fields",14),e.DNE(7,lo,1,1,"octa-mobile-fields",14),e.DNE(8,Oo,1,2,"octa-number-fields",15),e.DNE(9,ml,1,1,"octa-password-fields",14),e.DNE(10,Pl,1,1,"octa-radio-button-fields",14),e.DNE(11,Ro,1,1,"octa-rich-text-editor-fields",14),e.DNE(12,ga,1,2,"octa-selection-matrix-fields",16),e.DNE(13,Ea,1,1,"octa-signature-fields",14),e.DNE(14,gl,1,1,"octa-slider-fields",14),e.DNE(15,_a,1,1,"octa-terms-and-condition-fields",14),e.DNE(16,Ll,1,1,"octa-text-area-fields",14),e.DNE(17,Sa,1,1,"octa-text-fields",14),e.DNE(18,Jn,1,2,"octa-toggle-switch-fields",16),e.DNE(19,va,1,1,"octa-url-fields",14),e.DNE(20,mr,1,2,"octa-aggregate-function",15),e.DNE(21,ka,2,1,"ng-container",13),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngIf","CHECK_BOX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","DATE_TIME"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","DROP_DOWN"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","FILE_PICKER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","LOCATION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","EMAIL"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","MOBILE"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","NUMBER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","PASSWORD"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","RADIO_BUTTON"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","RICH_TEXT_EDITOR"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SELECTION_MATRIX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SIGNATURE"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SLIDER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TERMS_AND_CONDITION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TEXT_AREA"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TEXT_BOX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TOGGLE_SWITCH"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","URL"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","AGGREGATE_FUNCTION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function Pr(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",21),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}function jc(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Bl,22,21,"div",13),e.DNE(2,Pr,2,1,"div",13),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function Qs(_,ie){if(1&_&&(e.qSk(),e.joV(),e.j41(0,"div",11),e.DNE(1,jc,3,2,"ng-container",12),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}let _l=(()=>{class _{constructor(l,k,M){this.data=l,this.validationService=k,this.dialogRef=M,this.acceptedLanguage="",this.childLogicCache={}}ngOnInit(){this.subForm=this.data.subForm,this.acceptedLanguage=this.data.acceptedLanguage,this.loadComponent()}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}closeModal(){this.clearModal(),this.dialogRef.close()}saveSubmission(){let l=!0;const k=this.subForm.pageIndex??0;this.subForm.rows.forEach(M=>{M.grid.forEach(H=>{if("QUESTION"===H.entityType){const be=H.element,St=null!=be.answer&&("string"==typeof be.answer&&""!==be.answer.trim()||Array.isArray(be.answer)&&be.answer.length>0||"object"==typeof be.answer&&Object.keys(be.answer).length>0);be.required&&!St?(this.validationService.setInvalid(be.id,"This question is required",k),l=!1):this.validationService.clearInvalid(be.id)}})}),l&&this.dialogRef.close(this.subForm)}clearModal(){this.subForm&&this.subForm.rows&&this.subForm.rows.flatMap(l=>l.grid.forEach(k=>this.clearFormElement(k)))}clearFormElement(l){"QUESTION"===l.entityType&&(l.element.answer="",l.element.formElement&&(l.element.answer="FILE_PICKER"===l.element.formElement.elementType?null:""),l.element.childLogics&&l.element.childLogics?.forEach(k=>{k.showLogic=!1,k?.formElements?.forEach(M=>{this.clearFormElement(M)})}))}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Di.Vh),e.rXU(we.B),e.rXU(Di.CP))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-submission-modal"]],decls:13,vars:2,consts:[[1,"mb-5"],[1,"modalHeader","mb-4"],[1,"title-div"],[1,"title"],[1,"header-btn"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["d","M8 8L16 16","stroke","#1D252D","stroke-linecap","round","stroke-linejoin","round"],["d","M16 8L8 16","stroke","#1D252D","stroke-linecap","round","stroke-linejoin","round"],["class","px-3",4,"ngFor","ngForOf"],[1,"okBtn","me-4","ms-4"],["type","button",1,"submitBtn","ms-md-3","me-md-2","rounded-pill",3,"click"],[1,"px-3"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"question",4,"ngIf"],[3,"question","rowId",4,"ngIf"],[3,"question","acceptedLanguage",4,"ngIf"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e.EFF(4),e.k0s()(),e.j41(5,"div",4),e.qSk(),e.j41(6,"svg",5),e.bIt("click",function(){return M.closeModal()}),e.nrm(7,"path",6)(8,"path",7),e.k0s()()(),e.DNE(9,Qs,2,1,"div",8),e.joV(),e.j41(10,"div",9)(11,"button",10),e.bIt("click",function(){return M.saveSubmission()}),e.EFF(12," Ok "),e.k0s()()()),2&k&&(e.R7$(4),e.JRh(M.subForm.title),e.R7$(5),e.Y8G("ngForOf",M.subForm.rows))},dependencies:[h.OI,h.Sq,h.bT,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,ne,rr],styles:[".modalHeader[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.modalHeader[_ngcontent-%COMP%] .title-div[_ngcontent-%COMP%]{width:90%;display:flex;justify-content:center;margin-top:5%}.modalHeader[_ngcontent-%COMP%] .title-div[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{height:24px;font-style:normal;font-weight:600;font-size:24px;font-weight:550;line-height:24px;text-align:center;color:#1d252d;letter-spacing:.5px}.modalHeader[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%]{width:10%;margin-top:4%;display:flex;justify-content:center}.modalHeader[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}.submitBtn[_ngcontent-%COMP%]{background:#084fff;color:#fff;border:none;padding:10px 27px;width:auto}.okBtn[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-left:auto;margin-bottom:5px}"]})}}return _})();var ld=N(345),Jt=N(7675),ni=N(9115),No=N(9213);function Dr(_,ie){if(1&_&&(e.j41(0,"th",20),e.EFF(1),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.SpI(" ",l.element.question," ")}}const us=function(_){return{hidden:_}};function vl(_,ie){if(1&_&&(e.j41(0,"td",21),e.nrm(1,"div",22),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG().$implicit,M=e.XpG(2);let H,be;e.Y8G("ngClass",e.eq3(2,us,null==(H=M.getAnswerByQuestionId(l,k.element.id))?null:H.isChild)),e.R7$(1),e.Y8G("innerHTML",null==(be=M.getAnswerByQuestionId(l,k.element.id))?null:be.htmlContent,e.npT)}}function tc(_,ie){1&_&&(e.qex(0,17),e.DNE(1,Dr,2,1,"th",18),e.DNE(2,vl,2,4,"td",19),e.bVm()),2&_&&e.Y8G("matColumnDef",ie.$implicit.element.question)}function ta(_,ie){if(1&_&&(e.qex(0),e.DNE(1,tc,3,1,"ng-container",16),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function xa(_,ie){1&_&&(e.j41(0,"th",23),e.EFF(1," Actions "),e.k0s())}function Dc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",24)(1,"div")(2,"button",25)(3,"mat-icon"),e.EFF(4,"more_vert"),e.k0s()(),e.j41(5,"mat-menu",null,26)(7,"button",27),e.bIt("click",function(){const M=e.eBV(l),H=M.index,be=M.$implicit,St=e.XpG();return e.Njj(St.editSubFormSubmission(H,be))}),e.qSk(),e.j41(8,"svg",28),e.nrm(9,"rect",29)(10,"path",30)(11,"path",31),e.k0s()(),e.joV(),e.j41(12,"button",27),e.bIt("click",function(){const H=e.eBV(l).index,be=e.XpG();return e.Njj(be.deleteSubForm(H))}),e.qSk(),e.j41(13,"svg",28),e.nrm(14,"rect",32)(15,"path",33)(16,"path",34)(17,"path",35)(18,"path",36)(19,"path",37),e.k0s()()()()()}if(2&_){const l=e.sdS(6);e.R7$(2),e.Y8G("matMenuTriggerFor",l)}}function Jd(_,ie){1&_&&e.nrm(0,"tr",38)}function na(_,ie){1&_&&e.nrm(0,"tr",39)}let Vl=(()=>{class _{constructor(l,k){this.dialog=l,this.sanitizer=k,this.subForm={},this.subFormChange=new e.bkB,this.acceptedLanguage="",this.submissions=[],this.deletedSubmissions=[],this.displayedColumns=[]}ngOnInit(){this.subForm?.submissions&&(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]),this.initializeDisplayedColumns()}initializeDisplayedColumns(){this.displayedColumns=this.subForm.rows.flatMap(l=>l.grid.map(k=>k.element.question)),this.displayedColumns.push("actions")}getAnswerByQuestionId(l,k){const M=l.answers.find(be=>be.questionId===k);if(!M)return null;let H="";return M.answer&&(Array.isArray(M.answer)?H=M.answer.map(St=>"string"==typeof St&&St.includes("|")?St.split("|")[0]:St).join(", "):"string"==typeof M.answer&&(H=M.answer.includes("|")?M.answer.split("|")[0]:M.answer)),M.htmlContent=this.sanitizer.bypassSecurityTrustHtml(H),M}subFormSubmission(l){const k=(H,be=!1)=>{const St=[];return H.flatMap(En=>En.grid.forEach(xn=>{const fi={questionId:xn.element.id,answer:xn.element?.answer||"",files:"FILE_PICKER"==xn.element.formElement.elementType&&xn.element.answer?xn.element.answer:void 0,isChild:be};if("FILE_PICKER"==xn.element.formElement.elementType&&xn.element.answer){const vs=xn.element.answer.map(Sr=>Sr?._file.name);fi.answer=vs}St.push(fi),xn.element.childLogics&&xn.element.childLogics.forEach(vs=>{vs.showLogic&&(St.push(...k(vs.rows,!0)),vs.showLogic=!1)})})),St},M=k(l.rows);M.length>0&&(this.submissions.push({submissionId:"",answers:M}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions())}editSubFormSubmission(l,k){const M=this.bindAnswers(this.subForm,k),H=new Di.ru;H.position={top:"5%"},H.width="100%",H.data={subForm:M,acceptedLanguage:this.acceptedLanguage},H.hasBackdrop=!0,H.disableClose=!0,H.maxHeight="80vh",this.dialog.open(_l,H).afterClosed().subscribe(St=>{St&&this.updateSubmission(St,l)})}bindAnswers(l,k){const M=(be,St)=>{be.forEach(En=>{En.grid.forEach(xn=>{const fi=St.find(vs=>vs.questionId===xn.element.id);fi&&(xn.element.answer="FILE_PICKER"==xn.element.formElement.elementType?fi?.files:fi.answer,xn.element.answerId=fi.answerId,xn.element.attachments=fi.attachments),xn.element.childLogics&&xn.element.childLogics.forEach(vs=>{M(vs.rows,St)})})})},H={...l};return M(H.rows,k.answers),H}deleteSubForm(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}addNewSubmission(){const l=this.cleanCircularReferences(this.subForm);l.rows.forEach(H=>{H.grid.forEach(be=>{be.element.answer="FILE_PICKER"===be.element.formElement.elementType?[]:"",be.element.attachments=[],be.element.answerId=null})});const k=new Di.ru;k.position={top:"5%"},k.width="100%",k.data={subForm:l,acceptedLanguage:this.acceptedLanguage},k.hasBackdrop=!0,k.disableClose=!0,k.maxHeight="80vh",k.autoFocus=!1,this.dialog.open(_l,k).afterClosed().subscribe(H=>{H&&H.rows.flatMap(St=>St.grid.some(En=>En.element.answer&&En.element.answer.length>0))&&this.subFormSubmission(H)})}cleanCircularReferences(l,k=new WeakSet){if(null===l||"object"!=typeof l)return l;if(k.has(l))return;k.add(l);const M=Array.isArray(l)?[]:{};for(const H in l)Object.prototype.hasOwnProperty.call(l,H)&&(M[H]=this.cleanCircularReferences(l[H],k));return M}updateSubmission(l,k){const M=(H,be)=>{H.forEach(St=>{St.grid.forEach(En=>{let xn={questionId:En.element.id,answerId:En.element?.answerId||"",attachments:En.element.attachments||[],answer:[],files:[],deleteFiles:[]};if(xn.attachments&&(xn.answer=xn.attachments.map(fi=>fi.fileName)),"FILE_PICKER"===En.element.formElement.elementType){if(En.element?.deleteFiles.length>0&&(xn.answer=[],xn.deleteFiles=xn.deleteFiles||[],En.element.deleteFiles.forEach(fi=>{xn.deleteFiles?.push(fi)}),xn.attachments&&(xn.attachments=xn.attachments.filter(fi=>!En.element.deleteFiles.includes(fi.fileId)),xn.answer=xn.attachments.map(fi=>fi.fileName))),En.element.answer){xn.files=En.element.answer;let fi=Array.isArray(xn.answer)?[...xn.answer]:[];En.element.answer.forEach(vs=>{const Sr=vs._file?.name;fi.includes(Sr)||fi.push(Sr)}),xn.answer=fi}}else xn={questionId:En.element.id,answerId:En.element?.answerId||"",attachments:En.element.attachments,answer:En.element.answer};En.element.answer="",be.push(xn),En.element.childLogics&&En.element.childLogics.forEach(fi=>{fi.showLogic&&M(fi.rows,be)})})})};this.submissions[k].answers=[],M(l.rows,this.submissions[k].answers),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions(),this.clearEmptyRows()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}clearEmptyRows(){const l=[],k=[];this.submissions.forEach(M=>{M.answers.some(H=>""!==H.answer)?l.push(M):M.submissionId&&k.push(M.submissionId)}),this.submissions=l,this.deletedSubmissions.push(...k),this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Di.bZ),e.rXU(ld.up))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-multiple-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage"},outputs:{subFormChange:"subFormChange"},decls:17,vars:4,consts:[["tabindex","0",1,"example-container"],[1,"table-container"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],[4,"ngFor","ngForOf"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","","class","border border-1",4,"matHeaderCellDef"],["mat-cell","","class","text-center border border-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"footer"],[1,"addNewBtn",3,"click"],["width","15","height","14","viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5556 13.2778H2.44444C1.64639 13.2778 1 12.6673 1 11.9136V2.3642C1 1.61048 1.64639 1 2.44444 1H12.5556C13.3536 1 14 1.61048 14 2.3642V11.9136C14 12.6673 13.3536 13.2778 12.5556 13.2778Z","stroke","#D8D8D8","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M5.3335 7.50347H9.66683","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M7.50005 5.33594V9.66927","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],[1,"ms-2","text-decoration-none"],[3,"matColumnDef",4,"ngFor","ngForOf"],[3,"matColumnDef"],["mat-header-cell","","class","border border-1 column-width",4,"matHeaderCellDef"],["mat-cell","","class","border border-1",3,"ngClass",4,"matCellDef"],["mat-header-cell","",1,"border","border-1","column-width"],["mat-cell","",1,"border","border-1",3,"ngClass"],[3,"innerHTML"],["mat-header-cell","",1,"border","border-1"],["mat-cell","",1,"text-center","border","border-1"],["mat-icon-button","","aria-label","Example icon-button with a menu",1,"btn",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["width","29","height","28","viewBox","0 0 29 28","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.5","y","0.5","width","28","height","26.4737","rx","5.5","fill","white","stroke","#D8D8D8"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.0009 19.0787H9.1582V16.2361C9.1582 15.9447 9.2739 15.6653 9.47999 15.4593L16.2224 8.71686C16.4284 8.5105 16.708 8.39453 16.9995 8.39453C17.2911 8.39453 17.5707 8.5105 17.7767 8.71686L19.5201 10.4603C19.7264 10.6663 19.8424 10.9458 19.8424 11.2374C19.8424 11.529 19.7264 11.8086 19.5201 12.0145L12.7777 18.757C12.5715 18.9628 12.2922 19.0785 12.0009 19.0787Z","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M15.1704 10.3984L17.8415 13.0695","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["x","0.5","y","0.5","width","27.6402","height","26.1328","rx","5.5","fill","white","stroke","#D8D8D8"],["d","M8.60449 9.20637H20.0354","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M19.2189 9.20703V17.7863C19.2189 18.6482 18.4881 19.3462 17.5859 19.3462H11.0539C10.1517 19.3462 9.4209 18.6482 9.4209 17.7863V9.20703","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M16.7696 6.67122H11.8706","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M12.6871 12.3242V16.2239","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M15.9532 12.3242V16.2239","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["mat-header-row",""],["mat-row",""]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"table",2),e.DNE(3,ta,2,1,"ng-container",3),e.qex(4,4),e.DNE(5,xa,2,0,"th",5),e.DNE(6,Dc,20,1,"td",6),e.bVm(),e.DNE(7,Jd,1,0,"tr",7),e.DNE(8,na,1,0,"tr",8),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.bIt("click",function(){return M.addNewSubmission()}),e.qSk(),e.j41(11,"svg",11),e.nrm(12,"path",12)(13,"path",13)(14,"path",14),e.k0s(),e.joV(),e.j41(15,"a",15),e.EFF(16,"Add New"),e.k0s()()()()),2&k&&(e.R7$(2),e.Y8G("dataSource",M.submissions),e.R7$(1),e.Y8G("ngForOf",M.subForm.rows),e.R7$(4),e.Y8G("matHeaderRowDef",M.displayedColumns),e.R7$(1),e.Y8G("matRowDefColumns",M.displayedColumns))},dependencies:[h.YU,h.Sq,Jt.Zl,Jt.tL,Jt.ji,Jt.cC,Jt.YV,Jt.iL,Jt.KS,Jt.$R,Jt.YZ,Jt.NB,ni.kk,ni.fb,ni.Cp,No.An],styles:[".table-container[_ngcontent-%COMP%]{overflow-x:auto;width:100%}.table-container[_ngcontent-%COMP%] .mat-table-sticky[_ngcontent-%COMP%]{background:white;z-index:1}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;cursor:pointer;margin-top:15px}.hidden[_ngcontent-%COMP%]{display:none}.dropdown-menu[_ngcontent-%COMP%]{position:relative;z-index:999}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dbd9d9;border-radius:6px} .mat-mdc-menu-panel{min-width:65px!important}table[_ngcontent-%COMP%]{border-collapse:separate!important}.column-width[_ngcontent-%COMP%]{min-width:300px;max-width:500px;white-space:nowrap}"]})}}return _})();function co(_,ie){if(1&_&&(e.j41(0,"th",20),e.EFF(1),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.SpI(" ",l.element.question," ")}}function ar(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function A(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function V(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function O(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",30),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))})("inlineDeleteFiles",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateDeletedFiles(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function j(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Q(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Te(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Qe(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",31),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,H=e.XpG().$implicit,be=e.XpG(2);e.Y8G("inLine",!0)("question",be.getSubmissionQuestion(k,H))("rowId",M)}}function Wt(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ht(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",31),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,H=e.XpG().$implicit,be=e.XpG(2);e.Y8G("inLine",!0)("question",be.getSubmissionQuestion(k,H))("rowId",M)}}function Pn(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ci(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",32),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,H=e.XpG().$implicit,be=e.XpG(2);e.Y8G("inLine",!0)("question",be.getSubmissionQuestion(k,H))("acceptedLanguage",be.acceptedLanguage)("rowId",M)}}function _s(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-signature-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ni(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Mr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ds(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Lr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function il(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",33),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))("acceptedLanguage",M.acceptedLanguage)}}function ia(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Mc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",31),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG().$implicit,St=e.XpG(2);return e.Njj(St.updateInlineAnswer(H,be.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,H=e.XpG().$implicit,be=e.XpG(2);e.Y8G("inLine",!0)("question",be.getSubmissionQuestion(k,H))("rowId",M)}}function eu(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",23),e.DNE(2,ar,1,2,"octa-check-box-fields",24),e.DNE(3,A,1,2,"octa-date-time-fields",24),e.DNE(4,V,1,2,"octa-drop-down-fields",24),e.DNE(5,O,1,2,"octa-file-picker-fields",25),e.DNE(6,j,1,2,"octa-location-fields",24),e.DNE(7,Q,1,2,"octa-mail-fields",24),e.DNE(8,Te,1,2,"octa-mobile-fields",24),e.DNE(9,Qe,1,3,"octa-number-fields",26),e.DNE(10,Wt,1,2,"octa-password-fields",24),e.DNE(11,Ht,1,3,"octa-radio-button-fields",26),e.DNE(12,Pn,1,2,"octa-rich-text-editor-fields",24),e.DNE(13,Ci,1,4,"octa-selection-matrix-fields",27),e.DNE(14,_s,1,2,"octa-signature-fields",24),e.DNE(15,Ni,1,2,"octa-slider-fields",24),e.DNE(16,Mr,1,2,"octa-terms-and-condition-fields",24),e.DNE(17,Ds,1,2,"octa-text-area-fields",24),e.DNE(18,Lr,1,2,"octa-text-fields",24),e.DNE(19,il,1,3,"octa-toggle-switch-fields",28),e.DNE(20,ia,1,2,"octa-url-fields",24),e.DNE(21,Mc,1,3,"octa-aggregate-function",26),e.k0s()()),2&_){const l=e.XpG(2).$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION")}}function Ed(_,ie){if(1&_&&(e.j41(0,"td",21),e.DNE(1,eu,22,21,"div",22),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function Jo(_,ie){1&_&&(e.qex(0,17),e.DNE(1,co,2,1,"th",18),e.DNE(2,Ed,2,1,"td",19),e.bVm()),2&_&&e.Y8G("matColumnDef",ie.$implicit.element.question)}function ja(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Jo,3,1,"ng-container",16),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function Gs(_,ie){1&_&&(e.j41(0,"th",34),e.EFF(1," Actions "),e.k0s())}function bl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",35)(1,"button",36),e.bIt("click",function(){const H=e.eBV(l).index,be=e.XpG();return e.Njj(be.deleteSubmission(H))}),e.nrm(2,"i",37),e.k0s()()}}function jl(_,ie){1&_&&e.nrm(0,"tr",38)}function Tc(_,ie){1&_&&e.nrm(0,"tr",39)}let ba=(()=>{class _{constructor(){this.subForm={},this.subFormChange=new e.bkB,this.acceptedLanguage="",this.submissions=[],this.deletedSubmissions=[],this.displayedColumns=[]}ngOnInit(){this.subForm?.submissions&&(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]),this.initializeDisplayedColumns()}initializeDisplayedColumns(){this.displayedColumns=this.subForm.rows.flatMap(l=>l.grid.map(k=>k.element.question)),this.displayedColumns.push("actions")}addNewSubmission(){const l=[];this.subForm.rows.forEach(M=>{M.grid.forEach(H=>{"QUESTION"===H.entityType&&H.element&&H.element.id&&l.push({questionId:H.element.id,answer:""})})}),this.submissions.push({submissionId:"",answers:l}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}getSubmissionQuestion(l,k){const M=l.answers.find(be=>be.questionId===k.element.id),H={...k.element};return H.answer=M?M.answer:"",H.attachments=M?.attachments?M.attachments:[],H}updateInlineAnswer(l,k,M){const H=this.submissions.indexOf(l);if(H>-1){const be=this.submissions[H].answers.find(St=>St.questionId===k.id);if(k.formElement&&"FILE_PICKER"===k.formElement.elementType){let St=[];M&&Array.isArray(M)&&(St=M.map(xn=>xn?._file?.name));let En=[];if(k.deleteFiles&&k.deleteFiles.length>0&&(En=k.deleteFiles),be)be.files=M,be.answer=St,be.deleteFiles||(be.deleteFiles=[]),En.forEach(xn=>{be.deleteFiles.includes(xn)||be.deleteFiles.push(xn)});else{const xn={questionId:k.id,files:M,answer:St,deleteFiles:En.length>0?[...En]:[]};this.submissions[H].answers.push(xn)}}else be?be.answer=M:this.submissions[H].answers.push({questionId:k.id,answer:M});this.updateSubFormWithSubmissions()}}updateDeletedFiles(l,k,M){const H=l.answers.find(be=>be.questionId===k.id);H&&(H.deleteFiles||(H.deleteFiles=[]),M.forEach(be=>{H.deleteFiles.includes(be)||H.deleteFiles.push(be)}))}deleteSubmission(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}clearEmptySubmissions(){const l=[],k=[];this.submissions.forEach(M=>{M.answers.some(be=>""!==be.answer&&null!=be.answer)?l.push(M):M.submissionId&&k.push(M.submissionId)}),this.submissions=l,this.deletedSubmissions.push(...k),this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-inline-multiple-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage"},outputs:{subFormChange:"subFormChange"},decls:17,vars:4,consts:[["tabindex","0",1,"example-container"],[1,"table-container"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],[4,"ngFor","ngForOf"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","","class","border border-1 action-column",4,"matHeaderCellDef"],["mat-cell","","class","border-cell text-center",4,"matCellDef"],["mat-header-row","","class","border-row",4,"matHeaderRowDef"],["mat-row","","class","border-row",4,"matRowDef","matRowDefColumns"],[1,"footer"],[1,"addNewBtn",3,"click"],["width","15","height","14","viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5556 13.2778H2.44444C1.64639 13.2778 1 12.6673 1 11.9136V2.3642C1 1.61048 1.64639 1 2.44444 1H12.5556C13.3536 1 14 1.61048 14 2.3642V11.9136C14 12.6673 13.3536 13.2778 12.5556 13.2778Z","stroke","#D8D8D8","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M5.3335 7.50347H9.66683","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M7.50005 5.33594V9.66927","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],[1,"ms-2","text-decoration-none"],[3,"matColumnDef",4,"ngFor","ngForOf"],[3,"matColumnDef"],["mat-header-cell","","class","border border-1 column-width",4,"matHeaderCellDef"],["mat-cell","","class","border-cell column-width",4,"matCellDef"],["mat-header-cell","",1,"border","border-1","column-width"],["mat-cell","",1,"border-cell","column-width"],[4,"ngIf"],[3,"ngSwitch"],[3,"inLine","question","answerChange",4,"ngSwitchCase"],[3,"inLine","question","answerChange","inlineDeleteFiles",4,"ngSwitchCase"],[3,"inLine","question","rowId","answerChange",4,"ngSwitchCase"],[3,"inLine","question","acceptedLanguage","rowId","answerChange",4,"ngSwitchCase"],[3,"inLine","question","acceptedLanguage","answerChange",4,"ngSwitchCase"],[3,"inLine","question","answerChange"],[3,"inLine","question","answerChange","inlineDeleteFiles"],[3,"inLine","question","rowId","answerChange"],[3,"inLine","question","acceptedLanguage","rowId","answerChange"],[3,"inLine","question","acceptedLanguage","answerChange"],["mat-header-cell","",1,"border","border-1","action-column"],["mat-cell","",1,"border-cell","text-center"],[1,"delete-button",3,"click"],[1,"bi","bi-trash"],["mat-header-row","",1,"border-row"],["mat-row","",1,"border-row"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"table",2),e.DNE(3,ja,2,1,"ng-container",3),e.qex(4,4),e.DNE(5,Gs,2,0,"th",5),e.DNE(6,bl,3,0,"td",6),e.bVm(),e.DNE(7,jl,1,0,"tr",7),e.DNE(8,Tc,1,0,"tr",8),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.bIt("click",function(){return M.addNewSubmission()}),e.qSk(),e.j41(11,"svg",11),e.nrm(12,"path",12)(13,"path",13)(14,"path",14),e.k0s(),e.joV(),e.j41(15,"a",15),e.EFF(16,"Add New"),e.k0s()()()()),2&k&&(e.R7$(2),e.Y8G("dataSource",M.submissions),e.R7$(1),e.Y8G("ngForOf",M.subForm.rows),e.R7$(4),e.Y8G("matHeaderRowDef",M.displayedColumns),e.R7$(1),e.Y8G("matRowDefColumns",M.displayedColumns))},dependencies:[h.Sq,h.bT,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,rr,Jt.Zl,Jt.tL,Jt.ji,Jt.cC,Jt.YV,Jt.iL,Jt.KS,Jt.$R,Jt.YZ,Jt.NB],styles:[".table-container[_ngcontent-%COMP%]{overflow-x:auto;width:100%}.table-container[_ngcontent-%COMP%] .mat-table-sticky[_ngcontent-%COMP%]{background:white;z-index:1}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;cursor:pointer;margin-top:15px}.hidden[_ngcontent-%COMP%]{display:none}.dropdown-menu[_ngcontent-%COMP%]{position:relative;z-index:999}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dbd9d9;border-radius:6px} .mat-mdc-menu-panel{min-width:65px!important}table[_ngcontent-%COMP%]{border-collapse:separate!important}.border-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .border-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #d8d8d8}.border-cell[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.delete-button[_ngcontent-%COMP%]{border:none;background-color:#fff;font-size:20px}.action-column[_ngcontent-%COMP%]{width:30px;padding-left:5px;padding-right:5px}.column-width[_ngcontent-%COMP%]{min-width:320px;white-space:nowrap} .ql-toolbar.ql-snow{display:flex}"]})}}return _})();function cd(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",6)(1,"img",7),e.bIt("click",function(){e.eBV(l);const M=e.XpG().index,H=e.XpG();return e.Njj(H.deleteSubmission(M))}),e.k0s()()}}function Ga(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function sl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Zs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Tr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",21),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))})("inlineDeleteFiles",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateDeletedFiles(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function $s(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Ia(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function $a(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function nc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",22),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("rowId","0")}}function Ec(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Js(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",22),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2),M=k.$implicit,H=k.index,be=e.XpG();e.Y8G("question",be.getSubmissionQuestion(M,l))("rowId",H)}}function Sc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",23),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("inSubForm",!0)}}function ol(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",24),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2),M=k.$implicit,H=k.index,be=e.XpG();e.Y8G("question",be.getSubmissionQuestion(M,l))("acceptedLanguage",be.acceptedLanguage)("rowId",H)}}function yl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function dd(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Ua(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Cl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",25),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("inCard",!0)}}function yo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",26),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("acceptedLanguage",M.acceptedLanguage)}}function Oa(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function kc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",22),e.bIt("answerChange",function(M){e.eBV(l);const H=e.XpG(2).$implicit,be=e.XpG(2).$implicit,St=e.XpG();return e.Njj(St.updateAnswer(be,H.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("rowId","0")}}function _r(_,ie){1&_&&e.eu8(0)}const ya=function(_,ie){return{grid:_,answer:ie,state:"child"}};function wl(_,ie){if(1&_&&(e.qex(0),e.DNE(1,_r,1,0,"ng-container",27),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(3);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,ya,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function Ha(_,ie){if(1&_&&(e.qex(0),e.DNE(1,wl,2,5,"ng-container",11),e.bVm()),2&_){const l=e.XpG(5);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Dl(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",12),e.DNE(2,Ga,1,1,"octa-check-box-fields",13),e.DNE(3,sl,1,1,"octa-date-time-fields",13),e.DNE(4,Zs,1,1,"octa-drop-down-fields",13),e.DNE(5,Tr,1,1,"octa-file-picker-fields",14),e.DNE(6,$s,1,1,"octa-location-fields",13),e.DNE(7,Ia,1,1,"octa-mail-fields",13),e.DNE(8,$a,1,1,"octa-mobile-fields",13),e.DNE(9,nc,1,2,"octa-number-fields",15),e.DNE(10,Ec,1,1,"octa-password-fields",13),e.DNE(11,Js,1,2,"octa-radio-button-fields",15),e.DNE(12,Sc,1,2,"octa-rich-text-editor-fields",16),e.DNE(13,ol,1,3,"octa-selection-matrix-fields",17),e.DNE(14,yl,1,1,"octa-slider-fields",13),e.DNE(15,dd,1,1,"octa-terms-and-condition-fields",13),e.DNE(16,Ua,1,1,"octa-text-area-fields",13),e.DNE(17,Cl,1,2,"octa-text-fields",18),e.DNE(18,yo,1,2,"octa-toggle-switch-fields",19),e.DNE(19,Oa,1,1,"octa-url-fields",13),e.DNE(20,kc,1,2,"octa-aggregate-function",15),e.k0s(),e.DNE(21,Ha,2,1,"ng-container",11),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function ic(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",28),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}const sc=function(_){return{"width.%":_}};function Ca(_,ie){if(1&_&&(e.j41(0,"div",10),e.DNE(1,Dl,22,21,"div",11),e.DNE(2,ic,2,1,"div",11),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(3,sc,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function xc(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",8),e.DNE(2,Ca,3,5,"div",9),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}function Gc(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",3),e.DNE(2,cd,2,0,"div",4),e.DNE(3,xc,3,1,"div",5),e.k0s(),e.bVm()),2&_){const l=ie.$implicit,k=e.XpG();e.R7$(2),e.Y8G("ngIf",null==l.configuration?null:l.configuration.allowDelete),e.R7$(1),e.Y8G("ngForOf",k.subForm.rows)}}let Br=(()=>{class _{constructor(){this.subForm={},this.acceptedLanguage="",this.edit=!1,this.submissions=[],this.deletedSubmissions=[],this.subFormChange=new e.bkB}ngOnInit(){this.loadComponent(),this.edit&&this.subForm?.submissions?(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]):this.submissions=this.generateSubmissionsFromDefaultAnswers(this.subForm),this.submissions?.length&&this.updateSubFormWithSubmissions()}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}generateSubmissionsFromDefaultAnswers(l){return l.defaultAnswers&&Array.isArray(l.defaultAnswers.answers)?l.defaultAnswers.answers.map(k=>({submissionId:"",configuration:{isDefault:!0,allowDelete:k.isDeleteEnable},answers:k.defaultQuestionsAnswers.map(H=>({questionId:H.questionId,answer:H.defaultAnswer,attachments:[]}))})):[]}trackBySubmissionId(l,k){return k?.submissionId||l}getSubmissionQuestion(l,k){const M=l.answers.find(be=>be.questionId===k.element.id),H={...k.element};return H.answer=M?M.answer:"",H.defaultValue="",H.disableEdit=!!l.configuration?.isDefault&&H.disableEdit,H.attachments=M?.attachments?M.attachments:[],H}addNewSubmission(){const l=[];this.subForm.rows.forEach(M=>{M.grid.forEach(H=>{"QUESTION"===H.entityType&&H.element&&H.element.id&&l.push({questionId:H.element.id,answer:""})})}),this.submissions.push({submissionId:"",answers:l,configuration:{isDefault:!1,allowDelete:!0}}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}updateAnswer(l,k,M){const H=this.submissions.indexOf(l);if(H>-1){const be=this.submissions[H].answers.find(St=>St.questionId===k.id);if(k.formElement&&"FILE_PICKER"===k.formElement.elementType){let St=[];M&&Array.isArray(M)&&(St=M.map(xn=>xn?._file?.name));let En=[];if(k.deleteFiles&&k.deleteFiles.length>0&&(En=k.deleteFiles),be)be.files=M,be.answer=St,be.deleteFiles||(be.deleteFiles=[]),En.forEach(xn=>{be.deleteFiles.includes(xn)||be.deleteFiles.push(xn)});else{const xn={questionId:k.id,files:M,answer:St,deleteFiles:En.length>0?[...En]:[]};this.submissions[H].answers.push(xn)}}else be?be.answer=M:this.submissions[H].answers.push({questionId:k.id,answer:M});this.updateSubFormWithSubmissions()}}updateDeletedFiles(l,k,M){const H=l.answers.find(be=>be.questionId===k.id);H&&(H.deleteFiles||(H.deleteFiles=[]),M.forEach(be=>{H.deleteFiles.includes(be)||H.deleteFiles.push(be)}))}deleteSubmission(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-card-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage",edit:"edit"},outputs:{subFormChange:"subFormChange"},decls:4,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[1,"subform-footer"],[1,"btn","btn-primary",3,"click"],[1,"card-subform","mb-4"],["class","delete d-flex justify-content-end me-4 mb-2 mt-2",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"delete","d-flex","justify-content-end","me-4","mb-2","mt-2"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete",1,"delete-icon",3,"click"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question","answerChange",4,"ngSwitchCase"],[3,"question","answerChange","inlineDeleteFiles",4,"ngSwitchCase"],[3,"question","rowId","answerChange",4,"ngSwitchCase"],[3,"question","inSubForm","answerChange",4,"ngSwitchCase"],[3,"question","acceptedLanguage","rowId","answerChange",4,"ngSwitchCase"],[3,"question","inCard","answerChange",4,"ngSwitchCase"],[3,"question","acceptedLanguage","answerChange",4,"ngSwitchCase"],[3,"question","answerChange"],[3,"question","answerChange","inlineDeleteFiles"],[3,"question","rowId","answerChange"],[3,"question","inSubForm","answerChange"],[3,"question","acceptedLanguage","rowId","answerChange"],[3,"question","inCard","answerChange"],[3,"question","acceptedLanguage","answerChange"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&(e.DNE(0,Gc,4,2,"ng-container",0),e.j41(1,"div",1)(2,"button",2),e.bIt("click",function(){return M.addNewSubmission()}),e.EFF(3,"Add New Submission"),e.k0s()()),2&k&&e.Y8G("ngForOf",M.submissions)("ngForTrackBy",M.trackBySubmissionId)},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,js,qr,sr,Nr,ha,or,ne,rr],styles:[".card-subform[_ngcontent-%COMP%]{background:#f9f6f6;border-radius:6px;padding:8px 0}.delete-icon[_ngcontent-%COMP%]{cursor:pointer;margin-right:10px;width:36px;height:36px;fill:none}.delete-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:#084fff;stroke-linecap:round;stroke-linejoin:round}.delete-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{stroke:#d8d8d8;fill:#fff;width:35px;height:35px}"]})}}return _})();function oc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"img",14),e.bIt("click",function(){e.eBV(l);const M=e.XpG(3);return e.Njj(M.copySubform())}),e.k0s()}}function Xs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"img",15),e.bIt("click",function(){e.eBV(l);const M=e.XpG(3);return e.Njj(M.deleteMainSubform(M.subForm.id))}),e.k0s()}}function qo(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",7)(2,"div",8)(3,"p",9),e.EFF(4),e.k0s(),e.nrm(5,"p",10),e.k0s(),e.j41(6,"div",11),e.DNE(7,oc,1,0,"img",12),e.DNE(8,Xs,1,0,"img",13),e.k0s()(),e.bVm()),2&_){const l=e.XpG(2);e.R7$(4),e.JRh(l.subForm.title),e.R7$(1),e.Y8G("innerHTML",l.decodedDescription,e.npT),e.R7$(2),e.Y8G("ngIf",l.allowCopy),e.R7$(1),e.Y8G("ngIf",l.allowDelete)}}function Ya(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.deleteCopySubform(M.subForm.id))}),e.nrm(1,"img",17),e.k0s(),e.j41(2,"div",18)(3,"p"),e.EFF(4,"Title"),e.k0s(),e.j41(5,"input",19),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.subformTitle=M)})("ngModelChange",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.updateSubformData(M,H.subForm.id,"title"))}),e.k0s(),e.j41(6,"p",20),e.EFF(7,"Description"),e.k0s(),e.j41(8,"quill-editor",21),e.bIt("ngModelChange",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.subformDescription=M)})("ngModelChange",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.updateSubformData(M,H.subForm.id,"description"))})("onEditorCreated",function(M){e.eBV(l);const H=e.XpG(2);return e.Njj(H.editorCreated(M))}),e.k0s()()}if(2&_){const l=e.XpG(2);e.R7$(5),e.Y8G("ngModel",l.subformTitle),e.R7$(3),e.Y8G("ngModel",l.subformDescription)}}function vr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-multiple-subform",24),e.bIt("subFormChange",function(M){e.eBV(l);const H=e.XpG(3);return e.Njj(H.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)}}function Ic(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-inline-multiple-subform",24),e.bIt("subFormChange",function(M){e.eBV(l);const H=e.XpG(3);return e.Njj(H.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)}}function Ra(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-card-subform",25),e.bIt("subFormChange",function(M){e.eBV(l);const H=e.XpG(3);return e.Njj(H.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)("edit",l.edit)}}function $c(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,vr,1,2,"octa-multiple-subform",22),e.DNE(2,Ic,1,2,"octa-inline-multiple-subform",22),e.DNE(3,Ra,1,3,"octa-card-subform",23),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngIf","table"===l.subForm.property.subFormType),e.R7$(1),e.Y8G("ngIf","inline"===l.subForm.property.subFormType),e.R7$(1),e.Y8G("ngIf","card"===l.subForm.property.subFormType)}}function Gl(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ml(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function $l(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Uc(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Oc(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ui(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Na(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function br(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",35),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function Sd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function rc(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function kd(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Tl(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",36),2&_){const l=e.XpG(2).$implicit,k=e.XpG(4);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Ul(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Fo(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Hc(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ac(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Yc(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ud(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",36),2&_){const l=e.XpG(2).$implicit,k=e.XpG(4);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function eo(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function S(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",35),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function y(_,ie){1&_&&e.eu8(0)}const b=function(_,ie){return{grid:_,answer:ie,state:"child"}};function I(_,ie){if(1&_&&(e.qex(0),e.DNE(1,y,1,0,"ng-container",37),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(4);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,b,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function z(_,ie){if(1&_&&(e.qex(0),e.DNE(1,I,2,5,"ng-container",6),e.bVm()),2&_){const l=e.XpG(6);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function ce(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",30),e.DNE(2,Gl,1,1,"octa-check-box-fields",31),e.DNE(3,Ml,1,1,"octa-date-time-fields",31),e.DNE(4,$l,1,1,"octa-drop-down-fields",31),e.DNE(5,Uc,1,1,"octa-file-picker-fields",31),e.DNE(6,Oc,1,1,"octa-location-fields",31),e.DNE(7,ui,1,1,"octa-mail-fields",31),e.DNE(8,Na,1,1,"octa-mobile-fields",31),e.DNE(9,br,1,2,"octa-number-fields",32),e.DNE(10,Sd,1,1,"octa-password-fields",31),e.DNE(11,rc,1,1,"octa-radio-button-fields",31),e.DNE(12,kd,1,1,"octa-rich-text-editor-fields",31),e.DNE(13,Tl,1,2,"octa-selection-matrix-fields",33),e.DNE(14,Ul,1,1,"octa-signature-fields",31),e.DNE(15,Fo,1,1,"octa-slider-fields",31),e.DNE(16,Hc,1,1,"octa-terms-and-condition-fields",31),e.DNE(17,ac,1,1,"octa-text-area-fields",31),e.DNE(18,Yc,1,1,"octa-text-fields",31),e.DNE(19,ud,1,2,"octa-toggle-switch-fields",33),e.DNE(20,eo,1,1,"octa-url-fields",31),e.DNE(21,S,1,2,"octa-aggregate-function",32),e.k0s(),e.DNE(22,z,2,1,"ng-container",6),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function rt(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",38),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}const yt=function(_){return{"width.%":_}};function Lt(_,ie){if(1&_&&(e.j41(0,"div",29),e.DNE(1,ce,23,22,"div",6),e.DNE(2,rt,2,1,"div",6),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(3,yt,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function vn(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",27),e.DNE(2,Lt,3,5,"div",28),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}function ii(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,vn,3,1,"div",26),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",l.subForm.rows)}}function wi(_,ie){if(1&_&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.DNE(3,qo,9,4,"ng-container",4),e.DNE(4,Ya,9,2,"ng-template",null,5,e.C5r),e.DNE(6,$c,4,3,"div",6),e.DNE(7,ii,2,1,"div",6),e.k0s()()()),2&_){const l=e.sdS(5),k=e.XpG();e.Y8G("id","question-"+k.subForm.id),e.BMQ("name",k.subForm.testElementName),e.R7$(3),e.Y8G("ngIf",!k.subForm.copied)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf","multiple"==k.subForm.property.subFormStructure),e.R7$(1),e.Y8G("ngIf","single"==k.subForm.property.subFormStructure)}}let Si=(()=>{class _{constructor(l,k){this.subformCopyService=l,this.modalService=k,this.subForm={},this.edit=!1,this.subFormChange=new e.bkB,this.acceptedLanguage="",this.pages=[],this.decodedDescription="",this.childLogicCache={},this.subformDescription="",this.subformTitle="",this.allowCopy=!1,this.allowDelete=!1}ngOnInit(){this.allowCopy=this.subForm.property?.allowCopy,this.allowDelete=this.subForm.property?.allowDelete,this.copySubFormdata=this.subForm?.copySubformMeta,"single"==this.subForm.property.subFormStructure&&(this.bindAnswersToFormElements(),this.loadComponent())}editorCreated(l){this.editor=l}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}bindAnswersToFormElements(){const l=(k,M)=>{k?.forEach(H=>{H?.grid?.forEach(be=>{if("QUESTION"===be.entityType){const St=M.find(En=>En.answers.some(xn=>xn.questionId===be.element.id));if(St){const En=St.answers.find(xn=>xn.questionId===be.element.id);En&&(be.element.answer=En.answer,be.element.answerId=En.answerId,be.element.validation=!0,be.element.attachments=En.attachments,this.subForm.submissionId=St.submissionId)}be.element.childLogics&&be.element.childLogics.forEach(En=>{l(En.rows,M)})}})})};this.subForm&&this.subForm.rows&&this.subForm.submissions&&l(this.subForm.rows,this.subForm.submissions)}updateSubFormWithSubmissions(l){this.subForm=l,this.subFormChange.emit(this.subForm)}ngOnChanges(){this.subForm.description&&(this.decodedDescription=this.decodeHtml(this.subForm.description))}copySubform(){const{updatedPages:l}=this.subformCopyService.copySubform(this.subForm,this.pages);this.pages=l}updateSubformData(l,k,M){this.copySubFormdata.id==k&&(this.copySubFormdata[M]=l)}deleteCopySubform(l){const k=this.modalService.open(xi,{centered:!0});k.componentInstance.message="Do you want to delete this subform?",k.result.then(M=>{if("yes"===M){for(const H of this.pages){const be=H.rows.findIndex(St=>St.grid.some(En=>"SUBFORM"===En.entityType&&En.element?.id===l&&En.element?.copied));if(-1!==be){H.rows.splice(be,1);break}}for(const H of this.pages)for(const be of H.rows)for(const St of be.grid)if("SUBFORM"===St.entityType&&St.element?.copiedForms){const En=St.element.copiedForms.indexOf(l);-1!==En&&St.element.copiedForms.splice(En,1)}}})}deleteMainSubform(l){const k=this.modalService.open(xi,{centered:!0});k.componentInstance.message="Do you want to delete this subform?",k.result.then(M=>{if("yes"===M)for(const H of this.pages)for(const be of H.rows)for(const St of be.grid)if("SUBFORM"===St.entityType&&St.element?.id===l)return void(St.element.deleted=!0)})}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(gs),e.rXU(ji.Bq))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-sub-form"]],inputs:{subForm:"subForm",edit:"edit",acceptedLanguage:"acceptedLanguage",pages:"pages"},outputs:{subFormChange:"subFormChange"},features:[e.OA$],decls:1,vars:1,consts:[["class","outer-container mb-4 px-3",3,"id",4,"ngIf"],[1,"outer-container","mb-4","px-3",3,"id"],[1,"body","py-1","px-1"],[1,"tab-content","pt-4","pb-3","px-3"],[4,"ngIf","ngIfElse"],["copySubformContainer",""],[4,"ngIf"],[1,"subform-header"],[1,"data-container"],[1,"sectionTitle"],[1,"description",3,"innerHTML"],[1,"icon-container"],["src","/assets/octa-form-submission-webcomponent/icons/copy-icon.svg","alt","copy-icon",3,"click",4,"ngIf"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","class","delete-icon ms-3","alt","delete icon",3,"click",4,"ngIf"],["src","/assets/octa-form-submission-webcomponent/icons/copy-icon.svg","alt","copy-icon",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete icon",1,"delete-icon","ms-3",3,"click"],[1,"icon-container","d-flex","justify-content-end",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete icon",1,"delete-icon"],[1,"copy-subform-container","mb-3"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"mt-3"],["placeholder","",1,"editor",3,"ngModel","ngModelChange","onEditorCreated"],[3,"subForm","acceptedLanguage","subFormChange",4,"ngIf"],[3,"subForm","acceptedLanguage","edit","subFormChange",4,"ngIf"],[3,"subForm","acceptedLanguage","subFormChange"],[3,"subForm","acceptedLanguage","edit","subFormChange"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","rowId",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&e.DNE(0,wi,8,6,"div",0),2&k&&e.Y8G("ngIf",!M.subForm.deleted)},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,ne,rr,Ko.i9,vt.me,vt.BC,vt.vS,Vl,ba,Br],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;position:relative}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.body[_ngcontent-%COMP%]{position:relative;background:#efefef;border-radius:6px}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}.subform-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.icon-container[_ngcontent-%COMP%]{cursor:pointer}.delete-icon[_ngcontent-%COMP%]{height:36px;width:36px}"]})}}return _})();function si(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function uo(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Co(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Vr(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function jr(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ws(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function hd(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function lc(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",16),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function xd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function sa(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function El(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function lr(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",17),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function qi(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Er(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Id(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function mu(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function gu(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Dh(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",17),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function wa(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function zc(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",16),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function za(_,ie){1&_&&e.eu8(0)}const _u=function(_,ie){return{grid:_,answer:ie,state:"child"}};function tu(_,ie){if(1&_&&(e.qex(0),e.DNE(1,za,1,0,"ng-container",18),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,_u,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function nu(_,ie){if(1&_&&(e.qex(0),e.DNE(1,tu,2,5,"ng-container",10),e.bVm()),2&_){const l=e.XpG(4);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Od(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",11),e.DNE(2,si,1,1,"octa-check-box-fields",12),e.DNE(3,uo,1,1,"octa-date-time-fields",12),e.DNE(4,Co,1,1,"octa-drop-down-fields",12),e.DNE(5,Vr,1,1,"octa-file-picker-fields",12),e.DNE(6,jr,1,1,"octa-location-fields",12),e.DNE(7,Ws,1,1,"octa-mail-fields",12),e.DNE(8,hd,1,1,"octa-mobile-fields",12),e.DNE(9,lc,1,2,"octa-number-fields",13),e.DNE(10,xd,1,1,"octa-password-fields",12),e.DNE(11,sa,1,1,"octa-radio-button-fields",12),e.DNE(12,El,1,1,"octa-rich-text-editor-fields",12),e.DNE(13,lr,1,2,"octa-selection-matrix-fields",14),e.DNE(14,qi,1,1,"octa-signature-fields",12),e.DNE(15,Er,1,1,"octa-slider-fields",12),e.DNE(16,Id,1,1,"octa-terms-and-condition-fields",12),e.DNE(17,mu,1,1,"octa-text-area-fields",12),e.DNE(18,gu,1,1,"octa-text-fields",12),e.DNE(19,Dh,1,2,"octa-toggle-switch-fields",14),e.DNE(20,wa,1,1,"octa-url-fields",12),e.DNE(21,zc,1,2,"octa-aggregate-function",13),e.k0s(),e.DNE(22,nu,2,1,"ng-container",10),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}const vu=function(_){return{"width.%":_}};function bu(_,ie){if(1&_&&(e.j41(0,"div",9),e.DNE(1,Od,23,22,"div",10),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(2,vu,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function yu(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",7),e.DNE(2,bu,2,4,"div",8),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}let Cu=(()=>{class _{constructor(){this.questionGroup={},this.edit=!1,this.acceptedLanguage="",this.decodedDescription="",this.childLogicCache={}}ngOnInit(){this.loadComponent()}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}ngOnChanges(){this.questionGroup.description&&(this.decodedDescription=this.decodeHtml(this.questionGroup.description))}removeCircularReferences(l){const k=new WeakSet;return function M(H){if(null===H||"object"!=typeof H)return H;if(k.has(H))return"[Circular]";if(k.add(H),Array.isArray(H))return H.map(St=>M(St));const be={};for(const St of Object.keys(H))be[St]=M(H[St]);return k.delete(H),be}(l)}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-question-group"]],inputs:{questionGroup:"questionGroup",edit:"edit",acceptedLanguage:"acceptedLanguage"},features:[e.OA$],decls:8,vars:4,consts:[[1,"outer-container","mb-4","px-3"],[1,"body","container","pt-3","pb-3","px-3"],[1,"tab-content","pt-4","pb-3","px-3"],[1,"sectionTitle"],[1,"description",3,"innerHTML"],[1,"mt-5"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","rowId",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e.EFF(4),e.k0s(),e.nrm(5,"p",4),e.j41(6,"div",5),e.DNE(7,yu,3,1,"div",6),e.k0s()()()()),2&k&&(e.BMQ("name",M.questionGroup.testElementName),e.R7$(4),e.JRh(M.questionGroup.title),e.R7$(1),e.Y8G("innerHTML",M.decodedDescription,e.npT),e.R7$(2),e.Y8G("ngForOf",M.questionGroup.rows))},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,rr],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;position:relative}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.body[_ngcontent-%COMP%]{position:relative;z-index:1;background:#efefef;border-radius:6px}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}"]})}}return _})();function Sl(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function fd(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ts(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function xs(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function qc(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function cc(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Xc(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Rd(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Nd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function dc(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Fd(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Wc(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",14),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Kc(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function uc(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Qc(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function wu(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Rc(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Zc(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",14),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function hc(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Hl(_,ie){1&_&&e.eu8(0)}function fc(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Hl,1,0,"ng-container",15),e.nI1(2,"async"),e.bVm()),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",e.bMT(2,1,k.loadFormElementsComponent(l.element.childLogics)))}}function pd(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",10),e.DNE(2,Sl,1,1,"octa-check-box-fields",11),e.DNE(3,fd,1,1,"octa-date-time-fields",11),e.DNE(4,ts,1,1,"octa-drop-down-fields",11),e.DNE(5,xs,1,1,"octa-file-picker-fields",11),e.DNE(6,qc,1,1,"octa-location-fields",11),e.DNE(7,cc,1,1,"octa-mail-fields",11),e.DNE(8,Xc,1,1,"octa-mobile-fields",11),e.DNE(9,Rd,1,1,"octa-number-fields",11),e.DNE(10,Nd,1,1,"octa-password-fields",11),e.DNE(11,dc,1,1,"octa-radio-button-fields",11),e.DNE(12,Fd,1,1,"octa-rich-text-editor-fields",11),e.DNE(13,Wc,1,2,"octa-selection-matrix-fields",12),e.DNE(14,Kc,1,1,"octa-signature-fields",11),e.DNE(15,uc,1,1,"octa-slider-fields",11),e.DNE(16,Qc,1,1,"octa-terms-and-condition-fields",11),e.DNE(17,wu,1,1,"octa-text-area-fields",11),e.DNE(18,Rc,1,1,"octa-text-fields",11),e.DNE(19,Zc,1,2,"octa-toggle-switch-fields",12),e.DNE(20,hc,1,1,"octa-url-fields",11),e.k0s(),e.DNE(21,fc,3,3,"ng-container",9),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngIf",l.element.childLogics)}}const Jc=function(_){return{"width.%":_}};function pc(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,pd,22,21,"div",9),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(2,Jc,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function Yl(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",6),e.DNE(2,pc,2,4,"div",7),e.k0s(),e.bVm()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}let Ad=(()=>{class _{constructor(){this.multiFields={},this.acceptedLanguage=""}loadFormElementsComponent(l){var k=this;return(0,Z.A)(function*(){k.grid=l;const{FormElementsComponent:M}=yield Promise.resolve().then(N.bind(N,7869));return M})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid},{provide:"state",useValue:"child"}]})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-multifields"]],inputs:{multiFields:"multiFields",acceptedLanguage:"acceptedLanguage"},decls:8,vars:4,consts:[[1,"outer-container","mb-4","px-3","multifields"],[1,"d-flex","align-items-center"],[3,"innerHTML"],[1,"space"],[1,"multifields-row"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2)(3,"span",3),e.j41(4,"label"),e.EFF(5),e.k0s()(),e.j41(6,"div",4),e.DNE(7,Yl,3,1,"ng-container",5),e.k0s()()),2&k&&(e.BMQ("name",M.multiFields.testElementName),e.R7$(2),e.Y8G("innerHTML",M.multiFields.questionNumber,e.npT),e.R7$(3),e.JRh(M.multiFields.question),e.R7$(2),e.Y8G("ngForOf",M.multiFields.rows))},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,on,ai,rn,qe,Mi,_e,Bs,Po,no,oo,rs,js,qr,sr,Nr,ha,or,h.Jj],styles:[".multifields .mb-5{margin:0!important}.space[_ngcontent-%COMP%]{width:5px}"]})}}return _})();function Du(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-question",1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("question",null==l.grid?null:l.grid.element)("edit",l.edit)("acceptedLanguage",l.acceptedLanguage)}}function Mh(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",2),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("section",l.grid.element)}}function Mu(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"octa-sub-form",3),e.bIt("subFormChange",function(M){e.eBV(l);const H=e.XpG();return e.Njj(H.updateSubFormWithSubmissions(M))}),e.k0s(),e.bVm()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("subForm",l.grid.element)("acceptedLanguage",l.acceptedLanguage)("edit",l.edit)("pages",l.pages)}}function Th(_,ie){if(1&_&&(e.qex(0),e.nrm(1,"octa-question-group",4),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("questionGroup",l.grid.element)("acceptedLanguage",l.acceptedLanguage)}}function Qu(_,ie){if(1&_&&(e.qex(0),e.nrm(1,"octa-multifields",5),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("multiFields",l.grid.element)("acceptedLanguage",l.acceptedLanguage)}}let Zu=(()=>{class _{constructor(){this.grid={},this.currentPageIndex=0,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new e.bkB,this.pages=[]}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-recursive-logic"]],inputs:{grid:"grid",currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",state:"state",answer:"answer",pages:"pages"},outputs:{subFormChange:"subFormChange"},decls:5,vars:5,consts:[[4,"ngIf"],[3,"question","edit","acceptedLanguage"],[3,"section"],[3,"subForm","acceptedLanguage","edit","pages","subFormChange"],[3,"questionGroup","acceptedLanguage"],[3,"multiFields","acceptedLanguage"]],template:function(k,M){1&k&&(e.DNE(0,Du,2,3,"div",0),e.DNE(1,Mh,2,1,"div",0),e.DNE(2,Mu,2,4,"ng-container",0),e.DNE(3,Th,2,2,"ng-container",0),e.DNE(4,Qu,2,2,"ng-container",0)),2&k&&(e.Y8G("ngIf","QUESTION"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","SUBFORM"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","QUESTION_GROUP"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","MULTIFIELD"===M.grid.entityType))},dependencies:[h.bT,ne,Ji,Si,Cu,Ad]})}}return _})();function iu(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div")(1,"octa-recursive-logic",4),e.bIt("subFormChange",function(M){e.eBV(l);const H=e.XpG(5);return e.Njj(H.updateSubFormWithSubmissions(M))}),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG(5);e.R7$(1),e.Y8G("grid",l)("edit",k.edit)("acceptedLanguage",k.acceptedLanguage)("pages",k.pages)}}function Eh(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,iu,2,4,"div",2),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function md(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,Eh,2,1,"div",2),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngForOf",l.rows)}}function ed(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,md,2,1,"div",3),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngIf",l.showLogic&&k.answer)}}function Pd(_,ie){if(1&_&&(e.qex(0),e.DNE(1,ed,2,1,"div",2),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngForOf",l.grid)}}function gd(_,ie){if(1&_&&e.nrm(0,"octa-recursive-logic",5),2&_){const l=e.XpG();e.Y8G("grid",l.grid)("edit",l.edit)("acceptedLanguage",l.acceptedLanguage)("pages",l.pages)}}let Sh=(()=>{class _{constructor(l,k,M){this.injectedGrid=l,this.injectedState=k,this.injectedAnswer=M,this.currentPageIndex=0,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new e.bkB,this.pages=[]}ngOnInit(){this.grid=this.injectedGrid??this.grid,this.state=this.injectedState??this.state,this.answer=this.injectedAnswer??this.answer}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU("grid",8),e.rXU("state",8),e.rXU("answer",8))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-form-elements"]],inputs:{currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",answer:"answer",grid:"grid",state:"state",pages:"pages"},outputs:{subFormChange:"subFormChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["parentBlock",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"grid","edit","acceptedLanguage","pages","subFormChange"],[3,"grid","edit","acceptedLanguage","pages"]],template:function(k,M){if(1&k&&(e.DNE(0,Pd,2,1,"ng-container",0),e.DNE(1,gd,1,4,"ng-template",null,1,e.C5r)),2&k){const H=e.sdS(2);e.Y8G("ngIf","child"===M.state)("ngIfElse",H)}},dependencies:[h.Sq,h.bT,Zu]})}}return _})()},6:(gn,ct,N)=>{N.d(ct,{q:()=>ne});var e=N(4412),h=N(7705);let ne=(()=>{class Z{constructor(){this.aggregateFieldsMap=new Map,this.numberFieldsMap=new Map,this.aggregateFieldResultsSubject=new e.t(null),this.aggregateFieldResults$=this.aggregateFieldResultsSubject.asObservable()}setAggregateField(we,Ie,Oe,Fe){this.aggregateFieldsMap.has(we)||this.aggregateFieldsMap.set(we,new Map),this.aggregateFieldsMap.get(we).set(Ie,{id:Ie,operation:Oe,formula:Fe})}setNumberField(we,Ie,Oe){this.numberFieldsMap.has(we)||this.numberFieldsMap.set(we,new Map),this.numberFieldsMap.get(we).set(Ie,{id:Ie,answer:Oe}),this.checkAndEvaluateFormulas(we)}emitAggregateResult(we,Ie,Oe){this.aggregateFieldResultsSubject.next({id:we,result:Ie,evaluated:Oe})}evaluateCustomFormula(we,Ie){const Oe=this.numberFieldsMap.get(we);if(!Ie||!Oe)return null;const Fe=/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}/g;if(!(Ie.match(Fe)||[]).every(Ct=>{const _t=Oe.get(Ct);return void 0!==_t&&null!=_t.answer&&""!==String(_t.answer).trim()}))return null;const Ue=Ie.replace(Fe,Ct=>Oe.get(Ct)?.answer?.toString()||"0");try{return new Function(`return ${Ue};`)()}catch(Ct){return console.error("Error evaluating formula:",Ct),null}}evaluatePredefinedOperation(we,Ie,Oe){const Fe=this.numberFieldsMap.get(we);if(!Fe)return null;const Me=Oe.split(",").map(_t=>_t.trim()),Ge=[];let Ue=!1;for(const _t of Me){const ft=Fe.get(_t)?.answer;null!=ft&&""!==String(ft).trim()?(Ue=!0,Ge.push(Number(ft))):Ge.push(0)}if(!Ue)return null;let Ct=0;switch(Ie){case"SUM":Ct=Ge.reduce((_t,bt)=>_t+bt,0);break;case"SUBTRACTION":Ct=Ge.reduce((_t,bt)=>_t-bt);break;case"MULTIPLICATION":Ct=Ge.reduce((_t,bt)=>_t*bt,1);break;default:return console.warn(`Unsupported operation: ${Ie}`),null}return Ct}checkAndEvaluateFormulas(we){const Ie=this.aggregateFieldsMap.get(we);Ie&&Ie.forEach((Oe,Fe)=>{let Me=null;Me="CUSTOM"===Oe.operation?this.evaluateCustomFormula(we,Oe.formula):this.evaluatePredefinedOperation(we,Oe.operation,Oe.formula),null!==Me?(Oe.result=Me,this.aggregateFieldsMap.get(we).set(Fe,Oe),this.emitAggregateResult(`${we}:${Fe}`,Me,!0)):this.emitAggregateResult(`${we}:${Fe}`,0,!1)})}clearAll(){this.aggregateFieldsMap.clear(),this.numberFieldsMap.clear(),this.aggregateFieldResultsSubject.next(null)}ngOnDestroy(){this.clearAll()}static{this.\u0275fac=function(Ie){return new(Ie||Z)}}static{this.\u0275prov=h.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},1339:(gn,ct,N)=>{N.d(ct,{u:()=>ne});var e=N(4412),h=N(7705);let ne=(()=>{class Z{constructor(){this.dataSubject=new e.t(""),this.apiUrl$=this.dataSubject.asObservable(),this.headerSubject=new e.t({}),this.header$=this.headerSubject.asObservable(),this.formDataSubject=new e.t({}),this.formData$=this.formDataSubject.asObservable(),this.parentQuestionsSubject=new e.t(null),this.parentQuestions$=this.parentQuestionsSubject.asObservable()}setApiUrl(we){this.dataSubject.next(we)}setHeader(we){this.headerSubject.next(we)}setFormData(we){this.formDataSubject.next(we)}setParentQuestions(we){this.parentQuestionsSubject.next(we)}static{this.\u0275fac=function(Ie){return new(Ie||Z)}}static{this.\u0275prov=h.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},1852:(gn,ct,N)=>{N.d(ct,{U:()=>h});var e=N(7705);let h=(()=>{class ne{constructor(){this.elementIds=new Set}registerElement(De){this.elementIds.add(De)}unregisterElement(De){this.elementIds.delete(De)}getAllElementIds(){return Array.from(this.elementIds)}clear(){this.elementIds.clear()}static{this.\u0275fac=function(we){return new(we||ne)}}static{this.\u0275prov=e.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},541:(gn,ct,N)=>{N.d(ct,{u:()=>Z});var e=N(1626),h=N(7705),ne=N(1339);let Z=(()=>{class De{constructor(Ie,Oe){this.http=Ie,this.dataService=Oe,this.header={},this.dataService.apiUrl$.subscribe(Fe=>{console.log("constructor apiurl",Fe),this.apiUrl=Fe}),this.dataService.header$.subscribe(Fe=>{this.header=Fe,console.log("constructor header",Fe)}),this.dataService.parentQuestions$.subscribe(Fe=>{Fe&&(this.parentQuestions=Fe)})}getSafeHeaders(){const Ie={};if(this.header&&"object"==typeof this.header)for(const Oe of Object.keys(this.header)){const Fe=this.header[Oe];null!=Fe&&(Ie[Oe]=String(Fe))}return console.log("[ApiService] getSafeHeaders, input header:",this.header,"output safe:",Ie),Ie}getQuestions(Ie,Oe=1,Fe=0,Me=!0){const Ge=new e.Lr(this.getSafeHeaders()),Ue=(new e.Nl).set("pageNumber",Oe.toString()).set("rowSet",Fe.toString()).set("progressiveLoading",Me);return this.http.get(`${this.apiUrl}/api/public/forms/${Ie}`,{headers:Ge,params:Ue})}fetchDataFromDatabase(Ie){const Oe=new e.Lr(this.getSafeHeaders());return this.http.post(`${this.apiUrl}/api/load-from-db`,Ie,{headers:Oe})}fetchDataFromLookup(Ie){return this.http.get(`${this.apiUrl}/api/public/lookup/${Ie}`)}fetchDataFromExternalAPI(Ie){let Oe=new e.Lr(this.getSafeHeaders()),Fe=new e.Nl;Ie.params&&Ie.params.forEach(Ge=>{Ge.keyName&&Ge.inputValue&&(Fe=Fe.set(Ge.keyName,Ge.inputValue))});let Me=Ie.url;return Ie.pathVariables&&Ie.pathVariables.forEach(Ge=>{Ge.keyName&&Ge.inputValue&&(Me=Me.replace(`{${Ge.keyName}}`,Ge.inputValue))}),this.http.get(Me,{headers:Oe,params:Fe})}submitForm(Ie,Oe,Fe){const Me=new e.Lr(this.getSafeHeaders()),Ge=`${this.apiUrl}/api/public/forms/${Ie}/submissions`;return Fe&&Oe.append("recaptchaToken",Fe),this.http.post(Ge,Oe,{headers:Me})}getSubmittedForm(Ie,Oe,Fe=1,Me=0){let Ge=new e.Lr(this.getSafeHeaders()),Ue=(new e.Nl).set("pageNumber",Fe.toString()).set("rowSet",Me.toString());return this.parentQuestions&&this.parentQuestions.forEach(Ct=>{Ue=Ue.append("parentQuestions",Ct)}),this.http.get(`${this.apiUrl}/api/forms/${Ie}/submissions/${Oe}`,{headers:Ge,params:Ue})}updateForm(Ie,Oe,Fe,Me){const Ge=new e.Lr(this.getSafeHeaders()),Ue=`${this.apiUrl}/api/public/forms/${Ie}/submissions/${Oe}`;return Me&&Fe.append("recaptchaToken",Me),this.http.put(Ue,Fe,{headers:Ge})}previewFile(Ie){const Fe={headers:new e.Lr(this.getSafeHeaders())},Ue=`?url=${encodeURIComponent(Ie)}`;return this.http.get(this.apiUrl+`/api/cdn/preview${Ue}`,Fe)}static{this.\u0275fac=function(Oe){return new(Oe||De)(h.KVO(e.Qq),h.KVO(ne.u))}}static{this.\u0275prov=h.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})()},3628:(gn,ct,N)=>{N.d(ct,{B:()=>h});var e=N(7705);let h=(()=>{class ne{constructor(){this.invalidQuestions={}}setInvalid(De,we,Ie){this.invalidQuestions[De]={message:we,pageIndex:Ie}}clearInvalid(De){delete this.invalidQuestions[De]}getFirstInvalid(){const De=Object.keys(this.invalidQuestions);return De.length>0?{id:De[0],pageIndex:this.invalidQuestions[De[0]].pageIndex}:null}getErrorMessage(De){return this.invalidQuestions[De]?.message||null}clearAll(){this.invalidQuestions={}}static{this.\u0275fac=function(we){return new(we||ne)}}static{this.\u0275prov=e.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},5686:(gn,ct,N)=>{N.d(ct,{zk:()=>rc,c9:()=>eo,v2:()=>Ul});var e=N(7705),h=N(177),ne=N(4412),Z=N(1413),De=N(7786),we=N(4668),Ie=N(8141),Oe=N(152),Fe=N(3294),Me=N(5964),Ge=N(6977),Ue=N(9969);class Ct extends Error{}class _t extends Ct{constructor(y){super(`Invalid DateTime: ${y.toMessage()}`)}}class bt extends Ct{constructor(y){super(`Invalid Interval: ${y.toMessage()}`)}}class ft extends Ct{constructor(y){super(`Invalid Duration: ${y.toMessage()}`)}}class mt extends Ct{}class tn extends Ct{constructor(y){super(`Invalid unit ${y}`)}}class vt extends Ct{}class Pt extends Ct{constructor(){super("Zone is an abstract class")}}const me="numeric",at="short",ot="long",ht={year:me,month:me,day:me},kt={year:me,month:at,day:me},Tt={year:me,month:at,day:me,weekday:at},cn={year:me,month:ot,day:me},kn={year:me,month:ot,day:me,weekday:ot},dn={hour:me,minute:me},Kt={hour:me,minute:me,second:me},Ye={hour:me,minute:me,second:me,timeZoneName:at},ye={hour:me,minute:me,second:me,timeZoneName:ot},Se={hour:me,minute:me,hourCycle:"h23"},Nt={hour:me,minute:me,second:me,hourCycle:"h23"},K={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:at},ge={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:ot},je={year:me,month:me,day:me,hour:me,minute:me},le={year:me,month:me,day:me,hour:me,minute:me,second:me},de={year:me,month:at,day:me,hour:me,minute:me},Le={year:me,month:at,day:me,hour:me,minute:me,second:me},ue={year:me,month:at,day:me,weekday:at,hour:me,minute:me},He={year:me,month:ot,day:me,hour:me,minute:me,timeZoneName:at},L={year:me,month:ot,day:me,hour:me,minute:me,second:me,timeZoneName:at},q={year:me,month:ot,day:me,weekday:ot,hour:me,minute:me,timeZoneName:ot},Be={year:me,month:ot,day:me,weekday:ot,hour:me,minute:me,second:me,timeZoneName:ot};class pt{get type(){throw new Pt}get name(){throw new Pt}get ianaName(){return this.name}get isUniversal(){throw new Pt}offsetName(y,b){throw new Pt}formatOffset(y,b){throw new Pt}offset(y){throw new Pt}equals(y){throw new Pt}get isValid(){throw new Pt}}let dt=null;class Gt extends pt{static get instance(){return null===dt&&(dt=new Gt),dt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(y,{format:b,locale:I}){return ys(y,b,I)}formatOffset(y,b){return xr(this.offset(y),b)}offset(y){return-new Date(y).getTimezoneOffset()}equals(y){return"system"===y.type}get isValid(){return!0}}const Cn=new Map,sn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},yi=new Map;class It extends pt{static create(y){let b=yi.get(y);return void 0===b&&yi.set(y,b=new It(y)),b}static resetCache(){yi.clear(),Cn.clear()}static isValidSpecifier(y){return this.isValidZone(y)}static isValidZone(y){if(!y)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:y}).format(),!0}catch{return!1}}constructor(y){super(),this.zoneName=y,this.valid=It.isValidZone(y)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(y,{format:b,locale:I}){return ys(y,b,I,this.name)}formatOffset(y,b){return xr(this.offset(y),b)}offset(y){if(!this.valid)return NaN;const b=new Date(y);if(isNaN(b))return NaN;const I=function jn(S){let y=Cn.get(S);return void 0===y&&(y=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Cn.set(S,y)),y}(this.name);let[z,ce,rt,yt,Lt,vn,ii]=I.formatToParts?function oi(S,y){const b=S.formatToParts(y),I=[];for(let z=0;z<b.length;z++){const{type:ce,value:rt}=b[z],yt=sn[ce];"era"===ce?I[yt]=rt:At(yt)||(I[yt]=parseInt(rt,10))}return I}(I,b):function Vn(S,y){const b=S.format(y).replace(/\u200E/g,""),I=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(b),[,z,ce,rt,yt,Lt,vn,ii]=I;return[rt,z,ce,yt,Lt,vn,ii]}(I,b);"BC"===yt&&(z=1-Math.abs(z));let si=+b;const uo=si%1e3;return si-=uo>=0?uo:1e3+uo,(Ko({year:z,month:ce,day:rt,hour:24===Lt?0:Lt,minute:vn,second:ii,millisecond:0})-si)/6e4}equals(y){return"iana"===y.type&&y.name===this.name}get isValid(){return this.valid}}let ke={};const xe=new Map;function Ve(S,y={}){const b=JSON.stringify([S,y]);let I=xe.get(b);return void 0===I&&(I=new Intl.DateTimeFormat(S,y),xe.set(b,I)),I}const ut=new Map,on=new Map;let Qt=null;const nt=new Map;function Mt(S){let y=nt.get(S);return void 0===y&&(y=new Intl.DateTimeFormat(S).resolvedOptions(),nt.set(S,y)),y}const Dt=new Map;function Ai(S,y,b,I){const z=S.listingMode();return"error"===z?null:"en"===z?b(y):I(y)}class Bi{constructor(y,b,I){this.padTo=I.padTo||0,this.floor=I.floor||!1;const{padTo:z,floor:ce,...rt}=I;if(!b||Object.keys(rt).length>0){const yt={useGrouping:!1,...I};I.padTo>0&&(yt.minimumIntegerDigits=I.padTo),this.inf=function Ft(S,y={}){const b=JSON.stringify([S,y]);let I=ut.get(b);return void 0===I&&(I=new Intl.NumberFormat(S,y),ut.set(b,I)),I}(y,yt)}}format(y){if(this.inf){const b=this.floor?Math.floor(y):y;return this.inf.format(b)}return wn(this.floor?Math.floor(y):ca(y,3),this.padTo)}}class As{constructor(y,b,I){let z;if(this.opts=I,this.originalZone=void 0,this.opts.timeZone)this.dt=y;else if("fixed"===y.zone.type){const rt=y.offset/60*-1,yt=rt>=0?`Etc/GMT+${rt}`:`Etc/GMT${rt}`;0!==y.offset&&It.create(yt).valid?(z=yt,this.dt=y):(z="UTC",this.dt=0===y.offset?y:y.setZone("UTC").plus({minutes:y.offset}),this.originalZone=y.zone)}else"system"===y.zone.type?this.dt=y:"iana"===y.zone.type?(this.dt=y,z=y.zone.name):(z="UTC",this.dt=y.setZone("UTC").plus({minutes:y.offset}),this.originalZone=y.zone);const ce={...this.opts};ce.timeZone=ce.timeZone||z,this.dtf=Ve(b,ce)}format(){return this.originalZone?this.formatToParts().map(({value:y})=>y).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const y=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?y.map(b=>{if("timeZoneName"===b.type){const I=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...b,value:I}}return b}):y}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ms{constructor(y,b,I){this.opts={style:"long",...I},!b&&ri()&&(this.rtf=function Ln(S,y={}){const{base:b,...I}=y,z=JSON.stringify([S,I]);let ce=on.get(z);return void 0===ce&&(ce=new Intl.RelativeTimeFormat(S,y),on.set(z,ce)),ce}(y,I))}format(y,b){return this.rtf?this.rtf.format(y,b):function Ir(S,y,b="always",I=!1){const z={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},ce=-1===["hours","minutes","seconds"].indexOf(S);if("auto"===b&&ce){const wi="days"===S;switch(y){case 1:return wi?"tomorrow":`next ${z[S][0]}`;case-1:return wi?"yesterday":`last ${z[S][0]}`;case 0:return wi?"today":`this ${z[S][0]}`}}const rt=Object.is(y,-0)||y<0,yt=Math.abs(y),Lt=1===yt,vn=z[S],ii=I?Lt?vn[1]:vn[2]||vn[1]:Lt?z[S][0]:S;return rt?`${yt} ${ii} ago`:`in ${yt} ${ii}`}(b,y,this.opts.numeric,"long"!==this.opts.style)}formatToParts(y,b){return this.rtf?this.rtf.formatToParts(y,b):[]}}const to={firstDay:1,minimalDays:4,weekend:[6,7]};class mn{static fromOpts(y){return mn.create(y.locale,y.numberingSystem,y.outputCalendar,y.weekSettings,y.defaultToEN)}static create(y,b,I,z,ce=!1){const rt=y||nn.defaultLocale,yt=rt||(ce?"en-US":function Xt(){return Qt||(Qt=(new Intl.DateTimeFormat).resolvedOptions().locale,Qt)}()),Lt=b||nn.defaultNumberingSystem,vn=I||nn.defaultOutputCalendar,ii=Bs(z)||nn.defaultWeekSettings;return new mn(yt,Lt,vn,ii,rt)}static resetCache(){Qt=null,xe.clear(),ut.clear(),on.clear(),nt.clear(),Dt.clear()}static fromObject({locale:y,numberingSystem:b,outputCalendar:I,weekSettings:z}={}){return mn.create(y,b,I,z)}constructor(y,b,I,z,ce){const[rt,yt,Lt]=function yn(S){const y=S.indexOf("-x-");-1!==y&&(S=S.substring(0,y));const b=S.indexOf("-u-");if(-1===b)return[S];{let I,z;try{I=Ve(S).resolvedOptions(),z=S}catch{const Lt=S.substring(0,b);I=Ve(Lt).resolvedOptions(),z=Lt}const{numberingSystem:ce,calendar:rt}=I;return[z,ce,rt]}}(y);this.locale=rt,this.numberingSystem=b||yt||null,this.outputCalendar=I||Lt||null,this.weekSettings=z,this.intl=function $n(S,y,b){return(b||y)&&(S.includes("-u-")||(S+="-u"),b&&(S+=`-ca-${b}`),y&&(S+=`-nu-${y}`)),S}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=ce,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function cs(S){return(!S.numberingSystem||"latn"===S.numberingSystem)&&("latn"===S.numberingSystem||!S.locale||S.locale.startsWith("en")||"latn"===Mt(S.locale).numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(y){return y&&0!==Object.getOwnPropertyNames(y).length?mn.create(y.locale||this.specifiedLocale,y.numberingSystem||this.numberingSystem,y.outputCalendar||this.outputCalendar,Bs(y.weekSettings)||this.weekSettings,y.defaultToEN||!1):this}redefaultToEN(y={}){return this.clone({...y,defaultToEN:!0})}redefaultToSystem(y={}){return this.clone({...y,defaultToEN:!1})}months(y,b=!1){return Ai(this,y,Vi,()=>{const I="ja"===this.intl||this.intl.startsWith("ja-"),z=(b&=!I)?{month:y,day:"numeric"}:{month:y},ce=b?"format":"standalone";return this.monthsCache[ce][y]||(this.monthsCache[ce][y]=function di(S){const y=[];for(let b=1;b<=12;b++){const I=qn.utc(2009,b,1);y.push(S(I))}return y}(I?yt=>this.dtFormatter(yt,z).format():yt=>this.extract(yt,z,"month"))),this.monthsCache[ce][y]})}weekdays(y,b=!1){return Ai(this,y,qs,()=>{const I=b?{weekday:y,year:"numeric",month:"long",day:"numeric"}:{weekday:y},z=b?"format":"standalone";return this.weekdaysCache[z][y]||(this.weekdaysCache[z][y]=function ai(S){const y=[];for(let b=1;b<=7;b++){const I=qn.utc(2016,11,13+b);y.push(S(I))}return y}(ce=>this.extract(ce,I,"weekday"))),this.weekdaysCache[z][y]})}meridiems(){return Ai(this,void 0,()=>io,()=>{if(!this.meridiemCache){const y={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[qn.utc(2016,11,13,9),qn.utc(2016,11,13,19)].map(b=>this.extract(b,y,"dayperiod"))}return this.meridiemCache})}eras(y){return Ai(this,y,nr,()=>{const b={era:y};return this.eraCache[y]||(this.eraCache[y]=[qn.utc(-40,1,1),qn.utc(2017,1,1)].map(I=>this.extract(I,b,"era"))),this.eraCache[y]})}extract(y,b,I){const rt=this.dtFormatter(y,b).formatToParts().find(yt=>yt.type.toLowerCase()===I);return rt?rt.value:null}numberFormatter(y={}){return new Bi(this.intl,y.forceSimple||this.fastNumbers,y)}dtFormatter(y,b={}){return new As(y,this.intl,b)}relFormatter(y={}){return new Ms(this.intl,this.isEnglish(),y)}listFormatter(y={}){return function re(S,y={}){const b=JSON.stringify([S,y]);let I=ke[b];return I||(I=new Intl.ListFormat(S,y),ke[b]=I),I}(this.intl,y)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Mt(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ki()?function Nn(S){let y=Dt.get(S);if(!y){const b=new Intl.Locale(S);y="getWeekInfo"in b?b.getWeekInfo():b.weekInfo,"minimalDays"in y||(y={...to,...y}),Dt.set(S,y)}return y}(this.locale):to}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(y){return this.locale===y.locale&&this.numberingSystem===y.numberingSystem&&this.outputCalendar===y.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Hs=null;class rn extends pt{static get utcInstance(){return null===Hs&&(Hs=new rn(0)),Hs}static instance(y){return 0===y?rn.utcInstance:new rn(y)}static parseSpecifier(y){if(y){const b=y.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(b)return new rn(Yi(b[1],b[2]))}return null}constructor(y){super(),this.fixed=y}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${xr(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${xr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(y,b){return xr(this.fixed,b)}get isUniversal(){return!0}offset(){return this.fixed}equals(y){return"fixed"===y.type&&y.fixed===this.fixed}get isValid(){return!0}}class xt extends pt{constructor(y){super(),this.zoneName=y}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ve(S,y){if(At(S)||null===S)return y;if(S instanceof pt)return S;if(function mi(S){return"string"==typeof S}(S)){const b=S.toLowerCase();return"default"===b?y:"local"===b||"system"===b?Gt.instance:"utc"===b||"gmt"===b?rn.utcInstance:rn.parseSpecifier(b)||It.create(S)}return In(S)?rn.instance(S):"object"==typeof S&&"offset"in S&&"function"==typeof S.offset?S:new xt(S)}const Ae={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Ne={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},We=Ae.hanidec.replace(/[\[|\]]/g,"").split(""),fn=new Map;function qe({numberingSystem:S},y=""){const b=S||"latn";let I=fn.get(b);void 0===I&&(I=new Map,fn.set(b,I));let z=I.get(y);return void 0===z&&(z=new RegExp(`${Ae[b]}${y}`),I.set(y,z)),z}let it,Ee=()=>Date.now(),Ke="system",jt=null,pn=null,Je=null,$e=60,Zt=null;class nn{static get now(){return Ee}static set now(y){Ee=y}static set defaultZone(y){Ke=y}static get defaultZone(){return ve(Ke,Gt.instance)}static get defaultLocale(){return jt}static set defaultLocale(y){jt=y}static get defaultNumberingSystem(){return pn}static set defaultNumberingSystem(y){pn=y}static get defaultOutputCalendar(){return Je}static set defaultOutputCalendar(y){Je=y}static get defaultWeekSettings(){return Zt}static set defaultWeekSettings(y){Zt=Bs(y)}static get twoDigitCutoffYear(){return $e}static set twoDigitCutoffYear(y){$e=y%100}static get throwOnInvalid(){return it}static set throwOnInvalid(y){it=y}static resetCaches(){mn.resetCache(),It.resetCache(),qn.resetCache(),function gt(){fn.clear()}()}}class un{constructor(y,b){this.reason=y,this.explanation=b}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Tn=[0,31,59,90,120,151,181,212,243,273,304,334],li=[0,31,60,91,121,152,182,213,244,274,305,335];function bn(S,y){return new un("unit out of range",`you specified ${y} (of type ${typeof y}) as a ${S}, which is invalid`)}function Mi(S,y,b){const I=new Date(Date.UTC(S,y-1,b));S<100&&S>=0&&I.setUTCFullYear(I.getUTCFullYear()-1900);const z=I.getUTCDay();return 0===z?7:z}function Ps(S,y,b){return b+(tr(S)?li:Tn)[y-1]}function bs(S,y){const b=tr(S)?li:Tn,I=b.findIndex(ce=>ce<y);return{month:I+1,day:y-b[I]}}function ds(S,y){return(S-y+7)%7+1}function ps(S,y=4,b=1){const{year:I,month:z,day:ce}=S,rt=Ps(I,z,ce),yt=ds(Mi(I,z,ce),b);let vn,Lt=Math.floor((rt-yt+14-y)/7);return Lt<1?(vn=I-1,Lt=zs(vn,y,b)):Lt>zs(I,y,b)?(vn=I+1,Lt=1):vn=I,{weekYear:vn,weekNumber:Lt,weekday:yt,...Rs(S)}}function Ts(S,y=4,b=1){const{weekYear:I,weekNumber:z,weekday:ce}=S,rt=ds(Mi(I,1,y),b),yt=go(I);let vn,Lt=7*z+ce-rt-7+y;Lt<1?(vn=I-1,Lt+=go(vn)):Lt>yt?(vn=I+1,Lt-=go(I)):vn=I;const{month:ii,day:wi}=bs(vn,Lt);return{year:vn,month:ii,day:wi,...Rs(S)}}function ki(S){const{year:y,month:b,day:I}=S;return{year:y,ordinal:Ps(y,b,I),...Rs(S)}}function Re(S){const{year:y,ordinal:b}=S,{month:I,day:z}=bs(y,b);return{year:y,month:I,day:z,...Rs(S)}}function Rt(S,y){if(At(S.localWeekday)&&At(S.localWeekNumber)&&At(S.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!At(S.weekday)||!At(S.weekNumber)||!At(S.weekYear))throw new mt("Cannot mix locale-based week fields with ISO-based week fields");return At(S.localWeekday)||(S.weekday=S.localWeekday),At(S.localWeekNumber)||(S.weekNumber=S.localWeekNumber),At(S.localWeekYear)||(S.weekYear=S.localWeekYear),delete S.localWeekday,delete S.localWeekNumber,delete S.localWeekYear,{minDaysInFirstWeek:y.getMinDaysInFirstWeek(),startOfWeek:y.getStartOfWeek()}}function et(S){const y=Hn(S.year),b=Vs(S.month,1,12),I=Vs(S.day,1,Po(S.year,S.month));return y?b?!I&&bn("day",S.day):bn("month",S.month):bn("year",S.year)}function Vt(S){const{hour:y,minute:b,second:I,millisecond:z}=S,ce=Vs(y,0,23)||24===y&&0===b&&0===I&&0===z,rt=Vs(b,0,59),yt=Vs(I,0,59),Lt=Vs(z,0,999);return ce?rt?yt?!Lt&&bn("millisecond",z):bn("second",I):bn("minute",b):bn("hour",y)}function At(S){return typeof S>"u"}function In(S){return"number"==typeof S}function Hn(S){return"number"==typeof S&&S%1==0}function ri(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Ki(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function la(S,y,b){if(0!==S.length)return S.reduce((I,z)=>{const ce=[y(z),z];return I&&b(I[0],ce[0])===I[0]?I:ce},null)[1]}function os(S,y){return Object.prototype.hasOwnProperty.call(S,y)}function Bs(S){if(null==S)return null;if("object"!=typeof S)throw new vt("Week settings must be an object");if(!Vs(S.firstDay,1,7)||!Vs(S.minimalDays,1,7)||!Array.isArray(S.weekend)||S.weekend.some(y=>!Vs(y,1,7)))throw new vt("Invalid week settings");return{firstDay:S.firstDay,minimalDays:S.minimalDays,weekend:Array.from(S.weekend)}}function Vs(S,y,b){return Hn(S)&&S>=y&&S<=b}function wn(S,y=2){let I;return I=S<0?"-"+(""+-S).padStart(y,"0"):(""+S).padStart(y,"0"),I}function Ys(S){if(!At(S)&&null!==S&&""!==S)return parseInt(S,10)}function ms(S){if(!At(S)&&null!==S&&""!==S)return parseFloat(S)}function mo(S){if(!At(S)&&null!==S&&""!==S){const y=1e3*parseFloat("0."+S);return Math.floor(y)}}function ca(S,y,b="round"){const I=10**y;switch(b){case"expand":return S>0?Math.ceil(S*I)/I:Math.floor(S*I)/I;case"trunc":return Math.trunc(S*I)/I;case"round":return Math.round(S*I)/I;case"floor":return Math.floor(S*I)/I;case"ceil":return Math.ceil(S*I)/I;default:throw new RangeError(`Value rounding ${b} is out of range`)}}function tr(S){return S%4==0&&(S%100!=0||S%400==0)}function go(S){return tr(S)?366:365}function Po(S,y){const b=function Ja(S,y){return S-y*Math.floor(S/y)}(y-1,12)+1;return 2===b?tr(S+(y-b)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][b-1]}function Ko(S){let y=Date.UTC(S.year,S.month-1,S.day,S.hour,S.minute,S.second,S.millisecond);return S.year<100&&S.year>=0&&(y=new Date(y),y.setUTCFullYear(S.year,S.month-1,S.day)),+y}function To(S,y,b){return-ds(Mi(S,1,y),b)+y-1}function zs(S,y=4,b=1){const I=To(S,y,b),z=To(S+1,y,b);return(go(S)-I+z)/7}function bi(S){return S>99?S:S>nn.twoDigitCutoffYear?1900+S:2e3+S}function ys(S,y,b,I=null){const z=new Date(S),ce={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};I&&(ce.timeZone=I);const rt={timeZoneName:y,...ce},yt=new Intl.DateTimeFormat(b,rt).formatToParts(z).find(Lt=>"timezonename"===Lt.type.toLowerCase());return yt?yt.value:null}function Yi(S,y){let b=parseInt(S,10);Number.isNaN(b)&&(b=0);const I=parseInt(y,10)||0;return 60*b+(b<0||Object.is(b,-0)?-I:I)}function Eo(S){const y=Number(S);if("boolean"==typeof S||""===S||!Number.isFinite(y))throw new vt(`Invalid unit value ${S}`);return y}function Cs(S,y){const b={};for(const I in S)if(os(S,I)){const z=S[I];if(null==z)continue;b[y(I)]=Eo(z)}return b}function xr(S,y){const b=Math.trunc(Math.abs(S/60)),I=Math.trunc(Math.abs(S%60)),z=S>=0?"+":"-";switch(y){case"short":return`${z}${wn(b,2)}:${wn(I,2)}`;case"narrow":return`${z}${b}${I>0?`:${I}`:""}`;case"techie":return`${z}${wn(b,2)}${wn(I,2)}`;default:throw new RangeError(`Value format ${y} is out of range for property format`)}}function Rs(S){return function er(S,y){return y.reduce((b,I)=>(b[I]=S[I],b),{})}(S,["hour","minute","second","millisecond"])}const no=["January","February","March","April","May","June","July","August","September","October","November","December"],Lo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hr=["J","F","M","A","M","J","J","A","S","O","N","D"];function Vi(S){switch(S){case"narrow":return[...Hr];case"short":return[...Lo];case"long":return[...no];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Rn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ei=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Qi=["M","T","W","T","F","S","S"];function qs(S){switch(S){case"narrow":return[...Qi];case"short":return[...ei];case"long":return[...Rn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const io=["AM","PM"],so=["Before Christ","Anno Domini"],Qo=["BC","AD"],Zi=["B","A"];function nr(S){switch(S){case"narrow":return[...Zi];case"short":return[...Qo];case"long":return[...so];default:return null}}function Ri(S,y){let b="";for(const I of S)b+=I.literal?I.val:y(I.val);return b}const zr={D:ht,DD:kt,DDD:cn,DDDD:kn,t:dn,tt:Kt,ttt:Ye,tttt:ye,T:Se,TT:Nt,TTT:K,TTTT:ge,f:je,ff:de,fff:He,ffff:q,F:le,FF:Le,FFF:L,FFFF:Be};class rs{static create(y,b={}){return new rs(y,b)}static parseFormat(y){let b=null,I="",z=!1;const ce=[];for(let rt=0;rt<y.length;rt++){const yt=y.charAt(rt);"'"===yt?((I.length>0||z)&&ce.push({literal:z||/^\s+$/.test(I),val:""===I?"'":I}),b=null,I="",z=!z):z||yt===b?I+=yt:(I.length>0&&ce.push({literal:/^\s+$/.test(I),val:I}),I=yt,b=yt)}return I.length>0&&ce.push({literal:z||/^\s+$/.test(I),val:I}),ce}static macroTokenToFormatOpts(y){return zr[y]}constructor(y,b){this.opts=b,this.loc=y,this.systemLoc=null}formatWithSystemDefault(y,b){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(y,{...this.opts,...b}).format()}dtFormatter(y,b={}){return this.loc.dtFormatter(y,{...this.opts,...b})}formatDateTime(y,b){return this.dtFormatter(y,b).format()}formatDateTimeParts(y,b){return this.dtFormatter(y,b).formatToParts()}formatInterval(y,b){return this.dtFormatter(y.start,b).dtf.formatRange(y.start.toJSDate(),y.end.toJSDate())}resolvedOptions(y,b){return this.dtFormatter(y,b).resolvedOptions()}num(y,b=0,I=void 0){if(this.opts.forceSimple)return wn(y,b);const z={...this.opts};return b>0&&(z.padTo=b),I&&(z.signDisplay=I),this.loc.numberFormatter(z).format(y)}formatDateTimeFromString(y,b){const I="en"===this.loc.listingMode(),z=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,ce=(si,uo)=>this.loc.extract(y,si,uo),rt=si=>y.isOffsetFixed&&0===y.offset&&si.allowZ?"Z":y.isValid?y.zone.formatOffset(y.ts,si.format):"",Lt=(si,uo)=>I?function Yr(S,y){return Vi(y)[S.month-1]}(y,si):ce(uo?{month:si}:{month:si,day:"numeric"},"month"),vn=(si,uo)=>I?function ti(S,y){return qs(y)[S.weekday-1]}(y,si):ce(uo?{weekday:si}:{weekday:si,month:"long",day:"numeric"},"weekday"),ii=si=>{const uo=rs.macroTokenToFormatOpts(si);return uo?this.formatWithSystemDefault(y,uo):si},wi=si=>I?function Aa(S,y){return nr(y)[S.year<0?0:1]}(y,si):ce({era:si},"era");return Ri(rs.parseFormat(b),si=>{switch(si){case"S":return this.num(y.millisecond);case"u":case"SSS":return this.num(y.millisecond,3);case"s":return this.num(y.second);case"ss":return this.num(y.second,2);case"uu":return this.num(Math.floor(y.millisecond/10),2);case"uuu":return this.num(Math.floor(y.millisecond/100));case"m":return this.num(y.minute);case"mm":return this.num(y.minute,2);case"h":return this.num(y.hour%12==0?12:y.hour%12);case"hh":return this.num(y.hour%12==0?12:y.hour%12,2);case"H":return this.num(y.hour);case"HH":return this.num(y.hour,2);case"Z":return rt({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return rt({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return rt({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return y.zone.offsetName(y.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return y.zone.offsetName(y.ts,{format:"long",locale:this.loc.locale});case"z":return y.zoneName;case"a":return I?function oo(S){return io[S.hour<12?0:1]}(y):ce({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return z?ce({day:"numeric"},"day"):this.num(y.day);case"dd":return z?ce({day:"2-digit"},"day"):this.num(y.day,2);case"c":case"E":return this.num(y.weekday);case"ccc":return vn("short",!0);case"cccc":return vn("long",!0);case"ccccc":return vn("narrow",!0);case"EEE":return vn("short",!1);case"EEEE":return vn("long",!1);case"EEEEE":return vn("narrow",!1);case"L":return z?ce({month:"numeric",day:"numeric"},"month"):this.num(y.month);case"LL":return z?ce({month:"2-digit",day:"numeric"},"month"):this.num(y.month,2);case"LLL":return Lt("short",!0);case"LLLL":return Lt("long",!0);case"LLLLL":return Lt("narrow",!0);case"M":return z?ce({month:"numeric"},"month"):this.num(y.month);case"MM":return z?ce({month:"2-digit"},"month"):this.num(y.month,2);case"MMM":return Lt("short",!1);case"MMMM":return Lt("long",!1);case"MMMMM":return Lt("narrow",!1);case"y":return z?ce({year:"numeric"},"year"):this.num(y.year);case"yy":return z?ce({year:"2-digit"},"year"):this.num(y.year.toString().slice(-2),2);case"yyyy":return z?ce({year:"numeric"},"year"):this.num(y.year,4);case"yyyyyy":return z?ce({year:"numeric"},"year"):this.num(y.year,6);case"G":return wi("short");case"GG":return wi("long");case"GGGGG":return wi("narrow");case"kk":return this.num(y.weekYear.toString().slice(-2),2);case"kkkk":return this.num(y.weekYear,4);case"W":return this.num(y.weekNumber);case"WW":return this.num(y.weekNumber,2);case"n":return this.num(y.localWeekNumber);case"nn":return this.num(y.localWeekNumber,2);case"ii":return this.num(y.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(y.localWeekYear,4);case"o":return this.num(y.ordinal);case"ooo":return this.num(y.ordinal,3);case"q":return this.num(y.quarter);case"qq":return this.num(y.quarter,2);case"X":return this.num(Math.floor(y.ts/1e3));case"x":return this.num(y.ts);default:return ii(si)}})}formatDurationFromString(y,b){const I="negativeLargestOnly"===this.opts.signMode?-1:1,z=ii=>{switch(ii[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},rt=rs.parseFormat(b),yt=rt.reduce((ii,{literal:wi,val:Si})=>wi?ii:ii.concat(Si),[]),Lt=y.shiftTo(...yt.map(z).filter(ii=>ii));return Ri(rt,((ii,wi)=>Si=>{const si=z(Si);if(si){const uo=wi.isNegativeDuration&&si!==wi.largestUnit?I:1;let Co;return Co="negativeLargestOnly"===this.opts.signMode&&si!==wi.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(ii.get(si)*uo,Si.length,Co)}return Si})(Lt,{isNegativeDuration:Lt<0,largestUnit:Object.keys(Lt.values)[0]}))}}const So=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Zo(...S){const y=S.reduce((b,I)=>b+I.source,"");return RegExp(`^${y}$`)}function Or(...S){return y=>S.reduce(([b,I,z],ce)=>{const[rt,yt,Lt]=ce(y,z);return[{...b,...rt},yt||I,Lt]},[{},null,1]).slice(0,2)}function Es(S,...y){if(null==S)return[null,null];for(const[b,I]of y){const z=b.exec(S);if(z)return I(z)}return[null,null]}function _o(...S){return(y,b)=>{const I={};let z;for(z=0;z<S.length;z++)I[S[z]]=Ys(y[b+z]);return[I,null,b+z]}}const ur=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,gi=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,js=RegExp(`${gi.source}(?:${ur.source}?(?:\\[(${So.source})\\])?)?`),Rr=RegExp(`(?:[Tt]${js.source})?`),Bo=_o("weekYear","weekNumber","weekDay"),ir=_o("year","ordinal"),qr=RegExp(`${gi.source} ?(?:${ur.source}|(${So.source}))?`),Ns=RegExp(`(?: ${qr.source})?`);function zi(S,y,b){const I=S[y];return At(I)?b:Ys(I)}function Vo(S,y){return[{hours:zi(S,y,0),minutes:zi(S,y+1,0),seconds:zi(S,y+2,0),milliseconds:mo(S[y+3])},null,y+4]}function Xr(S,y){const b=!S[y]&&!S[y+1],I=Yi(S[y+1],S[y+2]);return[{},b?null:rn.instance(I),y+3]}function Ti(S,y){return[{},S[y]?It.create(S[y]):null,y+1]}const ua=RegExp(`^T?${gi.source}$`),cl=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ma(S){const[y,b,I,z,ce,rt,yt,Lt,vn]=S,ii="-"===y[0],wi=Lt&&"-"===Lt[0],Si=(si,uo=!1)=>void 0!==si&&(uo||si&&ii)?-si:si;return[{years:Si(ms(b)),months:Si(ms(I)),weeks:Si(ms(z)),days:Si(ms(ce)),hours:Si(ms(rt)),minutes:Si(ms(yt)),seconds:Si(ms(Lt),"-0"===Lt),milliseconds:Si(mo(vn),wi)}]}const Rl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sr(S,y,b,I,z,ce,rt){const yt={year:2===y.length?bi(Ys(y)):Ys(y),month:Lo.indexOf(b)+1,day:Ys(I),hour:Ys(z),minute:Ys(ce)};return rt&&(yt.second=Ys(rt)),S&&(yt.weekday=S.length>3?Rn.indexOf(S)+1:ei.indexOf(S)+1),yt}const J=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ee(S){const[,y,b,I,z,ce,rt,yt,Lt,vn,ii,wi]=S,Si=sr(y,z,I,b,ce,rt,yt);let si;return si=Lt?Rl[Lt]:vn?0:Yi(ii,wi),[Si,new rn(si)]}const Ce=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ze=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Yn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function _i(S){const[,y,b,I,z,ce,rt,yt]=S;return[sr(y,z,I,b,ce,rt,yt),rn.utcInstance]}function wr(S){const[,y,b,I,z,ce,rt,yt]=S;return[sr(y,yt,b,I,z,ce,rt),rn.utcInstance]}const Nr=Zo(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rr),dl=Zo(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Rr),vc=Zo(/(\d{4})-?(\d{3})/,Rr),bc=Zo(js),ul=Or(function fr(S,y){return[{year:zi(S,y),month:zi(S,y+1,1),day:zi(S,y+2,1)},null,y+3]},Vo,Xr,Ti),el=Or(Bo,Vo,Xr,Ti),Ql=Or(ir,Vo,Xr,Ti),yc=Or(Vo,Xr,Ti),pr=Or(Vo),vo=Zo(/(\d{4})-(\d\d)-(\d\d)/,Ns),Wr=Zo(qr),$o=Or(Vo,Xr,Ti),fl="Invalid Duration",or={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},La={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...or},ko=365.2425,fa=30.436875,Uo={years:{quarters:4,months:12,weeks:ko/7,days:ko,hours:24*ko,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:ko/28,days:ko/4,hours:24*ko/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:fa/7,days:fa,hours:24*fa,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...or},Fr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ta=Fr.slice(0).reverse();function Ho(S,y,b=!1){const I={values:b?y.values:{...S.values,...y.values||{}},loc:S.loc.clone(y.loc),conversionAccuracy:y.conversionAccuracy||S.conversionAccuracy,matrix:y.matrix||S.matrix};return new Ei(I)}function pl(S,y){let b=y.milliseconds??0;for(const I of Ta.slice(1))y[I]&&(b+=y[I]*S[I].milliseconds);return b}function rr(S,y){const b=pl(S,y)<0?-1:1;Fr.reduceRight((I,z)=>{if(At(y[z]))return I;if(I){const rt=S[z][I],yt=Math.floor(y[I]*b/rt);y[z]+=yt*b,y[I]-=yt*rt*b}return z},null),Fr.reduce((I,z)=>{if(At(y[z]))return I;if(I){const ce=y[I]%1;y[I]-=ce,y[z]+=ce*S[I][z]}return z},null)}function pa(S){const y={};for(const[b,I]of Object.entries(S))0!==I&&(y[b]=I);return y}class Ei{constructor(y){const b="longterm"===y.conversionAccuracy||!1;let I=b?Uo:La;y.matrix&&(I=y.matrix),this.values=y.values,this.loc=y.loc||mn.create(),this.conversionAccuracy=b?"longterm":"casual",this.invalid=y.invalid||null,this.matrix=I,this.isLuxonDuration=!0}static fromMillis(y,b){return Ei.fromObject({milliseconds:y},b)}static fromObject(y,b={}){if(null==y||"object"!=typeof y)throw new vt("Duration.fromObject: argument expected to be an object, got "+(null===y?"null":typeof y));return new Ei({values:Cs(y,Ei.normalizeUnit),loc:mn.fromObject(b),conversionAccuracy:b.conversionAccuracy,matrix:b.matrix})}static fromDurationLike(y){if(In(y))return Ei.fromMillis(y);if(Ei.isDuration(y))return y;if("object"==typeof y)return Ei.fromObject(y);throw new vt(`Unknown duration argument ${y} of type ${typeof y}`)}static fromISO(y,b){const[I]=function Go(S){return Es(S,[cl,Ma])}(y);return I?Ei.fromObject(I,b):Ei.invalid("unparsable",`the input "${y}" can't be parsed as ISO 8601`)}static fromISOTime(y,b){const[I]=function Nl(S){return Es(S,[ua,pr])}(y);return I?Ei.fromObject(I,b):Ei.invalid("unparsable",`the input "${y}" can't be parsed as ISO 8601`)}static invalid(y,b=null){if(!y)throw new vt("need to specify a reason the Duration is invalid");const I=y instanceof un?y:new un(y,b);if(nn.throwOnInvalid)throw new ft(I);return new Ei({invalid:I})}static normalizeUnit(y){const b={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[y&&y.toLowerCase()];if(!b)throw new tn(y);return b}static isDuration(y){return y&&y.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(y,b={}){const I={...b,floor:!1!==b.round&&!1!==b.floor};return this.isValid?rs.create(this.loc,I).formatDurationFromString(this,y):fl}toHuman(y={}){if(!this.isValid)return fl;const b=!1!==y.showZeros,I=Fr.map(z=>{const ce=this.values[z];return At(ce)||0===ce&&!b?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...y,unit:z.slice(0,-1)}).format(ce)}).filter(z=>z);return this.loc.listFormatter({type:"conjunction",style:y.listStyle||"narrow",...y}).format(I)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let y="P";return 0!==this.years&&(y+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(y+=this.months+3*this.quarters+"M"),0!==this.weeks&&(y+=this.weeks+"W"),0!==this.days&&(y+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(y+="T"),0!==this.hours&&(y+=this.hours+"H"),0!==this.minutes&&(y+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(y+=ca(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===y&&(y+="T0S"),y}toISOTime(y={}){if(!this.isValid)return null;const b=this.toMillis();return b<0||b>=864e5?null:(y={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...y,includeOffset:!1},qn.fromMillis(b,{zone:"UTC"}).toISOTime(y))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(y){if(!this.isValid)return this;const b=Ei.fromDurationLike(y),I={};for(const z of Fr)(os(b.values,z)||os(this.values,z))&&(I[z]=b.get(z)+this.get(z));return Ho(this,{values:I},!0)}minus(y){if(!this.isValid)return this;const b=Ei.fromDurationLike(y);return this.plus(b.negate())}mapUnits(y){if(!this.isValid)return this;const b={};for(const I of Object.keys(this.values))b[I]=Eo(y(this.values[I],I));return Ho(this,{values:b},!0)}get(y){return this[Ei.normalizeUnit(y)]}set(y){return this.isValid?Ho(this,{values:{...this.values,...Cs(y,Ei.normalizeUnit)}}):this}reconfigure({locale:y,numberingSystem:b,conversionAccuracy:I,matrix:z}={}){return Ho(this,{loc:this.loc.clone({locale:y,numberingSystem:b}),matrix:z,conversionAccuracy:I})}as(y){return this.isValid?this.shiftTo(y).get(y):NaN}normalize(){if(!this.isValid)return this;const y=this.toObject();return rr(this.matrix,y),Ho(this,{values:y},!0)}rescale(){return this.isValid?Ho(this,{values:pa(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...y){if(!this.isValid)return this;if(0===y.length)return this;y=y.map(rt=>Ei.normalizeUnit(rt));const b={},I={},z=this.toObject();let ce;for(const rt of Fr)if(y.indexOf(rt)>=0){ce=rt;let yt=0;for(const vn in I)yt+=this.matrix[vn][rt]*I[vn],I[vn]=0;In(z[rt])&&(yt+=z[rt]);const Lt=Math.trunc(yt);b[rt]=Lt,I[rt]=(1e3*yt-1e3*Lt)/1e3}else In(z[rt])&&(I[rt]=z[rt]);for(const rt in I)0!==I[rt]&&(b[ce]+=rt===ce?I[rt]:I[rt]/this.matrix[ce][rt]);return rr(this.matrix,b),Ho(this,{values:b},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const y={};for(const b of Object.keys(this.values))y[b]=0===this.values[b]?0:-this.values[b];return Ho(this,{values:y},!0)}removeZeros(){return this.isValid?Ho(this,{values:pa(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(y){if(!this.isValid||!y.isValid||!this.loc.equals(y.loc))return!1;function b(I,z){return void 0===I||0===I?void 0===z||0===z:I===z}for(const I of Fr)if(!b(this.values[I],y.values[I]))return!1;return!0}}const Kr="Invalid Interval";class ks{constructor(y){this.s=y.start,this.e=y.end,this.invalid=y.invalid||null,this.isLuxonInterval=!0}static invalid(y,b=null){if(!y)throw new vt("need to specify a reason the Interval is invalid");const I=y instanceof un?y:new un(y,b);if(nn.throwOnInvalid)throw new bt(I);return new ks({invalid:I})}static fromDateTimes(y,b){const I=ka(y),z=ka(b),ce=function Fl(S,y){return S&&S.isValid?y&&y.isValid?y<S?ks.invalid("end before start",`The end of an interval must be after its start, but you had start=${S.toISO()} and end=${y.toISO()}`):null:ks.invalid("missing or invalid end"):ks.invalid("missing or invalid start")}(I,z);return ce??new ks({start:I,end:z})}static after(y,b){const I=Ei.fromDurationLike(b),z=ka(y);return ks.fromDateTimes(z,z.plus(I))}static before(y,b){const I=Ei.fromDurationLike(b),z=ka(y);return ks.fromDateTimes(z.minus(I),z)}static fromISO(y,b){const[I,z]=(y||"").split("/",2);if(I&&z){let ce,rt,yt,Lt;try{ce=qn.fromISO(I,b),rt=ce.isValid}catch{rt=!1}try{yt=qn.fromISO(z,b),Lt=yt.isValid}catch{Lt=!1}if(rt&&Lt)return ks.fromDateTimes(ce,yt);if(rt){const vn=Ei.fromISO(z,b);if(vn.isValid)return ks.after(ce,vn)}else if(Lt){const vn=Ei.fromISO(I,b);if(vn.isValid)return ks.before(yt,vn)}}return ks.invalid("unparsable",`the input "${y}" can't be parsed as ISO 8601`)}static isInterval(y){return y&&y.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(y="milliseconds"){return this.isValid?this.toDuration(y).get(y):NaN}count(y="milliseconds",b){if(!this.isValid)return NaN;const I=this.start.startOf(y,b);let z;return z=b?.useLocaleWeeks?this.end.reconfigure({locale:I.locale}):this.end,z=z.startOf(y,b),Math.floor(z.diff(I,y).get(y))+(z.valueOf()!==this.end.valueOf())}hasSame(y){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,y))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(y){return!!this.isValid&&this.s>y}isBefore(y){return!!this.isValid&&this.e<=y}contains(y){return!!this.isValid&&this.s<=y&&this.e>y}set({start:y,end:b}={}){return this.isValid?ks.fromDateTimes(y||this.s,b||this.e):this}splitAt(...y){if(!this.isValid)return[];const b=y.map(ka).filter(rt=>this.contains(rt)).sort((rt,yt)=>rt.toMillis()-yt.toMillis()),I=[];let{s:z}=this,ce=0;for(;z<this.e;){const rt=b[ce]||this.e,yt=+rt>+this.e?this.e:rt;I.push(ks.fromDateTimes(z,yt)),z=yt,ce+=1}return I}splitBy(y){const b=Ei.fromDurationLike(y);if(!this.isValid||!b.isValid||0===b.as("milliseconds"))return[];let ce,{s:I}=this,z=1;const rt=[];for(;I<this.e;){const yt=this.start.plus(b.mapUnits(Lt=>Lt*z));ce=+yt>+this.e?this.e:yt,rt.push(ks.fromDateTimes(I,ce)),I=ce,z+=1}return rt}divideEqually(y){return this.isValid?this.splitBy(this.length()/y).slice(0,y):[]}overlaps(y){return this.e>y.s&&this.s<y.e}abutsStart(y){return!!this.isValid&&+this.e==+y.s}abutsEnd(y){return!!this.isValid&&+y.e==+this.s}engulfs(y){return!!this.isValid&&this.s<=y.s&&this.e>=y.e}equals(y){return!(!this.isValid||!y.isValid)&&this.s.equals(y.s)&&this.e.equals(y.e)}intersection(y){if(!this.isValid)return this;const b=this.s>y.s?this.s:y.s,I=this.e<y.e?this.e:y.e;return b>=I?null:ks.fromDateTimes(b,I)}union(y){return this.isValid?ks.fromDateTimes(this.s<y.s?this.s:y.s,this.e>y.e?this.e:y.e):this}static merge(y){const[b,I]=y.sort((z,ce)=>z.s-ce.s).reduce(([z,ce],rt)=>ce?ce.overlaps(rt)||ce.abutsStart(rt)?[z,ce.union(rt)]:[z.concat([ce]),rt]:[z,rt],[[],null]);return I&&b.push(I),b}static xor(y){let b=null,I=0;const z=[],ce=y.map(Lt=>[{time:Lt.s,type:"s"},{time:Lt.e,type:"e"}]),yt=Array.prototype.concat(...ce).sort((Lt,vn)=>Lt.time-vn.time);for(const Lt of yt)I+="s"===Lt.type?1:-1,1===I?b=Lt.time:(b&&+b!=+Lt.time&&z.push(ks.fromDateTimes(b,Lt.time)),b=null);return ks.merge(z)}difference(...y){return ks.xor([this].concat(y)).map(b=>this.intersection(b)).filter(b=>b&&!b.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Kr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(y=ht,b={}){return this.isValid?rs.create(this.s.loc.clone(b),y).formatInterval(this):Kr}toISO(y){return this.isValid?`${this.s.toISO(y)}/${this.e.toISO(y)}`:Kr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Kr}toISOTime(y){return this.isValid?`${this.s.toISOTime(y)}/${this.e.toISOTime(y)}`:Kr}toFormat(y,{separator:b=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(y)}${b}${this.e.toFormat(y)}`:Kr}toDuration(y,b){return this.isValid?this.e.diff(this.s,y,b):Ei.invalid(this.invalidReason)}mapEndpoints(y){return ks.fromDateTimes(y(this.s),y(this.e))}}class Ba{static hasDST(y=nn.defaultZone){const b=qn.now().setZone(y).set({month:12});return!y.isUniversal&&b.offset!==b.set({month:6}).offset}static isValidIANAZone(y){return It.isValidZone(y)}static normalizeZone(y){return ve(y,nn.defaultZone)}static getStartOfWeek({locale:y=null,locObj:b=null}={}){return(b||mn.create(y)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:y=null,locObj:b=null}={}){return(b||mn.create(y)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:y=null,locObj:b=null}={}){return(b||mn.create(y)).getWeekendDays().slice()}static months(y="long",{locale:b=null,numberingSystem:I=null,locObj:z=null,outputCalendar:ce="gregory"}={}){return(z||mn.create(b,I,ce)).months(y)}static monthsFormat(y="long",{locale:b=null,numberingSystem:I=null,locObj:z=null,outputCalendar:ce="gregory"}={}){return(z||mn.create(b,I,ce)).months(y,!0)}static weekdays(y="long",{locale:b=null,numberingSystem:I=null,locObj:z=null}={}){return(z||mn.create(b,I,null)).weekdays(y)}static weekdaysFormat(y="long",{locale:b=null,numberingSystem:I=null,locObj:z=null}={}){return(z||mn.create(b,I,null)).weekdays(y,!0)}static meridiems({locale:y=null}={}){return mn.create(y).meridiems()}static eras(y="short",{locale:b=null}={}){return mn.create(b,null,"gregory").eras(y)}static features(){return{relative:ri(),localeWeek:Ki()}}}function tl(S,y){const b=z=>z.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),I=b(y)-b(S);return Math.floor(Ei.fromMillis(I).as("days"))}function Pi(S,y=(b=>b)){return{regex:S,deser:([b])=>y(function qt(S){let y=parseInt(S,10);if(isNaN(y)){y="";for(let b=0;b<S.length;b++){const I=S.charCodeAt(b);if(-1!==S[b].search(Ae.hanidec))y+=We.indexOf(S[b]);else for(const z in Ne){const[ce,rt]=Ne[z];I>=ce&&I<=rt&&(y+=I-ce)}}return parseInt(y,10)}return y}(b))}}const Qr=`[ ${String.fromCharCode(160)}]`,nl=new RegExp(Qr,"g");function Zr(S){return S.replace(/\./g,"\\.?").replace(nl,Qr)}function xo(S){return S.replace(/\./g,"").replace(nl," ").toLowerCase()}function P(S,y){return null===S?null:{regex:RegExp(S.map(Zr).join("|")),deser:([b])=>S.findIndex(I=>xo(b)===xo(I))+y}}function ae(S,y){return{regex:S,deser:([,b,I])=>Yi(b,I),groups:y}}function Y(S){return{regex:S,deser:([y])=>y}}function te(S){return S.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const zt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let xi=null;function Gi(S,y){return Array.prototype.concat(...S.map(b=>function Ii(S,y){if(S.literal)return S;const I=Io(rs.macroTokenToFormatOpts(S.val),y);return null==I||I.includes(void 0)?S:I}(b,y)))}class Li{constructor(y,b){if(this.locale=y,this.format=b,this.tokens=Gi(rs.parseFormat(b),y),this.units=this.tokens.map(I=>function Xe(S,y){const b=qe(y),I=qe(y,"{2}"),z=qe(y,"{3}"),ce=qe(y,"{4}"),rt=qe(y,"{6}"),yt=qe(y,"{1,2}"),Lt=qe(y,"{1,3}"),vn=qe(y,"{1,6}"),ii=qe(y,"{1,9}"),wi=qe(y,"{2,4}"),Si=qe(y,"{4,6}"),si=Vr=>({regex:RegExp(te(Vr.val)),deser:([jr])=>jr,literal:!0}),Co=(Vr=>{if(S.literal)return si(Vr);switch(Vr.val){case"G":return P(y.eras("short"),0);case"GG":return P(y.eras("long"),0);case"y":return Pi(vn);case"yy":case"kk":return Pi(wi,bi);case"yyyy":case"kkkk":return Pi(ce);case"yyyyy":return Pi(Si);case"yyyyyy":return Pi(rt);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Pi(yt);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Pi(I);case"MMM":return P(y.months("short",!0),1);case"MMMM":return P(y.months("long",!0),1);case"LLL":return P(y.months("short",!1),1);case"LLLL":return P(y.months("long",!1),1);case"o":case"S":return Pi(Lt);case"ooo":case"SSS":return Pi(z);case"u":return Y(ii);case"uu":return Y(yt);case"uuu":case"E":case"c":return Pi(b);case"a":return P(y.meridiems(),0);case"EEE":return P(y.weekdays("short",!1),1);case"EEEE":return P(y.weekdays("long",!1),1);case"ccc":return P(y.weekdays("short",!0),1);case"cccc":return P(y.weekdays("long",!0),1);case"Z":case"ZZ":return ae(new RegExp(`([+-]${yt.source})(?::(${I.source}))?`),2);case"ZZZ":return ae(new RegExp(`([+-]${yt.source})(${I.source})?`),2);case"z":return Y(/[a-z_+-/]{1,256}?/i);case" ":return Y(/[^\S\n\r]/);default:return si(Vr)}})(S)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return Co.token=S,Co}(I,y)),this.disqualifyingUnit=this.units.find(I=>I.invalidReason),!this.disqualifyingUnit){const[I,z]=function Gn(S){return[`^${S.map(b=>b.regex).reduce((b,I)=>`${b}(${I.source})`,"")}$`,S]}(this.units);this.regex=RegExp(I,"i"),this.handlers=z}}explainFromTokens(y){if(this.isValid){const[b,I]=function Ji(S,y,b){const I=S.match(y);if(I){const z={};let ce=1;for(const rt in b)if(os(b,rt)){const yt=b[rt],Lt=yt.groups?yt.groups+1:1;!yt.literal&&yt.token&&(z[yt.token.val[0]]=yt.deser(I.slice(ce,ce+Lt))),ce+=Lt}return[I,z]}return[I,{}]}(y,this.regex,this.handlers),[z,ce,rt]=I?function ji(S){let I,b=null;return At(S.z)||(b=It.create(S.z)),At(S.Z)||(b||(b=new rn(S.Z)),I=S.Z),At(S.q)||(S.M=3*(S.q-1)+1),At(S.h)||(S.h<12&&1===S.a?S.h+=12:12===S.h&&0===S.a&&(S.h=0)),0===S.G&&S.y&&(S.y=-S.y),At(S.u)||(S.S=mo(S.u)),[Object.keys(S).reduce((ce,rt)=>{const yt=(ce=>{switch(ce){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(rt);return yt&&(ce[yt]=S[rt]),ce},{}),b,I]}(I):[null,null,void 0];if(os(I,"a")&&os(I,"H"))throw new mt("Can't include meridiem when specifying 24-hour format");return{input:y,tokens:this.tokens,regex:this.regex,rawMatches:b,matches:I,result:z,zone:ce,specificOffset:rt}}return{input:y,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Yo(S,y,b){return new Li(S,b).explainFromTokens(y)}function Io(S,y){if(!S)return null;const I=rs.create(y,S).dtFormatter(function Zn(){return xi||(xi=qn.fromMillis(1555555555555)),xi}()),z=I.formatToParts(),ce=I.resolvedOptions();return z.map(rt=>function hn(S,y,b){const{type:I,value:z}=S;if("literal"===I){const Lt=/^\s+$/.test(z);return{literal:!Lt,val:Lt?" ":z}}let rt=I;"hour"===I&&(rt=null!=y.hour12?y.hour12?"hour12":"hour24":null!=y.hourCycle?"h11"===y.hourCycle||"h12"===y.hourCycle?"hour12":"hour24":b.hour12?"hour12":"hour24");let yt=zt[rt];if("object"==typeof yt&&(yt=yt[y[I]]),yt)return{literal:!1,val:yt}}(rt,S,ce))}const bo="Invalid DateTime",Jr=864e13;function es(S){return new un("unsupported zone",`the zone "${S.name}" is not supported`)}function zo(S){return null===S.weekData&&(S.weekData=ps(S.c)),S.weekData}function gs(S){return null===S.localWeekData&&(S.localWeekData=ps(S.c,S.loc.getMinDaysInFirstWeek(),S.loc.getStartOfWeek())),S.localWeekData}function Di(S,y){const b={ts:S.ts,zone:S.zone,c:S.c,o:S.o,loc:S.loc,invalid:S.invalid};return new qn({...b,...y,old:b})}function ec(S,y,b){let I=S-60*y*1e3;const z=b.offset(I);if(y===z)return[I,y];I-=60*(z-y)*1e3;const ce=b.offset(I);return z===ce?[I,z]:[S-60*Math.min(z,ce)*1e3,Math.max(z,ce)]}function ma(S,y){const b=new Date(S+=60*y*1e3);return{year:b.getUTCFullYear(),month:b.getUTCMonth()+1,day:b.getUTCDate(),hour:b.getUTCHours(),minute:b.getUTCMinutes(),second:b.getUTCSeconds(),millisecond:b.getUTCMilliseconds()}}function ao(S,y,b){return ec(Ko(S),y,b)}function wc(S,y){const b=S.o,I=S.c.year+Math.trunc(y.years),z=S.c.month+Math.trunc(y.months)+3*Math.trunc(y.quarters),ce={...S.c,year:I,month:z,day:Math.min(S.c.day,Po(I,z))+Math.trunc(y.days)+7*Math.trunc(y.weeks)},rt=Ei.fromObject({years:y.years-Math.trunc(y.years),quarters:y.quarters-Math.trunc(y.quarters),months:y.months-Math.trunc(y.months),weeks:y.weeks-Math.trunc(y.weeks),days:y.days-Math.trunc(y.days),hours:y.hours,minutes:y.minutes,seconds:y.seconds,milliseconds:y.milliseconds}).as("milliseconds"),yt=Ko(ce);let[Lt,vn]=ec(yt,b,S.zone);return 0!==rt&&(Lt+=rt,vn=S.zone.offset(Lt)),{ts:Lt,o:vn}}function Va(S,y,b,I,z,ce){const{setZone:rt,zone:yt}=b;if(S&&0!==Object.keys(S).length||y){const Lt=y||yt,vn=qn.fromObject(S,{...b,zone:Lt,specificOffset:ce});return rt?vn:vn.setZone(yt)}return qn.invalid(new un("unparsable",`the input "${z}" can't be parsed as ${I}`))}function ea(S,y,b=!0){return S.isValid?rs.create(mn.create("en-US"),{allowZ:b,forceSimple:!0}).formatDateTimeFromString(S,y):null}function lo(S,y,b){const I=S.c.year>9999||S.c.year<0;let z="";if(I&&S.c.year>=0&&(z+="+"),z+=wn(S.c.year,I?6:4),"year"===b)return z;if(y){if(z+="-",z+=wn(S.c.month),"month"===b)return z;z+="-"}else if(z+=wn(S.c.month),"month"===b)return z;return z+=wn(S.c.day),z}function Oo(S,y,b,I,z,ce,rt){let yt=!b||0!==S.c.millisecond||0!==S.c.second,Lt="";switch(rt){case"day":case"month":case"year":break;default:if(Lt+=wn(S.c.hour),"hour"===rt)break;if(y){if(Lt+=":",Lt+=wn(S.c.minute),"minute"===rt)break;yt&&(Lt+=":",Lt+=wn(S.c.second))}else{if(Lt+=wn(S.c.minute),"minute"===rt)break;yt&&(Lt+=wn(S.c.second))}if("second"===rt)break;yt&&(!I||0!==S.c.millisecond)&&(Lt+=".",Lt+=wn(S.c.millisecond,3))}return z&&(S.isOffsetFixed&&0===S.offset&&!ce?Lt+="Z":S.o<0?(Lt+="-",Lt+=wn(Math.trunc(-S.o/60)),Lt+=":",Lt+=wn(Math.trunc(-S.o%60))):(Lt+="+",Lt+=wn(Math.trunc(S.o/60)),Lt+=":",Lt+=wn(Math.trunc(S.o%60)))),ce&&(Lt+="["+S.zone.ianaName+"]"),Lt}const ml={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pl={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ro={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ga=["year","month","day","hour","minute","second","millisecond"],Ea=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gl=["year","ordinal","hour","minute","second","millisecond"];function _a(S){const y={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[S.toLowerCase()];if(!y)throw new tn(S);return y}function Ll(S){switch(S.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _a(S)}}function Jn(S,y){const b=ve(y.zone,nn.defaultZone);if(!b.isValid)return qn.invalid(es(b));const I=mn.fromObject(y);let z,ce;if(At(S.year))z=nn.now();else{for(const Lt of ga)At(S[Lt])&&(S[Lt]=ml[Lt]);const rt=et(S)||Vt(S);if(rt)return qn.invalid(rt);const yt=function Sa(S){if(void 0===Ar&&(Ar=nn.now()),"iana"!==S.type)return S.offset(Ar);const y=S.name;let b=gr.get(y);return void 0===b&&(b=S.offset(Ar),gr.set(y,b)),b}(b);[z,ce]=ao(S,yt,b)}return new qn({ts:z,zone:b,loc:I,o:ce})}function va(S,y,b){const I=!!At(b.round)||b.round,z=At(b.rounding)?"trunc":b.rounding,ce=(yt,Lt)=>(yt=ca(yt,I||b.calendary?0:2,b.calendary?"round":z),y.loc.clone(b).relFormatter(b).format(yt,Lt)),rt=yt=>b.calendary?y.hasSame(S,yt)?0:y.startOf(yt).diff(S.startOf(yt),yt).get(yt):y.diff(S,yt).get(yt);if(b.unit)return ce(rt(b.unit),b.unit);for(const yt of b.units){const Lt=rt(yt);if(Math.abs(Lt)>=1)return ce(Lt,yt)}return ce(S>y?-0:0,b.units[b.units.length-1])}function mr(S){let b,y={};return S.length>0&&"object"==typeof S[S.length-1]?(y=S[S.length-1],b=Array.from(S).slice(0,S.length-1)):b=Array.from(S),[y,b]}let Ar;const gr=new Map;class qn{constructor(y){const b=y.zone||nn.defaultZone;let I=y.invalid||(Number.isNaN(y.ts)?new un("invalid input"):null)||(b.isValid?null:es(b));this.ts=At(y.ts)?nn.now():y.ts;let z=null,ce=null;if(!I)if(y.old&&y.old.ts===this.ts&&y.old.zone.equals(b))[z,ce]=[y.old.c,y.old.o];else{const yt=In(y.o)&&!y.old?y.o:b.offset(this.ts);z=ma(this.ts,yt),I=Number.isNaN(z.year)?new un("invalid input"):null,z=I?null:z,ce=I?null:yt}this._zone=b,this.loc=y.loc||mn.create(),this.invalid=I,this.weekData=null,this.localWeekData=null,this.c=z,this.o=ce,this.isLuxonDateTime=!0}static now(){return new qn({})}static local(){const[y,b]=mr(arguments),[I,z,ce,rt,yt,Lt,vn]=b;return Jn({year:I,month:z,day:ce,hour:rt,minute:yt,second:Lt,millisecond:vn},y)}static utc(){const[y,b]=mr(arguments),[I,z,ce,rt,yt,Lt,vn]=b;return y.zone=rn.utcInstance,Jn({year:I,month:z,day:ce,hour:rt,minute:yt,second:Lt,millisecond:vn},y)}static fromJSDate(y,b={}){const I=function Kn(S){return"[object Date]"===Object.prototype.toString.call(S)}(y)?y.valueOf():NaN;if(Number.isNaN(I))return qn.invalid("invalid input");const z=ve(b.zone,nn.defaultZone);return z.isValid?new qn({ts:I,zone:z,loc:mn.fromObject(b)}):qn.invalid(es(z))}static fromMillis(y,b={}){if(In(y))return y<-Jr||y>Jr?qn.invalid("Timestamp out of range"):new qn({ts:y,zone:ve(b.zone,nn.defaultZone),loc:mn.fromObject(b)});throw new vt(`fromMillis requires a numerical input, but received a ${typeof y} with value ${y}`)}static fromSeconds(y,b={}){if(In(y))return new qn({ts:1e3*y,zone:ve(b.zone,nn.defaultZone),loc:mn.fromObject(b)});throw new vt("fromSeconds requires a numerical input")}static fromObject(y,b={}){y=y||{};const I=ve(b.zone,nn.defaultZone);if(!I.isValid)return qn.invalid(es(I));const z=mn.fromObject(b),ce=Cs(y,Ll),{minDaysInFirstWeek:rt,startOfWeek:yt}=Rt(ce,z),Lt=nn.now(),vn=At(b.specificOffset)?I.offset(Lt):b.specificOffset,ii=!At(ce.ordinal),wi=!At(ce.year),Si=!At(ce.month)||!At(ce.day),si=wi||Si,uo=ce.weekYear||ce.weekNumber;if((si||ii)&&uo)throw new mt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Si&&ii)throw new mt("Can't mix ordinal dates with month/day");const Co=uo||ce.weekday&&!si;let Vr,jr,Ws=ma(Lt,vn);Co?(Vr=Ea,jr=Pl,Ws=ps(Ws,rt,yt)):ii?(Vr=gl,jr=Ro,Ws=ki(Ws)):(Vr=ga,jr=ml);let hd=!1;for(const Er of Vr)At(ce[Er])?ce[Er]=hd?jr[Er]:Ws[Er]:hd=!0;const lc=Co?function oe(S,y=4,b=1){const I=Hn(S.weekYear),z=Vs(S.weekNumber,1,zs(S.weekYear,y,b)),ce=Vs(S.weekday,1,7);return I?z?!ce&&bn("weekday",S.weekday):bn("week",S.weekNumber):bn("weekYear",S.weekYear)}(ce,rt,yt):ii?function _e(S){const y=Hn(S.year),b=Vs(S.ordinal,1,go(S.year));return y?!b&&bn("ordinal",S.ordinal):bn("year",S.year)}(ce):et(ce),xd=lc||Vt(ce);if(xd)return qn.invalid(xd);const sa=Co?Ts(ce,rt,yt):ii?Re(ce):ce,[El,lr]=ao(sa,vn,I),qi=new qn({ts:El,zone:I,o:lr,loc:z});return ce.weekday&&si&&y.weekday!==qi.weekday?qn.invalid("mismatched weekday",`you can't specify both a weekday of ${ce.weekday} and a date of ${qi.toISO()}`):qi.isValid?qi:qn.invalid(qi.invalid)}static fromISO(y,b={}){const[I,z]=function hl(S){return Es(S,[Nr,ul],[dl,el],[vc,Ql],[bc,yc])}(y);return Va(I,z,b,"ISO 8601",y)}static fromRFC2822(y,b={}){const[I,z]=function ha(S){return Es(function U(S){return S.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(S),[J,ee])}(y);return Va(I,z,b,"RFC 2822",y)}static fromHTTP(y,b={}){const[I,z]=function jo(S){return Es(S,[Ce,_i],[Ze,_i],[Yn,wr])}(y);return Va(I,z,b,"HTTP",b)}static fromFormat(y,b,I={}){if(At(y)||At(b))throw new vt("fromFormat requires an input string and a format");const{locale:z=null,numberingSystem:ce=null}=I,rt=mn.fromOpts({locale:z,numberingSystem:ce,defaultToEN:!0}),[yt,Lt,vn,ii]=function as(S,y,b){const{result:I,zone:z,specificOffset:ce,invalidReason:rt}=Yo(S,y,b);return[I,z,ce,rt]}(rt,y,b);return ii?qn.invalid(ii):Va(yt,Lt,I,`format ${b}`,y,vn)}static fromString(y,b,I={}){return qn.fromFormat(y,b,I)}static fromSQL(y,b={}){const[I,z]=function Pa(S){return Es(S,[vo,ul],[Wr,$o])}(y);return Va(I,z,b,"SQL",y)}static invalid(y,b=null){if(!y)throw new vt("need to specify a reason the DateTime is invalid");const I=y instanceof un?y:new un(y,b);if(nn.throwOnInvalid)throw new _t(I);return new qn({invalid:I})}static isDateTime(y){return y&&y.isLuxonDateTime||!1}static parseFormatForOpts(y,b={}){const I=Io(y,mn.fromObject(b));return I?I.map(z=>z?z.val:null).join(""):null}static expandFormat(y,b={}){return Gi(rs.parseFormat(y),mn.fromObject(b)).map(z=>z.val).join("")}static resetCache(){Ar=void 0,gr.clear()}get(y){return this[y]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?zo(this).weekYear:NaN}get weekNumber(){return this.isValid?zo(this).weekNumber:NaN}get weekday(){return this.isValid?zo(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?gs(this).weekday:NaN}get localWeekNumber(){return this.isValid?gs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?gs(this).weekYear:NaN}get ordinal(){return this.isValid?ki(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ba.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ba.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ba.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ba.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const y=864e5,b=6e4,I=Ko(this.c),z=this.zone.offset(I-y),ce=this.zone.offset(I+y),rt=this.zone.offset(I-z*b),yt=this.zone.offset(I-ce*b);if(rt===yt)return[this];const Lt=I-rt*b,vn=I-yt*b,ii=ma(Lt,rt),wi=ma(vn,yt);return ii.hour===wi.hour&&ii.minute===wi.minute&&ii.second===wi.second&&ii.millisecond===wi.millisecond?[Di(this,{ts:Lt}),Di(this,{ts:vn})]:[this]}get isInLeapYear(){return tr(this.year)}get daysInMonth(){return Po(this.year,this.month)}get daysInYear(){return this.isValid?go(this.year):NaN}get weeksInWeekYear(){return this.isValid?zs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?zs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(y={}){const{locale:b,numberingSystem:I,calendar:z}=rs.create(this.loc.clone(y),y).resolvedOptions(this);return{locale:b,numberingSystem:I,outputCalendar:z}}toUTC(y=0,b={}){return this.setZone(rn.instance(y),b)}toLocal(){return this.setZone(nn.defaultZone)}setZone(y,{keepLocalTime:b=!1,keepCalendarTime:I=!1}={}){if((y=ve(y,nn.defaultZone)).equals(this.zone))return this;if(y.isValid){let z=this.ts;if(b||I){const ce=y.offset(this.ts),rt=this.toObject();[z]=ao(rt,ce,y)}return Di(this,{ts:z,zone:y})}return qn.invalid(es(y))}reconfigure({locale:y,numberingSystem:b,outputCalendar:I}={}){return Di(this,{loc:this.loc.clone({locale:y,numberingSystem:b,outputCalendar:I})})}setLocale(y){return this.reconfigure({locale:y})}set(y){if(!this.isValid)return this;const b=Cs(y,Ll),{minDaysInFirstWeek:I,startOfWeek:z}=Rt(b,this.loc),ce=!At(b.weekYear)||!At(b.weekNumber)||!At(b.weekday),rt=!At(b.ordinal),yt=!At(b.year),Lt=!At(b.month)||!At(b.day);if((yt||Lt||rt)&&(b.weekYear||b.weekNumber))throw new mt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Lt&&rt)throw new mt("Can't mix ordinal dates with month/day");let wi;ce?wi=Ts({...ps(this.c,I,z),...b},I,z):At(b.ordinal)?(wi={...this.toObject(),...b},At(b.day)&&(wi.day=Math.min(Po(wi.year,wi.month),wi.day))):wi=Re({...ki(this.c),...b});const[Si,si]=ao(wi,this.o,this.zone);return Di(this,{ts:Si,o:si})}plus(y){return this.isValid?Di(this,wc(this,Ei.fromDurationLike(y))):this}minus(y){return this.isValid?Di(this,wc(this,Ei.fromDurationLike(y).negate())):this}startOf(y,{useLocaleWeeks:b=!1}={}){if(!this.isValid)return this;const I={},z=Ei.normalizeUnit(y);switch(z){case"years":I.month=1;case"quarters":case"months":I.day=1;case"weeks":case"days":I.hour=0;case"hours":I.minute=0;case"minutes":I.second=0;case"seconds":I.millisecond=0}if("weeks"===z)if(b){const ce=this.loc.getStartOfWeek(),{weekday:rt}=this;rt<ce&&(I.weekNumber=this.weekNumber-1),I.weekday=ce}else I.weekday=1;if("quarters"===z){const ce=Math.ceil(this.month/3);I.month=3*(ce-1)+1}return this.set(I)}endOf(y,b){return this.isValid?this.plus({[y]:1}).startOf(y,b).minus(1):this}toFormat(y,b={}){return this.isValid?rs.create(this.loc.redefaultToEN(b)).formatDateTimeFromString(this,y):bo}toLocaleString(y=ht,b={}){return this.isValid?rs.create(this.loc.clone(b),y).formatDateTime(this):bo}toLocaleParts(y={}){return this.isValid?rs.create(this.loc.clone(y),y).formatDateTimeParts(this):[]}toISO({format:y="extended",suppressSeconds:b=!1,suppressMilliseconds:I=!1,includeOffset:z=!0,extendedZone:ce=!1,precision:rt="milliseconds"}={}){if(!this.isValid)return null;const yt="extended"===y;let Lt=lo(this,yt,rt=_a(rt));return ga.indexOf(rt)>=3&&(Lt+="T"),Lt+=Oo(this,yt,b,I,z,ce,rt),Lt}toISODate({format:y="extended",precision:b="day"}={}){return this.isValid?lo(this,"extended"===y,_a(b)):null}toISOWeekDate(){return ea(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:y=!1,suppressSeconds:b=!1,includeOffset:I=!0,includePrefix:z=!1,extendedZone:ce=!1,format:rt="extended",precision:yt="milliseconds"}={}){return this.isValid?(yt=_a(yt),(z&&ga.indexOf(yt)>=3?"T":"")+Oo(this,"extended"===rt,b,y,I,ce,yt)):null}toRFC2822(){return ea(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ea(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lo(this,!0):null}toSQLTime({includeOffset:y=!0,includeZone:b=!1,includeOffsetSpace:I=!0}={}){let z="HH:mm:ss.SSS";return(b||y)&&(I&&(z+=" "),b?z+="z":y&&(z+="ZZ")),ea(this,z,!0)}toSQL(y={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(y)}`:null}toString(){return this.isValid?this.toISO():bo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(y={}){if(!this.isValid)return{};const b={...this.c};return y.includeConfig&&(b.outputCalendar=this.outputCalendar,b.numberingSystem=this.loc.numberingSystem,b.locale=this.loc.locale),b}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(y,b="milliseconds",I={}){if(!this.isValid||!y.isValid)return Ei.invalid("created by diffing an invalid DateTime");const z={locale:this.locale,numberingSystem:this.numberingSystem,...I},ce=function Ls(S){return Array.isArray(S)?S:[S]}(b).map(Ei.normalizeUnit),rt=y.valueOf()>this.valueOf(),vn=function Jl(S,y,b,I){let[z,ce,rt,yt]=function Zl(S,y,b){const I=[["years",(Lt,vn)=>vn.year-Lt.year],["quarters",(Lt,vn)=>vn.quarter-Lt.quarter+4*(vn.year-Lt.year)],["months",(Lt,vn)=>vn.month-Lt.month+12*(vn.year-Lt.year)],["weeks",(Lt,vn)=>{const ii=tl(Lt,vn);return(ii-ii%7)/7}],["days",tl]],z={},ce=S;let rt,yt;for(const[Lt,vn]of I)b.indexOf(Lt)>=0&&(rt=Lt,z[Lt]=vn(S,y),yt=ce.plus(z),yt>y?(z[Lt]--,(S=ce.plus(z))>y&&(yt=S,z[Lt]--,S=ce.plus(z))):S=yt);return[S,z,yt,rt]}(S,y,b);const Lt=y-z,vn=b.filter(wi=>["hours","minutes","seconds","milliseconds"].indexOf(wi)>=0);0===vn.length&&(rt<y&&(rt=z.plus({[yt]:1})),rt!==z&&(ce[yt]=(ce[yt]||0)+Lt/(rt-z)));const ii=Ei.fromObject(ce,I);return vn.length>0?Ei.fromMillis(Lt,I).shiftTo(...vn).plus(ii):ii}(rt?this:y,rt?y:this,ce,z);return rt?vn.negate():vn}diffNow(y="milliseconds",b={}){return this.diff(qn.now(),y,b)}until(y){return this.isValid?ks.fromDateTimes(this,y):this}hasSame(y,b,I){if(!this.isValid)return!1;const z=y.valueOf(),ce=this.setZone(y.zone,{keepLocalTime:!0});return ce.startOf(b,I)<=z&&z<=ce.endOf(b,I)}equals(y){return this.isValid&&y.isValid&&this.valueOf()===y.valueOf()&&this.zone.equals(y.zone)&&this.loc.equals(y.loc)}toRelative(y={}){if(!this.isValid)return null;const b=y.base||qn.fromObject({},{zone:this.zone}),I=y.padding?this<b?-y.padding:y.padding:0;let z=["years","months","days","hours","minutes","seconds"],ce=y.unit;return Array.isArray(y.unit)&&(z=y.unit,ce=void 0),va(b,this.plus(I),{...y,numeric:"always",units:z,unit:ce})}toRelativeCalendar(y={}){return this.isValid?va(y.base||qn.fromObject({},{zone:this.zone}),this,{...y,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...y){if(!y.every(qn.isDateTime))throw new vt("min requires all arguments be DateTimes");return la(y,b=>b.valueOf(),Math.min)}static max(...y){if(!y.every(qn.isDateTime))throw new vt("max requires all arguments be DateTimes");return la(y,b=>b.valueOf(),Math.max)}static fromFormatExplain(y,b,I={}){const{locale:z=null,numberingSystem:ce=null}=I;return Yo(mn.fromOpts({locale:z,numberingSystem:ce,defaultToEN:!0}),y,b)}static fromStringExplain(y,b,I={}){return qn.fromFormatExplain(y,b,I)}static buildFormatParser(y,b={}){const{locale:I=null,numberingSystem:z=null}=b,ce=mn.fromOpts({locale:I,numberingSystem:z,defaultToEN:!0});return new Li(ce,y)}static fromFormatParser(y,b,I={}){if(At(y)||At(b))throw new vt("fromFormatParser requires an input string and a format parser");const{locale:z=null,numberingSystem:ce=null}=I,rt=mn.fromOpts({locale:z,numberingSystem:ce,defaultToEN:!0});if(!rt.equals(b.locale))throw new vt(`fromFormatParser called with a locale of ${rt}, but the format parser was created for ${b.locale}`);const{result:yt,zone:Lt,specificOffset:vn,invalidReason:ii}=b.explainFromTokens(y);return ii?qn.invalid(ii):Va(yt,Lt,I,`format ${b.format}`,y,vn)}static get DATE_SHORT(){return ht}static get DATE_MED(){return kt}static get DATE_MED_WITH_WEEKDAY(){return Tt}static get DATE_FULL(){return cn}static get DATE_HUGE(){return kn}static get TIME_SIMPLE(){return dn}static get TIME_WITH_SECONDS(){return Kt}static get TIME_WITH_SHORT_OFFSET(){return Ye}static get TIME_WITH_LONG_OFFSET(){return ye}static get TIME_24_SIMPLE(){return Se}static get TIME_24_WITH_SECONDS(){return Nt}static get TIME_24_WITH_SHORT_OFFSET(){return K}static get TIME_24_WITH_LONG_OFFSET(){return ge}static get DATETIME_SHORT(){return je}static get DATETIME_SHORT_WITH_SECONDS(){return le}static get DATETIME_MED(){return de}static get DATETIME_MED_WITH_SECONDS(){return Le}static get DATETIME_MED_WITH_WEEKDAY(){return ue}static get DATETIME_FULL(){return He}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return q}static get DATETIME_HUGE_WITH_SECONDS(){return Be}}function ka(S){if(qn.isDateTime(S))return S;if(S&&S.valueOf&&In(S.valueOf()))return qn.fromJSDate(S);if(S&&"object"==typeof S)return qn.fromObject(S);throw new vt(`Unknown datetime argument: ${S}, of type ${typeof S}`)}var Pr=N(9417);function jc(S,y){1&S&&e.eu8(0)}function Qs(S,y){if(1&S&&(e.j41(0,"div",3),e.DNE(1,jc,1,0,"ng-container",4),e.k0s()),2&S){const b=e.XpG(),I=e.sdS(4);e.Y8G("ngxAppendToInput",b.inputElement),e.R7$(1),e.Y8G("ngTemplateOutlet",I)}}function _l(S,y){1&S&&e.eu8(0)}function ld(S,y){if(1&S&&e.DNE(0,_l,1,0,"ng-container",4),2&S){e.XpG();const b=e.sdS(4);e.Y8G("ngTemplateOutlet",b)}}function Jt(S,y){1&S&&e.SdG(0)}const ni=["*"],No=["editableTimeTmpl"],Dr=function(S){return{"timepicker-dial__item_active":S}};function us(S,y){if(1&S){const b=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(z){e.eBV(b);const ce=e.XpG();return e.Njj(ce.time=z)})("input",function(){e.eBV(b);const z=e.XpG();return e.Njj(z.updateTime())})("focus",function(z){e.eBV(b);const ce=e.XpG();return e.Njj(ce.saveTimeAndChangeTimeUnit(z,ce.timeUnit))}),e.nI1(1,"timeLocalizer"),e.k0s()}if(2&S){const b=e.XpG();e.Y8G("ngClass",e.eq3(7,Dr,b.isActive))("ngModel",e.i5U(1,4,b.time,b.timeUnit))("disabled",b.disabled)("timepickerAutofocus",b.isActive)}}function vl(S,y){if(1&S){const b=e.RV6();e.j41(0,"input",3,4),e.bIt("focus",function(z){e.eBV(b);const ce=e.XpG();return e.Njj(ce.saveTimeAndChangeTimeUnit(z,ce.timeUnit))})("keydown",function(z){e.eBV(b);const ce=e.XpG();return e.Njj(ce.onKeydown(z))}),e.k0s()}if(2&S){const b=e.XpG();e.Y8G("formControl",b.timeControl)("ngClass",e.eq3(3,Dr,b.isActive))("timepickerAutofocus",b.isActive)}}function tc(S,y){if(1&S){const b=e.RV6();e.j41(0,"div",3),e.bIt("@scaleInOut.done",function(){e.eBV(b);const z=e.XpG();return e.Njj(z.animationDone())}),e.j41(1,"p"),e.EFF(2,"Current time would be invalid in this period."),e.k0s()()}2&S&&e.Y8G("@scaleInOut",void 0)}function ta(S,y){1&S&&e.eu8(0)}function xa(S,y){1&S&&(e.j41(0,"small",10),e.EFF(1," * use arrows ("),e.j41(2,"span"),e.EFF(3,"\u21c5"),e.k0s(),e.EFF(4,") to change the time"),e.k0s())}const Dc=function(S){return{"timepicker-dial__hint-container--hidden":S}};function Jd(S,y){if(1&S&&(e.j41(0,"div",7),e.DNE(1,ta,1,0,"ng-container",8),e.DNE(2,xa,5,0,"ng-template",null,9,e.C5r),e.k0s()),2&S){const b=e.sdS(3),I=e.XpG();e.Y8G("ngClass",e.eq3(2,Dc,!I.isHintVisible)),e.R7$(1),e.Y8G("ngTemplateOutlet",I.editableHintTmpl?I.editableHintTmpl:b)}}const na=function(S){return{"timepicker-dial__period--hidden":S}},Vl=["clockFace"],co=["clockHand"],ar=function(S){return{transform:S}},A=function(S,y){return{active:S,disabled:y}};function V(S,y){if(1&S&&(e.j41(0,"div",9)(1,"span",10),e.nI1(2,"activeHour"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.k0s()()),2&S){const b=y.$implicit,I=e.XpG(2);e.Y8G("ngStyle",e.eq3(11,ar,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(13,ar,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(15,A,e.brH(2,4,b.time,I.selectedTime.time,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,8,b.time,I.timeUnit.HOUR)," ")}}function O(S,y){if(1&S&&(e.j41(0,"div",13)(1,"span",10),e.nI1(2,"activeHour"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.k0s()()),2&S){const b=y.$implicit,I=e.XpG(3);e.xc7("height",I.innerClockFaceSize,"px"),e.Y8G("ngStyle",e.eq3(13,ar,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(15,ar,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(17,A,e.brH(2,6,b.time,null==I.selectedTime?null:I.selectedTime.time,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,10,b.time,I.timeUnit.HOUR),"")}}function j(S,y){if(1&S&&(e.j41(0,"div",11),e.DNE(1,O,5,20,"div",12),e.nI1(2,"slice"),e.k0s()),2&S){const b=e.XpG(2);e.xc7("top","calc(50% - "+b.innerClockFaceSize+"px)"),e.R7$(1),e.Y8G("ngForOf",e.brH(2,4,b.faceTime,12,24))("ngForTrackBy",b.trackByTime)}}function Q(S,y){if(1&S&&(e.j41(0,"div",6),e.DNE(1,V,5,18,"div",7),e.nI1(2,"slice"),e.DNE(3,j,3,8,"div",8),e.k0s()),2&S){const b=e.XpG();e.R7$(1),e.Y8G("ngForOf",e.brH(2,3,b.faceTime,0,12))("ngForTrackBy",b.trackByTime),e.R7$(2),e.Y8G("ngIf",b.faceTime.length>12)}}function Te(S,y){if(1&S&&(e.j41(0,"div",9)(1,"span",10),e.nI1(2,"activeMinute"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.nI1(5,"minutesFormatter"),e.k0s()()),2&S){const b=y.$implicit,I=e.XpG(2);e.Y8G("ngStyle",e.eq3(15,ar,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(17,ar,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(19,A,e.ii3(2,4,b.time,null==I.selectedTime?null:I.selectedTime.time,I.minutesGap,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,9,e.i5U(5,12,b.time,I.minutesGap),I.timeUnit.MINUTE),"")}}function Qe(S,y){if(1&S&&(e.j41(0,"div",6),e.DNE(1,Te,6,22,"div",7),e.k0s()),2&S){const b=e.XpG();e.R7$(1),e.Y8G("ngForOf",b.faceTime)("ngForTrackBy",b.trackByTime)}}const Wt=function(S){return{"clock-face__clock-hand_minute":S}};function Ht(S,y){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-24-hours-face",17),e.bIt("hourChange",function(z){e.eBV(b);const ce=e.XpG(2);return e.Njj(ce.onHourChange(z))})("hourSelected",function(z){e.eBV(b);const ce=e.XpG(2);return e.Njj(ce.onHourSelected(z))}),e.nI1(1,"async"),e.k0s()}if(2&S){const b=e.XpG(2);e.Y8G("selectedHour",e.bMT(1,4,b.selectedHour))("minTime",b.minTime)("maxTime",b.maxTime)("format",b.format)}}function Pn(S,y){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-12-hours-face",18),e.bIt("hourChange",function(z){e.eBV(b);const ce=e.XpG(2);return e.Njj(ce.onHourChange(z))})("hourSelected",function(z){e.eBV(b);const ce=e.XpG(2);return e.Njj(ce.onHourSelected(z))}),e.nI1(1,"async"),e.nI1(2,"async"),e.k0s()}if(2&S){const b=e.XpG(2);e.Y8G("selectedHour",e.bMT(1,4,b.selectedHour))("period",e.bMT(2,6,b.selectedPeriod))("minTime",b.minTime)("maxTime",b.maxTime)}}function Ci(S,y){if(1&S&&(e.j41(0,"div"),e.DNE(1,Ht,2,6,"ngx-material-timepicker-24-hours-face",15),e.DNE(2,Pn,3,8,"ng-template",null,16,e.C5r),e.k0s()),2&S){const b=e.sdS(3),I=e.XpG();e.R7$(1),e.Y8G("ngIf",24===I.format)("ngIfElse",b)}}function _s(S,y){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-minutes-face",19),e.bIt("minuteChange",function(z){e.eBV(b);const ce=e.XpG();return e.Njj(ce.onMinuteChange(z))}),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.k0s()}if(2&S){const b=e.XpG();let I;e.Y8G("selectedMinute",e.bMT(1,7,b.selectedMinute))("selectedHour",null==(I=e.bMT(2,9,b.selectedHour))?null:I.time)("minTime",b.minTime)("maxTime",b.maxTime)("format",b.format)("period",e.bMT(3,11,b.selectedPeriod))("minutesGap",b.minutesGap)}}function Ni(S,y){1&S&&e.eu8(0)}function Mr(S,y){1&S&&e.eu8(0)}function Ds(S,y){1&S&&(e.j41(0,"ngx-material-timepicker-button"),e.EFF(1,"Cancel"),e.k0s())}function Lr(S,y){1&S&&(e.j41(0,"ngx-material-timepicker-button"),e.EFF(1,"Ok"),e.k0s())}const il=function(S){return{"timepicker-backdrop-overlay--transparent":S}};var Zs=function(S){return S[S.HOUR=0]="HOUR",S[S.MINUTE=1]="MINUTE",S}(Zs||{}),Tr=function(S){return S.AM="AM",S.PM="PM",S}(Tr||{}),$s=function(S){return S.TWELVE="hh:mm a",S.TWELVE_SHORT="h:m a",S.TWENTY_FOUR="HH:mm",S.TWENTY_FOUR_SHORT="H:m",S}($s||{});function Ia(S,y,b="minutes"){return"hours"===b?S.hour>=y.hour:"minutes"===b?S.hasSame(y,b)||S.valueOf()>y.valueOf():void 0}function $a(S,y,b="minutes"){return"hours"===b?S.hour<=y.hour:"minutes"===b?S.hasSame(y,b)||S.valueOf()<=y.valueOf():void 0}let Js=(()=>{class S{static parseTime(b,I){const{numberingSystem:z,locale:ce}=S.getLocaleOptionsByTime(b,I),yt=2===b.split(" ").length?$s.TWELVE_SHORT:$s.TWENTY_FOUR_SHORT;return qn.fromFormat(b,yt,{numberingSystem:z,locale:ce})}static formatTime(b,I){if(!b)return"Invalid Time";const{format:z}=I,ce=S.parseTime(b,I).setLocale(S.DEFAULT_LOCALE);return ce.isValid?24!==z?ce.toLocaleString(Object.assign(Object.assign({},qn.TIME_SIMPLE),{hour12:24!==z,numberingSystem:S.DEFAULT_NUMBERING_SYSTEM})).replace(/\u200E/g,"").replace(/\u202F/g," "):ce.toISOTime({includeOffset:!1,suppressMilliseconds:!0,suppressSeconds:!0}).replace(/\u200E/g,"").replace(/\u202F/g," "):null}static toLocaleTimeString(b,I={}){const{format:z=S.DEFAULT_FORMAT,locale:ce=S.DEFAULT_LOCALE}=I,rt=24===z?"h23":"h12",yt=Object.assign(Object.assign({},qn.TIME_SIMPLE),{hourCycle:rt}),Lt=24===z?$s.TWENTY_FOUR_SHORT:$s.TWELVE_SHORT,vn=Object.assign({locale:I.locale,numberingSystem:I.numberingSystem},yt);return qn.fromFormat(b,Lt).setLocale(ce).toLocaleString(vn).replace(/\u202F/g," ")}static isTimeAvailable(b,I,z,ce,rt,yt){if(!b)return;const Lt=this.parseTime(b,{format:yt}),vn=Lt.minute;if(rt&&vn==vn&&vn%rt!=0)throw new Error(`Your minutes - ${vn} doesn't match your minutesGap - ${rt}`);const ii=I&&!z&&Ia(Lt,I,ce),wi=z&&!I&&$a(Lt,z,ce),Si=I&&z&&function nc(S,y,b,I="minutes"){return"hours"===I?$a(S,b,I)&&Ia(S,y,I):"minutes"===I?$a(S,b)&&Ia(S,y):void 0}(Lt,I,z,ce);return ii||wi||Si||!I&&!z}static formatHour(b,I,z){if(24===I)return b;const ce=z===Tr.AM?b:b+12;return z===Tr.AM&&12===ce?0:z===Tr.PM&&24===ce?12:ce}static fromDateTimeToString(b,I){const z=24===I?$s.TWENTY_FOUR:$s.TWELVE;return b.reconfigure({numberingSystem:S.DEFAULT_NUMBERING_SYSTEM,locale:S.DEFAULT_LOCALE}).toFormat(z).replace(/\u202F/g," ")}static getLocaleOptionsByTime(b,I){const z={numberingSystem:I.numberingSystem,locale:I.locale},ce={numberingSystem:S.DEFAULT_NUMBERING_SYSTEM,locale:S.DEFAULT_LOCALE};return isNaN(parseInt(b,10))?z:ce}}return S.DEFAULT_FORMAT=12,S.DEFAULT_LOCALE="en-US",S.DEFAULT_NUMBERING_SYSTEM="latn",S})();const Sc={time:12,angle:360},ol={time:0,angle:360};let yl=(()=>{class S{constructor(){this.hourSubject=new ne.t(Sc),this.minuteSubject=new ne.t(ol),this.periodSubject=new ne.t(Tr.AM)}set hour(b){this.hourSubject.next(b)}get selectedHour(){return this.hourSubject.asObservable()}set minute(b){this.minuteSubject.next(b)}get selectedMinute(){return this.minuteSubject.asObservable()}set period(b){(b===Tr.AM||b===Tr.PM)&&this.periodSubject.next(b)}get selectedPeriod(){return this.periodSubject.asObservable()}setDefaultTimeIfAvailable(b,I,z,ce,rt){try{Js.isTimeAvailable(b,I,z,"minutes",rt)&&this.setDefaultTime(b,ce)}catch(yt){console.error(yt)}}getFullTime(b){const I=this.hourSubject.getValue().time,z=this.minuteSubject.getValue().time,Lt=`${I??Sc.time}:${z??ol.time} ${12===b?this.periodSubject.getValue():""}`.trim();return Js.formatTime(Lt,{format:b})}setDefaultTime(b,I){const z=Js.parseTime(b,{format:I}).toJSDate();if(qn.fromJSDate(z).isValid){const ce=b.substr(b.length-2).toUpperCase(),rt=z.getHours();this.hour=Object.assign(Object.assign({},Sc),{time:dd(rt,ce)}),this.minute=Object.assign(Object.assign({},ol),{time:z.getMinutes()}),this.period=ce}else this.resetTime()}resetTime(){this.hour=Object.assign({},Sc),this.minute=Object.assign({},ol),this.period=Tr.AM}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function dd(S,y){switch(y){case Tr.AM:return 0===S?12:S;case Tr.PM:return 12===S?12:S-12;default:return S}}const Ua=new e.nKC("TimeLocale",{providedIn:"root",factory:()=>Js.DEFAULT_LOCALE}),Cl=new e.nKC("NumberingSystem",{providedIn:"root",factory:()=>Js.DEFAULT_NUMBERING_SYSTEM});let yo=(()=>{class S{constructor(){this.backdropClickSubject=new Z.B,this.keydownEventSubject=new Z.B}get backdropClick(){return this.backdropClickSubject.asObservable().pipe((0,we.t)({bufferSize:1,refCount:!0}))}get keydownEvent(){return this.keydownEventSubject.asObservable().pipe((0,we.t)({bufferSize:1,refCount:!0}))}dispatchEvent(b){switch(b.type){case"click":this.backdropClickSubject.next(b);break;case"keydown":this.keydownEventSubject.next(b);break;default:throw new Error("no such event type")}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),Oa=(()=>{class S{constructor(b,I){this.renderer=I,this.element=b.nativeElement}get inputCords(){return this.inputElement.getBoundingClientRect()}get direction(){const b=this.element.offsetHeight,{bottom:I,top:z}=this._inputCords,ce=(window&&window.innerHeight)-I<b;return ce&&z>b?"top":ce&&z<b?"center":"bottom"}ngAfterViewInit(){this._inputCords=this.inputCords,this._direction=this.direction,this.append()}changePosition(){const{bottom:b,top:I}=this.inputCords,z=this.defineElementYByDirection(I,b);this.setStyle("top",`${z}px`)}append(){const{left:b,bottom:I,top:z}=this._inputCords,ce=this.defineElementYByDirection(z,I);this.setStyle("position","fixed"),this.setStyle("left",`${b}px`),this.setStyle("top",`${ce}px`)}setStyle(b,I){this.renderer.setStyle(this.element,b,I)}defineElementYByDirection(b,I){return"top"===this._direction?b-this.element.offsetHeight:"center"===this._direction?b-this.element.offsetHeight/2:I}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(e.sFG))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxAppendToInput",""]],hostBindings:function(b,I){1&b&&e.bIt("scroll",function(){return I.changePosition()},!1,e.tSv)},inputs:{inputElement:["ngxAppendToInput","inputElement"]}}),S})(),kc=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-content"]],inputs:{appendToInput:"appendToInput",inputElement:"inputElement"},ngContentSelectors:ni,decls:5,vars:2,consts:[[3,"ngxAppendToInput",4,"ngIf","ngIfElse"],["timepickerModal",""],["timepickerOutlet",""],[3,"ngxAppendToInput"],[4,"ngTemplateOutlet"]],template:function(b,I){if(1&b&&(e.NAR(),e.DNE(0,Qs,2,2,"div",0),e.DNE(1,ld,1,1,"ng-template",null,1,e.C5r),e.DNE(3,Jt,1,0,"ng-template",null,2,e.C5r)),2&b){const z=e.sdS(2);e.Y8G("ngIf",I.appendToInput)("ngIfElse",z)}},dependencies:[h.bT,Oa,h.T3],encapsulation:2}),S})();class _r{static getHours(y){return Array(y).fill(1).map((b,I)=>{const ce=b+I;return{time:24===ce?0:ce,angle:30*ce}})}static disableHours(y,b){return b.min||b.max?y.map(I=>{const z=24===b.format?I.time:Js.formatHour(I.time,b.format,b.period),ce=qn.fromObject({hour:z}).toFormat($s.TWELVE);return Object.assign(Object.assign({},I),{disabled:!Js.isTimeAvailable(ce,b.min,b.max,"hours")})}):y}static getMinutes(y=1){const z=[];for(let ce=0;ce<60;ce++){const rt=6*ce;ce%y==0&&z.push({time:ce,angle:0!==rt?rt:360})}return z}static disableMinutes(y,b,I){if(I.min||I.max){const z=Js.formatHour(b,I.format,I.period);return y.map(ce=>{const rt=qn.fromObject({hour:z,minute:ce.time}).toFormat($s.TWELVE);return Object.assign(Object.assign({},ce),{disabled:!Js.isTimeAvailable(rt,I.min,I.max,"minutes")})})}return y}}let ya=(()=>{class S{constructor(b){this.locale=b}transform(b,I,z=!1){if(null==b||""===b)return"";switch(I){case Zs.HOUR:return this.formatTime("hour",b,0===b||z?"HH":"H");case Zs.MINUTE:return this.formatTime("minute",b,"mm");default:throw new Error(`There is no Time Unit with type ${I}`)}}formatTime(b,I,z){try{return qn.fromObject({[b]:+I}).setLocale(this.locale).toFormat(z)}catch{throw new Error(`Cannot format provided time - ${I} to locale - ${this.locale}`)}}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua,16))},S.\u0275pipe=e.EJ8({name:"timeLocalizer",type:S,pure:!0}),S})(),wl=(()=>{class S{constructor(b,I){this.locale=b,this.numberingSystem=I}transform(b,I=Zs.HOUR){return null==b||""===b?"":isNaN(+b)?I===Zs.MINUTE?this.parseTime(b,"m","minute"):this.parseTime(b,"H","hour"):b}parseTime(b,I,z){const ce=qn.fromFormat(String(b),I,{numberingSystem:this.numberingSystem,locale:this.locale})[z];if(!isNaN(ce))return ce;throw new Error(`Cannot parse time - ${b}`)}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua,16),e.rXU(Cl,16))},S.\u0275pipe=e.EJ8({name:"timeParser",type:S,pure:!0}),S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),S})(),Ha=(()=>{class S{constructor(b,I){this.element=b,this.document=I,this.activeElement=this.document.activeElement}ngOnChanges(){this.isFocusActive&&setTimeout(()=>this.element.nativeElement.focus({preventScroll:!0}))}ngOnDestroy(){setTimeout(()=>this.activeElement.focus({preventScroll:!0}))}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(h.qQ,8))},S.\u0275dir=e.FsC({type:S,selectors:[["","timepickerAutofocus",""]],inputs:{isFocusActive:["timepickerAutofocus","isFocusActive"]},features:[e.OA$]}),S})(),Dl=(()=>{class S{constructor(b,I){this.timeParserPipe=b,this.timeLocalizerPipe=I,this.timeUnitChanged=new e.bkB,this.timeChanged=new e.bkB,this.focused=new e.bkB,this.unfocused=new e.bkB}get selectedTime(){if(this.time)return this.timeList.find(b=>b.time===+this.time)}ngOnInit(){this.isEditable&&(this.timeControl=new Pr.MJ({value:this.formatTimeForUI(this.time),disabled:this.disabled}),this.timeControl.valueChanges.pipe((0,Ie.M)(b=>{b.length>2&&this.updateInputValue(b.slice(-1))}),(0,Oe.B)(500),(0,Fe.F)(),(0,Me.p)(b=>!function ic(S,y,b){if(/\d/.test(y))return sc(y,b)}(0,b,this.timeList)),(0,Ie.M)(b=>this.time=this.timeParserPipe.transform(b,this.timeUnit).toString())).subscribe(()=>this.updateTime()))}saveTimeAndChangeTimeUnit(b,I){b.preventDefault(),this.previousTime=this.time,this.timeUnitChanged.next(I),this.focused.next()}updateTime(){const b=this.selectedTime;b&&(this.timeChanged.next(b),this.previousTime=b.time,this.isEditable&&this.updateInputValue(this.formatTimeForUI(b.time)))}onKeydown(b){!function Ec(S){return!!([46,8,9,27,13].some(y=>y===S.keyCode)||65==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||67==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||88==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||S.keyCode>=35&&S.keyCode<=40)||!((S.keyCode<48||S.keyCode>57)&&(S.keyCode<96||S.keyCode>105))}(b)?b.preventDefault():this.changeTimeByArrow(b.keyCode)}changeTimeByArrow(b){let ce;38===b?ce=String(+this.time+(this.minutesGap||1)):40===b&&(ce=String(+this.time-(this.minutesGap||1))),sc(ce,this.timeList)||(this.time=ce,this.updateTime())}formatTimeForUI(b){const I=this.timeParserPipe.transform(b,this.timeUnit).toString();return this.timeLocalizerPipe.transform(I,this.timeUnit,!0)}updateInputValue(b){this.editableTimeTmpl.nativeElement.value=b}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(wl),e.rXU(ya))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-dial-control"]],viewQuery:function(b,I){if(1&b&&e.GBs(No,5),2&b){let z;e.mGM(z=e.lsd())&&(I.editableTimeTmpl=z.first)}},inputs:{timeList:"timeList",timeUnit:"timeUnit",time:"time",isActive:"isActive",isEditable:"isEditable",minutesGap:"minutesGap",disabled:"disabled"},outputs:{timeUnitChanged:"timeUnitChanged",timeChanged:"timeChanged",focused:"focused",unfocused:"unfocused"},features:[e.Jv_([wl,ya])],decls:3,vars:2,consts:[["class","timepicker-dial__control timepicker-dial__item","readonly","",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus",4,"ngIf","ngIfElse"],["editableTemplate",""],["readonly","",1,"timepicker-dial__control","timepicker-dial__item",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus"],[1,"timepicker-dial__control","timepicker-dial__item","timepicker-dial__control_editable",3,"formControl","ngClass","timepickerAutofocus","focus","keydown"],["editableTimeTmpl",""]],template:function(b,I){if(1&b&&(e.DNE(0,us,2,9,"input",0),e.DNE(1,vl,2,5,"ng-template",null,1,e.C5r)),2&b){const z=e.sdS(2);e.Y8G("ngIf",!I.isEditable)("ngIfElse",z)}},dependencies:[h.bT,Pr.me,h.YU,Pr.BC,Pr.vS,Ha,Pr.l_,ya],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]{border:none;background-color:transparent;font-size:50px;width:60px;padding:0;border-radius:3px;text-align:right}.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:#00bfff;background-color:#fff;outline:deepskyblue}@supports (color: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:var(--dial-editable-active-color)}}@supports (background-color: var(--dial-editable-background-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{background-color:var(--dial-editable-background-color)}}@supports (outline: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{outline:var(--dial-editable-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]:disabled{cursor:default}.timepicker-dial__control[_ngcontent-%COMP%]:focus-visible{outline:none}']}),S})();function sc(S,y){const b=y.find(I=>I.time===+S);return!b||b&&b.disabled}let Ca=(()=>{class S{constructor(){this.timePeriod=Tr,this.isPeriodAvailable=!0,this.periodChanged=new e.bkB}changePeriod(b){this.isPeriodAvailable=this.isSwitchPeriodAvailable(b),this.isPeriodAvailable&&this.periodChanged.next(b)}animationDone(){this.isPeriodAvailable=!0}isSwitchPeriodAvailable(b){return!this.getDisabledTimeByPeriod(b).every(z=>z.disabled)}getDisabledTimeByPeriod(b){switch(this.activeTimeUnit){case Zs.HOUR:return _r.disableHours(this.hours,{min:this.minTime,max:this.maxTime,format:this.format,period:b});case Zs.MINUTE:return _r.disableMinutes(this.minutes,+this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:b});default:throw new Error("no such TimeUnit")}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-period"]],inputs:{selectedPeriod:"selectedPeriod",format:"format",activeTimeUnit:"activeTimeUnit",hours:"hours",minutes:"minutes",minTime:"minTime",maxTime:"maxTime",selectedHour:"selectedHour",meridiems:"meridiems"},outputs:{periodChanged:"periodChanged"},decls:6,vars:9,consts:[[1,"timepicker-period"],["type","button",1,"timepicker-dial__item","timepicker-period__btn",3,"ngClass","click"],["class","timepicker-period__warning",4,"ngIf"],[1,"timepicker-period__warning"]],template:function(b,I){1&b&&(e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){return I.changePeriod(I.timePeriod.AM)}),e.EFF(2),e.k0s(),e.j41(3,"button",1),e.bIt("click",function(){return I.changePeriod(I.timePeriod.PM)}),e.EFF(4),e.k0s(),e.DNE(5,tc,3,1,"div",2),e.k0s()),2&b&&(e.R7$(1),e.Y8G("ngClass",e.eq3(5,Dr,I.selectedPeriod===I.timePeriod.AM)),e.R7$(1),e.JRh(I.meridiems[0]),e.R7$(1),e.Y8G("ngClass",e.eq3(7,Dr,I.selectedPeriod===I.timePeriod.PM)),e.R7$(1),e.JRh(I.meridiems[1]),e.R7$(1),e.Y8G("ngIf",!I.isPeriodAvailable))},dependencies:[h.YU,h.bT],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-period[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}.timepicker-period__btn[_ngcontent-%COMP%]{padding:1px 3px;border:0;background-color:transparent;font-size:18px;font-weight:500;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none;border-radius:3px;transition:background-color .5s;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__btn[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.timepicker-period__btn[_ngcontent-%COMP%]:focus{background-color:#00000012}.timepicker-period__warning[_ngcontent-%COMP%]{padding:5px 10px;border-radius:3px;background-color:#0000008c;color:#fff;position:absolute;width:200px;left:-20px;top:40px}.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}'],data:{animation:[(0,Ue.hZ)("scaleInOut",[(0,Ue.kY)(":enter",[(0,Ue.iF)({transform:"scale(0)"}),(0,Ue.i0)(".2s",(0,Ue.iF)({transform:"scale(1)"})),(0,Ue.K2)([(0,Ue.i0)("3s",(0,Ue.iF)({opacity:1})),(0,Ue.i0)(".3s",(0,Ue.iF)({opacity:0}))])])])]}}),S})(),xc=(()=>{class S{constructor(b){this.locale=b,this.timeUnit=Zs,this.meridiems=Ba.meridiems({locale:this.locale}),this.periodChanged=new e.bkB,this.timeUnitChanged=new e.bkB,this.hourChanged=new e.bkB,this.minuteChanged=new e.bkB}ngOnChanges(b){if(b.period&&b.period.currentValue||b.format&&b.format.currentValue){const I=_r.getHours(this.format);this.hours=_r.disableHours(I,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}if(b.period&&b.period.currentValue||b.hour&&b.hour.currentValue){const I=_r.getMinutes(this.minutesGap);this.minutes=_r.disableMinutes(I,+this.hour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}changeTimeUnit(b){this.timeUnitChanged.next(b)}changePeriod(b){this.periodChanged.next(b)}changeHour(b){this.hourChanged.next(b),this.isEditable&&this.changeTimeUnit(Zs.MINUTE)}changeMinute(b){this.minuteChanged.next(b)}showHint(){this.isHintVisible=!0}hideHint(){this.isHintVisible=!1}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-dial"]],inputs:{editableHintTmpl:"editableHintTmpl",hour:"hour",minute:"minute",format:"format",period:"period",activeTimeUnit:"activeTimeUnit",minTime:"minTime",maxTime:"maxTime",isEditable:"isEditable",minutesGap:"minutesGap",hoursOnly:"hoursOnly"},outputs:{periodChanged:"periodChanged",timeUnitChanged:"timeUnitChanged",hourChanged:"hourChanged",minuteChanged:"minuteChanged"},features:[e.OA$],decls:9,vars:25,consts:[[1,"timepicker-dial"],[1,"timepicker-dial__container"],[1,"timepicker-dial__time"],[3,"timeList","time","timeUnit","isActive","isEditable","timeUnitChanged","timeChanged","focused","unfocused"],[3,"timeList","time","timeUnit","isActive","isEditable","minutesGap","disabled","timeUnitChanged","timeChanged","focused","unfocused"],[1,"timepicker-dial__period",3,"ngClass","selectedPeriod","activeTimeUnit","maxTime","minTime","format","hours","minutes","selectedHour","meridiems","periodChanged"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngTemplateOutlet"],["editableHintDefault",""],[1,"timepicker-dial__hint"]],template:function(b,I){1&b&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"ngx-material-timepicker-dial-control",3),e.bIt("timeUnitChanged",function(ce){return I.changeTimeUnit(ce)})("timeChanged",function(ce){return I.changeHour(ce)})("focused",function(){return I.showHint()})("unfocused",function(){return I.hideHint()}),e.k0s(),e.j41(4,"span"),e.EFF(5,":"),e.k0s(),e.j41(6,"ngx-material-timepicker-dial-control",4),e.bIt("timeUnitChanged",function(ce){return I.changeTimeUnit(ce)})("timeChanged",function(ce){return I.changeMinute(ce)})("focused",function(){return I.showHint()})("unfocused",function(){return I.hideHint()}),e.k0s()(),e.j41(7,"ngx-material-timepicker-period",5),e.bIt("periodChanged",function(ce){return I.changePeriod(ce)}),e.k0s()(),e.DNE(8,Jd,4,4,"div",6),e.k0s()),2&b&&(e.R7$(3),e.Y8G("timeList",I.hours)("time",I.hour)("timeUnit",I.timeUnit.HOUR)("isActive",I.activeTimeUnit===I.timeUnit.HOUR)("isEditable",I.isEditable),e.R7$(3),e.Y8G("timeList",I.minutes)("time",I.minute)("timeUnit",I.timeUnit.MINUTE)("isActive",I.activeTimeUnit===I.timeUnit.MINUTE)("isEditable",I.isEditable)("minutesGap",I.minutesGap)("disabled",I.hoursOnly),e.R7$(1),e.Y8G("ngClass",e.eq3(23,na,24===I.format))("selectedPeriod",I.period)("activeTimeUnit",I.activeTimeUnit)("maxTime",I.maxTime)("minTime",I.minTime)("format",I.format)("hours",I.hours)("minutes",I.minutes)("selectedHour",I.hour)("meridiems",I.meridiems),e.R7$(1),e.Y8G("ngIf",I.isEditable||I.editableHintTmpl))},dependencies:[Dl,Ca,h.YU,h.bT,h.T3],styles:['.timepicker-dial[_ngcontent-%COMP%]{text-align:right}.timepicker-dial__container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;-webkit-tap-highlight-color:rgba(0,0,0,0)}.timepicker-dial__time[_ngcontent-%COMP%]{display:flex;align-items:baseline;line-height:normal;font-size:50px;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__time[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__period[_ngcontent-%COMP%]{display:block;margin-left:10px}.timepicker-dial__period--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint-container--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint[_ngcontent-%COMP%]{display:inline-block;font-size:10px;color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__hint[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker-dial__container[_ngcontent-%COMP%]{flex-direction:column}.timepicker-dial__period[_ngcontent-%COMP%]{margin-left:0}}'],changeDetection:0}),S})(),Gc=(()=>{class S{constructor(b){this.hourChange=new e.bkB,this.hourSelected=new e.bkB,this.hoursList=[],this.hoursList=_r.getHours(b)}onTimeSelected(b){this.hourSelected.next(b)}}return S.\u0275fac=function(b){e.QTQ()},S.\u0275dir=e.FsC({type:S,inputs:{selectedHour:"selectedHour",minTime:"minTime",maxTime:"maxTime",format:"format"},outputs:{hourChange:"hourChange",hourSelected:"hourSelected"}}),S})(),Br=(()=>{class S{transform(b,I,z){return null!=b&&!z&&b===I}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"activeHour",type:S,pure:!0}),S})(),oc=(()=>{class S{transform(b,I,z,ce){return null!=b&&!ce&&I===b&&b%(z||5)==0}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"activeMinute",type:S,pure:!0}),S})(),Xs=(()=>{class S{transform(b,I=5){return b&&(b%I==0?b:"")}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"minutesFormatter",type:S,pure:!0}),S})();const qo_small_height="75px",qo_small_top="calc(50% - 75px)",qo_large_height="103px",qo_large_top="calc(50% - 103px)";let Ya=(()=>{class S{constructor(){this.timeUnit=Zs,this.innerClockFaceSize=85,this.timeChange=new e.bkB,this.timeSelected=new e.bkB}ngAfterViewInit(){this.setClockHandPosition(),this.addTouchEvents()}ngOnChanges(b){const I=b.faceTime,z=b.selectedTime;I&&I.currentValue&&z&&z.currentValue&&(this.selectedTime=this.faceTime.find(ce=>ce.time===this.selectedTime.time)),z&&z.currentValue&&this.setClockHandPosition(),I&&I.currentValue&&setTimeout(()=>this.selectAvailableTime())}trackByTime(b,I){return I.time}onMousedown(b){b.preventDefault(),this.isStarted=!0}selectTime(b){if(!this.isStarted&&b instanceof MouseEvent&&"click"!==b.type)return;const I=this.clockFace.nativeElement.getBoundingClientRect(),z=I.left+I.width/2,ce=I.top+I.height/2,rt=180*Math.atan(Math.abs(b.clientX-z)/Math.abs(b.clientY-ce))/Math.PI,yt=function Ic(S,y,b,I,z){return I>y&&b>=S?180-z:I>y&&b<S?180+z:I<y&&b<S?360-z:z}(z,ce,b.clientX,b.clientY,rt),Lt=this.format&&this.isInnerClockFace(z,ce,b.clientX,b.clientY),wi=(function vr(S,y){return Math.round(S/y)*y}(yt,this.unit===Zs.MINUTE?6*(this.minutesGap||1):30)||360)+(Lt?360:0),Si=this.faceTime.find(si=>si.angle===wi);Si&&!Si.disabled&&(this.timeChange.next(Si),this.isStarted||this.timeSelected.next(Si.time))}onMouseup(b){b.preventDefault(),this.isStarted=!1}ngOnDestroy(){this.removeTouchEvents()}addTouchEvents(){this.touchStartHandler=this.onMousedown.bind(this),this.touchEndHandler=this.onMouseup.bind(this),this.clockFace.nativeElement.addEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.addEventListener("touchend",this.touchEndHandler)}removeTouchEvents(){this.clockFace.nativeElement.removeEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.removeEventListener("touchend",this.touchEndHandler)}setClockHandPosition(){24===this.format&&(this.selectedTime.time>12||0===this.selectedTime.time?this.decreaseClockHand():this.increaseClockHand()),this.clockHand.nativeElement.style.transform=`rotate(${this.selectedTime.angle}deg)`}selectAvailableTime(){const b=this.faceTime.find(I=>this.selectedTime.time===I.time);if(this.isClockFaceDisabled=this.faceTime.every(I=>I.disabled),b&&b.disabled&&!this.isClockFaceDisabled){const I=this.faceTime.find(z=>!z.disabled);this.timeChange.next(I)}}isInnerClockFace(b,I,z,ce){return Math.sqrt(Math.pow(z-b,2)+Math.pow(ce-I,2))<this.innerClockFaceSize}decreaseClockHand(){this.clockHand.nativeElement.style.height=qo_small_height,this.clockHand.nativeElement.style.top=qo_small_top}increaseClockHand(){this.clockHand.nativeElement.style.height=qo_large_height,this.clockHand.nativeElement.style.top=qo_large_top}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-face"]],viewQuery:function(b,I){if(1&b&&(e.GBs(Vl,7),e.GBs(co,7)),2&b){let z;e.mGM(z=e.lsd())&&(I.clockFace=z.first),e.mGM(z=e.lsd())&&(I.clockHand=z.first)}},hostBindings:function(b,I){1&b&&e.bIt("mousedown",function(ce){return I.onMousedown(ce)})("click",function(ce){return I.selectTime(ce)})("touchmove",function(ce){return I.selectTime(ce.changedTouches[0])})("touchend",function(ce){return I.selectTime(ce.changedTouches[0])})("mousemove",function(ce){return I.selectTime(ce)})("mouseup",function(ce){return I.onMouseup(ce)})},inputs:{faceTime:"faceTime",selectedTime:"selectedTime",unit:"unit",format:"format",minutesGap:"minutesGap"},outputs:{timeChange:"timeChange",timeSelected:"timeSelected"},features:[e.OA$],decls:7,vars:6,consts:[[1,"clock-face"],["clockFace",""],["class","clock-face__container",4,"ngIf","ngIfElse"],[1,"clock-face__clock-hand",3,"ngClass","hidden"],["clockHand",""],["minutesFace",""],[1,"clock-face__container"],["class","clock-face__number clock-face__number--outer",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["class","clock-face__inner",3,"top",4,"ngIf"],[1,"clock-face__number","clock-face__number--outer",3,"ngStyle"],[3,"ngStyle","ngClass"],[1,"clock-face__inner"],["class","clock-face__number clock-face__number--inner",3,"ngStyle","height",4,"ngFor","ngForOf","ngForTrackBy"],[1,"clock-face__number","clock-face__number--inner",3,"ngStyle"]],template:function(b,I){if(1&b&&(e.j41(0,"div",0,1),e.DNE(2,Q,4,7,"div",2),e.nrm(3,"span",3,4),e.k0s(),e.DNE(5,Qe,2,2,"ng-template",null,5,e.C5r)),2&b){const z=e.sdS(6);e.R7$(2),e.Y8G("ngIf",I.unit!==I.timeUnit.MINUTE)("ngIfElse",z),e.R7$(1),e.Y8G("ngClass",e.eq3(4,Wt,I.unit===I.timeUnit.MINUTE))("hidden",I.isClockFaceDisabled)}},dependencies:[h.bT,h.Sq,h.B3,h.YU,h.P9,Br,ya,oc,Xs],styles:['.clock-face[_ngcontent-%COMP%]{width:290px;height:290px;border-radius:50%;position:relative;display:flex;justify-content:center;padding:20px;box-sizing:border-box;background-color:#f0f0f0}@supports (background-color: var(--clock-face-background-color)){.clock-face[_ngcontent-%COMP%]{background-color:var(--clock-face-background-color)}}.clock-face__inner[_ngcontent-%COMP%]{position:absolute}.clock-face__container[_ngcontent-%COMP%]{margin-left:-2px}.clock-face__number[_ngcontent-%COMP%]{position:absolute;transform-origin:0 100%;width:50px;text-align:center;z-index:2}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(290px / 2 - 20px)}.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:16px;color:#6c6c6c}@supports (color: var(--clock-face-time-inactive-color)){.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-time-inactive-color)}}.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;color:#929292}@supports (color: var(--clock-face-inner-time-inactive-color)){.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-inner-time-inactive-color)}}.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:30px;height:30px;display:flex;justify-content:center;align-items:center;margin:auto;border-radius:50%;font-weight:500;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:#00bfff;color:#fff}@supports (background-color: var(--clock-hand-color)){.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:var(--clock-hand-color);color:var(--clock-face-time-active-color)}}.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:#c5c5c5}@supports (color: var(--clock-face-time-disabled-color)){.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:var(--clock-face-time-disabled-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]{height:103px;width:2px;transform-origin:0 100%;position:absolute;top:calc(50% - 103px);z-index:1;background-color:#00bfff}@supports (background-color: var(--clock-hand-color)){.clock-face__clock-hand[_ngcontent-%COMP%]{background-color:var(--clock-hand-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]:after{content:"";width:7px;height:7px;border-radius:50%;background-color:inherit;position:absolute;bottom:-3px;left:-3.5px}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{content:"";width:7px;height:7px;background-color:#fff;border-radius:50%;position:absolute;top:-8px;left:calc(50% - 8px);box-sizing:content-box;border-width:4px;border-style:solid;border-color:#00bfff}@supports (border-color: var(--clock-hand-color)){.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{border-color:var(--clock-hand-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.clock-face[_ngcontent-%COMP%]{width:225px;height:225px;padding:5px}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(225px / 2 - 5px)}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{top:0}}'],changeDetection:0}),S})(),Ra=(()=>{class S extends Gc{constructor(){super(24)}ngAfterContentInit(){this.hoursList=_r.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format})}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-24-hours-face"]],features:[e.Vt3],decls:1,vars:3,consts:[[3,"selectedTime","faceTime","format","timeChange","timeSelected"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(ce){return I.hourChange.next(ce)})("timeSelected",function(ce){return I.onTimeSelected(ce)}),e.k0s()),2&b&&e.Y8G("selectedTime",I.selectedHour)("faceTime",I.hoursList)("format",I.format)},dependencies:[Ya],encapsulation:2,changeDetection:0}),S})(),$c=(()=>{class S extends Gc{constructor(){super(12)}ngOnChanges(b){b.period&&b.period.currentValue&&(this.hoursList=_r.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period}))}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-12-hours-face"]],inputs:{period:"period"},features:[e.Vt3,e.OA$],decls:1,vars:2,consts:[[3,"selectedTime","faceTime","timeChange","timeSelected"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(ce){return I.hourChange.next(ce)})("timeSelected",function(ce){return I.onTimeSelected(ce)}),e.k0s()),2&b&&e.Y8G("selectedTime",I.selectedHour)("faceTime",I.hoursList)},dependencies:[Ya],encapsulation:2,changeDetection:0}),S})(),Gl=(()=>{class S{constructor(){this.minutesList=[],this.timeUnit=Zs,this.minuteChange=new e.bkB}ngOnChanges(b){if(b.period&&b.period.currentValue){const I=_r.getMinutes(this.minutesGap);this.minutesList=_r.disableMinutes(I,this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-minutes-face"]],inputs:{selectedMinute:"selectedMinute",selectedHour:"selectedHour",period:"period",minTime:"minTime",maxTime:"maxTime",format:"format",minutesGap:"minutesGap"},outputs:{minuteChange:"minuteChange"},features:[e.OA$],decls:1,vars:4,consts:[[3,"faceTime","selectedTime","minutesGap","unit","timeChange"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(ce){return I.minuteChange.next(ce)}),e.k0s()),2&b&&e.Y8G("faceTime",I.minutesList)("selectedTime",I.selectedMinute)("minutesGap",I.minutesGap)("unit",I.timeUnit.MINUTE)},dependencies:[Ya],encapsulation:2}),S})(),Ml=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-button"]],ngContentSelectors:ni,decls:3,vars:0,consts:[["type","button",1,"timepicker-button"]],template:function(b,I){1&b&&(e.NAR(),e.j41(0,"button",0)(1,"span"),e.SdG(2),e.k0s()())},styles:['.timepicker-button[_ngcontent-%COMP%]{display:inline-block;height:36px;min-width:88px;line-height:36px;border:12px;border-radius:2px;background-color:transparent;text-align:center;transition:all .45s cubic-bezier(.23,1,.32,1);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;cursor:pointer;outline:none;color:#00bfff}@supports (color: var(--button-color)){.timepicker-button[_ngcontent-%COMP%]{color:var(--button-color)}}.timepicker-button[_ngcontent-%COMP%]:hover, .timepicker-button[_ngcontent-%COMP%]:focus{background-color:#9993}.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:600;padding-left:16px;padding-right:16px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}']}),S})(),$l=(()=>{class S{constructor(b){this.eventService=b}onClick(b){this.preventClick||this.eventService.dispatchEvent(b),b.preventDefault()}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yo))},S.\u0275dir=e.FsC({type:S,selectors:[["","overlay",""]],hostBindings:function(b,I){1&b&&e.bIt("click",function(ce){return I.onClick(ce)})},inputs:{preventClick:["overlay","preventClick"]}}),S})(),Uc=(()=>{class S{constructor(b){this.element=b.nativeElement}ngAfterViewInit(){this.theme&&this.setTheme(this.theme)}setTheme(b){for(const I in b)if(b.hasOwnProperty(I)){if("string"==typeof b[I]){for(const z in b)b.hasOwnProperty(z)&&this.element.style.setProperty(`--${Oc(z)}`,b[z]);return}this.setTheme(b[I])}}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxMaterialTimepickerTheme",""]],inputs:{theme:["ngxMaterialTimepickerTheme","theme"]}}),S})();function Oc(S){return S.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var ui=function(S){return S.ENTER="enter",S.LEAVE="leave",S}(ui||{});let Na=(()=>{class S{constructor(b,I,z){this.timepickerService=b,this.eventService=I,this.locale=z,this.timeUnit=Zs,this.activeTimeUnit=Zs.HOUR,this.unsubscribe=new Z.B}set defaultTime(b){this._defaultTime=b,this.setDefaultTime(b)}get defaultTime(){return this._defaultTime}onKeydown(b){this.eventService.dispatchEvent(b),b.stopPropagation()}ngOnInit(){this.animationState=!this.disableAnimation&&ui.ENTER,this.defineTime(),this.selectedHour=this.timepickerService.selectedHour.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.selectedMinute=this.timepickerService.selectedMinute.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.selectedPeriod=this.timepickerService.selectedPeriod.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.timepickerBaseRef.timeUpdated.pipe((0,Ge.Q)(this.unsubscribe)).subscribe(this.setDefaultTime.bind(this))}onHourChange(b){this.timepickerService.hour=b,this.onTimeChange()}onHourSelected(b){this.hoursOnly||this.changeTimeUnit(Zs.MINUTE),this.timepickerBaseRef.hourSelected.next(b)}onMinuteChange(b){this.timepickerService.minute=b,this.onTimeChange()}changePeriod(b){this.timepickerService.period=b,this.onTimeChange()}changeTimeUnit(b){this.activeTimeUnit=b}setTime(){this.timepickerBaseRef.timeSet.next(this.timepickerService.getFullTime(this.format)),this.close()}close(){this.disableAnimation?this.timepickerBaseRef.close():this.animationState=ui.LEAVE}animationDone(b){"done"===b.phaseName&&b.toState===ui.LEAVE&&this.timepickerBaseRef.close()}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}setDefaultTime(b){this.timepickerService.setDefaultTimeIfAvailable(b,this.minTime,this.maxTime,this.format,this.minutesGap)}defineTime(){const b=this.minTime;if(b&&!this.time&&!this.defaultTime){const I=Js.fromDateTimeToString(b,this.format);this.setDefaultTime(I)}}onTimeChange(){const b=Js.toLocaleTimeString(this.timepickerService.getFullTime(this.format),{locale:this.locale,format:this.format});this.timepickerBaseRef.timeChanged.emit(b)}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yl),e.rXU(yo),e.rXU(Ua))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-container"]],hostBindings:function(b,I){1&b&&e.bIt("keydown",function(ce){return I.onKeydown(ce)})},inputs:{defaultTime:"defaultTime"},features:[e.Jv_([yl])],decls:22,vars:31,consts:[[1,"timepicker-backdrop-overlay",3,"overlay","ngClass"],[1,"timepicker-overlay"],[3,"appendToInput","inputElement","ngxMaterialTimepickerTheme"],[1,"timepicker",3,"ngClass"],[1,"timepicker__header"],[3,"format","hour","minute","period","activeTimeUnit","minTime","maxTime","isEditable","editableHintTmpl","minutesGap","hoursOnly","periodChanged","timeUnitChanged","hourChanged","minuteChanged"],[1,"timepicker__main-content"],[1,"timepicker__body",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange",4,"ngSwitchCase"],[1,"timepicker__actions"],[3,"click"],[4,"ngTemplateOutlet"],["cancelBtnDefault",""],["confirmBtnDefault",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected",4,"ngIf","ngIfElse"],["ampmHours",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected"],[3,"selectedHour","period","minTime","maxTime","hourChange","hourSelected"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange"]],template:function(b,I){if(1&b&&(e.nrm(0,"div",0),e.j41(1,"div",1)(2,"ngx-material-timepicker-content",2)(3,"div",3),e.bIt("@timepicker.done",function(ce){return I.animationDone(ce)}),e.j41(4,"header",4)(5,"ngx-material-timepicker-dial",5),e.bIt("periodChanged",function(ce){return I.changePeriod(ce)})("timeUnitChanged",function(ce){return I.changeTimeUnit(ce)})("hourChanged",function(ce){return I.onHourChange(ce)})("minuteChanged",function(ce){return I.onMinuteChange(ce)}),e.nI1(6,"async"),e.nI1(7,"async"),e.nI1(8,"async"),e.k0s()(),e.j41(9,"div",6)(10,"div",7),e.DNE(11,Ci,4,2,"div",8),e.DNE(12,_s,4,13,"ngx-material-timepicker-minutes-face",9),e.k0s(),e.j41(13,"div",10)(14,"div",11),e.bIt("click",function(){return I.close()}),e.DNE(15,Ni,1,0,"ng-container",12),e.k0s(),e.j41(16,"div",11),e.bIt("click",function(){return I.setTime()}),e.DNE(17,Mr,1,0,"ng-container",12),e.k0s()()()()()(),e.DNE(18,Ds,2,0,"ng-template",null,13,e.C5r),e.DNE(20,Lr,2,0,"ng-template",null,14,e.C5r)),2&b){const z=e.sdS(19),ce=e.sdS(21);let rt,yt;e.Y8G("overlay",I.preventOverlayClick)("ngClass",e.eq3(29,il,I.appendToInput)),e.R7$(2),e.Y8G("appendToInput",I.appendToInput)("inputElement",I.inputElement)("ngxMaterialTimepickerTheme",I.theme),e.R7$(1),e.Y8G("@timepicker",I.animationState)("ngClass",I.timepickerClass),e.R7$(2),e.Y8G("format",I.format)("hour",null==(rt=e.bMT(6,23,I.selectedHour))?null:rt.time)("minute",null==(yt=e.bMT(7,25,I.selectedMinute))?null:yt.time)("period",e.bMT(8,27,I.selectedPeriod))("activeTimeUnit",I.activeTimeUnit)("minTime",I.minTime)("maxTime",I.maxTime)("isEditable",I.enableKeyboardInput)("editableHintTmpl",I.editableHintTmpl)("minutesGap",I.minutesGap)("hoursOnly",I.hoursOnly),e.R7$(5),e.Y8G("ngSwitch",I.activeTimeUnit),e.R7$(1),e.Y8G("ngSwitchCase",I.timeUnit.HOUR),e.R7$(1),e.Y8G("ngSwitchCase",I.timeUnit.MINUTE),e.R7$(3),e.Y8G("ngTemplateOutlet",I.cancelBtnTmpl?I.cancelBtnTmpl:z),e.R7$(2),e.Y8G("ngTemplateOutlet",I.confirmBtnTmpl?I.confirmBtnTmpl:ce)}},dependencies:[kc,xc,Ra,$c,Gl,Ml,$l,h.YU,Uc,h.ux,h.e1,h.bT,h.T3,h.Jj],styles:['[_nghost-%COMP%]{--body-background-color: #fff;--primary-font-family: "Roboto", sans-serif;--button-color: deepskyblue;--dial-active-color: #fff;--dial-inactive-color: rgba(255, 255, 255, .5);--dial-background-color: deepskyblue;--dial-editable-active-color: deepskyblue;--dial-editable-background-color: #fff;--clock-face-time-active-color: #fff;--clock-face-time-inactive-color: #6c6c6c;--clock-face-inner-time-inactive-color: #929292;--clock-face-time-disabled-color: #c5c5c5;--clock-face-background-color: #f0f0f0;--clock-hand-color: deepskyblue}.timepicker-backdrop-overlay[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#0000004d;z-index:999;pointer-events:auto}.timepicker-backdrop-overlay--transparent[_ngcontent-%COMP%]{background-color:transparent}.timepicker-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999;pointer-events:none}.timepicker[_ngcontent-%COMP%]{width:300px;border-radius:2px;box-shadow:#00000040 0 14px 45px,#00000038 0 10px 18px;outline:none;position:static;z-index:999;pointer-events:auto}.timepicker__header[_ngcontent-%COMP%]{padding:15px 30px;background-color:#00bfff}@supports (background-color: var(--dial-background-color)){.timepicker__header[_ngcontent-%COMP%]{background-color:var(--dial-background-color)}}.timepicker__body[_ngcontent-%COMP%]{padding:15px 5px;display:flex;justify-content:center;align-items:center;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__body[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}.timepicker__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:15px;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__actions[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker[_ngcontent-%COMP%]{display:flex;width:515px}.timepicker__header[_ngcontent-%COMP%]{display:flex;align-items:center}.timepicker__main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.timepicker__actions[_ngcontent-%COMP%]{padding:5px;margin-top:-1px}}'],data:{animation:[(0,Ue.hZ)("timepicker",[(0,Ue.kY)(`* => ${ui.ENTER}`,[(0,Ue.iF)({transform:"translateY(-30%)"}),(0,Ue.i0)("0.2s ease-out",(0,Ue.iF)({transform:"translateY(0)"}))]),(0,Ue.kY)(`${ui.ENTER} => ${ui.LEAVE}`,[(0,Ue.iF)({transform:"translateY(0)",opacity:1}),(0,Ue.i0)("0.2s ease-out",(0,Ue.iF)({transform:"translateY(-30%)",opacity:0}))])])]}}),S})(),br=(()=>{class S{constructor(b,I,z,ce){this.cfr=b,this.appRef=I,this.injector=z,this.document=ce}appendTimepickerToBody(b,I){this.componentRef=this.cfr.resolveComponentFactory(b).create(this.injector),Object.keys(I).forEach(ce=>this.componentRef.instance[ce]=I[ce]),this.appRef.attachView(this.componentRef.hostView),this.document.body.appendChild(this.componentRef.hostView.rootNodes[0])}destroyTimepicker(){this.componentRef.destroy(),this.appRef.detachView(this.componentRef.hostView)}}return S.\u0275fac=function(b){return new(b||S)(e.KVO(e.OM3),e.KVO(e.o8S),e.KVO(e.zZn),e.KVO(h.qQ,8))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),rc=(()=>{class S{constructor(b,I){this.eventService=b,this.domService=I,this.timeUpdated=new Z.B,this.isEsc=!0,this.hoursOnly=!1,this.timeSet=new e.bkB,this.opened=new e.bkB,this.closed=new e.bkB,this.hourSelected=new e.bkB,this.timeChanged=new e.bkB,this.unsubscribe=new Z.B}set ngxMaterialTimepickerTheme(b){console.warn("'ngxMaterialTimepickerTheme' is deprecated. Use 'theme' instead"),this._ngxMaterialTimepickerTheme=b}set format(b){this._format=24===b?24:12}get format(){return this.timepickerInput?this.timepickerInput.format:this._format}set minutesGap(b){null!=b&&(b=Math.floor(b),this._minutesGap=b<=59?b:1)}get minutesGap(){return this._minutesGap}get minTime(){return this.timepickerInput?this.timepickerInput.min:this.min}get maxTime(){return this.timepickerInput?this.timepickerInput.max:this.max}get disabled(){return this.timepickerInput&&this.timepickerInput.disabled}get time(){return this.timepickerInput&&this.timepickerInput.value}get inputElement(){return this.timepickerInput&&this.timepickerInput.element}registerInput(b){if(this.timepickerInput)throw Error("A Timepicker can only be associated with a single input.");this.timepickerInput=b}open(){this.domService.appendTimepickerToBody(Na,{timepickerBaseRef:this,time:this.time,defaultTime:this.defaultTime,maxTime:this.maxTime,minTime:this.minTime,format:this.format,minutesGap:this.minutesGap,disableAnimation:this.disableAnimation,cancelBtnTmpl:this.cancelBtnTmpl,confirmBtnTmpl:this.confirmBtnTmpl,editableHintTmpl:this.editableHintTmpl,disabled:this.disabled,enableKeyboardInput:this.enableKeyboardInput,preventOverlayClick:this.preventOverlayClick,appendToInput:this.appendToInput,hoursOnly:this.hoursOnly,theme:this.theme||this._ngxMaterialTimepickerTheme,timepickerClass:this.timepickerClass,inputElement:this.inputElement}),this.opened.next(),this.subscribeToEvents()}close(){this.domService.destroyTimepicker(),this.closed.next(),this.unsubscribeFromEvents()}updateTime(b){this.timeUpdated.next(b)}subscribeToEvents(){(0,De.h)(this.eventService.backdropClick,this.eventService.keydownEvent.pipe((0,Me.p)(b=>27===b.keyCode&&this.isEsc))).pipe((0,Ge.Q)(this.unsubscribe)).subscribe(()=>this.close())}unsubscribeFromEvents(){this.unsubscribe.next(),this.unsubscribe.complete()}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yo),e.rXU(br))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker"]],inputs:{cancelBtnTmpl:"cancelBtnTmpl",editableHintTmpl:"editableHintTmpl",confirmBtnTmpl:"confirmBtnTmpl",isEsc:["ESC","isEsc"],enableKeyboardInput:"enableKeyboardInput",preventOverlayClick:"preventOverlayClick",disableAnimation:"disableAnimation",appendToInput:"appendToInput",hoursOnly:"hoursOnly",defaultTime:"defaultTime",timepickerClass:"timepickerClass",theme:"theme",min:"min",max:"max",ngxMaterialTimepickerTheme:"ngxMaterialTimepickerTheme",format:"format",minutesGap:"minutesGap"},outputs:{timeSet:"timeSet",opened:"opened",closed:"closed",hourSelected:"hourSelected",timeChanged:"timeChanged"},decls:0,vars:0,template:function(b,I){},encapsulation:2}),S})(),Ul=(()=>{class S{constructor(b,I){this.elementRef=b,this.locale=I,this._format=12,this._value="",this.timepickerSubscriptions=[],this.onTouched=()=>{},this.onChange=()=>{}}set format(b){this._format=24===b?24:12,b&&this.previousFormat&&this.previousFormat!==this._format&&(this.value=this._value,this._timepicker.updateTime(this._value)),this.previousFormat=this._format}get format(){return this._format}set min(b){console.log(b),this._min="string"!=typeof b?b:Js.parseTime(b,{locale:this.locale,format:this.format})}get min(){return this._min}set max(b){this._max="string"!=typeof b?b:Js.parseTime(b,{locale:this.locale,format:this.format})}get max(){return this._max}set timepicker(b){this.registerTimepicker(b)}set value(b){if(!b)return this._value="",void this.updateInputValue();this.setTimeIfAvailable(b)}get value(){return this._value?Js.toLocaleTimeString(this._value,{format:this.format,locale:this.locale}):""}get element(){return this.elementRef&&this.elementRef.nativeElement}set defaultTime(b){this._timepicker.defaultTime=Js.formatTime(b,{locale:this.locale,format:this.format})}updateValue(b){this.value=b,this.onChange(b)}ngOnChanges(b){var I;const z=null===(I=b?.value)||void 0===I?void 0:I.currentValue;z&&(this.setTimeIfAvailable(z),this.defaultTime=z)}onClick(b){this.disableClick||(this._timepicker.open(),b.stopPropagation())}writeValue(b){this.value=b,b&&(this.defaultTime=b)}registerOnChange(b){this.onChange=b}registerOnTouched(b){this.onTouched=b}setDisabledState(b){this.disabled=b}ngOnDestroy(){this.timepickerSubscriptions.forEach(b=>b.unsubscribe())}registerTimepicker(b){if(!b)throw new Error("NgxMaterialTimepickerComponent is not defined. Please make sure you passed the timepicker to ngxTimepicker directive");this._timepicker=b,this._timepicker.registerInput(this),this.timepickerSubscriptions.push(this._timepicker.timeSet.subscribe(I=>{this.value=I,this.onChange(this.value),this.onTouched(),this.defaultTime=this._value}))}updateInputValue(){this.elementRef.nativeElement.value=this.value}setTimeIfAvailable(b){var I;const z=Js.formatTime(b,{locale:this.locale,format:this.format});Js.isTimeAvailable(z,this._min,this._max,"minutes",null===(I=this._timepicker)||void 0===I?void 0:I.minutesGap,this._format)?(this._value=z,this.updateInputValue()):(this.value=null,console.warn("Selected time doesn't match min or max value"))}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(Ua))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxTimepicker",""]],hostVars:1,hostBindings:function(b,I){1&b&&e.bIt("change",function(ce){return I.updateValue(ce.target.value)})("blur",function(){return I.onTouched()})("click",function(ce){return I.onClick(ce)}),2&b&&e.Mr5("disabled",I.disabled)},inputs:{format:"format",min:"min",max:"max",timepicker:["ngxTimepicker","timepicker"],value:"value",disabled:"disabled",disableClick:"disableClick"},features:[e.Jv_([{provide:Pr.kq,useExisting:S,multi:!0}]),e.OA$]}),S})(),eo=(()=>{class S{static setOpts(b,I=Js.DEFAULT_NUMBERING_SYSTEM){return{ngModule:S,providers:[{provide:Ua,useValue:b},{provide:Cl,useValue:I}]}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({imports:[[h.MD,Pr.YN,Pr.X1]]}),S})()},4412:(gn,ct,N)=>{N.d(ct,{t:()=>h});var e=N(1413);class h extends e.B{constructor(Z){super(),this._value=Z}get value(){return this.getValue()}_subscribe(Z){const De=super._subscribe(Z);return!De.closed&&Z.next(this._value),De}getValue(){const{hasError:Z,thrownError:De,_value:we}=this;if(Z)throw De;return this._throwIfClosed(),we}next(Z){super.next(this._value=Z)}}},1985:(gn,ct,N)=>{N.d(ct,{c:()=>Oe});var e=N(7707),h=N(8359),ne=N(3494),Z=N(1203),De=N(1026),we=N(8071),Ie=N(9786);let Oe=(()=>{class Ue{constructor(_t){_t&&(this._subscribe=_t)}lift(_t){const bt=new Ue;return bt.source=this,bt.operator=_t,bt}subscribe(_t,bt,ft){const mt=function Ge(Ue){return Ue&&Ue instanceof e.vU||function Me(Ue){return Ue&&(0,we.T)(Ue.next)&&(0,we.T)(Ue.error)&&(0,we.T)(Ue.complete)}(Ue)&&(0,h.Uv)(Ue)}(_t)?_t:new e.Ms(_t,bt,ft);return(0,Ie.Y)(()=>{const{operator:tn,source:vt}=this;mt.add(tn?tn.call(mt,vt):vt?this._subscribe(mt):this._trySubscribe(mt))}),mt}_trySubscribe(_t){try{return this._subscribe(_t)}catch(bt){_t.error(bt)}}forEach(_t,bt){return new(bt=Fe(bt))((ft,mt)=>{const tn=new e.Ms({next:vt=>{try{_t(vt)}catch(Pt){mt(Pt),tn.unsubscribe()}},error:mt,complete:ft});this.subscribe(tn)})}_subscribe(_t){var bt;return null===(bt=this.source)||void 0===bt?void 0:bt.subscribe(_t)}[ne.s](){return this}pipe(..._t){return(0,Z.m)(_t)(this)}toPromise(_t){return new(_t=Fe(_t))((bt,ft)=>{let mt;this.subscribe(tn=>mt=tn,tn=>ft(tn),()=>bt(mt))})}}return Ue.create=Ct=>new Ue(Ct),Ue})();function Fe(Ue){var Ct;return null!==(Ct=Ue??De.$.Promise)&&void 0!==Ct?Ct:Promise}},2771:(gn,ct,N)=>{N.d(ct,{m:()=>ne});var e=N(1413),h=N(6129);class ne extends e.B{constructor(De=1/0,we=1/0,Ie=h.U){super(),this._bufferSize=De,this._windowTime=we,this._timestampProvider=Ie,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=we===1/0,this._bufferSize=Math.max(1,De),this._windowTime=Math.max(1,we)}next(De){const{isStopped:we,_buffer:Ie,_infiniteTimeWindow:Oe,_timestampProvider:Fe,_windowTime:Me}=this;we||(Ie.push(De),!Oe&&Ie.push(Fe.now()+Me)),this._trimBuffer(),super.next(De)}_subscribe(De){this._throwIfClosed(),this._trimBuffer();const we=this._innerSubscribe(De),{_infiniteTimeWindow:Ie,_buffer:Oe}=this,Fe=Oe.slice();for(let Me=0;Me<Fe.length&&!De.closed;Me+=Ie?1:2)De.next(Fe[Me]);return this._checkFinalizedStatuses(De),we}_trimBuffer(){const{_bufferSize:De,_timestampProvider:we,_buffer:Ie,_infiniteTimeWindow:Oe}=this,Fe=(Oe?1:2)*De;if(De<1/0&&Fe<Ie.length&&Ie.splice(0,Ie.length-Fe),!Oe){const Me=we.now();let Ge=0;for(let Ue=1;Ue<Ie.length&&Ie[Ue]<=Me;Ue+=2)Ge=Ue;Ge&&Ie.splice(0,Ge+1)}}}},1413:(gn,ct,N)=>{N.d(ct,{B:()=>Ie});var e=N(1985),h=N(8359);const Z=(0,N(1853).L)(Fe=>function(){Fe(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=N(7908),we=N(9786);let Ie=(()=>{class Fe extends e.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ge){const Ue=new Oe(this,this);return Ue.operator=Ge,Ue}_throwIfClosed(){if(this.closed)throw new Z}next(Ge){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ue of this.currentObservers)Ue.next(Ge)}})}error(Ge){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ge;const{observers:Ue}=this;for(;Ue.length;)Ue.shift().error(Ge)}})}complete(){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ge}=this;for(;Ge.length;)Ge.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ge;return(null===(Ge=this.observers)||void 0===Ge?void 0:Ge.length)>0}_trySubscribe(Ge){return this._throwIfClosed(),super._trySubscribe(Ge)}_subscribe(Ge){return this._throwIfClosed(),this._checkFinalizedStatuses(Ge),this._innerSubscribe(Ge)}_innerSubscribe(Ge){const{hasError:Ue,isStopped:Ct,observers:_t}=this;return Ue||Ct?h.Kn:(this.currentObservers=null,_t.push(Ge),new h.yU(()=>{this.currentObservers=null,(0,De.o)(_t,Ge)}))}_checkFinalizedStatuses(Ge){const{hasError:Ue,thrownError:Ct,isStopped:_t}=this;Ue?Ge.error(Ct):_t&&Ge.complete()}asObservable(){const Ge=new e.c;return Ge.source=this,Ge}}return Fe.create=(Me,Ge)=>new Oe(Me,Ge),Fe})();class Oe extends Ie{constructor(Me,Ge){super(),this.destination=Me,this.source=Ge}next(Me){var Ge,Ue;null===(Ue=null===(Ge=this.destination)||void 0===Ge?void 0:Ge.next)||void 0===Ue||Ue.call(Ge,Me)}error(Me){var Ge,Ue;null===(Ue=null===(Ge=this.destination)||void 0===Ge?void 0:Ge.error)||void 0===Ue||Ue.call(Ge,Me)}complete(){var Me,Ge;null===(Ge=null===(Me=this.destination)||void 0===Me?void 0:Me.complete)||void 0===Ge||Ge.call(Me)}_subscribe(Me){var Ge,Ue;return null!==(Ue=null===(Ge=this.source)||void 0===Ge?void 0:Ge.subscribe(Me))&&void 0!==Ue?Ue:h.Kn}}},7707:(gn,ct,N)=>{N.d(ct,{Ms:()=>ft,vU:()=>Ue});var e=N(8071),h=N(8359),ne=N(1026),Z=N(5334),De=N(5343);const we=Fe("C",void 0,void 0);function Fe(me,at,ot){return{kind:me,value:at,error:ot}}var Me=N(9270),Ge=N(9786);class Ue extends h.yU{constructor(at){super(),this.isStopped=!1,at?(this.destination=at,(0,h.Uv)(at)&&at.add(this)):this.destination=Pt}static create(at,ot,ht){return new ft(at,ot,ht)}next(at){this.isStopped?vt(function Oe(me){return Fe("N",me,void 0)}(at),this):this._next(at)}error(at){this.isStopped?vt(function Ie(me){return Fe("E",void 0,me)}(at),this):(this.isStopped=!0,this._error(at))}complete(){this.isStopped?vt(we,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(at){this.destination.next(at)}_error(at){try{this.destination.error(at)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ct=Function.prototype.bind;function _t(me,at){return Ct.call(me,at)}class bt{constructor(at){this.partialObserver=at}next(at){const{partialObserver:ot}=this;if(ot.next)try{ot.next(at)}catch(ht){mt(ht)}}error(at){const{partialObserver:ot}=this;if(ot.error)try{ot.error(at)}catch(ht){mt(ht)}else mt(at)}complete(){const{partialObserver:at}=this;if(at.complete)try{at.complete()}catch(ot){mt(ot)}}}class ft extends Ue{constructor(at,ot,ht){let kt;if(super(),(0,e.T)(at)||!at)kt={next:at??void 0,error:ot??void 0,complete:ht??void 0};else{let Tt;this&&ne.$.useDeprecatedNextContext?(Tt=Object.create(at),Tt.unsubscribe=()=>this.unsubscribe(),kt={next:at.next&&_t(at.next,Tt),error:at.error&&_t(at.error,Tt),complete:at.complete&&_t(at.complete,Tt)}):kt=at}this.destination=new bt(kt)}}function mt(me){ne.$.useDeprecatedSynchronousErrorHandling?(0,Ge.l)(me):(0,Z.m)(me)}function vt(me,at){const{onStoppedNotification:ot}=ne.$;ot&&Me.f.setTimeout(()=>ot(me,at))}const Pt={closed:!0,next:De.l,error:function tn(me){throw me},complete:De.l}},8359:(gn,ct,N)=>{N.d(ct,{Kn:()=>we,yU:()=>De,Uv:()=>Ie});var e=N(8071);const ne=(0,N(1853).L)(Fe=>function(Ge){Fe(this),this.message=Ge?`${Ge.length} errors occurred during unsubscription:\n${Ge.map((Ue,Ct)=>`${Ct+1}) ${Ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ge});var Z=N(7908);class De{constructor(Me){this.initialTeardown=Me,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Me;if(!this.closed){this.closed=!0;const{_parentage:Ge}=this;if(Ge)if(this._parentage=null,Array.isArray(Ge))for(const _t of Ge)_t.remove(this);else Ge.remove(this);const{initialTeardown:Ue}=this;if((0,e.T)(Ue))try{Ue()}catch(_t){Me=_t instanceof ne?_t.errors:[_t]}const{_finalizers:Ct}=this;if(Ct){this._finalizers=null;for(const _t of Ct)try{Oe(_t)}catch(bt){Me=Me??[],bt instanceof ne?Me=[...Me,...bt.errors]:Me.push(bt)}}if(Me)throw new ne(Me)}}add(Me){var Ge;if(Me&&Me!==this)if(this.closed)Oe(Me);else{if(Me instanceof De){if(Me.closed||Me._hasParent(this))return;Me._addParent(this)}(this._finalizers=null!==(Ge=this._finalizers)&&void 0!==Ge?Ge:[]).push(Me)}}_hasParent(Me){const{_parentage:Ge}=this;return Ge===Me||Array.isArray(Ge)&&Ge.includes(Me)}_addParent(Me){const{_parentage:Ge}=this;this._parentage=Array.isArray(Ge)?(Ge.push(Me),Ge):Ge?[Ge,Me]:Me}_removeParent(Me){const{_parentage:Ge}=this;Ge===Me?this._parentage=null:Array.isArray(Ge)&&(0,Z.o)(Ge,Me)}remove(Me){const{_finalizers:Ge}=this;Ge&&(0,Z.o)(Ge,Me),Me instanceof De&&Me._removeParent(this)}}De.EMPTY=(()=>{const Fe=new De;return Fe.closed=!0,Fe})();const we=De.EMPTY;function Ie(Fe){return Fe instanceof De||Fe&&"closed"in Fe&&(0,e.T)(Fe.remove)&&(0,e.T)(Fe.add)&&(0,e.T)(Fe.unsubscribe)}function Oe(Fe){(0,e.T)(Fe)?Fe():Fe.unsubscribe()}},1026:(gn,ct,N)=>{N.d(ct,{$:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(gn,ct,N)=>{N.d(ct,{G:()=>we});var e=N(1985),h=N(8359),ne=N(9898),Z=N(4360),De=N(9974);class we extends e.c{constructor(Oe,Fe){super(),this.source=Oe,this.subjectFactory=Fe,this._subject=null,this._refCount=0,this._connection=null,(0,De.S)(Oe)&&(this.lift=Oe.lift)}_subscribe(Oe){return this.getSubject().subscribe(Oe)}getSubject(){const Oe=this._subject;return(!Oe||Oe.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Oe}=this;this._subject=this._connection=null,Oe?.unsubscribe()}connect(){let Oe=this._connection;if(!Oe){Oe=this._connection=new h.yU;const Fe=this.getSubject();Oe.add(this.source.subscribe((0,Z._)(Fe,void 0,()=>{this._teardown(),Fe.complete()},Me=>{this._teardown(),Fe.error(Me)},()=>this._teardown()))),Oe.closed&&(this._connection=null,Oe=h.yU.EMPTY)}return Oe}refCount(){return(0,ne.B)()(this)}}},4572:(gn,ct,N)=>{N.d(ct,{z:()=>Me});var e=N(1985),h=N(3073),ne=N(2806),Z=N(3669),De=N(6450),we=N(9326),Ie=N(8496),Oe=N(4360),Fe=N(5225);function Me(...Ct){const _t=(0,we.lI)(Ct),bt=(0,we.ms)(Ct),{args:ft,keys:mt}=(0,h.D)(Ct);if(0===ft.length)return(0,ne.H)([],_t);const tn=new e.c(function Ge(Ct,_t,bt=Z.D){return ft=>{Ue(_t,()=>{const{length:mt}=Ct,tn=new Array(mt);let vt=mt,Pt=mt;for(let me=0;me<mt;me++)Ue(_t,()=>{const at=(0,ne.H)(Ct[me],_t);let ot=!1;at.subscribe((0,Oe._)(ft,ht=>{tn[me]=ht,ot||(ot=!0,Pt--),Pt||ft.next(bt(tn.slice()))},()=>{--vt||ft.complete()}))},ft)},ft)}}(ft,_t,mt?vt=>(0,Ie.e)(mt,vt):Z.D));return bt?tn.pipe((0,De.I)(bt)):tn}function Ue(Ct,_t,bt){Ct?(0,Fe.N)(bt,Ct,_t):_t()}},8793:(gn,ct,N)=>{N.d(ct,{x:()=>De});var e=N(6365),ne=N(9326),Z=N(2806);function De(...we){return function h(){return(0,e.U)(1)}()((0,Z.H)(we,(0,ne.lI)(we)))}},9030:(gn,ct,N)=>{N.d(ct,{v:()=>ne});var e=N(1985),h=N(8750);function ne(Z){return new e.c(De=>{(0,h.Tg)(Z()).subscribe(De)})}},983:(gn,ct,N)=>{N.d(ct,{w:()=>h});const h=new(N(1985).c)(De=>De.complete())},7468:(gn,ct,N)=>{N.d(ct,{p:()=>Oe});var e=N(1985),h=N(3073),ne=N(8750),Z=N(9326),De=N(4360),we=N(6450),Ie=N(8496);function Oe(...Fe){const Me=(0,Z.ms)(Fe),{args:Ge,keys:Ue}=(0,h.D)(Fe),Ct=new e.c(_t=>{const{length:bt}=Ge;if(!bt)return void _t.complete();const ft=new Array(bt);let mt=bt,tn=bt;for(let vt=0;vt<bt;vt++){let Pt=!1;(0,ne.Tg)(Ge[vt]).subscribe((0,De._)(_t,me=>{Pt||(Pt=!0,tn--),ft[vt]=me},()=>mt--,void 0,()=>{(!mt||!Pt)&&(tn||_t.next(Ue?(0,Ie.e)(Ue,ft):ft),_t.complete())}))}});return Me?Ct.pipe((0,we.I)(Me)):Ct}},2806:(gn,ct,N)=>{N.d(ct,{H:()=>ot});var e=N(8750),h=N(941),ne=N(9974);function Z(ht,kt=0){return(0,ne.N)((Tt,cn)=>{cn.add(ht.schedule(()=>Tt.subscribe(cn),kt))})}var Ie=N(1985),Fe=N(4761),Me=N(8071),Ge=N(5225);function Ct(ht,kt){if(!ht)throw new Error("Iterable cannot be null");return new Ie.c(Tt=>{(0,Ge.N)(Tt,kt,()=>{const cn=ht[Symbol.asyncIterator]();(0,Ge.N)(Tt,kt,()=>{cn.next().then(kn=>{kn.done?Tt.complete():Tt.next(kn.value)})},0,!0)})})}var _t=N(5055),bt=N(9858),ft=N(7441),mt=N(5397),tn=N(7953),vt=N(591),Pt=N(5196);function ot(ht,kt){return kt?function at(ht,kt){if(null!=ht){if((0,_t.l)(ht))return function De(ht,kt){return(0,e.Tg)(ht).pipe(Z(kt),(0,h.Q)(kt))}(ht,kt);if((0,ft.X)(ht))return function Oe(ht,kt){return new Ie.c(Tt=>{let cn=0;return kt.schedule(function(){cn===ht.length?Tt.complete():(Tt.next(ht[cn++]),Tt.closed||this.schedule())})})}(ht,kt);if((0,bt.y)(ht))return function we(ht,kt){return(0,e.Tg)(ht).pipe(Z(kt),(0,h.Q)(kt))}(ht,kt);if((0,tn.T)(ht))return Ct(ht,kt);if((0,mt.x)(ht))return function Ue(ht,kt){return new Ie.c(Tt=>{let cn;return(0,Ge.N)(Tt,kt,()=>{cn=ht[Fe.l](),(0,Ge.N)(Tt,kt,()=>{let kn,dn;try{({value:kn,done:dn}=cn.next())}catch(Kt){return void Tt.error(Kt)}dn?Tt.complete():Tt.next(kn)},0,!0)}),()=>(0,Me.T)(cn?.return)&&cn.return()})}(ht,kt);if((0,Pt.U)(ht))return function me(ht,kt){return Ct((0,Pt.C)(ht),kt)}(ht,kt)}throw(0,vt.L)(ht)}(ht,kt):(0,e.Tg)(ht)}},3726:(gn,ct,N)=>{N.d(ct,{R:()=>Me});var e=N(8750),h=N(1985),ne=N(1397),Z=N(7441),De=N(8071),we=N(6450);const Ie=["addListener","removeListener"],Oe=["addEventListener","removeEventListener"],Fe=["on","off"];function Me(bt,ft,mt,tn){if((0,De.T)(mt)&&(tn=mt,mt=void 0),tn)return Me(bt,ft,mt).pipe((0,we.I)(tn));const[vt,Pt]=function _t(bt){return(0,De.T)(bt.addEventListener)&&(0,De.T)(bt.removeEventListener)}(bt)?Oe.map(me=>at=>bt[me](ft,at,mt)):function Ue(bt){return(0,De.T)(bt.addListener)&&(0,De.T)(bt.removeListener)}(bt)?Ie.map(Ge(bt,ft)):function Ct(bt){return(0,De.T)(bt.on)&&(0,De.T)(bt.off)}(bt)?Fe.map(Ge(bt,ft)):[];if(!vt&&(0,Z.X)(bt))return(0,ne.Z)(me=>Me(me,ft,mt))((0,e.Tg)(bt));if(!vt)throw new TypeError("Invalid event target");return new h.c(me=>{const at=(...ot)=>me.next(1<ot.length?ot:ot[0]);return vt(at),()=>Pt(at)})}function Ge(bt,ft){return mt=>tn=>bt[mt](ft,tn)}},8750:(gn,ct,N)=>{N.d(ct,{Tg:()=>Ct});var e=N(1635),h=N(7441),ne=N(9858),Z=N(1985),De=N(5055),we=N(7953),Ie=N(591),Oe=N(5397),Fe=N(5196),Me=N(8071),Ge=N(5334),Ue=N(3494);function Ct(me){if(me instanceof Z.c)return me;if(null!=me){if((0,De.l)(me))return function _t(me){return new Z.c(at=>{const ot=me[Ue.s]();if((0,Me.T)(ot.subscribe))return ot.subscribe(at);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,h.X)(me))return function bt(me){return new Z.c(at=>{for(let ot=0;ot<me.length&&!at.closed;ot++)at.next(me[ot]);at.complete()})}(me);if((0,ne.y)(me))return function ft(me){return new Z.c(at=>{me.then(ot=>{at.closed||(at.next(ot),at.complete())},ot=>at.error(ot)).then(null,Ge.m)})}(me);if((0,we.T)(me))return tn(me);if((0,Oe.x)(me))return function mt(me){return new Z.c(at=>{for(const ot of me)if(at.next(ot),at.closed)return;at.complete()})}(me);if((0,Fe.U)(me))return function vt(me){return tn((0,Fe.C)(me))}(me)}throw(0,Ie.L)(me)}function tn(me){return new Z.c(at=>{(function Pt(me,at){var ot,ht,kt,Tt;return(0,e.sH)(this,void 0,void 0,function*(){try{for(ot=(0,e.xN)(me);!(ht=yield ot.next()).done;)if(at.next(ht.value),at.closed)return}catch(cn){kt={error:cn}}finally{try{ht&&!ht.done&&(Tt=ot.return)&&(yield Tt.call(ot))}finally{if(kt)throw kt.error}}at.complete()})})(me,at).catch(ot=>at.error(ot))})}},7786:(gn,ct,N)=>{N.d(ct,{h:()=>we});var e=N(6365),h=N(8750),ne=N(983),Z=N(9326),De=N(2806);function we(...Ie){const Oe=(0,Z.lI)(Ie),Fe=(0,Z.R0)(Ie,1/0),Me=Ie;return Me.length?1===Me.length?(0,h.Tg)(Me[0]):(0,e.U)(Fe)((0,De.H)(Me,Oe)):ne.w}},7673:(gn,ct,N)=>{N.d(ct,{of:()=>ne});var e=N(9326),h=N(2806);function ne(...Z){const De=(0,e.lI)(Z);return(0,h.H)(Z,De)}},8810:(gn,ct,N)=>{N.d(ct,{$:()=>ne});var e=N(1985),h=N(8071);function ne(Z,De){const we=(0,h.T)(Z)?Z:()=>Z,Ie=Oe=>Oe.error(we());return new e.c(De?Oe=>De.schedule(Ie,0,Oe):Ie)}},1584:(gn,ct,N)=>{N.d(ct,{O:()=>De});var e=N(1985),h=N(3236),ne=N(9470);function De(we=0,Ie,Oe=h.b){let Fe=-1;return null!=Ie&&((0,ne.m)(Ie)?Oe=Ie:Fe=Ie),new e.c(Me=>{let Ge=function Z(we){return we instanceof Date&&!isNaN(we)}(we)?+we-Oe.now():we;Ge<0&&(Ge=0);let Ue=0;return Oe.schedule(function(){Me.closed||(Me.next(Ue++),0<=Fe?this.schedule(void 0,Fe):Me.complete())},Ge)})}},4360:(gn,ct,N)=>{N.d(ct,{_:()=>h});var e=N(7707);function h(Z,De,we,Ie,Oe){return new ne(Z,De,we,Ie,Oe)}class ne extends e.vU{constructor(De,we,Ie,Oe,Fe,Me){super(De),this.onFinalize=Fe,this.shouldUnsubscribe=Me,this._next=we?function(Ge){try{we(Ge)}catch(Ue){De.error(Ue)}}:super._next,this._error=Oe?function(Ge){try{Oe(Ge)}catch(Ue){De.error(Ue)}finally{this.unsubscribe()}}:super._error,this._complete=Ie?function(){try{Ie()}catch(Ge){De.error(Ge)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var De;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:we}=this;super.unsubscribe(),!we&&(null===(De=this.onFinalize)||void 0===De||De.call(this))}}}},9437:(gn,ct,N)=>{N.d(ct,{W:()=>Z});var e=N(8750),h=N(4360),ne=N(9974);function Z(De){return(0,ne.N)((we,Ie)=>{let Me,Oe=null,Fe=!1;Oe=we.subscribe((0,h._)(Ie,void 0,void 0,Ge=>{Me=(0,e.Tg)(De(Ge,Z(De)(we))),Oe?(Oe.unsubscribe(),Oe=null,Me.subscribe(Ie)):Fe=!0})),Fe&&(Oe.unsubscribe(),Oe=null,Me.subscribe(Ie))})}},274:(gn,ct,N)=>{N.d(ct,{H:()=>ne});var e=N(1397),h=N(8071);function ne(Z,De){return(0,h.T)(De)?(0,e.Z)(Z,De,1):(0,e.Z)(Z,1)}},152:(gn,ct,N)=>{N.d(ct,{B:()=>Z});var e=N(3236),h=N(9974),ne=N(4360);function Z(De,we=e.E){return(0,h.N)((Ie,Oe)=>{let Fe=null,Me=null,Ge=null;const Ue=()=>{if(Fe){Fe.unsubscribe(),Fe=null;const _t=Me;Me=null,Oe.next(_t)}};function Ct(){const _t=Ge+De,bt=we.now();if(bt<_t)return Fe=this.schedule(void 0,_t-bt),void Oe.add(Fe);Ue()}Ie.subscribe((0,ne._)(Oe,_t=>{Me=_t,Ge=we.now(),Fe||(Fe=we.schedule(Ct,De),Oe.add(Fe))},()=>{Ue(),Oe.complete()},void 0,()=>{Me=Fe=null}))})}},1986:(gn,ct,N)=>{N.d(ct,{c:()=>Ct});var e=N(3236),h=N(8793),ne=N(6697),Z=N(9974),De=N(4360),we=N(5343),Oe=N(3703),Fe=N(1397),Me=N(8750);function Ge(_t,bt){return bt?ft=>(0,h.x)(bt.pipe((0,ne.s)(1),function Ie(){return(0,Z.N)((_t,bt)=>{_t.subscribe((0,De._)(bt,we.l))})}()),ft.pipe(Ge(_t))):(0,Fe.Z)((ft,mt)=>(0,Me.Tg)(_t(ft,mt)).pipe((0,ne.s)(1),(0,Oe.u)(ft)))}var Ue=N(1584);function Ct(_t,bt=e.E){const ft=(0,Ue.O)(_t,bt);return Ge(()=>ft)}},3294:(gn,ct,N)=>{N.d(ct,{F:()=>Z});var e=N(3669),h=N(9974),ne=N(4360);function Z(we,Ie=e.D){return we=we??De,(0,h.N)((Oe,Fe)=>{let Me,Ge=!0;Oe.subscribe((0,ne._)(Fe,Ue=>{const Ct=Ie(Ue);(Ge||!we(Me,Ct))&&(Ge=!1,Me=Ct,Fe.next(Ue))}))})}function De(we,Ie){return we===Ie}},5964:(gn,ct,N)=>{N.d(ct,{p:()=>ne});var e=N(9974),h=N(4360);function ne(Z,De){return(0,e.N)((we,Ie)=>{let Oe=0;we.subscribe((0,h._)(Ie,Fe=>Z.call(De,Fe,Oe++)&&Ie.next(Fe)))})}},980:(gn,ct,N)=>{N.d(ct,{j:()=>h});var e=N(9974);function h(ne){return(0,e.N)((Z,De)=>{try{Z.subscribe(De)}finally{De.add(ne)}})}},6354:(gn,ct,N)=>{N.d(ct,{T:()=>ne});var e=N(9974),h=N(4360);function ne(Z,De){return(0,e.N)((we,Ie)=>{let Oe=0;we.subscribe((0,h._)(Ie,Fe=>{Ie.next(Z.call(De,Fe,Oe++))}))})}},3703:(gn,ct,N)=>{N.d(ct,{u:()=>h});var e=N(6354);function h(ne){return(0,e.T)(()=>ne)}},6365:(gn,ct,N)=>{N.d(ct,{U:()=>ne});var e=N(1397),h=N(3669);function ne(Z=1/0){return(0,e.Z)(h.D,Z)}},1397:(gn,ct,N)=>{N.d(ct,{Z:()=>Oe});var e=N(6354),h=N(8750),ne=N(9974),Z=N(5225),De=N(4360),Ie=N(8071);function Oe(Fe,Me,Ge=1/0){return(0,Ie.T)(Me)?Oe((Ue,Ct)=>(0,e.T)((_t,bt)=>Me(Ue,_t,Ct,bt))((0,h.Tg)(Fe(Ue,Ct))),Ge):("number"==typeof Me&&(Ge=Me),(0,ne.N)((Ue,Ct)=>function we(Fe,Me,Ge,Ue,Ct,_t,bt,ft){const mt=[];let tn=0,vt=0,Pt=!1;const me=()=>{Pt&&!mt.length&&!tn&&Me.complete()},at=ht=>tn<Ue?ot(ht):mt.push(ht),ot=ht=>{_t&&Me.next(ht),tn++;let kt=!1;(0,h.Tg)(Ge(ht,vt++)).subscribe((0,De._)(Me,Tt=>{Ct?.(Tt),_t?at(Tt):Me.next(Tt)},()=>{kt=!0},void 0,()=>{if(kt)try{for(tn--;mt.length&&tn<Ue;){const Tt=mt.shift();bt?(0,Z.N)(Me,bt,()=>ot(Tt)):ot(Tt)}me()}catch(Tt){Me.error(Tt)}}))};return Fe.subscribe((0,De._)(Me,at,()=>{Pt=!0,me()})),()=>{ft?.()}}(Ue,Ct,Fe,Ge)))}},941:(gn,ct,N)=>{N.d(ct,{Q:()=>Z});var e=N(5225),h=N(9974),ne=N(4360);function Z(De,we=0){return(0,h.N)((Ie,Oe)=>{Ie.subscribe((0,ne._)(Oe,Fe=>(0,e.N)(Oe,De,()=>Oe.next(Fe),we),()=>(0,e.N)(Oe,De,()=>Oe.complete(),we),Fe=>(0,e.N)(Oe,De,()=>Oe.error(Fe),we)))})}},9898:(gn,ct,N)=>{N.d(ct,{B:()=>ne});var e=N(9974),h=N(4360);function ne(){return(0,e.N)((Z,De)=>{let we=null;Z._refCount++;const Ie=(0,h._)(De,void 0,void 0,void 0,()=>{if(!Z||Z._refCount<=0||0<--Z._refCount)return void(we=null);const Oe=Z._connection,Fe=we;we=null,Oe&&(!Fe||Oe===Fe)&&Oe.unsubscribe(),De.unsubscribe()});Z.subscribe(Ie),Ie.closed||(we=Z.connect())})}},2816:(gn,ct,N)=>{N.d(ct,{S:()=>Z});var e=N(9974),h=N(4360);function Z(De,we){return(0,e.N)(function ne(De,we,Ie,Oe,Fe){return(Me,Ge)=>{let Ue=Ie,Ct=we,_t=0;Me.subscribe((0,h._)(Ge,bt=>{const ft=_t++;Ct=Ue?De(Ct,bt,ft):(Ue=!0,bt),Oe&&Ge.next(Ct)},Fe&&(()=>{Ue&&Ge.next(Ct),Ge.complete()})))}}(De,we,arguments.length>=2,!0))}},7647:(gn,ct,N)=>{N.d(ct,{u:()=>De});var e=N(8750),h=N(1413),ne=N(7707),Z=N(9974);function De(Ie={}){const{connector:Oe=(()=>new h.B),resetOnError:Fe=!0,resetOnComplete:Me=!0,resetOnRefCountZero:Ge=!0}=Ie;return Ue=>{let Ct,_t,bt,ft=0,mt=!1,tn=!1;const vt=()=>{_t?.unsubscribe(),_t=void 0},Pt=()=>{vt(),Ct=bt=void 0,mt=tn=!1},me=()=>{const at=Ct;Pt(),at?.unsubscribe()};return(0,Z.N)((at,ot)=>{ft++,!tn&&!mt&&vt();const ht=bt=bt??Oe();ot.add(()=>{ft--,0===ft&&!tn&&!mt&&(_t=we(me,Ge))}),ht.subscribe(ot),!Ct&&ft>0&&(Ct=new ne.Ms({next:kt=>ht.next(kt),error:kt=>{tn=!0,vt(),_t=we(Pt,Fe,kt),ht.error(kt)},complete:()=>{mt=!0,vt(),_t=we(Pt,Me),ht.complete()}}),(0,e.Tg)(at).subscribe(Ct))})(Ue)}}function we(Ie,Oe,...Fe){if(!0===Oe)return void Ie();if(!1===Oe)return;const Me=new ne.Ms({next:()=>{Me.unsubscribe(),Ie()}});return(0,e.Tg)(Oe(...Fe)).subscribe(Me)}},4668:(gn,ct,N)=>{N.d(ct,{t:()=>ne});var e=N(2771),h=N(7647);function ne(Z,De,we){let Ie,Oe=!1;return Z&&"object"==typeof Z?({bufferSize:Ie=1/0,windowTime:De=1/0,refCount:Oe=!1,scheduler:we}=Z):Ie=Z??1/0,(0,h.u)({connector:()=>new e.m(Ie,De,we),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Oe})}},5245:(gn,ct,N)=>{N.d(ct,{i:()=>h});var e=N(5964);function h(ne){return(0,e.p)((Z,De)=>ne<=De)}},9172:(gn,ct,N)=>{N.d(ct,{Z:()=>Z});var e=N(8793),h=N(9326),ne=N(9974);function Z(...De){const we=(0,h.lI)(De);return(0,ne.N)((Ie,Oe)=>{(we?(0,e.x)(De,Ie,we):(0,e.x)(De,Ie)).subscribe(Oe)})}},5558:(gn,ct,N)=>{N.d(ct,{n:()=>Z});var e=N(8750),h=N(9974),ne=N(4360);function Z(De,we){return(0,h.N)((Ie,Oe)=>{let Fe=null,Me=0,Ge=!1;const Ue=()=>Ge&&!Fe&&Oe.complete();Ie.subscribe((0,ne._)(Oe,Ct=>{Fe?.unsubscribe();let _t=0;const bt=Me++;(0,e.Tg)(De(Ct,bt)).subscribe(Fe=(0,ne._)(Oe,ft=>Oe.next(we?we(Ct,ft,bt,_t++):ft),()=>{Fe=null,Ue()}))},()=>{Ge=!0,Ue()}))})}},6697:(gn,ct,N)=>{N.d(ct,{s:()=>Z});var e=N(983),h=N(9974),ne=N(4360);function Z(De){return De<=0?()=>e.w:(0,h.N)((we,Ie)=>{let Oe=0;we.subscribe((0,ne._)(Ie,Fe=>{++Oe<=De&&(Ie.next(Fe),De<=Oe&&Ie.complete())}))})}},6977:(gn,ct,N)=>{N.d(ct,{Q:()=>De});var e=N(9974),h=N(4360),ne=N(8750),Z=N(5343);function De(we){return(0,e.N)((Ie,Oe)=>{(0,ne.Tg)(we).subscribe((0,h._)(Oe,()=>Oe.complete(),Z.l)),!Oe.closed&&Ie.subscribe(Oe)})}},8141:(gn,ct,N)=>{N.d(ct,{M:()=>De});var e=N(8071),h=N(9974),ne=N(4360),Z=N(3669);function De(we,Ie,Oe){const Fe=(0,e.T)(we)||Ie||Oe?{next:we,error:Ie,complete:Oe}:we;return Fe?(0,h.N)((Me,Ge)=>{var Ue;null===(Ue=Fe.subscribe)||void 0===Ue||Ue.call(Fe);let Ct=!0;Me.subscribe((0,ne._)(Ge,_t=>{var bt;null===(bt=Fe.next)||void 0===bt||bt.call(Fe,_t),Ge.next(_t)},()=>{var _t;Ct=!1,null===(_t=Fe.complete)||void 0===_t||_t.call(Fe),Ge.complete()},_t=>{var bt;Ct=!1,null===(bt=Fe.error)||void 0===bt||bt.call(Fe,_t),Ge.error(_t)},()=>{var _t,bt;Ct&&(null===(_t=Fe.unsubscribe)||void 0===_t||_t.call(Fe)),null===(bt=Fe.finalize)||void 0===bt||bt.call(Fe)}))}):Z.D}},6780:(gn,ct,N)=>{N.d(ct,{R:()=>De});var e=N(8359);class h extends e.yU{constructor(Ie,Oe){super()}schedule(Ie,Oe=0){return this}}const ne={setInterval(we,Ie,...Oe){const{delegate:Fe}=ne;return Fe?.setInterval?Fe.setInterval(we,Ie,...Oe):setInterval(we,Ie,...Oe)},clearInterval(we){const{delegate:Ie}=ne;return(Ie?.clearInterval||clearInterval)(we)},delegate:void 0};var Z=N(7908);class De extends h{constructor(Ie,Oe){super(Ie,Oe),this.scheduler=Ie,this.work=Oe,this.pending=!1}schedule(Ie,Oe=0){var Fe;if(this.closed)return this;this.state=Ie;const Me=this.id,Ge=this.scheduler;return null!=Me&&(this.id=this.recycleAsyncId(Ge,Me,Oe)),this.pending=!0,this.delay=Oe,this.id=null!==(Fe=this.id)&&void 0!==Fe?Fe:this.requestAsyncId(Ge,this.id,Oe),this}requestAsyncId(Ie,Oe,Fe=0){return ne.setInterval(Ie.flush.bind(Ie,this),Fe)}recycleAsyncId(Ie,Oe,Fe=0){if(null!=Fe&&this.delay===Fe&&!1===this.pending)return Oe;null!=Oe&&ne.clearInterval(Oe)}execute(Ie,Oe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Fe=this._execute(Ie,Oe);if(Fe)return Fe;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ie,Oe){let Me,Fe=!1;try{this.work(Ie)}catch(Ge){Fe=!0,Me=Ge||new Error("Scheduled action threw falsy error")}if(Fe)return this.unsubscribe(),Me}unsubscribe(){if(!this.closed){const{id:Ie,scheduler:Oe}=this,{actions:Fe}=Oe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Z.o)(Fe,this),null!=Ie&&(this.id=this.recycleAsyncId(Oe,Ie,null)),this.delay=null,super.unsubscribe()}}}},9687:(gn,ct,N)=>{N.d(ct,{q:()=>ne});var e=N(6129);class h{constructor(De,we=h.now){this.schedulerActionCtor=De,this.now=we}schedule(De,we=0,Ie){return new this.schedulerActionCtor(this,De).schedule(Ie,we)}}h.now=e.U.now;class ne extends h{constructor(De,we=h.now){super(De,we),this.actions=[],this._active=!1}flush(De){const{actions:we}=this;if(this._active)return void we.push(De);let Ie;this._active=!0;do{if(Ie=De.execute(De.state,De.delay))break}while(De=we.shift());if(this._active=!1,Ie){for(;De=we.shift();)De.unsubscribe();throw Ie}}}},536:(gn,ct,N)=>{N.d(ct,{X:()=>Ie});var e=N(6780),h=N(8359);const ne={schedule(Fe){let Me=requestAnimationFrame,Ge=cancelAnimationFrame;const{delegate:Ue}=ne;Ue&&(Me=Ue.requestAnimationFrame,Ge=Ue.cancelAnimationFrame);const Ct=Me(_t=>{Ge=void 0,Fe(_t)});return new h.yU(()=>Ge?.(Ct))},requestAnimationFrame(...Fe){const{delegate:Me}=ne;return(Me?.requestAnimationFrame||requestAnimationFrame)(...Fe)},cancelAnimationFrame(...Fe){const{delegate:Me}=ne;return(Me?.cancelAnimationFrame||cancelAnimationFrame)(...Fe)},delegate:void 0};var De=N(9687);const Ie=new class we extends De.q{flush(Me){let Ge;this._active=!0,Me?Ge=Me.id:(Ge=this._scheduled,this._scheduled=void 0);const{actions:Ue}=this;let Ct;Me=Me||Ue.shift();do{if(Ct=Me.execute(Me.state,Me.delay))break}while((Me=Ue[0])&&Me.id===Ge&&Ue.shift());if(this._active=!1,Ct){for(;(Me=Ue[0])&&Me.id===Ge&&Ue.shift();)Me.unsubscribe();throw Ct}}}(class Z extends e.R{constructor(Me,Ge){super(Me,Ge),this.scheduler=Me,this.work=Ge}requestAsyncId(Me,Ge,Ue=0){return null!==Ue&&Ue>0?super.requestAsyncId(Me,Ge,Ue):(Me.actions.push(this),Me._scheduled||(Me._scheduled=ne.requestAnimationFrame(()=>Me.flush(void 0))))}recycleAsyncId(Me,Ge,Ue=0){var Ct;if(null!=Ue?Ue>0:this.delay>0)return super.recycleAsyncId(Me,Ge,Ue);const{actions:_t}=Me;null!=Ge&&Ge===Me._scheduled&&(null===(Ct=_t[_t.length-1])||void 0===Ct?void 0:Ct.id)!==Ge&&(ne.cancelAnimationFrame(Ge),Me._scheduled=void 0)}})},5007:(gn,ct,N)=>{N.d(ct,{$:()=>_t});var e=N(6780);let ne,h=1;const Z={};function De(ft){return ft in Z&&(delete Z[ft],!0)}const we={setImmediate(ft){const mt=h++;return Z[mt]=!0,ne||(ne=Promise.resolve()),ne.then(()=>De(mt)&&ft()),mt},clearImmediate(ft){De(ft)}},{setImmediate:Oe,clearImmediate:Fe}=we,Me={setImmediate(...ft){const{delegate:mt}=Me;return(mt?.setImmediate||Oe)(...ft)},clearImmediate(ft){const{delegate:mt}=Me;return(mt?.clearImmediate||Fe)(ft)},delegate:void 0};var Ue=N(9687);const _t=new class Ct extends Ue.q{flush(mt){this._active=!0;const tn=this._scheduled;this._scheduled=void 0;const{actions:vt}=this;let Pt;mt=mt||vt.shift();do{if(Pt=mt.execute(mt.state,mt.delay))break}while((mt=vt[0])&&mt.id===tn&&vt.shift());if(this._active=!1,Pt){for(;(mt=vt[0])&&mt.id===tn&&vt.shift();)mt.unsubscribe();throw Pt}}}(class Ge extends e.R{constructor(mt,tn){super(mt,tn),this.scheduler=mt,this.work=tn}requestAsyncId(mt,tn,vt=0){return null!==vt&&vt>0?super.requestAsyncId(mt,tn,vt):(mt.actions.push(this),mt._scheduled||(mt._scheduled=Me.setImmediate(mt.flush.bind(mt,void 0))))}recycleAsyncId(mt,tn,vt=0){var Pt;if(null!=vt?vt>0:this.delay>0)return super.recycleAsyncId(mt,tn,vt);const{actions:me}=mt;null!=tn&&(null===(Pt=me[me.length-1])||void 0===Pt?void 0:Pt.id)!==tn&&(Me.clearImmediate(tn),mt._scheduled===tn&&(mt._scheduled=void 0))}})},3236:(gn,ct,N)=>{N.d(ct,{E:()=>ne,b:()=>Z});var e=N(6780);const ne=new(N(9687).q)(e.R),Z=ne},6129:(gn,ct,N)=>{N.d(ct,{U:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},9270:(gn,ct,N)=>{N.d(ct,{f:()=>e});const e={setTimeout(h,ne,...Z){const{delegate:De}=e;return De?.setTimeout?De.setTimeout(h,ne,...Z):setTimeout(h,ne,...Z)},clearTimeout(h){const{delegate:ne}=e;return(ne?.clearTimeout||clearTimeout)(h)},delegate:void 0}},4761:(gn,ct,N)=>{N.d(ct,{l:()=>h});const h=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(gn,ct,N)=>{N.d(ct,{s:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(gn,ct,N)=>{N.d(ct,{G:()=>h});const h=(0,N(1853).L)(ne=>function(){ne(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(gn,ct,N)=>{N.d(ct,{R0:()=>we,lI:()=>De,ms:()=>Z});var e=N(8071),h=N(9470);function ne(Ie){return Ie[Ie.length-1]}function Z(Ie){return(0,e.T)(ne(Ie))?Ie.pop():void 0}function De(Ie){return(0,h.m)(ne(Ie))?Ie.pop():void 0}function we(Ie,Oe){return"number"==typeof ne(Ie)?Ie.pop():Oe}},3073:(gn,ct,N)=>{N.d(ct,{D:()=>De});const{isArray:e}=Array,{getPrototypeOf:h,prototype:ne,keys:Z}=Object;function De(Ie){if(1===Ie.length){const Oe=Ie[0];if(e(Oe))return{args:Oe,keys:null};if(function we(Ie){return Ie&&"object"==typeof Ie&&h(Ie)===ne}(Oe)){const Fe=Z(Oe);return{args:Fe.map(Me=>Oe[Me]),keys:Fe}}}return{args:Ie,keys:null}}},7908:(gn,ct,N)=>{function e(h,ne){if(h){const Z=h.indexOf(ne);0<=Z&&h.splice(Z,1)}}N.d(ct,{o:()=>e})},1853:(gn,ct,N)=>{function e(h){const Z=h(De=>{Error.call(De),De.stack=(new Error).stack});return Z.prototype=Object.create(Error.prototype),Z.prototype.constructor=Z,Z}N.d(ct,{L:()=>e})},8496:(gn,ct,N)=>{function e(h,ne){return h.reduce((Z,De,we)=>(Z[De]=ne[we],Z),{})}N.d(ct,{e:()=>e})},9786:(gn,ct,N)=>{N.d(ct,{Y:()=>ne,l:()=>Z});var e=N(1026);let h=null;function ne(De){if(e.$.useDeprecatedSynchronousErrorHandling){const we=!h;if(we&&(h={errorThrown:!1,error:null}),De(),we){const{errorThrown:Ie,error:Oe}=h;if(h=null,Ie)throw Oe}}else De()}function Z(De){e.$.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=De)}},5225:(gn,ct,N)=>{function e(h,ne,Z,De=0,we=!1){const Ie=ne.schedule(function(){Z(),we?h.add(this.schedule(null,De)):this.unsubscribe()},De);if(h.add(Ie),!we)return Ie}N.d(ct,{N:()=>e})},3669:(gn,ct,N)=>{function e(h){return h}N.d(ct,{D:()=>e})},7441:(gn,ct,N)=>{N.d(ct,{X:()=>e});const e=h=>h&&"number"==typeof h.length&&"function"!=typeof h},7953:(gn,ct,N)=>{N.d(ct,{T:()=>h});var e=N(8071);function h(ne){return Symbol.asyncIterator&&(0,e.T)(ne?.[Symbol.asyncIterator])}},8071:(gn,ct,N)=>{function e(h){return"function"==typeof h}N.d(ct,{T:()=>e})},5055:(gn,ct,N)=>{N.d(ct,{l:()=>ne});var e=N(3494),h=N(8071);function ne(Z){return(0,h.T)(Z[e.s])}},5397:(gn,ct,N)=>{N.d(ct,{x:()=>ne});var e=N(4761),h=N(8071);function ne(Z){return(0,h.T)(Z?.[e.l])}},4402:(gn,ct,N)=>{N.d(ct,{A:()=>ne});var e=N(1985),h=N(8071);function ne(Z){return!!Z&&(Z instanceof e.c||(0,h.T)(Z.lift)&&(0,h.T)(Z.subscribe))}},9858:(gn,ct,N)=>{N.d(ct,{y:()=>h});var e=N(8071);function h(ne){return(0,e.T)(ne?.then)}},5196:(gn,ct,N)=>{N.d(ct,{C:()=>ne,U:()=>Z});var e=N(1635),h=N(8071);function ne(De){return(0,e.AQ)(this,arguments,function*(){const Ie=De.getReader();try{for(;;){const{value:Oe,done:Fe}=yield(0,e.N3)(Ie.read());if(Fe)return yield(0,e.N3)(void 0);yield yield(0,e.N3)(Oe)}}finally{Ie.releaseLock()}})}function Z(De){return(0,h.T)(De?.getReader)}},9470:(gn,ct,N)=>{N.d(ct,{m:()=>h});var e=N(8071);function h(ne){return ne&&(0,e.T)(ne.schedule)}},9974:(gn,ct,N)=>{N.d(ct,{N:()=>ne,S:()=>h});var e=N(8071);function h(Z){return(0,e.T)(Z?.lift)}function ne(Z){return De=>{if(h(De))return De.lift(function(we){try{return Z(we,this)}catch(Ie){this.error(Ie)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(gn,ct,N)=>{N.d(ct,{I:()=>Z});var e=N(6354);const{isArray:h}=Array;function Z(De){return(0,e.T)(we=>function ne(De,we){return h(we)?De(...we):De(we)}(De,we))}},5343:(gn,ct,N)=>{function e(){}N.d(ct,{l:()=>e})},1203:(gn,ct,N)=>{N.d(ct,{F:()=>h,m:()=>ne});var e=N(3669);function h(...Z){return ne(Z)}function ne(Z){return 0===Z.length?e.D:1===Z.length?Z[0]:function(we){return Z.reduce((Ie,Oe)=>Oe(Ie),we)}}},5334:(gn,ct,N)=>{N.d(ct,{m:()=>ne});var e=N(1026),h=N(9270);function ne(Z){h.f.setTimeout(()=>{const{onUnhandledError:De}=e.$;if(!De)throw Z;De(Z)})}},591:(gn,ct,N)=>{function e(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}N.d(ct,{L:()=>e})},9969:(gn,ct,N)=>{N.d(ct,{FX:()=>vt,K2:()=>Ie,MA:()=>Ct,Os:()=>we,P:()=>bt,Ro:()=>h,S6:()=>e,hZ:()=>Z,i0:()=>De,iF:()=>Oe,kY:()=>Ge,kp:()=>ne,sf:()=>mt,ui:()=>tn,wk:()=>Fe});class e{}class h{}const ne="*";function Z(Pt,me){return{type:7,name:Pt,definitions:me,options:{}}}function De(Pt,me=null){return{type:4,styles:me,timings:Pt}}function we(Pt,me=null){return{type:3,steps:Pt,options:me}}function Ie(Pt,me=null){return{type:2,steps:Pt,options:me}}function Oe(Pt){return{type:6,styles:Pt,offset:null}}function Fe(Pt,me,at){return{type:0,name:Pt,styles:me,options:at}}function Ge(Pt,me,at=null){return{type:1,expr:Pt,animation:me,options:at}}function Ct(Pt=null){return{type:9,options:Pt}}function bt(Pt,me,at=null){return{type:11,selector:Pt,animation:me,options:at}}class mt{constructor(me=0,at=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=me+at}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(me=>me()),this._onDoneFns=[])}onStart(me){this._originalOnStartFns.push(me),this._onStartFns.push(me)}onDone(me){this._originalOnDoneFns.push(me),this._onDoneFns.push(me)}onDestroy(me){this._onDestroyFns.push(me)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(me=>me()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(me=>me()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(me){this._position=this.totalTime?me*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(me){const at="start"==me?this._onStartFns:this._onDoneFns;at.forEach(ot=>ot()),at.length=0}}class tn{constructor(me){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=me;let at=0,ot=0,ht=0;const kt=this.players.length;0==kt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Tt=>{Tt.onDone(()=>{++at==kt&&this._onFinish()}),Tt.onDestroy(()=>{++ot==kt&&this._onDestroy()}),Tt.onStart(()=>{++ht==kt&&this._onStart()})}),this.totalTime=this.players.reduce((Tt,cn)=>Math.max(Tt,cn.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(me=>me()),this._onDoneFns=[])}init(){this.players.forEach(me=>me.init())}onStart(me){this._onStartFns.push(me)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(me=>me()),this._onStartFns=[])}onDone(me){this._onDoneFns.push(me)}onDestroy(me){this._onDestroyFns.push(me)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(me=>me.play())}pause(){this.players.forEach(me=>me.pause())}restart(){this.players.forEach(me=>me.restart())}finish(){this._onFinish(),this.players.forEach(me=>me.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(me=>me.destroy()),this._onDestroyFns.forEach(me=>me()),this._onDestroyFns=[])}reset(){this.players.forEach(me=>me.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(me){const at=me*this.totalTime;this.players.forEach(ot=>{const ht=ot.totalTime?Math.min(1,at/ot.totalTime):1;ot.setPosition(ht)})}getPosition(){const me=this.players.reduce((at,ot)=>null===at||ot.totalTime>at.totalTime?ot:at,null);return null!=me?me.getPosition():0}beforeDestroy(){this.players.forEach(me=>{me.beforeDestroy&&me.beforeDestroy()})}triggerCallback(me){const at="start"==me?this._onStartFns:this._onDoneFns;at.forEach(ot=>ot()),at.length=0}}const vt="!"},6039:(gn,ct,N)=>{N.d(ct,{Pd:()=>fn,Bu:()=>Be,FN:()=>xt,GX:()=>Ft,Q_:()=>qt,Z7:()=>dt,_G:()=>Dt,w6:()=>Nn});var e=N(177),h=N(7705),ne=N(6860),Z=N(1413),De=N(8359),we=N(4412),Ie=N(7673),Oe=N(7336),Fe=N(8141),Me=N(152),Ge=N(5964),Ue=N(6354),Ct=N(6697),_t=N(5245),bt=N(3294),ft=N(6977),mt=N(4085),tn=N(2318),vt=N(4572),Pt=N(8793),me=N(1985),at=N(9172);const ht=new Set;let kt,Tt=(()=>{class gt{constructor(Ee,Ke){this._platform=Ee,this._nonce=Ke,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kn}matchMedia(Ee){return(this._platform.WEBKIT||this._platform.BLINK)&&function cn(gt,qe){if(!ht.has(gt))try{kt||(kt=document.createElement("style"),qe&&(kt.nonce=qe),kt.setAttribute("type","text/css"),document.head.appendChild(kt)),kt.sheet&&(kt.sheet.insertRule(`@media ${gt} {body{ }}`,0),ht.add(gt))}catch(Ee){console.error(Ee)}}(Ee,this._nonce),this._matchMedia(Ee)}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(ne.OD),h.KVO(h.BIS,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function kn(gt){return{matches:"all"===gt||""===gt,media:gt,addListener:()=>{},removeListener:()=>{}}}let dn=(()=>{class gt{constructor(Ee,Ke){this._mediaMatcher=Ee,this._zone=Ke,this._queries=new Map,this._destroySubject=new Z.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ee){return Kt((0,mt.FG)(Ee)).some(jt=>this._registerQuery(jt).mql.matches)}observe(Ee){const jt=Kt((0,mt.FG)(Ee)).map(Je=>this._registerQuery(Je).observable);let pn=(0,vt.z)(jt);return pn=(0,Pt.x)(pn.pipe((0,Ct.s)(1)),pn.pipe((0,_t.i)(1),(0,Me.B)(0))),pn.pipe((0,Ue.T)(Je=>{const $e={matches:!1,breakpoints:{}};return Je.forEach(({matches:it,query:Zt})=>{$e.matches=$e.matches||it,$e.breakpoints[Zt]=it}),$e}))}_registerQuery(Ee){if(this._queries.has(Ee))return this._queries.get(Ee);const Ke=this._mediaMatcher.matchMedia(Ee),pn={observable:new me.c(Je=>{const $e=it=>this._zone.run(()=>Je.next(it));return Ke.addListener($e),()=>{Ke.removeListener($e)}}).pipe((0,at.Z)(Ke),(0,Ue.T)(({matches:Je})=>({query:Ee,matches:Je})),(0,ft.Q)(this._destroySubject)),mql:Ke};return this._queries.set(Ee,pn),pn}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(Tt),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function Kt(gt){return gt.map(qe=>qe.split(",")).reduce((qe,Ee)=>qe.concat(Ee)).map(qe=>qe.trim())}class L{constructor(qe){this._items=qe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z.B,this._typeaheadSubscription=De.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Ee=>Ee.disabled,this._pressedLetters=[],this.tabOut=new Z.B,this.change=new Z.B,qe instanceof h.rOR&&(this._itemChangesSubscription=qe.changes.subscribe(Ee=>{if(this._activeItem){const jt=Ee.toArray().indexOf(this._activeItem);jt>-1&&jt!==this._activeItemIndex&&(this._activeItemIndex=jt)}}))}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Fe.M)(Ee=>this._pressedLetters.push(Ee)),(0,Me.B)(qe),(0,Ge.p)(()=>this._pressedLetters.length>0),(0,Ue.T)(()=>this._pressedLetters.join(""))).subscribe(Ee=>{const Ke=this._getItemsArray();for(let jt=1;jt<Ke.length+1;jt++){const pn=(this._activeItemIndex+jt)%Ke.length,Je=Ke[pn];if(!this._skipPredicateFn(Je)&&0===Je.getLabel().toUpperCase().trim().indexOf(Ee)){this.setActiveItem(pn);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(qe=!0){return this._homeAndEnd=qe,this}withPageUpDown(qe=!0,Ee=10){return this._pageUpAndDown={enabled:qe,delta:Ee},this}setActiveItem(qe){const Ee=this._activeItem;this.updateActiveItem(qe),this._activeItem!==Ee&&this.change.next(this._activeItemIndex)}onKeydown(qe){const Ee=qe.keyCode,jt=["altKey","ctrlKey","metaKey","shiftKey"].every(pn=>!qe[pn]||this._allowedModifierKeys.indexOf(pn)>-1);switch(Ee){case Oe.wn:return void this.tabOut.next();case Oe.n6:if(this._vertical&&jt){this.setNextItemActive();break}return;case Oe.i7:if(this._vertical&&jt){this.setPreviousItemActive();break}return;case Oe.LE:if(this._horizontal&&jt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Oe.UQ:if(this._horizontal&&jt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Oe.yZ:if(this._homeAndEnd&&jt){this.setFirstItemActive();break}return;case Oe.Kp:if(this._homeAndEnd&&jt){this.setLastItemActive();break}return;case Oe.w_:if(this._pageUpAndDown.enabled&&jt){const pn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(pn>0?pn:0,1);break}return;case Oe.dB:if(this._pageUpAndDown.enabled&&jt){const pn=this._activeItemIndex+this._pageUpAndDown.delta,Je=this._getItemsArray().length;this._setActiveItemByIndex(pn<Je?pn:Je-1,-1);break}return;default:return void((jt||(0,Oe.rp)(qe,"shiftKey"))&&(qe.key&&1===qe.key.length?this._letterKeyStream.next(qe.key.toLocaleUpperCase()):(Ee>=Oe.A&&Ee<=Oe.Z||Ee>=Oe.f2&&Ee<=Oe.bn)&&this._letterKeyStream.next(String.fromCharCode(Ee))))}this._pressedLetters=[],qe.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(qe){const Ee=this._getItemsArray(),Ke="number"==typeof qe?qe:Ee.indexOf(qe);this._activeItem=Ee[Ke]??null,this._activeItemIndex=Ke}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(qe){this._wrap?this._setActiveInWrapMode(qe):this._setActiveInDefaultMode(qe)}_setActiveInWrapMode(qe){const Ee=this._getItemsArray();for(let Ke=1;Ke<=Ee.length;Ke++){const jt=(this._activeItemIndex+qe*Ke+Ee.length)%Ee.length;if(!this._skipPredicateFn(Ee[jt]))return void this.setActiveItem(jt)}}_setActiveInDefaultMode(qe){this._setActiveItemByIndex(this._activeItemIndex+qe,qe)}_setActiveItemByIndex(qe,Ee){const Ke=this._getItemsArray();if(Ke[qe]){for(;this._skipPredicateFn(Ke[qe]);)if(!Ke[qe+=Ee])return;this.setActiveItem(qe)}}_getItemsArray(){return this._items instanceof h.rOR?this._items.toArray():this._items}}class Be extends L{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let dt=(()=>{class gt{constructor(Ee){this._platform=Ee}isDisabled(Ee){return Ee.hasAttribute("disabled")}isVisible(Ee){return function Cn(gt){return!!(gt.offsetWidth||gt.offsetHeight||"function"==typeof gt.getClientRects&>.getClientRects().length)}(Ee)&&"visible"===getComputedStyle(Ee).visibility}isTabbable(Ee){if(!this._platform.isBrowser)return!1;const Ke=function Gt(gt){try{return gt.frameElement}catch{return null}}(function Ve(gt){return gt.ownerDocument&>.ownerDocument.defaultView||window}(Ee));if(Ke&&(-1===ke(Ke)||!this.isVisible(Ke)))return!1;let jt=Ee.nodeName.toLowerCase(),pn=ke(Ee);return Ee.hasAttribute("contenteditable")?-1!==pn:!("iframe"===jt||"object"===jt||this._platform.WEBKIT&&this._platform.IOS&&!function re(gt){let qe=gt.nodeName.toLowerCase(),Ee="input"===qe&>.type;return"text"===Ee||"password"===Ee||"select"===qe||"textarea"===qe}(Ee))&&("audio"===jt?!!Ee.hasAttribute("controls")&&-1!==pn:"video"===jt?-1!==pn&&(null!==pn||this._platform.FIREFOX||Ee.hasAttribute("controls")):Ee.tabIndex>=0)}isFocusable(Ee,Ke){return function xe(gt){return!function sn(gt){return function oi(gt){return"input"==gt.nodeName.toLowerCase()}(gt)&&"hidden"==gt.type}(gt)&&(function jn(gt){let qe=gt.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(gt)||function Vn(gt){return function yi(gt){return"a"==gt.nodeName.toLowerCase()}(gt)&>.hasAttribute("href")}(gt)||gt.hasAttribute("contenteditable")||It(gt))}(Ee)&&!this.isDisabled(Ee)&&(Ke?.ignoreVisibility||this.isVisible(Ee))}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(ne.OD))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function It(gt){if(!gt.hasAttribute("tabindex")||void 0===gt.tabIndex)return!1;let qe=gt.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function ke(gt){if(!It(gt))return null;const qe=parseInt(gt.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class ut{get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}constructor(qe,Ee,Ke,jt,pn=!1){this._element=qe,this._checker=Ee,this._ngZone=Ke,this._document=jt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,pn||this.attachAnchors()}destroy(){const qe=this._startAnchor,Ee=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),Ee&&(Ee.removeEventListener("focus",this.endAnchorListener),Ee.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(qe){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const Ee=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?Ee.length?Ee[0]:this._getFirstTabbableElement(this._element):Ee.length?Ee[Ee.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const Ee=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ee){if(!this._checker.isFocusable(Ee)){const Ke=this._getFirstTabbableElement(Ee);return Ke?.focus(qe),!!Ke}return Ee.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const Ee=this._getRegionBoundary("start");return Ee&&Ee.focus(qe),!!Ee}focusLastTabbableElement(qe){const Ee=this._getRegionBoundary("end");return Ee&&Ee.focus(qe),!!Ee}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Ee=qe.children;for(let Ke=0;Ke<Ee.length;Ke++){const jt=Ee[Ke].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Ee[Ke]):null;if(jt)return jt}return null}_getLastTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Ee=qe.children;for(let Ke=Ee.length-1;Ke>=0;Ke--){const jt=Ee[Ke].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ee[Ke]):null;if(jt)return jt}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,Ee){qe?Ee.setAttribute("tabindex","0"):Ee.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._ngZone.isStable?qe():this._ngZone.onStable.pipe((0,Ct.s)(1)).subscribe(qe)}}let Ft=(()=>{class gt{constructor(Ee,Ke,jt){this._checker=Ee,this._ngZone=Ke,this._document=jt}create(Ee,Ke=!1){return new ut(Ee,this._checker,this._ngZone,this._document,Ke)}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(dt),h.KVO(h.SKi),h.KVO(e.qQ))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function Dt(gt){return 0===gt.buttons||0===gt.detail}function Nn(gt){const qe=gt.touches&>.touches[0]||gt.changedTouches&>.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const yn=new h.nKC("cdk-input-modality-detector-options"),$n={ignoreKeys:[Oe.A$,Oe.W3,Oe.eg,Oe.Ge,Oe.FX]},ai=(0,ne.BQ)({passive:!0,capture:!0});let Ai=(()=>{class gt{get mostRecentModality(){return this._modality.value}constructor(Ee,Ke,jt,pn){this._platform=Ee,this._mostRecentTarget=null,this._modality=new we.t(null),this._lastTouchMs=0,this._onKeydown=Je=>{this._options?.ignoreKeys?.some($e=>$e===Je.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ne.Fb)(Je))},this._onMousedown=Je=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Dt(Je)?"keyboard":"mouse"),this._mostRecentTarget=(0,ne.Fb)(Je))},this._onTouchstart=Je=>{Nn(Je)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ne.Fb)(Je))},this._options={...$n,...pn},this.modalityDetected=this._modality.pipe((0,_t.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,bt.F)()),Ee.isBrowser&&Ke.runOutsideAngular(()=>{jt.addEventListener("keydown",this._onKeydown,ai),jt.addEventListener("mousedown",this._onMousedown,ai),jt.addEventListener("touchstart",this._onTouchstart,ai)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ai),document.removeEventListener("mousedown",this._onMousedown,ai),document.removeEventListener("touchstart",this._onTouchstart,ai))}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(ne.OD),h.KVO(h.SKi),h.KVO(e.qQ),h.KVO(yn,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();const Hs=new h.nKC("cdk-focus-monitor-default-options"),rn=(0,ne.BQ)({passive:!0,capture:!0});let xt=(()=>{class gt{constructor(Ee,Ke,jt,pn,Je){this._ngZone=Ee,this._platform=Ke,this._inputModalityDetector=jt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z.B,this._rootNodeFocusAndBlurListener=$e=>{for(let Zt=(0,ne.Fb)($e);Zt;Zt=Zt.parentElement)"focus"===$e.type?this._onFocus($e,Zt):this._onBlur($e,Zt)},this._document=pn,this._detectionMode=Je?.detectionMode||0}monitor(Ee,Ke=!1){const jt=(0,mt.i8)(Ee);if(!this._platform.isBrowser||1!==jt.nodeType)return(0,Ie.of)();const pn=(0,ne.KT)(jt)||this._getDocument(),Je=this._elementInfo.get(jt);if(Je)return Ke&&(Je.checkChildren=!0),Je.subject;const $e={checkChildren:Ke,subject:new Z.B,rootNode:pn};return this._elementInfo.set(jt,$e),this._registerGlobalListeners($e),$e.subject}stopMonitoring(Ee){const Ke=(0,mt.i8)(Ee),jt=this._elementInfo.get(Ke);jt&&(jt.subject.complete(),this._setClasses(Ke),this._elementInfo.delete(Ke),this._removeGlobalListeners(jt))}focusVia(Ee,Ke,jt){const pn=(0,mt.i8)(Ee);pn===this._getDocument().activeElement?this._getClosestElementsInfo(pn).forEach(([$e,it])=>this._originChanged($e,Ke,it)):(this._setOrigin(Ke),"function"==typeof pn.focus&&pn.focus(jt))}ngOnDestroy(){this._elementInfo.forEach((Ee,Ke)=>this.stopMonitoring(Ke))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ee){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ee)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ee&&this._isLastInteractionFromInputLabel(Ee)?"mouse":"program"}_shouldBeAttributedToTouch(Ee){return 1===this._detectionMode||!!Ee?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ee,Ke){Ee.classList.toggle("cdk-focused",!!Ke),Ee.classList.toggle("cdk-touch-focused","touch"===Ke),Ee.classList.toggle("cdk-keyboard-focused","keyboard"===Ke),Ee.classList.toggle("cdk-mouse-focused","mouse"===Ke),Ee.classList.toggle("cdk-program-focused","program"===Ke)}_setOrigin(Ee,Ke=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ee,this._originFromTouchInteraction="touch"===Ee&&Ke,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ee,Ke){const jt=this._elementInfo.get(Ke),pn=(0,ne.Fb)(Ee);!jt||!jt.checkChildren&&Ke!==pn||this._originChanged(Ke,this._getFocusOrigin(pn),jt)}_onBlur(Ee,Ke){const jt=this._elementInfo.get(Ke);!jt||jt.checkChildren&&Ee.relatedTarget instanceof Node&&Ke.contains(Ee.relatedTarget)||(this._setClasses(Ke),this._emitOrigin(jt,null))}_emitOrigin(Ee,Ke){Ee.subject.observers.length&&this._ngZone.run(()=>Ee.subject.next(Ke))}_registerGlobalListeners(Ee){if(!this._platform.isBrowser)return;const Ke=Ee.rootNode,jt=this._rootNodeFocusListenerCount.get(Ke)||0;jt||this._ngZone.runOutsideAngular(()=>{Ke.addEventListener("focus",this._rootNodeFocusAndBlurListener,rn),Ke.addEventListener("blur",this._rootNodeFocusAndBlurListener,rn)}),this._rootNodeFocusListenerCount.set(Ke,jt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ft.Q)(this._stopInputModalityDetector)).subscribe(pn=>{this._setOrigin(pn,!0)}))}_removeGlobalListeners(Ee){const Ke=Ee.rootNode;if(this._rootNodeFocusListenerCount.has(Ke)){const jt=this._rootNodeFocusListenerCount.get(Ke);jt>1?this._rootNodeFocusListenerCount.set(Ke,jt-1):(Ke.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rn),Ke.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rn),this._rootNodeFocusListenerCount.delete(Ke))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ee,Ke,jt){this._setClasses(Ee,Ke),this._emitOrigin(jt,Ke),this._lastFocusOrigin=Ke}_getClosestElementsInfo(Ee){const Ke=[];return this._elementInfo.forEach((jt,pn)=>{(pn===Ee||jt.checkChildren&&pn.contains(Ee))&&Ke.push([pn,jt])}),Ke}_isLastInteractionFromInputLabel(Ee){const{_mostRecentTarget:Ke,mostRecentModality:jt}=this._inputModalityDetector;if("mouse"!==jt||!Ke||Ke===Ee||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName||Ee.disabled)return!1;const pn=Ee.labels;if(pn)for(let Je=0;Je<pn.length;Je++)if(pn[Je].contains(Ke))return!0;return!1}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(h.SKi),h.KVO(ne.OD),h.KVO(Ai),h.KVO(e.qQ,8),h.KVO(Hs,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();const Ae="cdk-high-contrast-black-on-white",Ne="cdk-high-contrast-white-on-black",We="cdk-high-contrast-active";let qt=(()=>{class gt{constructor(Ee,Ke){this._platform=Ee,this._document=Ke,this._breakpointSubscription=(0,h.WQX)(dn).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ee=this._document.createElement("div");Ee.style.backgroundColor="rgb(1,2,3)",Ee.style.position="absolute",this._document.body.appendChild(Ee);const Ke=this._document.defaultView||window,jt=Ke&&Ke.getComputedStyle?Ke.getComputedStyle(Ee):null,pn=(jt&&jt.backgroundColor||"").replace(/ /g,"");switch(Ee.remove(),pn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ee=this._document.body.classList;Ee.remove(We,Ae,Ne),this._hasCheckedHighContrastMode=!0;const Ke=this.getHighContrastMode();1===Ke?Ee.add(We,Ae):2===Ke&&Ee.add(We,Ne)}}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(ne.OD),h.KVO(e.qQ))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})(),fn=(()=>{class gt{constructor(Ee){Ee._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(Ke){return new(Ke||gt)(h.KVO(qt))}}static{this.\u0275mod=h.$C({type:gt})}static{this.\u0275inj=h.G2t({imports:[tn.w5]})}}return gt})()},8203:(gn,ct,N)=>{N.d(ct,{dS:()=>Ie,jI:()=>Fe});var e=N(7705),h=N(177);const ne=new e.nKC("cdk-dir-doc",{providedIn:"root",factory:function Z(){return(0,e.WQX)(h.qQ)}}),De=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ie=(()=>{class Me{constructor(Ue){this.value="ltr",this.change=new e.bkB,Ue&&(this.value=function we(Me){const Ge=Me?.toLowerCase()||"";return"auto"===Ge&&typeof navigator<"u"&&navigator?.language?De.test(navigator.language)?"rtl":"ltr":"rtl"===Ge?"rtl":"ltr"}((Ue.body?Ue.body.dir:null)||(Ue.documentElement?Ue.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(Ct){return new(Ct||Me)(e.KVO(ne,8))}}static{this.\u0275prov=e.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})(),Fe=(()=>{class Me{static{this.\u0275fac=function(Ct){return new(Ct||Me)}}static{this.\u0275mod=e.$C({type:Me})}static{this.\u0275inj=e.G2t({})}}return Me})()},4085:(gn,ct,N)=>{N.d(ct,{FG:()=>De,OE:()=>ne,a1:()=>we,he:()=>h,i8:()=>Ie,o1:()=>Z});var e=N(7705);function h(Fe){return null!=Fe&&"false"!=`${Fe}`}function ne(Fe,Me=0){return Z(Fe)?Number(Fe):Me}function Z(Fe){return!isNaN(parseFloat(Fe))&&!isNaN(Number(Fe))}function De(Fe){return Array.isArray(Fe)?Fe:[Fe]}function we(Fe){return null==Fe?"":"string"==typeof Fe?Fe:`${Fe}px`}function Ie(Fe){return Fe instanceof e.aKT?Fe.nativeElement:Fe}},7336:(gn,ct,N)=>{N.d(ct,{A:()=>de,A$:()=>Oe,FX:()=>we,Fm:()=>De,Ge:()=>Xt,Kp:()=>bt,LE:()=>vt,UQ:()=>mt,W3:()=>Ie,Z:()=>Qt,_f:()=>Ge,bn:()=>Nt,dB:()=>_t,eg:()=>In,f2:()=>kt,i7:()=>tn,n6:()=>Pt,rp:()=>Hn,t6:()=>Ue,w_:()=>Ct,wn:()=>ne,yZ:()=>ft});const ne=9,De=13,we=16,Ie=17,Oe=18,Ge=27,Ue=32,Ct=33,_t=34,bt=35,ft=36,mt=37,tn=38,vt=39,Pt=40,kt=48,Nt=57,de=65,Qt=90,Xt=91,In=224;function Hn(mi,...Kn){return Kn.length?Kn.some(ri=>mi[ri]):mi.altKey||mi.shiftKey||mi.ctrlKey||mi.metaKey}},2318:(gn,ct,N)=>{N.d(ct,{w5:()=>De});var e=N(7705);let h=(()=>{class we{create(Oe){return typeof MutationObserver>"u"?null:new MutationObserver(Oe)}static{this.\u0275fac=function(Fe){return new(Fe||we)}}static{this.\u0275prov=e.jDH({token:we,factory:we.\u0275fac,providedIn:"root"})}}return we})(),De=(()=>{class we{static{this.\u0275fac=function(Fe){return new(Fe||we)}}static{this.\u0275mod=e.$C({type:we})}static{this.\u0275inj=e.G2t({providers:[h]})}}return we})()},7987:(gn,ct,N)=>{N.d(ct,{Sf:()=>ye,hJ:()=>pt,rR:()=>ot,yY:()=>Se,z_:()=>oi});var e=N(7333),h=N(177),ne=N(7705),Z=N(4085),De=N(6860),we=N(5964),Ie=N(6697),Oe=N(6977),Fe=N(8203),Me=N(6939),Ge=N(1413),Ue=N(8359),Ct=N(7786);const _t=(0,De.CZ)();class bt{constructor(ke,re){this._viewportRuler=ke,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=(0,Z.a1)(-this._previousScrollPosition.left),ke.style.top=(0,Z.a1)(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,xe=ke.style,Ve=this._document.body.style,ut=xe.scrollBehavior||"",Ft=Ve.scrollBehavior||"";this._isEnabled=!1,xe.left=this._previousHTMLStyles.left,xe.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),_t&&(xe.scrollBehavior=Ve.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_t&&(xe.scrollBehavior=ut,Ve.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const re=this._document.body,xe=this._viewportRuler.getViewportSize();return re.scrollHeight>xe.height||re.scrollWidth>xe.width}}class mt{constructor(ke,re,xe,Ve){this._scrollDispatcher=ke,this._ngZone=re,this._viewportRuler=xe,this._config=Ve,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,we.p)(re=>!re||!this._overlayRef.overlayElement.contains(re.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const re=this._viewportRuler.getViewportScrollPosition().top;Math.abs(re-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class tn{enable(){}disable(){}attach(){}}function vt(It,ke){return ke.some(re=>It.bottom<re.top||It.top>re.bottom||It.right<re.left||It.left>re.right)}function Pt(It,ke){return ke.some(re=>It.top<re.top||It.bottom>re.bottom||It.left<re.left||It.right>re.right)}class me{constructor(ke,re,xe,Ve){this._scrollDispatcher=ke,this._viewportRuler=re,this._ngZone=xe,this._config=Ve,this._scrollSubscription=null}attach(ke){this._overlayRef=ke}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const re=this._overlayRef.overlayElement.getBoundingClientRect(),{width:xe,height:Ve}=this._viewportRuler.getViewportSize();vt(re,[{width:xe,height:Ve,bottom:Ve,right:xe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let at=(()=>{class It{constructor(re,xe,Ve,ut){this._scrollDispatcher=re,this._viewportRuler=xe,this._ngZone=Ve,this.noop=()=>new tn,this.close=Ft=>new mt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new bt(this._viewportRuler,this._document),this.reposition=Ft=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=ut}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(e.R),ne.KVO(e.Xj),ne.KVO(ne.SKi),ne.KVO(h.qQ))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})();class ot{constructor(ke){if(this.scrollStrategy=new tn,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ke){const re=Object.keys(ke);for(const xe of re)void 0!==ke[xe]&&(this[xe]=ke[xe])}}}class Tt{constructor(ke,re){this.connectionPair=ke,this.scrollableViewProperties=re}}let dn=(()=>{class It{constructor(re){this._attachedOverlays=[],this._document=re}ngOnDestroy(){this.detach()}add(re){this.remove(re),this._attachedOverlays.push(re)}remove(re){const xe=this._attachedOverlays.indexOf(re);xe>-1&&this._attachedOverlays.splice(xe,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(h.qQ))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})(),Kt=(()=>{class It extends dn{constructor(re,xe){super(re),this._ngZone=xe,this._keydownListener=Ve=>{const ut=this._attachedOverlays;for(let Ft=ut.length-1;Ft>-1;Ft--)if(ut[Ft]._keydownEvents.observers.length>0){const on=ut[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>on.next(Ve)):on.next(Ve);break}}}add(re){super.add(re),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(h.qQ),ne.KVO(ne.SKi,8))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})(),Ye=(()=>{class It extends dn{constructor(re,xe,Ve){super(re),this._platform=xe,this._ngZone=Ve,this._cursorStyleIsSet=!1,this._pointerDownListener=ut=>{this._pointerDownEventTarget=(0,De.Fb)(ut)},this._clickListener=ut=>{const Ft=(0,De.Fb)(ut),on="click"===ut.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Ln=this._attachedOverlays.slice();for(let Qt=Ln.length-1;Qt>-1;Qt--){const Xt=Ln[Qt];if(Xt._outsidePointerEvents.observers.length<1||!Xt.hasAttached())continue;if(Xt.overlayElement.contains(Ft)||Xt.overlayElement.contains(on))break;const nt=Xt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>nt.next(ut)):nt.next(ut)}}}add(re){if(super.add(re),!this._isAttached){const xe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(xe)):this._addEventListeners(xe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=xe.style.cursor,xe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const re=this._document.body;re.removeEventListener("pointerdown",this._pointerDownListener,!0),re.removeEventListener("click",this._clickListener,!0),re.removeEventListener("auxclick",this._clickListener,!0),re.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(re.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(re){re.addEventListener("pointerdown",this._pointerDownListener,!0),re.addEventListener("click",this._clickListener,!0),re.addEventListener("auxclick",this._clickListener,!0),re.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(h.qQ),ne.KVO(De.OD),ne.KVO(ne.SKi,8))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})(),ye=(()=>{class It{constructor(re,xe){this._platform=xe,this._document=re}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const re="cdk-overlay-container";if(this._platform.isBrowser||(0,De.v8)()){const Ve=this._document.querySelectorAll(`.${re}[platform="server"], .${re}[platform="test"]`);for(let ut=0;ut<Ve.length;ut++)Ve[ut].remove()}const xe=this._document.createElement("div");xe.classList.add(re),(0,De.v8)()?xe.setAttribute("platform","test"):this._platform.isBrowser||xe.setAttribute("platform","server"),this._document.body.appendChild(xe),this._containerElement=xe}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(h.qQ),ne.KVO(De.OD))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})();class Se{constructor(ke,re,xe,Ve,ut,Ft,on,Ln,Qt,Xt=!1){this._portalOutlet=ke,this._host=re,this._pane=xe,this._config=Ve,this._ngZone=ut,this._keyboardDispatcher=Ft,this._document=on,this._location=Ln,this._outsideClickDispatcher=Qt,this._animationsDisabled=Xt,this._backdropElement=null,this._backdropClick=new Ge.B,this._attachments=new Ge.B,this._detachments=new Ge.B,this._locationChanges=Ue.yU.EMPTY,this._backdropClickHandler=nt=>this._backdropClick.next(nt),this._backdropTransitionendHandler=nt=>{this._disposeBackdrop(nt.target)},this._keydownEvents=new Ge.B,this._outsidePointerEvents=new Ge.B,Ve.scrollStrategy&&(this._scrollStrategy=Ve.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ve.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const re=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ie.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof re?.onDestroy&&re.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),re}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ke&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=(0,Z.a1)(this._config.width),ke.height=(0,Z.a1)(this._config.height),ke.minWidth=(0,Z.a1)(this._config.minWidth),ke.minHeight=(0,Z.a1)(this._config.minHeight),ke.maxWidth=(0,Z.a1)(this._config.maxWidth),ke.maxHeight=(0,Z.a1)(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ke)})}):this._backdropElement.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ke=this._backdropElement;if(ke){if(this._animationsDisabled)return void this._disposeBackdrop(ke);ke.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ke.addEventListener("transitionend",this._backdropTransitionendHandler)}),ke.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ke)},500))}}_toggleClasses(ke,re,xe){const Ve=(0,Z.FG)(re||[]).filter(ut=>!!ut);Ve.length&&(xe?ke.classList.add(...Ve):ke.classList.remove(...Ve))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ke=this._ngZone.onStable.pipe((0,Oe.Q)((0,Ct.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ke.unsubscribe())})})}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke&&(ke.disable(),ke.detach&&ke.detach())}_disposeBackdrop(ke){ke&&(ke.removeEventListener("click",this._backdropClickHandler),ke.removeEventListener("transitionend",this._backdropTransitionendHandler),ke.remove(),this._backdropElement===ke&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Nt="cdk-overlay-connected-position-bounding-box",K=/([A-Za-z%]+)$/;class ge{get positions(){return this._preferredPositions}constructor(ke,re,xe,Ve,ut){this._viewportRuler=re,this._document=xe,this._platform=Ve,this._overlayContainer=ut,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ge.B,this._resizeSubscription=Ue.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(Nt),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ke=this._originRect,re=this._overlayRect,xe=this._viewportRect,Ve=this._containerRect,ut=[];let Ft;for(let on of this._preferredPositions){let Ln=this._getOriginPoint(ke,Ve,on),Qt=this._getOverlayPoint(Ln,re,on),Xt=this._getOverlayFit(Qt,re,xe,on);if(Xt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(on,Ln);this._canFitWithFlexibleDimensions(Xt,Qt,xe)?ut.push({position:on,origin:Ln,overlayRect:re,boundingBoxRect:this._calculateBoundingBoxRect(Ln,on)}):(!Ft||Ft.overlayFit.visibleArea<Xt.visibleArea)&&(Ft={overlayFit:Xt,overlayPoint:Qt,originPoint:Ln,position:on,overlayRect:re})}if(ut.length){let on=null,Ln=-1;for(const Qt of ut){const Xt=Qt.boundingBoxRect.width*Qt.boundingBoxRect.height*(Qt.position.weight||1);Xt>Ln&&(Ln=Xt,on=Qt)}return this._isPushed=!1,void this._applyPosition(on.position,on.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&je(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Nt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const re=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,re)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,re,xe){let Ve,ut;if("center"==xe.originX)Ve=ke.left+ke.width/2;else{const Ft=this._isRtl()?ke.right:ke.left,on=this._isRtl()?ke.left:ke.right;Ve="start"==xe.originX?Ft:on}return re.left<0&&(Ve-=re.left),ut="center"==xe.originY?ke.top+ke.height/2:"top"==xe.originY?ke.top:ke.bottom,re.top<0&&(ut-=re.top),{x:Ve,y:ut}}_getOverlayPoint(ke,re,xe){let Ve,ut;return Ve="center"==xe.overlayX?-re.width/2:"start"===xe.overlayX?this._isRtl()?-re.width:0:this._isRtl()?0:-re.width,ut="center"==xe.overlayY?-re.height/2:"top"==xe.overlayY?0:-re.height,{x:ke.x+Ve,y:ke.y+ut}}_getOverlayFit(ke,re,xe,Ve){const ut=de(re);let{x:Ft,y:on}=ke,Ln=this._getOffset(Ve,"x"),Qt=this._getOffset(Ve,"y");Ln&&(Ft+=Ln),Qt&&(on+=Qt);let Mt=0-on,Dt=on+ut.height-xe.height,Nn=this._subtractOverflows(ut.width,0-Ft,Ft+ut.width-xe.width),yn=this._subtractOverflows(ut.height,Mt,Dt),$n=Nn*yn;return{visibleArea:$n,isCompletelyWithinViewport:ut.width*ut.height===$n,fitsInViewportVertically:yn===ut.height,fitsInViewportHorizontally:Nn==ut.width}}_canFitWithFlexibleDimensions(ke,re,xe){if(this._hasFlexibleDimensions){const Ve=xe.bottom-re.y,ut=xe.right-re.x,Ft=le(this._overlayRef.getConfig().minHeight),on=le(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=Ft&&Ft<=Ve)&&(ke.fitsInViewportHorizontally||null!=on&&on<=ut)}return!1}_pushOverlayOnScreen(ke,re,xe){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const Ve=de(re),ut=this._viewportRect,Ft=Math.max(ke.x+Ve.width-ut.width,0),on=Math.max(ke.y+Ve.height-ut.height,0),Ln=Math.max(ut.top-xe.top-ke.y,0),Qt=Math.max(ut.left-xe.left-ke.x,0);let Xt=0,nt=0;return Xt=Ve.width<=ut.width?Qt||-Ft:ke.x<this._viewportMargin?ut.left-xe.left-ke.x:0,nt=Ve.height<=ut.height?Ln||-on:ke.y<this._viewportMargin?ut.top-xe.top-ke.y:0,this._previousPushAmount={x:Xt,y:nt},{x:ke.x+Xt,y:ke.y+nt}}_applyPosition(ke,re){if(this._setTransformOrigin(ke),this._setOverlayElementStyles(re,ke),this._setBoundingBoxStyles(re,ke),ke.panelClass&&this._addPanelClasses(ke.panelClass),this._lastPosition=ke,this._positionChanges.observers.length){const xe=this._getScrollVisibility(),Ve=new Tt(ke,xe);this._positionChanges.next(Ve)}this._isInitialRender=!1}_setTransformOrigin(ke){if(!this._transformOriginSelector)return;const re=this._boundingBox.querySelectorAll(this._transformOriginSelector);let xe,Ve=ke.overlayY;xe="center"===ke.overlayX?"center":this._isRtl()?"start"===ke.overlayX?"right":"left":"start"===ke.overlayX?"left":"right";for(let ut=0;ut<re.length;ut++)re[ut].style.transformOrigin=`${xe} ${Ve}`}_calculateBoundingBoxRect(ke,re){const xe=this._viewportRect,Ve=this._isRtl();let ut,Ft,on,Xt,nt,Mt;if("top"===re.overlayY)Ft=ke.y,ut=xe.height-Ft+this._viewportMargin;else if("bottom"===re.overlayY)on=xe.height-ke.y+2*this._viewportMargin,ut=xe.height-on+this._viewportMargin;else{const Dt=Math.min(xe.bottom-ke.y+xe.top,ke.y),Nn=this._lastBoundingBoxSize.height;ut=2*Dt,Ft=ke.y-Dt,ut>Nn&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=ke.y-Nn/2)}if("end"===re.overlayX&&!Ve||"start"===re.overlayX&&Ve)Mt=xe.width-ke.x+this._viewportMargin,Xt=ke.x-this._viewportMargin;else if("start"===re.overlayX&&!Ve||"end"===re.overlayX&&Ve)nt=ke.x,Xt=xe.right-ke.x;else{const Dt=Math.min(xe.right-ke.x+xe.left,ke.x),Nn=this._lastBoundingBoxSize.width;Xt=2*Dt,nt=ke.x-Dt,Xt>Nn&&!this._isInitialRender&&!this._growAfterOpen&&(nt=ke.x-Nn/2)}return{top:Ft,left:nt,bottom:on,right:Mt,width:Xt,height:ut}}_setBoundingBoxStyles(ke,re){const xe=this._calculateBoundingBoxRect(ke,re);!this._isInitialRender&&!this._growAfterOpen&&(xe.height=Math.min(xe.height,this._lastBoundingBoxSize.height),xe.width=Math.min(xe.width,this._lastBoundingBoxSize.width));const Ve={};if(this._hasExactPosition())Ve.top=Ve.left="0",Ve.bottom=Ve.right=Ve.maxHeight=Ve.maxWidth="",Ve.width=Ve.height="100%";else{const ut=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;Ve.height=(0,Z.a1)(xe.height),Ve.top=(0,Z.a1)(xe.top),Ve.bottom=(0,Z.a1)(xe.bottom),Ve.width=(0,Z.a1)(xe.width),Ve.left=(0,Z.a1)(xe.left),Ve.right=(0,Z.a1)(xe.right),Ve.alignItems="center"===re.overlayX?"center":"end"===re.overlayX?"flex-end":"flex-start",Ve.justifyContent="center"===re.overlayY?"center":"bottom"===re.overlayY?"flex-end":"flex-start",ut&&(Ve.maxHeight=(0,Z.a1)(ut)),Ft&&(Ve.maxWidth=(0,Z.a1)(Ft))}this._lastBoundingBoxSize=xe,je(this._boundingBox.style,Ve)}_resetBoundingBoxStyles(){je(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){je(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,re){const xe={},Ve=this._hasExactPosition(),ut=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(Ve){const Xt=this._viewportRuler.getViewportScrollPosition();je(xe,this._getExactOverlayY(re,ke,Xt)),je(xe,this._getExactOverlayX(re,ke,Xt))}else xe.position="static";let on="",Ln=this._getOffset(re,"x"),Qt=this._getOffset(re,"y");Ln&&(on+=`translateX(${Ln}px) `),Qt&&(on+=`translateY(${Qt}px)`),xe.transform=on.trim(),Ft.maxHeight&&(Ve?xe.maxHeight=(0,Z.a1)(Ft.maxHeight):ut&&(xe.maxHeight="")),Ft.maxWidth&&(Ve?xe.maxWidth=(0,Z.a1)(Ft.maxWidth):ut&&(xe.maxWidth="")),je(this._pane.style,xe)}_getExactOverlayY(ke,re,xe){let Ve={top:"",bottom:""},ut=this._getOverlayPoint(re,this._overlayRect,ke);return this._isPushed&&(ut=this._pushOverlayOnScreen(ut,this._overlayRect,xe)),"bottom"===ke.overlayY?Ve.bottom=this._document.documentElement.clientHeight-(ut.y+this._overlayRect.height)+"px":Ve.top=(0,Z.a1)(ut.y),Ve}_getExactOverlayX(ke,re,xe){let Ft,Ve={left:"",right:""},ut=this._getOverlayPoint(re,this._overlayRect,ke);return this._isPushed&&(ut=this._pushOverlayOnScreen(ut,this._overlayRect,xe)),Ft=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===Ft?Ve.right=this._document.documentElement.clientWidth-(ut.x+this._overlayRect.width)+"px":Ve.left=(0,Z.a1)(ut.x),Ve}_getScrollVisibility(){const ke=this._getOriginRect(),re=this._pane.getBoundingClientRect(),xe=this._scrollables.map(Ve=>Ve.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Pt(ke,xe),isOriginOutsideView:vt(ke,xe),isOverlayClipped:Pt(re,xe),isOverlayOutsideView:vt(re,xe)}}_subtractOverflows(ke,...re){return re.reduce((xe,Ve)=>xe-Math.max(Ve,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,re=this._document.documentElement.clientHeight,xe=this._viewportRuler.getViewportScrollPosition();return{top:xe.top+this._viewportMargin,left:xe.left+this._viewportMargin,right:xe.left+ke-this._viewportMargin,bottom:xe.top+re-this._viewportMargin,width:ke-2*this._viewportMargin,height:re-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,re){return"x"===re?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,Z.FG)(ke).forEach(re=>{""!==re&&-1===this._appliedPanelClasses.indexOf(re)&&(this._appliedPanelClasses.push(re),this._pane.classList.add(re))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof ne.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const re=ke.width||0,xe=ke.height||0;return{top:ke.y,bottom:ke.y+xe,left:ke.x,right:ke.x+re,height:xe,width:re}}}function je(It,ke){for(let re in ke)ke.hasOwnProperty(re)&&(It[re]=ke[re]);return It}function le(It){if("number"!=typeof It&&null!=It){const[ke,re]=It.split(K);return re&&"px"!==re?null:parseFloat(ke)}return It||null}function de(It){return{top:Math.floor(It.top),right:Math.floor(It.right),bottom:Math.floor(It.bottom),left:Math.floor(It.left),width:Math.floor(It.width),height:Math.floor(It.height)}}const He="cdk-global-overlay-wrapper";class L{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ke){const re=ke.getConfig();this._overlayRef=ke,this._width&&!re.width&&ke.updateSize({width:this._width}),this._height&&!re.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(He),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement.style,xe=this._overlayRef.getConfig(),{width:Ve,height:ut,maxWidth:Ft,maxHeight:on}=xe,Ln=!("100%"!==Ve&&"100vw"!==Ve||Ft&&"100%"!==Ft&&"100vw"!==Ft),Qt=!("100%"!==ut&&"100vh"!==ut||on&&"100%"!==on&&"100vh"!==on),Xt=this._xPosition,nt=this._xOffset,Mt="rtl"===this._overlayRef.getConfig().direction;let Dt="",Nn="",yn="";Ln?yn="flex-start":"center"===Xt?(yn="center",Mt?Nn=nt:Dt=nt):Mt?"left"===Xt||"end"===Xt?(yn="flex-end",Dt=nt):("right"===Xt||"start"===Xt)&&(yn="flex-start",Nn=nt):"left"===Xt||"start"===Xt?(yn="flex-start",Dt=nt):("right"===Xt||"end"===Xt)&&(yn="flex-end",Nn=nt),ke.position=this._cssPosition,ke.marginLeft=Ln?"0":Dt,ke.marginTop=Qt?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=Ln?"0":Nn,re.justifyContent=yn,re.alignItems=Qt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement,xe=re.style;re.classList.remove(He),xe.justifyContent=xe.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let q=(()=>{class It{constructor(re,xe,Ve,ut){this._viewportRuler=re,this._document=xe,this._platform=Ve,this._overlayContainer=ut}global(){return new L}flexibleConnectedTo(re){return new ge(re,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(e.Xj),ne.KVO(h.qQ),ne.KVO(De.OD),ne.KVO(ye))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})(),Be=0,pt=(()=>{class It{constructor(re,xe,Ve,ut,Ft,on,Ln,Qt,Xt,nt,Mt,Dt){this.scrollStrategies=re,this._overlayContainer=xe,this._componentFactoryResolver=Ve,this._positionBuilder=ut,this._keyboardDispatcher=Ft,this._injector=on,this._ngZone=Ln,this._document=Qt,this._directionality=Xt,this._location=nt,this._outsideClickDispatcher=Mt,this._animationsModuleType=Dt}create(re){const xe=this._createHostElement(),Ve=this._createPaneElement(xe),ut=this._createPortalOutlet(Ve),Ft=new ot(re);return Ft.direction=Ft.direction||this._directionality.value,new Se(ut,xe,Ve,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(re){const xe=this._document.createElement("div");return xe.id="cdk-overlay-"+Be++,xe.classList.add("cdk-overlay-pane"),re.appendChild(xe),xe}_createHostElement(){const re=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(re),re}_createPortalOutlet(re){return this._appRef||(this._appRef=this._injector.get(ne.o8S)),new Me.aI(re,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(xe){return new(xe||It)(ne.KVO(at),ne.KVO(ye),ne.KVO(ne.OM3),ne.KVO(q),ne.KVO(Kt),ne.KVO(ne.zZn),ne.KVO(ne.SKi),ne.KVO(h.qQ),ne.KVO(Fe.dS),ne.KVO(h.aZ),ne.KVO(Ye),ne.KVO(ne.bc$,8))}}static{this.\u0275prov=ne.jDH({token:It,factory:It.\u0275fac,providedIn:"root"})}}return It})();const Vn={provide:new ne.nKC("cdk-connected-overlay-scroll-strategy"),deps:[pt],useFactory:function sn(It){return()=>It.scrollStrategies.reposition()}};let oi=(()=>{class It{static{this.\u0275fac=function(xe){return new(xe||It)}}static{this.\u0275mod=ne.$C({type:It})}static{this.\u0275inj=ne.G2t({providers:[pt,Vn],imports:[Fe.jI,Me.jc,e.E9,e.E9]})}}return It})()},6860:(gn,ct,N)=>{N.d(ct,{BQ:()=>Ge,CZ:()=>_t,Fb:()=>Pt,KT:()=>tn,OD:()=>Z,v8:()=>me,vc:()=>vt});var e=N(7705),h=N(177);let ne;try{ne=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ne=!1}let Fe,Ct,ft,Z=(()=>{class at{constructor(ht){this._platformId=ht,this.isBrowser=this._platformId?(0,h.UE)(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&&!ne)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(kt){return new(kt||at)(e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();function Ge(at){return function Me(){if(null==Fe&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Fe=!0}))}finally{Fe=Fe||!1}return Fe}()?at:!!at.capture}function _t(){if(null==Ct){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ct=!1,Ct;if("scrollBehavior"in document.documentElement.style)Ct=!0;else{const at=Element.prototype.scrollTo;Ct=!!at&&!/\{\s*\[native code\]\s*\}/.test(at.toString())}}return Ct}function tn(at){if(function mt(){if(null==ft){const at=typeof document<"u"?document.head:null;ft=!(!at||!at.createShadowRoot&&!at.attachShadow)}return ft}()){const ot=at.getRootNode?at.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ot instanceof ShadowRoot)return ot}return null}function vt(){let at=typeof document<"u"&&document?document.activeElement:null;for(;at&&at.shadowRoot;){const ot=at.shadowRoot.activeElement;if(ot===at)break;at=ot}return at}function Pt(at){return at.composedPath?at.composedPath()[0]:at.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(gn,ct,N)=>{N.d(ct,{A8:()=>Me,I3:()=>vt,VA:()=>Ge,aI:()=>bt,jc:()=>me,lb:()=>Ct});var e=N(7705),h=N(177);class Fe{attach(ht){return this._attachedHost=ht,ht.attach(this)}detach(){let ht=this._attachedHost;null!=ht&&(this._attachedHost=null,ht.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ht){this._attachedHost=ht}}class Me extends Fe{constructor(ht,kt,Tt,cn,kn){super(),this.component=ht,this.viewContainerRef=kt,this.injector=Tt,this.componentFactoryResolver=cn,this.projectableNodes=kn}}class Ge extends Fe{constructor(ht,kt,Tt,cn){super(),this.templateRef=ht,this.viewContainerRef=kt,this.context=Tt,this.injector=cn}get origin(){return this.templateRef.elementRef}attach(ht,kt=this.context){return this.context=kt,super.attach(ht)}detach(){return this.context=void 0,super.detach()}}class Ue extends Fe{constructor(ht){super(),this.element=ht instanceof e.aKT?ht.nativeElement:ht}}class Ct{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ht){return ht instanceof Me?(this._attachedPortal=ht,this.attachComponentPortal(ht)):ht instanceof Ge?(this._attachedPortal=ht,this.attachTemplatePortal(ht)):this.attachDomPortal&&ht instanceof Ue?(this._attachedPortal=ht,this.attachDomPortal(ht)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ht){this._disposeFn=ht}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class bt extends Ct{constructor(ht,kt,Tt,cn,kn){super(),this.outletElement=ht,this._componentFactoryResolver=kt,this._appRef=Tt,this._defaultInjector=cn,this.attachDomPortal=dn=>{const Kt=dn.element,Ye=this._document.createComment("dom-portal");Kt.parentNode.insertBefore(Ye,Kt),this.outletElement.appendChild(Kt),this._attachedPortal=dn,super.setDisposeFn(()=>{Ye.parentNode&&Ye.parentNode.replaceChild(Kt,Ye)})},this._document=kn}attachComponentPortal(ht){const Tt=(ht.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ht.component);let cn;return ht.viewContainerRef?(cn=ht.viewContainerRef.createComponent(Tt,ht.viewContainerRef.length,ht.injector||ht.viewContainerRef.injector,ht.projectableNodes||void 0),this.setDisposeFn(()=>cn.destroy())):(cn=Tt.create(ht.injector||this._defaultInjector||e.zZn.NULL),this._appRef.attachView(cn.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(cn.hostView),cn.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(cn)),this._attachedPortal=ht,cn}attachTemplatePortal(ht){let kt=ht.viewContainerRef,Tt=kt.createEmbeddedView(ht.templateRef,ht.context,{injector:ht.injector});return Tt.rootNodes.forEach(cn=>this.outletElement.appendChild(cn)),Tt.detectChanges(),this.setDisposeFn(()=>{let cn=kt.indexOf(Tt);-1!==cn&&kt.remove(cn)}),this._attachedPortal=ht,Tt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ht){return ht.hostView.rootNodes[0]}}let vt=(()=>{class ot extends Ct{constructor(kt,Tt,cn){super(),this._componentFactoryResolver=kt,this._viewContainerRef=Tt,this._isInitialized=!1,this.attached=new e.bkB,this.attachDomPortal=kn=>{const dn=kn.element,Kt=this._document.createComment("dom-portal");kn.setAttachedHost(this),dn.parentNode.insertBefore(Kt,dn),this._getRootNode().appendChild(dn),this._attachedPortal=kn,super.setDisposeFn(()=>{Kt.parentNode&&Kt.parentNode.replaceChild(dn,Kt)})},this._document=cn}get portal(){return this._attachedPortal}set portal(kt){this.hasAttached()&&!kt&&!this._isInitialized||(this.hasAttached()&&super.detach(),kt&&super.attach(kt),this._attachedPortal=kt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(kt){kt.setAttachedHost(this);const Tt=null!=kt.viewContainerRef?kt.viewContainerRef:this._viewContainerRef,kn=(kt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(kt.component),dn=Tt.createComponent(kn,Tt.length,kt.injector||Tt.injector,kt.projectableNodes||void 0);return Tt!==this._viewContainerRef&&this._getRootNode().appendChild(dn.hostView.rootNodes[0]),super.setDisposeFn(()=>dn.destroy()),this._attachedPortal=kt,this._attachedRef=dn,this.attached.emit(dn),dn}attachTemplatePortal(kt){kt.setAttachedHost(this);const Tt=this._viewContainerRef.createEmbeddedView(kt.templateRef,kt.context,{injector:kt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=kt,this._attachedRef=Tt,this.attached.emit(Tt),Tt}_getRootNode(){const kt=this._viewContainerRef.element.nativeElement;return kt.nodeType===kt.ELEMENT_NODE?kt:kt.parentNode}static{this.\u0275fac=function(Tt){return new(Tt||ot)(e.rXU(e.OM3),e.rXU(e.c1b),e.rXU(h.qQ))}}static{this.\u0275dir=e.FsC({type:ot,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.Vt3]})}}return ot})(),me=(()=>{class ot{static{this.\u0275fac=function(Tt){return new(Tt||ot)}}static{this.\u0275mod=e.$C({type:ot})}static{this.\u0275inj=e.G2t({})}}return ot})()},7333:(gn,ct,N)=>{N.d(ct,{Gj:()=>Le,R:()=>cn,E9:()=>ue,Xj:()=>Kt});var e=N(4085),h=N(7705),ne=N(1413),Z=N(7673),De=N(1985),we=N(3726),Fe=(N(536),N(5007),N(3236)),Me=N(9974),Ge=N(8750),Ue=N(4360),_t=N(1584);function bt(He,L=Fe.E){return function Ct(He){return(0,Me.N)((L,q)=>{let Be=!1,pt=null,dt=null,Gt=!1;const Cn=()=>{if(dt?.unsubscribe(),dt=null,Be){Be=!1;const sn=pt;pt=null,q.next(sn)}Gt&&q.complete()},jn=()=>{dt=null,Gt&&q.complete()};L.subscribe((0,Ue._)(q,sn=>{Be=!0,pt=sn,dt||(0,Ge.Tg)(He(sn)).subscribe(dt=(0,Ue._)(q,Cn,jn))},()=>{Gt=!0,(!Be||!dt||dt.closed)&&q.complete()}))})}(()=>(0,_t.O)(He,L))}var ft=N(5964),mt=N(6860),tn=N(177),vt=N(8203);let cn=(()=>{class He{constructor(q,Be,pt){this._ngZone=q,this._platform=Be,this._scrolled=new ne.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=pt}register(q){this.scrollContainers.has(q)||this.scrollContainers.set(q,q.elementScrolled().subscribe(()=>this._scrolled.next(q)))}deregister(q){const Be=this.scrollContainers.get(q);Be&&(Be.unsubscribe(),this.scrollContainers.delete(q))}scrolled(q=20){return this._platform.isBrowser?new De.c(Be=>{this._globalSubscription||this._addGlobalListener();const pt=q>0?this._scrolled.pipe(bt(q)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{pt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Z.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((q,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(q,Be){const pt=this.getAncestorScrollContainers(q);return this.scrolled(Be).pipe((0,ft.p)(dt=>!dt||pt.indexOf(dt)>-1))}getAncestorScrollContainers(q){const Be=[];return this.scrollContainers.forEach((pt,dt)=>{this._scrollableContainsElement(dt,q)&&Be.push(dt)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(q,Be){let pt=(0,e.i8)(Be),dt=q.getElementRef().nativeElement;do{if(pt==dt)return!0}while(pt=pt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();return(0,we.R)(q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(Be){return new(Be||He)(h.KVO(h.SKi),h.KVO(mt.OD),h.KVO(tn.qQ,8))}}static{this.\u0275prov=h.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})(),Kt=(()=>{class He{constructor(q,Be,pt){this._platform=q,this._change=new ne.B,this._changeListener=dt=>{this._change.next(dt)},this._document=pt,Be.runOutsideAngular(()=>{if(q.isBrowser){const dt=this._getWindow();dt.addEventListener("resize",this._changeListener),dt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const q=this._getWindow();q.removeEventListener("resize",this._changeListener),q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),q}getViewportRect(){const q=this.getViewportScrollPosition(),{width:Be,height:pt}=this.getViewportSize();return{top:q.top,left:q.left,bottom:q.top+pt,right:q.left+Be,height:pt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const q=this._document,Be=this._getWindow(),pt=q.documentElement,dt=pt.getBoundingClientRect();return{top:-dt.top||q.body.scrollTop||Be.scrollY||pt.scrollTop||0,left:-dt.left||q.body.scrollLeft||Be.scrollX||pt.scrollLeft||0}}change(q=20){return q>0?this._change.pipe(bt(q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:q.innerWidth,height:q.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(Be){return new(Be||He)(h.KVO(mt.OD),h.KVO(h.SKi),h.KVO(tn.qQ,8))}}static{this.\u0275prov=h.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})(),Le=(()=>{class He{static{this.\u0275fac=function(Be){return new(Be||He)}}static{this.\u0275mod=h.$C({type:He})}static{this.\u0275inj=h.G2t({})}}return He})(),ue=(()=>{class He{static{this.\u0275fac=function(Be){return new(Be||He)}}static{this.\u0275mod=h.$C({type:He})}static{this.\u0275inj=h.G2t({imports:[vt.jI,Le,vt.jI,Le]})}}return He})()},177:(gn,ct,N)=>{N.d(ct,{AJ:()=>Zi,B3:()=>Bs,Jj:()=>tr,MD:()=>Qo,N0:()=>Es,OI:()=>Rt,P9:()=>io,QT:()=>ne,Sq:()=>et,T3:()=>Vs,UE:()=>Yr,VF:()=>De,Vy:()=>Aa,XO:()=>ye,YU:()=>Re,Yq:()=>on,ZD:()=>Z,_b:()=>ps,aZ:()=>mt,bT:()=>In,cH:()=>Tt,e1:()=>Ki,fG:()=>Ls,hb:()=>Ct,oV:()=>kt,pM:()=>et,qQ:()=>we,tL:()=>Se,ux:()=>ri,vh:()=>Yi});var e=N(7705);let h=null;function ne(){return h}function Z(P){h||(h=P)}class De{}const we=new e.nKC("DocumentToken");let Ie=(()=>{class P{historyGo(Y){throw new Error("Not implemented")}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return(0,e.WQX)(Fe)},providedIn:"platform"})}}return P})(),Fe=(()=>{class P extends Ie{constructor(){super(),this._doc=(0,e.WQX)(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ne().getBaseHref(this._doc)}onPopState(Y){const te=ne().getGlobalEventTarget(this._doc,"window");return te.addEventListener("popstate",Y,!1),()=>te.removeEventListener("popstate",Y)}onHashChange(Y){const te=ne().getGlobalEventTarget(this._doc,"window");return te.addEventListener("hashchange",Y,!1),()=>te.removeEventListener("hashchange",Y)}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(Y){this._location.pathname=Y}pushState(Y,te,Xe){this._history.pushState(Y,te,Xe)}replaceState(Y,te,Xe){this._history.replaceState(Y,te,Xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Y=0){this._history.go(Y)}getState(){return this._history.state}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return new P},providedIn:"platform"})}}return P})();function Me(P,ae){if(0==P.length)return ae;if(0==ae.length)return P;let Y=0;return P.endsWith("/")&&Y++,ae.startsWith("/")&&Y++,2==Y?P+ae.substring(1):1==Y?P+ae:P+"/"+ae}function Ge(P){const ae=P.match(/#|\?|$/),Y=ae&&ae.index||P.length;return P.slice(0,Y-("/"===P[Y-1]?1:0))+P.slice(Y)}function Ue(P){return P&&"?"!==P[0]?"?"+P:P}let Ct=(()=>{class P{historyGo(Y){throw new Error("Not implemented")}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return(0,e.WQX)(bt)},providedIn:"root"})}}return P})();const _t=new e.nKC("appBaseHref");let bt=(()=>{class P extends Ct{constructor(Y,te){super(),this._platformLocation=Y,this._removeListenerFns=[],this._baseHref=te??this._platformLocation.getBaseHrefFromDOM()??(0,e.WQX)(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Y){this._removeListenerFns.push(this._platformLocation.onPopState(Y),this._platformLocation.onHashChange(Y))}getBaseHref(){return this._baseHref}prepareExternalUrl(Y){return Me(this._baseHref,Y)}path(Y=!1){const te=this._platformLocation.pathname+Ue(this._platformLocation.search),Xe=this._platformLocation.hash;return Xe&&Y?`${te}${Xe}`:te}pushState(Y,te,Xe,zt){const hn=this.prepareExternalUrl(Xe+Ue(zt));this._platformLocation.pushState(Y,te,hn)}replaceState(Y,te,Xe,zt){const hn=this.prepareExternalUrl(Xe+Ue(zt));this._platformLocation.replaceState(Y,te,hn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Y=0){this._platformLocation.historyGo?.(Y)}static{this.\u0275fac=function(te){return new(te||P)(e.KVO(Ie),e.KVO(_t,8))}}static{this.\u0275prov=e.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),mt=(()=>{class P{constructor(Y){this._subject=new e.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Y;const te=this._locationStrategy.getBaseHref();this._basePath=function me(P){if(new RegExp("^(https?:)?//").test(P)){const[,Y]=P.split(/\/\/[^\/]+/);return Y}return P}(Ge(Pt(te))),this._locationStrategy.onPopState(Xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:Xe.state,type:Xe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Y=!1){return this.normalize(this._locationStrategy.path(Y))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Y,te=""){return this.path()==this.normalize(Y+Ue(te))}normalize(Y){return P.stripTrailingSlash(function vt(P,ae){if(!P||!ae.startsWith(P))return ae;const Y=ae.substring(P.length);return""===Y||["/",";","?","#"].includes(Y[0])?Y:ae}(this._basePath,Pt(Y)))}prepareExternalUrl(Y){return Y&&"/"!==Y[0]&&(Y="/"+Y),this._locationStrategy.prepareExternalUrl(Y)}go(Y,te="",Xe=null){this._locationStrategy.pushState(Xe,"",Y,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(Y+Ue(te)),Xe)}replaceState(Y,te="",Xe=null){this._locationStrategy.replaceState(Xe,"",Y,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(Y+Ue(te)),Xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Y=0){this._locationStrategy.historyGo?.(Y)}onUrlChange(Y){return this._urlChangeListeners.push(Y),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(te=>{this._notifyUrlChangeListeners(te.url,te.state)})),()=>{const te=this._urlChangeListeners.indexOf(Y);this._urlChangeListeners.splice(te,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Y="",te){this._urlChangeListeners.forEach(Xe=>Xe(Y,te))}subscribe(Y,te,Xe){return this._subject.subscribe({next:Y,error:te,complete:Xe})}static{this.normalizeQueryParams=Ue}static{this.joinWithSlash=Me}static{this.stripTrailingSlash=Ge}static{this.\u0275fac=function(te){return new(te||P)(e.KVO(Ct))}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return function tn(){return new mt((0,e.KVO)(Ct))}()},providedIn:"root"})}}return P})();function Pt(P){return P.replace(/\/index.html$/,"")}var kt=function(P){return P[P.Format=0]="Format",P[P.Standalone=1]="Standalone",P}(kt||{}),Tt=function(P){return P[P.Narrow=0]="Narrow",P[P.Abbreviated=1]="Abbreviated",P[P.Wide=2]="Wide",P[P.Short=3]="Short",P}(Tt||{}),cn=function(P){return P[P.Short=0]="Short",P[P.Medium=1]="Medium",P[P.Long=2]="Long",P[P.Full=3]="Full",P}(cn||{}),kn=function(P){return P[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P.Infinity=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P}(kn||{});function ye(P,ae,Y){const te=(0,e.H5H)(P),zt=sn([te[e.KH2.DaysFormat],te[e.KH2.DaysStandalone]],ae);return sn(zt,Y)}function Se(P,ae,Y){const te=(0,e.H5H)(P),zt=sn([te[e.KH2.MonthsFormat],te[e.KH2.MonthsStandalone]],ae);return sn(zt,Y)}function je(P,ae){return sn((0,e.H5H)(P)[e.KH2.DateFormat],ae)}function le(P,ae){return sn((0,e.H5H)(P)[e.KH2.TimeFormat],ae)}function de(P,ae){return sn((0,e.H5H)(P)[e.KH2.DateTimeFormat],ae)}function Le(P,ae){const Y=(0,e.H5H)(P),te=Y[e.KH2.NumberSymbols][ae];if(typeof te>"u"){if(ae===kn.CurrencyDecimal)return Y[e.KH2.NumberSymbols][kn.Decimal];if(ae===kn.CurrencyGroup)return Y[e.KH2.NumberSymbols][kn.Group]}return te}function dt(P){if(!P[e.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${P[e.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function sn(P,ae){for(let Y=ae;Y>-1;Y--)if(typeof P[Y]<"u")return P[Y];throw new Error("Locale data API: locale data undefined")}function Vn(P){const[ae,Y]=P.split(":");return{hours:+ae,minutes:+Y}}const ke=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,re={},xe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=function(P){return P[P.Short=0]="Short",P[P.ShortGMT=1]="ShortGMT",P[P.Long=2]="Long",P[P.Extended=3]="Extended",P}(Ve||{}),ut=function(P){return P[P.FullYear=0]="FullYear",P[P.Month=1]="Month",P[P.Date=2]="Date",P[P.Hours=3]="Hours",P[P.Minutes=4]="Minutes",P[P.Seconds=5]="Seconds",P[P.FractionalSeconds=6]="FractionalSeconds",P[P.Day=7]="Day",P}(ut||{}),Ft=function(P){return P[P.DayPeriods=0]="DayPeriods",P[P.Days=1]="Days",P[P.Months=2]="Months",P[P.Eras=3]="Eras",P}(Ft||{});function on(P,ae,Y,te){let Xe=function ve(P){if(Ne(P))return P;if("number"==typeof P&&!isNaN(P))return new Date(P);if("string"==typeof P){if(P=P.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(P)){const[Xe,zt=1,hn=1]=P.split("-").map(Gn=>+Gn);return Ln(Xe,zt-1,hn)}const Y=parseFloat(P);if(!isNaN(P-Y))return new Date(Y);let te;if(te=P.match(ke))return function Ae(P){const ae=new Date(0);let Y=0,te=0;const Xe=P[8]?ae.setUTCFullYear:ae.setFullYear,zt=P[8]?ae.setUTCHours:ae.setHours;P[9]&&(Y=Number(P[9]+P[10]),te=Number(P[9]+P[11])),Xe.call(ae,Number(P[1]),Number(P[2])-1,Number(P[3]));const hn=Number(P[4]||0)-Y,Gn=Number(P[5]||0)-te,Ji=Number(P[6]||0),ji=Math.floor(1e3*parseFloat("0."+(P[7]||0)));return zt.call(ae,hn,Gn,Ji,ji),ae}(te)}const ae=new Date(P);if(!Ne(ae))throw new Error(`Unable to convert "${P}" into a date`);return ae}(P);ae=Qt(Y,ae)||ae;let Gn,hn=[];for(;ae;){if(Gn=xe.exec(ae),!Gn){hn.push(ae);break}{hn=hn.concat(Gn.slice(1));const xi=hn.pop();if(!xi)break;ae=xi}}let Ji=Xe.getTimezoneOffset();te&&(Ji=Hs(te,Ji),Xe=function xt(P,ae,Y){const te=Y?-1:1,Xe=P.getTimezoneOffset();return function rn(P,ae){return(P=new Date(P.getTime())).setMinutes(P.getMinutes()+ae),P}(P,te*(Hs(ae,Xe)-Xe))}(Xe,te,!0));let ji="";return hn.forEach(xi=>{const Zn=function mn(P){if(to[P])return to[P];let ae;switch(P){case"G":case"GG":case"GGG":ae=yn(Ft.Eras,Tt.Abbreviated);break;case"GGGG":ae=yn(Ft.Eras,Tt.Wide);break;case"GGGGG":ae=yn(Ft.Eras,Tt.Narrow);break;case"y":ae=Dt(ut.FullYear,1,0,!1,!0);break;case"yy":ae=Dt(ut.FullYear,2,0,!0,!0);break;case"yyy":ae=Dt(ut.FullYear,3,0,!1,!0);break;case"yyyy":ae=Dt(ut.FullYear,4,0,!1,!0);break;case"Y":ae=Ms(1);break;case"YY":ae=Ms(2,!0);break;case"YYY":ae=Ms(3);break;case"YYYY":ae=Ms(4);break;case"M":case"L":ae=Dt(ut.Month,1,1);break;case"MM":case"LL":ae=Dt(ut.Month,2,1);break;case"MMM":ae=yn(Ft.Months,Tt.Abbreviated);break;case"MMMM":ae=yn(Ft.Months,Tt.Wide);break;case"MMMMM":ae=yn(Ft.Months,Tt.Narrow);break;case"LLL":ae=yn(Ft.Months,Tt.Abbreviated,kt.Standalone);break;case"LLLL":ae=yn(Ft.Months,Tt.Wide,kt.Standalone);break;case"LLLLL":ae=yn(Ft.Months,Tt.Narrow,kt.Standalone);break;case"w":ae=As(1);break;case"ww":ae=As(2);break;case"W":ae=As(1,!0);break;case"d":ae=Dt(ut.Date,1);break;case"dd":ae=Dt(ut.Date,2);break;case"c":case"cc":ae=Dt(ut.Day,1);break;case"ccc":ae=yn(Ft.Days,Tt.Abbreviated,kt.Standalone);break;case"cccc":ae=yn(Ft.Days,Tt.Wide,kt.Standalone);break;case"ccccc":ae=yn(Ft.Days,Tt.Narrow,kt.Standalone);break;case"cccccc":ae=yn(Ft.Days,Tt.Short,kt.Standalone);break;case"E":case"EE":case"EEE":ae=yn(Ft.Days,Tt.Abbreviated);break;case"EEEE":ae=yn(Ft.Days,Tt.Wide);break;case"EEEEE":ae=yn(Ft.Days,Tt.Narrow);break;case"EEEEEE":ae=yn(Ft.Days,Tt.Short);break;case"a":case"aa":case"aaa":ae=yn(Ft.DayPeriods,Tt.Abbreviated);break;case"aaaa":ae=yn(Ft.DayPeriods,Tt.Wide);break;case"aaaaa":ae=yn(Ft.DayPeriods,Tt.Narrow);break;case"b":case"bb":case"bbb":ae=yn(Ft.DayPeriods,Tt.Abbreviated,kt.Standalone,!0);break;case"bbbb":ae=yn(Ft.DayPeriods,Tt.Wide,kt.Standalone,!0);break;case"bbbbb":ae=yn(Ft.DayPeriods,Tt.Narrow,kt.Standalone,!0);break;case"B":case"BB":case"BBB":ae=yn(Ft.DayPeriods,Tt.Abbreviated,kt.Format,!0);break;case"BBBB":ae=yn(Ft.DayPeriods,Tt.Wide,kt.Format,!0);break;case"BBBBB":ae=yn(Ft.DayPeriods,Tt.Narrow,kt.Format,!0);break;case"h":ae=Dt(ut.Hours,1,-12);break;case"hh":ae=Dt(ut.Hours,2,-12);break;case"H":ae=Dt(ut.Hours,1);break;case"HH":ae=Dt(ut.Hours,2);break;case"m":ae=Dt(ut.Minutes,1);break;case"mm":ae=Dt(ut.Minutes,2);break;case"s":ae=Dt(ut.Seconds,1);break;case"ss":ae=Dt(ut.Seconds,2);break;case"S":ae=Dt(ut.FractionalSeconds,1);break;case"SS":ae=Dt(ut.FractionalSeconds,2);break;case"SSS":ae=Dt(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ae=di(Ve.Short);break;case"ZZZZZ":ae=di(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ae=di(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ae=di(Ve.Long);break;default:return null}return to[P]=ae,ae}(xi);ji+=Zn?Zn(Xe,Y,Ji):"''"===xi?"'":xi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ji}function Ln(P,ae,Y){const te=new Date(0);return te.setFullYear(P,ae,Y),te.setHours(0,0,0),te}function Qt(P,ae){const Y=function Kt(P){return(0,e.H5H)(P)[e.KH2.LocaleId]}(P);if(re[Y]=re[Y]||{},re[Y][ae])return re[Y][ae];let te="";switch(ae){case"shortDate":te=je(P,cn.Short);break;case"mediumDate":te=je(P,cn.Medium);break;case"longDate":te=je(P,cn.Long);break;case"fullDate":te=je(P,cn.Full);break;case"shortTime":te=le(P,cn.Short);break;case"mediumTime":te=le(P,cn.Medium);break;case"longTime":te=le(P,cn.Long);break;case"fullTime":te=le(P,cn.Full);break;case"short":const Xe=Qt(P,"shortTime"),zt=Qt(P,"shortDate");te=Xt(de(P,cn.Short),[Xe,zt]);break;case"medium":const hn=Qt(P,"mediumTime"),Gn=Qt(P,"mediumDate");te=Xt(de(P,cn.Medium),[hn,Gn]);break;case"long":const Ji=Qt(P,"longTime"),ji=Qt(P,"longDate");te=Xt(de(P,cn.Long),[Ji,ji]);break;case"full":const xi=Qt(P,"fullTime"),Zn=Qt(P,"fullDate");te=Xt(de(P,cn.Full),[xi,Zn])}return te&&(re[Y][ae]=te),te}function Xt(P,ae){return ae&&(P=P.replace(/\{([^}]+)}/g,function(Y,te){return null!=ae&&te in ae?ae[te]:Y})),P}function nt(P,ae,Y="-",te,Xe){let zt="";(P<0||Xe&&P<=0)&&(Xe?P=1-P:(P=-P,zt=Y));let hn=String(P);for(;hn.length<ae;)hn="0"+hn;return te&&(hn=hn.slice(hn.length-ae)),zt+hn}function Dt(P,ae,Y=0,te=!1,Xe=!1){return function(zt,hn){let Gn=function Nn(P,ae){switch(P){case ut.FullYear:return ae.getFullYear();case ut.Month:return ae.getMonth();case ut.Date:return ae.getDate();case ut.Hours:return ae.getHours();case ut.Minutes:return ae.getMinutes();case ut.Seconds:return ae.getSeconds();case ut.FractionalSeconds:return ae.getMilliseconds();case ut.Day:return ae.getDay();default:throw new Error(`Unknown DateType value "${P}".`)}}(P,zt);if((Y>0||Gn>-Y)&&(Gn+=Y),P===ut.Hours)0===Gn&&-12===Y&&(Gn=12);else if(P===ut.FractionalSeconds)return function Mt(P,ae){return nt(P,3).substring(0,ae)}(Gn,ae);const Ji=Le(hn,kn.MinusSign);return nt(Gn,ae,Ji,te,Xe)}}function yn(P,ae,Y=kt.Format,te=!1){return function(Xe,zt){return function $n(P,ae,Y,te,Xe,zt){switch(Y){case Ft.Months:return Se(ae,Xe,te)[P.getMonth()];case Ft.Days:return ye(ae,Xe,te)[P.getDay()];case Ft.DayPeriods:const hn=P.getHours(),Gn=P.getMinutes();if(zt){const ji=function Gt(P){const ae=(0,e.H5H)(P);return dt(ae),(ae[e.KH2.ExtraData][2]||[]).map(te=>"string"==typeof te?Vn(te):[Vn(te[0]),Vn(te[1])])}(ae),xi=function Cn(P,ae,Y){const te=(0,e.H5H)(P);dt(te);const zt=sn([te[e.KH2.ExtraData][0],te[e.KH2.ExtraData][1]],ae)||[];return sn(zt,Y)||[]}(ae,Xe,te),Zn=ji.findIndex(Ii=>{if(Array.isArray(Ii)){const[Gi,Li]=Ii,Yo=hn>=Gi.hours&&Gn>=Gi.minutes,as=hn<Li.hours||hn===Li.hours&&Gn<Li.minutes;if(Gi.hours<Li.hours){if(Yo&&as)return!0}else if(Yo||as)return!0}else if(Ii.hours===hn&&Ii.minutes===Gn)return!0;return!1});if(-1!==Zn)return xi[Zn]}return function Ye(P,ae,Y){const te=(0,e.H5H)(P),zt=sn([te[e.KH2.DayPeriodsFormat],te[e.KH2.DayPeriodsStandalone]],ae);return sn(zt,Y)}(ae,Xe,te)[hn<12?0:1];case Ft.Eras:return function Nt(P,ae){return sn((0,e.H5H)(P)[e.KH2.Eras],ae)}(ae,te)[P.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Y}`)}}(Xe,zt,P,ae,Y,te)}}function di(P){return function(ae,Y,te){const Xe=-1*te,zt=Le(Y,kn.MinusSign),hn=Xe>0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(P){case Ve.Short:return(Xe>=0?"+":"")+nt(hn,2,zt)+nt(Math.abs(Xe%60),2,zt);case Ve.ShortGMT:return"GMT"+(Xe>=0?"+":"")+nt(hn,1,zt);case Ve.Long:return"GMT"+(Xe>=0?"+":"")+nt(hn,2,zt)+":"+nt(Math.abs(Xe%60),2,zt);case Ve.Extended:return 0===te?"Z":(Xe>=0?"+":"")+nt(hn,2,zt)+":"+nt(Math.abs(Xe%60),2,zt);default:throw new Error(`Unknown zone width "${P}"`)}}}const ai=0,Ai=4;function Bi(P){return Ln(P.getFullYear(),P.getMonth(),P.getDate()+(Ai-P.getDay()))}function As(P,ae=!1){return function(Y,te){let Xe;if(ae){const zt=new Date(Y.getFullYear(),Y.getMonth(),1).getDay()-1,hn=Y.getDate();Xe=1+Math.floor((hn+zt)/7)}else{const zt=Bi(Y),hn=function cs(P){const ae=Ln(P,ai,1).getDay();return Ln(P,0,1+(ae<=Ai?Ai:Ai+7)-ae)}(zt.getFullYear()),Gn=zt.getTime()-hn.getTime();Xe=1+Math.round(Gn/6048e5)}return nt(Xe,P,Le(te,kn.MinusSign))}}function Ms(P,ae=!1){return function(Y,te){return nt(Bi(Y).getFullYear(),P,Le(te,kn.MinusSign),ae)}}const to={};function Hs(P,ae){P=P.replace(/:/g,"");const Y=Date.parse("Jan 01, 1970 00:00:00 "+P)/6e4;return isNaN(Y)?ae:Y}function Ne(P){return P instanceof Date&&!isNaN(P.valueOf())}function ps(P,ae){ae=encodeURIComponent(ae);for(const Y of P.split(";")){const te=Y.indexOf("="),[Xe,zt]=-1==te?[Y,""]:[Y.slice(0,te),Y.slice(te+1)];if(Xe.trim()===ae)return decodeURIComponent(zt)}return null}const Ts=/\s+/,ki=[];let Re=(()=>{class P{constructor(Y,te,Xe,zt){this._iterableDiffers=Y,this._keyValueDiffers=te,this._ngEl=Xe,this._renderer=zt,this.initialClasses=ki,this.stateMap=new Map}set klass(Y){this.initialClasses=null!=Y?Y.trim().split(Ts):ki}set ngClass(Y){this.rawClass="string"==typeof Y?Y.trim().split(Ts):Y}ngDoCheck(){for(const te of this.initialClasses)this._updateState(te,!0);const Y=this.rawClass;if(Array.isArray(Y)||Y instanceof Set)for(const te of Y)this._updateState(te,!0);else if(null!=Y)for(const te of Object.keys(Y))this._updateState(te,!!Y[te]);this._applyStateDiff()}_updateState(Y,te){const Xe=this.stateMap.get(Y);void 0!==Xe?(Xe.enabled!==te&&(Xe.changed=!0,Xe.enabled=te),Xe.touched=!0):this.stateMap.set(Y,{enabled:te,changed:!0,touched:!0})}_applyStateDiff(){for(const Y of this.stateMap){const te=Y[0],Xe=Y[1];Xe.changed?(this._toggleClass(te,Xe.enabled),Xe.changed=!1):Xe.touched||(Xe.enabled&&this._toggleClass(te,!1),this.stateMap.delete(te)),Xe.touched=!1}}_toggleClass(Y,te){(Y=Y.trim()).length>0&&Y.split(Ts).forEach(Xe=>{te?this._renderer.addClass(this._ngEl.nativeElement,Xe):this._renderer.removeClass(this._ngEl.nativeElement,Xe)})}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e._q3),e.rXU(e.MKu),e.rXU(e.aKT),e.rXU(e.sFG))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}}return P})(),Rt=(()=>{class P{constructor(Y){this._viewContainerRef=Y,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(Y){return void 0!==Y.ngComponentOutletNgModule||void 0!==Y.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(Y){return void 0!==Y.ngComponentOutlet||void 0!==Y.ngComponentOutletContent||void 0!==Y.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(Y)}ngOnChanges(Y){if(this._needToReCreateComponentInstance(Y)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const te=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(Y)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,e.w6W)(this.ngComponentOutletNgModule,oe(te)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(oe(te)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:te,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const Y of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(Y,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(Y){for(const[te,Xe]of this._inputsUsed)Xe?(Y.setInput(te,this.ngComponentOutletInputs[te]),this._inputsUsed.set(te,!1)):(Y.setInput(te,void 0),this._inputsUsed.delete(te))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[e.OA$]})}}return P})();function oe(P){return P.get(e.Vns).injector}class _e{constructor(ae,Y,te,Xe){this.$implicit=ae,this.ngForOf=Y,this.index=te,this.count=Xe}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 et=(()=>{class P{set ngForOf(Y){this._ngForOf=Y,this._ngForOfDirty=!0}set ngForTrackBy(Y){this._trackByFn=Y}get ngForTrackBy(){return this._trackByFn}constructor(Y,te,Xe){this._viewContainer=Y,this._template=te,this._differs=Xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Y){Y&&(this._template=Y)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Y=this._ngForOf;!this._differ&&Y&&(this._differ=this._differs.find(Y).create(this.ngForTrackBy))}if(this._differ){const Y=this._differ.diff(this._ngForOf);Y&&this._applyChanges(Y)}}_applyChanges(Y){const te=this._viewContainer;Y.forEachOperation((Xe,zt,hn)=>{if(null==Xe.previousIndex)te.createEmbeddedView(this._template,new _e(Xe.item,this._ngForOf,-1,-1),null===hn?void 0:hn);else if(null==hn)te.remove(null===zt?void 0:zt);else if(null!==zt){const Gn=te.get(zt);te.move(Gn,hn),Vt(Gn,Xe)}});for(let Xe=0,zt=te.length;Xe<zt;Xe++){const Gn=te.get(Xe).context;Gn.index=Xe,Gn.count=zt,Gn.ngForOf=this._ngForOf}Y.forEachIdentityChange(Xe=>{Vt(te.get(Xe.currentIndex),Xe)})}static ngTemplateContextGuard(Y,te){return!0}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(e._q3))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return P})();function Vt(P,ae){P.context.$implicit=ae.item}let In=(()=>{class P{constructor(Y,te){this._viewContainer=Y,this._context=new Hn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=te}set ngIf(Y){this._context.$implicit=this._context.ngIf=Y,this._updateView()}set ngIfThen(Y){mi("ngIfThen",Y),this._thenTemplateRef=Y,this._thenViewRef=null,this._updateView()}set ngIfElse(Y){mi("ngIfElse",Y),this._elseTemplateRef=Y,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(Y,te){return!0}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return P})();class Hn{constructor(){this.$implicit=null,this.ngIf=null}}function mi(P,ae){if(ae&&!ae.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,e.Tbb)(ae)}'.`)}class Kn{constructor(ae,Y){this._viewContainerRef=ae,this._templateRef=Y,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ae){ae&&!this._created?this.create():!ae&&this._created&&this.destroy()}}let ri=(()=>{class P{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Y){this._ngSwitch=Y,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Y){this._defaultViews.push(Y)}_matchCase(Y){const te=Y==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),te}_updateDefaultCases(Y){if(this._defaultViews.length>0&&Y!==this._defaultUsed){this._defaultUsed=Y;for(const te of this._defaultViews)te.enforceState(Y)}}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return P})(),Ki=(()=>{class P{constructor(Y,te,Xe){this.ngSwitch=Xe,Xe._addCase(),this._view=new Kn(Y,te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(ri,9))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return P})(),Ls=(()=>{class P{constructor(Y,te,Xe){Xe._addDefault(new Kn(Y,te))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(ri,9))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return P})(),Bs=(()=>{class P{constructor(Y,te,Xe){this._ngEl=Y,this._differs=te,this._renderer=Xe,this._ngStyle=null,this._differ=null}set ngStyle(Y){this._ngStyle=Y,!this._differ&&Y&&(this._differ=this._differs.find(Y).create())}ngDoCheck(){if(this._differ){const Y=this._differ.diff(this._ngStyle);Y&&this._applyChanges(Y)}}_setStyle(Y,te){const[Xe,zt]=Y.split("."),hn=-1===Xe.indexOf("-")?void 0:e.czy.DashCase;null!=te?this._renderer.setStyle(this._ngEl.nativeElement,Xe,zt?`${te}${zt}`:te,hn):this._renderer.removeStyle(this._ngEl.nativeElement,Xe,hn)}_applyChanges(Y){Y.forEachRemovedItem(te=>this._setStyle(te.key,null)),Y.forEachAddedItem(te=>this._setStyle(te.key,te.currentValue)),Y.forEachChangedItem(te=>this._setStyle(te.key,te.currentValue))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.aKT),e.rXU(e.MKu),e.rXU(e.sFG))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return P})(),Vs=(()=>{class P{constructor(Y){this._viewContainerRef=Y,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Y){if(Y.ngTemplateOutlet||Y.ngTemplateOutletInjector){const te=this._viewContainerRef;if(this._viewRef&&te.remove(te.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Xe,ngTemplateOutletContext:zt,ngTemplateOutletInjector:hn}=this;this._viewRef=te.createEmbeddedView(Xe,zt,hn?{injector:hn}:void 0)}else this._viewRef=null}else this._viewRef&&Y.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.OA$]})}}return P})();function wn(P,ae){return new e.wOt(2100,!1)}class Ys{createSubscription(ae,Y){return(0,e.O8t)(()=>ae.subscribe({next:Y,error:te=>{throw te}}))}dispose(ae){(0,e.O8t)(()=>ae.unsubscribe())}}class ms{createSubscription(ae,Y){return ae.then(Y,te=>{throw te})}dispose(ae){}}const mo=new ms,ca=new Ys;let tr=(()=>{class P{constructor(Y){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Y}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Y){return this._obj?Y!==this._obj?(this._dispose(),this.transform(Y)):this._latestValue:(Y&&this._subscribe(Y),this._latestValue)}_subscribe(Y){this._obj=Y,this._strategy=this._selectStrategy(Y),this._subscription=this._strategy.createSubscription(Y,te=>this._updateLatestValue(Y,te))}_selectStrategy(Y){if((0,e.jNT)(Y))return mo;if((0,e.zjR)(Y))return ca;throw wn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Y,te){Y===this._obj&&(this._latestValue=te,this._ref.markForCheck())}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.gRc,16))}}static{this.\u0275pipe=e.EJ8({name:"async",type:P,pure:!1,standalone:!0})}}return P})();const bi=new e.nKC("DATE_PIPE_DEFAULT_TIMEZONE"),ys=new e.nKC("DATE_PIPE_DEFAULT_OPTIONS");let Yi=(()=>{class P{constructor(Y,te,Xe){this.locale=Y,this.defaultTimezone=te,this.defaultOptions=Xe}transform(Y,te,Xe,zt){if(null==Y||""===Y||Y!=Y)return null;try{return on(Y,te??this.defaultOptions?.dateFormat??"mediumDate",zt||this.locale,Xe??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(hn){throw wn()}}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.xe9,16),e.rXU(bi,24),e.rXU(ys,24))}}static{this.\u0275pipe=e.EJ8({name:"date",type:P,pure:!0,standalone:!0})}}return P})(),io=(()=>{class P{transform(Y,te,Xe){if(null==Y)return null;if(!this.supports(Y))throw wn();return Y.slice(te,Xe)}supports(Y){return"string"==typeof Y||Array.isArray(Y)}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275pipe=e.EJ8({name:"slice",type:P,pure:!1,standalone:!0})}}return P})(),Qo=(()=>{class P{static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275mod=e.$C({type:P})}static{this.\u0275inj=e.G2t({})}}return P})();const Zi="browser",nr="server";function Yr(P){return P===Zi}function Aa(P){return P===nr}class Es{}},1626:(gn,ct,N)=>{N.d(ct,{Lr:()=>Ct,Nl:()=>me,Qq:()=>ge,q1:()=>We});var e=N(7705),h=N(7673),ne=N(2806),Z=N(1985),De=N(274),we=N(5964),Ie=N(6354),Oe=N(980),Fe=N(5558),Me=N(177);class Ge{}class Ue{}class Ct{constructor($e){this.normalizedNames=new Map,this.lazyUpdate=null,$e?"string"==typeof $e?this.lazyInit=()=>{this.headers=new Map,$e.split("\n").forEach(it=>{const Zt=it.indexOf(":");if(Zt>0){const nn=it.slice(0,Zt),un=nn.toLowerCase(),Tn=it.slice(Zt+1).trim();this.maybeSetNormalizedName(nn,un),this.headers.has(un)?this.headers.get(un).push(Tn):this.headers.set(un,[Tn])}})}:typeof Headers<"u"&&$e instanceof Headers?(this.headers=new Map,$e.forEach((it,Zt)=>{this.setHeaderEntries(Zt,it)})):this.lazyInit=()=>{this.headers=new Map,Object.entries($e).forEach(([it,Zt])=>{this.setHeaderEntries(it,Zt)})}:this.headers=new Map}has($e){return this.init(),this.headers.has($e.toLowerCase())}get($e){this.init();const it=this.headers.get($e.toLowerCase());return it&&it.length>0?it[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($e){return this.init(),this.headers.get($e.toLowerCase())||null}append($e,it){return this.clone({name:$e,value:it,op:"a"})}set($e,it){return this.clone({name:$e,value:it,op:"s"})}delete($e,it){return this.clone({name:$e,value:it,op:"d"})}maybeSetNormalizedName($e,it){this.normalizedNames.has(it)||this.normalizedNames.set(it,$e)}init(){this.lazyInit&&(this.lazyInit instanceof Ct?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($e=>this.applyUpdate($e)),this.lazyUpdate=null))}copyFrom($e){$e.init(),Array.from($e.headers.keys()).forEach(it=>{this.headers.set(it,$e.headers.get(it)),this.normalizedNames.set(it,$e.normalizedNames.get(it))})}clone($e){const it=new Ct;return it.lazyInit=this.lazyInit&&this.lazyInit instanceof Ct?this.lazyInit:this,it.lazyUpdate=(this.lazyUpdate||[]).concat([$e]),it}applyUpdate($e){const it=$e.name.toLowerCase();switch($e.op){case"a":case"s":let Zt=$e.value;if("string"==typeof Zt&&(Zt=[Zt]),0===Zt.length)return;this.maybeSetNormalizedName($e.name,it);const nn=("a"===$e.op?this.headers.get(it):void 0)||[];nn.push(...Zt),this.headers.set(it,nn);break;case"d":const un=$e.value;if(un){let Tn=this.headers.get(it);if(!Tn)return;Tn=Tn.filter(li=>-1===un.indexOf(li)),0===Tn.length?(this.headers.delete(it),this.normalizedNames.delete(it)):this.headers.set(it,Tn)}else this.headers.delete(it),this.normalizedNames.delete(it)}}setHeaderEntries($e,it){const Zt=(Array.isArray(it)?it:[it]).map(un=>un.toString()),nn=$e.toLowerCase();this.headers.set(nn,Zt),this.maybeSetNormalizedName($e,nn)}forEach($e){this.init(),Array.from(this.normalizedNames.keys()).forEach(it=>$e(this.normalizedNames.get(it),this.headers.get(it)))}}class bt{encodeKey($e){return vt($e)}encodeValue($e){return vt($e)}decodeKey($e){return decodeURIComponent($e)}decodeValue($e){return decodeURIComponent($e)}}const mt=/%(\d[a-f0-9])/gi,tn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vt(Je){return encodeURIComponent(Je).replace(mt,($e,it)=>tn[it]??$e)}function Pt(Je){return`${Je}`}class me{constructor($e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$e.encoder||new bt,$e.fromString){if($e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ft(Je,$e){const it=new Map;return Je.length>0&&Je.replace(/^\?/,"").split("&").forEach(nn=>{const un=nn.indexOf("="),[Tn,li]=-1==un?[$e.decodeKey(nn),""]:[$e.decodeKey(nn.slice(0,un)),$e.decodeValue(nn.slice(un+1))],bn=it.get(Tn)||[];bn.push(li),it.set(Tn,bn)}),it}($e.fromString,this.encoder)}else $e.fromObject?(this.map=new Map,Object.keys($e.fromObject).forEach(it=>{const Zt=$e.fromObject[it],nn=Array.isArray(Zt)?Zt.map(Pt):[Pt(Zt)];this.map.set(it,nn)})):this.map=null}has($e){return this.init(),this.map.has($e)}get($e){this.init();const it=this.map.get($e);return it?it[0]:null}getAll($e){return this.init(),this.map.get($e)||null}keys(){return this.init(),Array.from(this.map.keys())}append($e,it){return this.clone({param:$e,value:it,op:"a"})}appendAll($e){const it=[];return Object.keys($e).forEach(Zt=>{const nn=$e[Zt];Array.isArray(nn)?nn.forEach(un=>{it.push({param:Zt,value:un,op:"a"})}):it.push({param:Zt,value:nn,op:"a"})}),this.clone(it)}set($e,it){return this.clone({param:$e,value:it,op:"s"})}delete($e,it){return this.clone({param:$e,value:it,op:"d"})}toString(){return this.init(),this.keys().map($e=>{const it=this.encoder.encodeKey($e);return this.map.get($e).map(Zt=>it+"="+this.encoder.encodeValue(Zt)).join("&")}).filter($e=>""!==$e).join("&")}clone($e){const it=new me({encoder:this.encoder});return it.cloneFrom=this.cloneFrom||this,it.updates=(this.updates||[]).concat($e),it}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($e=>this.map.set($e,this.cloneFrom.map.get($e))),this.updates.forEach($e=>{switch($e.op){case"a":case"s":const it=("a"===$e.op?this.map.get($e.param):void 0)||[];it.push(Pt($e.value)),this.map.set($e.param,it);break;case"d":if(void 0===$e.value){this.map.delete($e.param);break}{let Zt=this.map.get($e.param)||[];const nn=Zt.indexOf(Pt($e.value));-1!==nn&&Zt.splice(nn,1),Zt.length>0?this.map.set($e.param,Zt):this.map.delete($e.param)}}}),this.cloneFrom=this.updates=null)}}class ot{constructor(){this.map=new Map}set($e,it){return this.map.set($e,it),this}get($e){return this.map.has($e)||this.map.set($e,$e.defaultValue()),this.map.get($e)}delete($e){return this.map.delete($e),this}has($e){return this.map.has($e)}keys(){return this.map.keys()}}function kt(Je){return typeof ArrayBuffer<"u"&&Je instanceof ArrayBuffer}function Tt(Je){return typeof Blob<"u"&&Je instanceof Blob}function cn(Je){return typeof FormData<"u"&&Je instanceof FormData}class dn{constructor($e,it,Zt,nn){let un;if(this.url=it,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$e.toUpperCase(),function ht(Je){switch(Je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||nn?(this.body=void 0!==Zt?Zt:null,un=nn):un=Zt,un&&(this.reportProgress=!!un.reportProgress,this.withCredentials=!!un.withCredentials,un.responseType&&(this.responseType=un.responseType),un.headers&&(this.headers=un.headers),un.context&&(this.context=un.context),un.params&&(this.params=un.params)),this.headers||(this.headers=new Ct),this.context||(this.context=new ot),this.params){const Tn=this.params.toString();if(0===Tn.length)this.urlWithParams=it;else{const li=it.indexOf("?");this.urlWithParams=it+(-1===li?"?":li<it.length-1?"&":"")+Tn}}else this.params=new me,this.urlWithParams=it}serializeBody(){return null===this.body?null:kt(this.body)||Tt(this.body)||cn(this.body)||function kn(Je){return typeof URLSearchParams<"u"&&Je instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof me?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||cn(this.body)?null:Tt(this.body)?this.body.type||null:kt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone($e={}){const it=$e.method||this.method,Zt=$e.url||this.url,nn=$e.responseType||this.responseType,un=void 0!==$e.body?$e.body:this.body,Tn=void 0!==$e.withCredentials?$e.withCredentials:this.withCredentials,li=void 0!==$e.reportProgress?$e.reportProgress:this.reportProgress;let bn=$e.headers||this.headers,Mi=$e.params||this.params;const Ps=$e.context??this.context;return void 0!==$e.setHeaders&&(bn=Object.keys($e.setHeaders).reduce((bs,ds)=>bs.set(ds,$e.setHeaders[ds]),bn)),$e.setParams&&(Mi=Object.keys($e.setParams).reduce((bs,ds)=>bs.set(ds,$e.setParams[ds]),Mi)),new dn(it,Zt,un,{params:Mi,headers:bn,context:Ps,reportProgress:li,responseType:nn,withCredentials:Tn})}}var Kt=function(Je){return Je[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je}(Kt||{});class Ye{constructor($e,it=200,Zt="OK"){this.headers=$e.headers||new Ct,this.status=void 0!==$e.status?$e.status:it,this.statusText=$e.statusText||Zt,this.url=$e.url||null,this.ok=this.status>=200&&this.status<300}}class ye extends Ye{constructor($e={}){super($e),this.type=Kt.ResponseHeader}clone($e={}){return new ye({headers:$e.headers||this.headers,status:void 0!==$e.status?$e.status:this.status,statusText:$e.statusText||this.statusText,url:$e.url||this.url||void 0})}}class Se extends Ye{constructor($e={}){super($e),this.type=Kt.Response,this.body=void 0!==$e.body?$e.body:null}clone($e={}){return new Se({body:void 0!==$e.body?$e.body:this.body,headers:$e.headers||this.headers,status:void 0!==$e.status?$e.status:this.status,statusText:$e.statusText||this.statusText,url:$e.url||this.url||void 0})}}class Nt extends Ye{constructor($e){super($e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$e.url||"(unknown url)"}`:`Http failure response for ${$e.url||"(unknown url)"}: ${$e.status} ${$e.statusText}`,this.error=$e.error||null}}function K(Je,$e){return{body:$e,headers:Je.headers,context:Je.context,observe:Je.observe,params:Je.params,reportProgress:Je.reportProgress,responseType:Je.responseType,withCredentials:Je.withCredentials}}let ge=(()=>{class Je{constructor(it){this.handler=it}request(it,Zt,nn={}){let un;if(it instanceof dn)un=it;else{let bn,Mi;bn=nn.headers instanceof Ct?nn.headers:new Ct(nn.headers),nn.params&&(Mi=nn.params instanceof me?nn.params:new me({fromObject:nn.params})),un=new dn(it,Zt,void 0!==nn.body?nn.body:null,{headers:bn,context:nn.context,params:Mi,reportProgress:nn.reportProgress,responseType:nn.responseType||"json",withCredentials:nn.withCredentials})}const Tn=(0,h.of)(un).pipe((0,De.H)(bn=>this.handler.handle(bn)));if(it instanceof dn||"events"===nn.observe)return Tn;const li=Tn.pipe((0,we.p)(bn=>bn instanceof Se));switch(nn.observe||"body"){case"body":switch(un.responseType){case"arraybuffer":return li.pipe((0,Ie.T)(bn=>{if(null!==bn.body&&!(bn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return bn.body}));case"blob":return li.pipe((0,Ie.T)(bn=>{if(null!==bn.body&&!(bn.body instanceof Blob))throw new Error("Response is not a Blob.");return bn.body}));case"text":return li.pipe((0,Ie.T)(bn=>{if(null!==bn.body&&"string"!=typeof bn.body)throw new Error("Response is not a string.");return bn.body}));default:return li.pipe((0,Ie.T)(bn=>bn.body))}case"response":return li;default:throw new Error(`Unreachable: unhandled observe type ${nn.observe}}`)}}delete(it,Zt={}){return this.request("DELETE",it,Zt)}get(it,Zt={}){return this.request("GET",it,Zt)}head(it,Zt={}){return this.request("HEAD",it,Zt)}jsonp(it,Zt){return this.request("JSONP",it,{params:(new me).append(Zt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(it,Zt={}){return this.request("OPTIONS",it,Zt)}patch(it,Zt,nn={}){return this.request("PATCH",it,K(nn,Zt))}post(it,Zt,nn={}){return this.request("POST",it,K(nn,Zt))}put(it,Zt,nn={}){return this.request("PUT",it,K(nn,Zt))}static{this.\u0275fac=function(Zt){return new(Zt||Je)(e.KVO(Ge))}}static{this.\u0275prov=e.jDH({token:Je,factory:Je.\u0275fac})}}return Je})();function q(Je,$e){return $e(Je)}function Be(Je,$e){return(it,Zt)=>$e.intercept(it,{handle:nn=>Je(nn,Zt)})}const dt=new e.nKC(""),Gt=new e.nKC(""),Cn=new e.nKC("");function jn(){let Je=null;return($e,it)=>{null===Je&&(Je=((0,e.WQX)(dt,{optional:!0})??[]).reduceRight(Be,q));const Zt=(0,e.WQX)(e.$K3),nn=Zt.add();return Je($e,it).pipe((0,Oe.j)(()=>Zt.remove(nn)))}}let sn=(()=>{class Je extends Ge{constructor(it,Zt){super(),this.backend=it,this.injector=Zt,this.chain=null,this.pendingTasks=(0,e.WQX)(e.$K3)}handle(it){if(null===this.chain){const nn=Array.from(new Set([...this.injector.get(Gt),...this.injector.get(Cn,[])]));this.chain=nn.reduceRight((un,Tn)=>function pt(Je,$e,it){return(Zt,nn)=>it.runInContext(()=>$e(Zt,un=>Je(un,nn)))}(un,Tn,this.injector),q)}const Zt=this.pendingTasks.add();return this.chain(it,nn=>this.backend.handle(nn)).pipe((0,Oe.j)(()=>this.pendingTasks.remove(Zt)))}static{this.\u0275fac=function(Zt){return new(Zt||Je)(e.KVO(Ue),e.KVO(e.uvJ))}}static{this.\u0275prov=e.jDH({token:Je,factory:Je.\u0275fac})}}return Je})();const Ln=/^\)\]\}',?\n/;let Xt=(()=>{class Je{constructor(it){this.xhrFactory=it}handle(it){if("JSONP"===it.method)throw new e.wOt(-2800,!1);const Zt=this.xhrFactory;return(Zt.\u0275loadImpl?(0,ne.H)(Zt.\u0275loadImpl()):(0,h.of)(null)).pipe((0,Fe.n)(()=>new Z.c(un=>{const Tn=Zt.build();if(Tn.open(it.method,it.urlWithParams),it.withCredentials&&(Tn.withCredentials=!0),it.headers.forEach((ki,Re)=>Tn.setRequestHeader(ki,Re.join(","))),it.headers.has("Accept")||Tn.setRequestHeader("Accept","application/json, text/plain, */*"),!it.headers.has("Content-Type")){const ki=it.detectContentTypeHeader();null!==ki&&Tn.setRequestHeader("Content-Type",ki)}if(it.responseType){const ki=it.responseType.toLowerCase();Tn.responseType="json"!==ki?ki:"text"}const li=it.serializeBody();let bn=null;const Mi=()=>{if(null!==bn)return bn;const ki=Tn.statusText||"OK",Re=new Ct(Tn.getAllResponseHeaders()),Rt=function Qt(Je){return"responseURL"in Je&&Je.responseURL?Je.responseURL:/^X-Request-URL:/m.test(Je.getAllResponseHeaders())?Je.getResponseHeader("X-Request-URL"):null}(Tn)||it.url;return bn=new ye({headers:Re,status:Tn.status,statusText:ki,url:Rt}),bn},Ps=()=>{let{headers:ki,status:Re,statusText:Rt,url:oe}=Mi(),_e=null;204!==Re&&(_e=typeof Tn.response>"u"?Tn.responseText:Tn.response),0===Re&&(Re=_e?200:0);let et=Re>=200&&Re<300;if("json"===it.responseType&&"string"==typeof _e){const Vt=_e;_e=_e.replace(Ln,"");try{_e=""!==_e?JSON.parse(_e):null}catch(At){_e=Vt,et&&(et=!1,_e={error:At,text:_e})}}et?(un.next(new Se({body:_e,headers:ki,status:Re,statusText:Rt,url:oe||void 0})),un.complete()):un.error(new Nt({error:_e,headers:ki,status:Re,statusText:Rt,url:oe||void 0}))},bs=ki=>{const{url:Re}=Mi(),Rt=new Nt({error:ki,status:Tn.status||0,statusText:Tn.statusText||"Unknown Error",url:Re||void 0});un.error(Rt)};let ds=!1;const ps=ki=>{ds||(un.next(Mi()),ds=!0);let Re={type:Kt.DownloadProgress,loaded:ki.loaded};ki.lengthComputable&&(Re.total=ki.total),"text"===it.responseType&&Tn.responseText&&(Re.partialText=Tn.responseText),un.next(Re)},Ts=ki=>{let Re={type:Kt.UploadProgress,loaded:ki.loaded};ki.lengthComputable&&(Re.total=ki.total),un.next(Re)};return Tn.addEventListener("load",Ps),Tn.addEventListener("error",bs),Tn.addEventListener("timeout",bs),Tn.addEventListener("abort",bs),it.reportProgress&&(Tn.addEventListener("progress",ps),null!==li&&Tn.upload&&Tn.upload.addEventListener("progress",Ts)),Tn.send(li),un.next({type:Kt.Sent}),()=>{Tn.removeEventListener("error",bs),Tn.removeEventListener("abort",bs),Tn.removeEventListener("load",Ps),Tn.removeEventListener("timeout",bs),it.reportProgress&&(Tn.removeEventListener("progress",ps),null!==li&&Tn.upload&&Tn.upload.removeEventListener("progress",Ts)),Tn.readyState!==Tn.DONE&&Tn.abort()}})))}static{this.\u0275fac=function(Zt){return new(Zt||Je)(e.KVO(Me.N0))}}static{this.\u0275prov=e.jDH({token:Je,factory:Je.\u0275fac})}}return Je})();const nt=new e.nKC("XSRF_ENABLED"),Dt=new e.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),yn=new e.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class $n{}let di=(()=>{class Je{constructor(it,Zt,nn){this.doc=it,this.platform=Zt,this.cookieName=nn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const it=this.doc.cookie||"";return it!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Me._b)(it,this.cookieName),this.lastCookieString=it),this.lastToken}static{this.\u0275fac=function(Zt){return new(Zt||Je)(e.KVO(Me.qQ),e.KVO(e.Agw),e.KVO(Dt))}}static{this.\u0275prov=e.jDH({token:Je,factory:Je.\u0275fac})}}return Je})();function ai(Je,$e){const it=Je.url.toLowerCase();if(!(0,e.WQX)(nt)||"GET"===Je.method||"HEAD"===Je.method||it.startsWith("http://")||it.startsWith("https://"))return $e(Je);const Zt=(0,e.WQX)($n).getToken(),nn=(0,e.WQX)(yn);return null!=Zt&&!Je.headers.has(nn)&&(Je=Je.clone({headers:Je.headers.set(nn,Zt)})),$e(Je)}var cs=function(Je){return Je[Je.Interceptors=0]="Interceptors",Je[Je.LegacyInterceptors=1]="LegacyInterceptors",Je[Je.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Je[Je.NoXsrfProtection=3]="NoXsrfProtection",Je[Je.JsonpSupport=4]="JsonpSupport",Je[Je.RequestsMadeViaParent=5]="RequestsMadeViaParent",Je[Je.Fetch=6]="Fetch",Je}(cs||{});function Bi(Je,$e){return{\u0275kind:Je,\u0275providers:$e}}function As(...Je){const $e=[ge,Xt,sn,{provide:Ge,useExisting:sn},{provide:Ue,useExisting:Xt},{provide:Gt,useValue:ai,multi:!0},{provide:nt,useValue:!0},{provide:$n,useClass:di}];for(const it of Je)$e.push(...it.\u0275providers);return(0,e.EmA)($e)}const to=new e.nKC("LEGACY_INTERCEPTOR_FN");let We=(()=>{class Je{static{this.\u0275fac=function(Zt){return new(Zt||Je)}}static{this.\u0275mod=e.$C({type:Je})}static{this.\u0275inj=e.G2t({providers:[As(Bi(cs.LegacyInterceptors,[{provide:to,useFactory:jn},{provide:Gt,useExisting:to,multi:!0}]))]})}}return Je})()},7705:(gn,ct,N)=>{N.d(ct,{$C:()=>go,$K3:()=>G1,$MX:()=>Et,AVh:()=>Jm,Af3:()=>Wo,Agw:()=>Uh,B4B:()=>Ud,BIS:()=>cm,BMQ:()=>Pm,C4Q:()=>tp,C5r:()=>D1,Co$:()=>Fb,DNE:()=>nv,EBC:()=>e_,EFF:()=>Vv,EJ8:()=>zs,EmA:()=>Pu,FRM:()=>xi,FS9:()=>Xm,FsC:()=>To,G2t:()=>Cn,GBs:()=>_1,GFd:()=>U_,H3F:()=>j1,H5H:()=>sg,H8p:()=>uu,HbH:()=>Rv,Hbi:()=>fT,JRh:()=>tg,JZv:()=>Xt,Jv_:()=>Nb,KH2:()=>uf,KVO:()=>qe,Kcf:()=>Mf,L39:()=>MT,LfX:()=>sn,MKu:()=>Pg,Mr5:()=>ng,Mz_:()=>Gp,NAR:()=>mv,NYb:()=>jM,Njj:()=>Dr,O8t:()=>zt,OA$:()=>Zn,OM3:()=>s,Ocv:()=>mM,Ol2:()=>Pb,PLl:()=>bp,QTQ:()=>m_,Ql9:()=>vM,QuC:()=>Eo,R7$:()=>f_,RV6:()=>lv,Rfq:()=>bt,RxE:()=>Bn,SKi:()=>Za,SdG:()=>gv,SpI:()=>Hp,TL$:()=>dp,Tbb:()=>Ue,UyX:()=>f,VBU:()=>ms,Vns:()=>Ch,Vt3:()=>Fm,WHO:()=>Y1,WPN:()=>rl,WQX:()=>Ke,XpG:()=>pv,Xx1:()=>xs,Y8G:()=>$m,Z63:()=>Wl,ZF7:()=>au,_9s:()=>G,_q3:()=>Ag,a0P:()=>ET,aKT:()=>m,aNF:()=>Lb,abz:()=>Lf,bIt:()=>qm,bMT:()=>e1,bVm:()=>jp,bc$:()=>lm,bkB:()=>Xd,brH:()=>n1,c1b:()=>Zp,cWb:()=>Tf,czy:()=>wo,e01:()=>z1,e5t:()=>a,eBV:()=>No,eq3:()=>Hb,eu8:()=>Ym,fpN:()=>hT,gRc:()=>ZM,gXe:()=>Tn,giA:()=>q1,h9k:()=>xl,i5U:()=>t1,ii3:()=>s1,j41:()=>Lp,jDH:()=>dt,jNT:()=>zm,joV:()=>Tc,k0s:()=>Bp,kS0:()=>S,kdw:()=>cc,lNU:()=>Pt,l_i:()=>Yb,lsd:()=>b1,mGM:()=>g1,mq5:()=>sb,n$t:()=>sd,nI1:()=>Jb,nKC:()=>Dt,nM4:()=>V_,naY:()=>QM,npT:()=>Qa,nrm:()=>Hm,o8S:()=>mf,oH4:()=>Z1,osQ:()=>x,pXf:()=>Ib,plB:()=>yg,qSk:()=>bl,qex:()=>Vp,rOR:()=>Wp,rXU:()=>Kh,rcV:()=>nd,s1E:()=>qb,sFG:()=>fe,sMw:()=>zb,sZ2:()=>fh,sdS:()=>ov,tSv:()=>Jg,uvJ:()=>od,vPA:()=>nl,w6W:()=>rD,wOt:()=>me,wni:()=>v1,xGo:()=>ac,xc7:()=>Zm,xe9:()=>em,zZn:()=>Dd,zcH:()=>Xu,zjR:()=>cv,zvX:()=>ig});var e=N(1413),h=N(8359),ne=N(1985),Z=N(7786),De=N(4412),we=N(7673),Ie=N(7647),Oe=N(5558),Fe=N(3294);function Me(t){for(let n in t)if(t[n]===Me)return n;throw Error("Could not find renamed property on target object.")}function Ge(t,n){for(const i in n)n.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=n[i])}function Ue(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ue).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const i=n.indexOf("\n");return-1===i?n:n.substring(0,i)}function Ct(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const _t=Me({__forward_ref__:Me});function bt(t){return t.__forward_ref__=bt,t.toString=function(){return Ue(this())},t}function ft(t){return mt(t)?t():t}function mt(t){return"function"==typeof t&&t.hasOwnProperty(_t)&&t.__forward_ref__===bt}function tn(t){return t&&!!t.\u0275providers}const Pt="https://g.co/ng/security#xss";class me extends Error{constructor(n,i){super(function at(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,i)),this.code=n}}function ot(t){return"string"==typeof t?t:null==t?"":String(t)}function kn(t,n){throw new me(-201,!1)}function L(t,n,i,o){throw new Error(`ASSERTION ERROR: ${t}`+(null==o?"":` [Expected=> ${i} ${o} ${n} <=Actual]`))}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Cn(t){return{providers:t.providers||[],imports:t.imports||[]}}function jn(t){return Vn(t,It)||Vn(t,re)}function sn(t){return null!==jn(t)}function Vn(t,n){return t.hasOwnProperty(n)?t[n]:null}function yi(t){return t&&(t.hasOwnProperty(ke)||t.hasOwnProperty(xe))?t[ke]:null}const It=Me({\u0275prov:Me}),ke=Me({\u0275inj:Me}),re=Me({ngInjectableDef:Me}),xe=Me({ngInjectorDef:Me});var Ve=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ve||{});let ut;function Ft(){return ut}function on(t){const n=ut;return ut=t,n}function Ln(t,n,i){const o=jn(t);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:i&Ve.Optional?null:void 0!==n?n:void kn(Ue(t))}const Xt=globalThis;class Dt{constructor(n,i){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=dt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const mn={},Hs="__NG_DI_FLAG__",rn="ngTempTokenPath",ve=/\n/gm,Ne="__source";let We;function fn(t){const n=We;return We=t,n}function gt(t,n=Ve.Default){if(void 0===We)throw new me(-203,!1);return null===We?Ln(t,void 0,n):We.get(t,n&Ve.Optional?null:void 0,n)}function qe(t,n=Ve.Default){return(Ft()||gt)(ft(t),n)}function Ke(t,n=Ve.Default){return qe(t,jt(n))}function jt(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function pn(t){const n=[];for(let i=0;i<t.length;i++){const o=ft(t[i]);if(Array.isArray(o)){if(0===o.length)throw new me(900,!1);let d,g=Ve.Default;for(let T=0;T<o.length;T++){const R=o[T],B=$e(R);"number"==typeof B?-1===B?d=R.token:g|=B:d=R}n.push(qe(d,g))}else n.push(qe(o))}return n}function Je(t,n){return t[Hs]=n,t.prototype[Hs]=n,t}function $e(t){return t[Hs]}function nn(t){return{toString:t}.toString()}var un=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(un||{}),Tn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Tn||{});const li={},bn=[],Mi=Me({\u0275cmp:Me}),Ps=Me({\u0275dir:Me}),bs=Me({\u0275pipe:Me}),ds=Me({\u0275mod:Me}),ps=Me({\u0275fac:Me}),Ts=Me({__NG_ELEMENT_ID__:Me}),ki=Me({__NG_ENV_ID__:Me});function Re(t,n,i){let o=t.length;for(;;){const d=t.indexOf(n,i);if(-1===d)return d;if(0===d||t.charCodeAt(d-1)<=32){const g=n.length;if(d+g===o||t.charCodeAt(d+g)<=32)return d}i=d+1}}function Rt(t,n,i){let o=0;for(;o<i.length;){const d=i[o];if("number"==typeof d){if(0!==d)break;o++;const g=i[o++],T=i[o++],R=i[o++];t.setAttribute(n,T,R,g)}else{const g=d,T=i[++o];_e(g)?t.setProperty(n,g,T):t.setAttribute(n,g,T),o++}}return o}function oe(t){return 3===t||4===t||6===t}function _e(t){return 64===t.charCodeAt(0)}function et(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let i=-1;for(let o=0;o<n.length;o++){const d=n[o];"number"==typeof d?i=d:0===i||Vt(t,i,d,null,-1===i||2===i?n[++o]:null)}}return t}function Vt(t,n,i,o,d){let g=0,T=t.length;if(-1===n)T=-1;else for(;g<t.length;){const R=t[g++];if("number"==typeof R){if(R===n){T=-1;break}if(R>n){T=g-1;break}}}for(;g<t.length;){const R=t[g];if("number"==typeof R)break;if(R===i){if(null===o)return void(null!==d&&(t[g+1]=d));if(o===t[g+1])return void(t[g+2]=d)}g++,null!==o&&g++,null!==d&&g++}-1!==T&&(t.splice(T,0,n),g=T+1),t.splice(g++,0,i),null!==o&&t.splice(g++,0,o),null!==d&&t.splice(g++,0,d)}const At="ng-template";function In(t,n,i){let o=0,d=!0;for(;o<t.length;){let g=t[o++];if("string"==typeof g&&d){const T=t[o++];if(i&&"class"===g&&-1!==Re(T.toLowerCase(),n,0))return!0}else{if(1===g){for(;o<t.length&&"string"==typeof(g=t[o++]);)if(g.toLowerCase()===n)return!0;return!1}"number"==typeof g&&(d=!1)}}return!1}function Hn(t){return 4===t.type&&t.value!==At}function mi(t,n,i){return n===(4!==t.type||i?t.value:At)}function Kn(t,n,i){let o=4;const d=t.attrs||[],g=function er(t){for(let n=0;n<t.length;n++)if(oe(t[n]))return n;return t.length}(d);let T=!1;for(let R=0;R<n.length;R++){const B=n[R];if("number"!=typeof B){if(!T)if(4&o){if(o=2|1&o,""!==B&&!mi(t,B,i)||""===B&&1===n.length){if(ri(o))return!1;T=!0}}else{const W=8&o?B:n[++R];if(8&o&&null!==t.attrs){if(!In(t.attrs,W,i)){if(ri(o))return!1;T=!0}continue}const ze=Ki(8&o?"class":B,d,Hn(t),i);if(-1===ze){if(ri(o))return!1;T=!0;continue}if(""!==W){let wt;wt=ze>g?"":d[ze+1].toLowerCase();const Bt=8&o?wt:null;if(Bt&&-1!==Re(Bt,W,0)||2&o&&W!==wt){if(ri(o))return!1;T=!0}}}}else{if(!T&&!ri(o)&&!ri(B))return!1;if(T&&ri(B))continue;T=!1,o=B|1&o}}return ri(o)||T}function ri(t){return 0==(1&t)}function Ki(t,n,i,o){if(null===n)return-1;let d=0;if(o||!i){let g=!1;for(;d<n.length;){const T=n[d];if(T===t)return d;if(3===T||6===T)g=!0;else{if(1===T||2===T){let R=n[++d];for(;"string"==typeof R;)R=n[++d];continue}if(4===T)break;if(0===T){d+=4;continue}}d+=g?1:2}return-1}return function os(t,n){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const o=t[i];if("number"==typeof o)return-1;if(o===n)return i;i++}return-1}(n,t)}function Ls(t,n,i=!1){for(let o=0;o<n.length;o++)if(Kn(t,n[o],i))return!0;return!1}function Bs(t,n){e:for(let i=0;i<n.length;i++){const o=n[i];if(t.length===o.length){for(let d=0;d<t.length;d++)if(t[d]!==o[d])continue e;return!0}}return!1}function Vs(t,n){return t?":not("+n.trim()+")":n}function Ja(t){let n=t[0],i=1,o=2,d="",g=!1;for(;i<t.length;){let T=t[i];if("string"==typeof T)if(2&o){const R=t[++i];d+="["+T+(R.length>0?'="'+R+'"':"")+"]"}else 8&o?d+="."+T:4&o&&(d+=" "+T);else""!==d&&!ri(T)&&(n+=Vs(g,d),d=""),o=T,g=g||!ri(o);i++}return""!==d&&(n+=Vs(g,d)),n}function ms(t){return nn(()=>{const n=xr(t),i={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===un.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Tn.Emulated,styles:t.styles||bn,_:null,schemas:t.schemas||null,tView:null,id:""};Rs(i);const o=t.dependencies;return i.directiveDefs=no(o,!1),i.pipeDefs=no(o,!0),i.id=function Hr(t){let n=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const d of i)n=Math.imul(31,n)+d.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(i),i})}function ca(t){return bi(t)||ys(t)}function tr(t){return null!==t}function go(t){return nn(()=>({type:t.type,bootstrap:t.bootstrap||bn,declarations:t.declarations||bn,imports:t.imports||bn,exports:t.exports||bn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ko(t,n){if(null==t)return li;const i={};for(const o in t)if(t.hasOwnProperty(o)){let d=t[o],g=d;Array.isArray(d)&&(g=d[1],d=d[0]),i[d]=o,n&&(n[d]=g)}return i}function To(t){return nn(()=>{const n=xr(t);return Rs(n),n})}function zs(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function bi(t){return t[Mi]||null}function ys(t){return t[Ps]||null}function Yi(t){return t[bs]||null}function Eo(t){const n=bi(t)||ys(t)||Yi(t);return null!==n&&n.standalone}function Cs(t,n){const i=t[ds]||null;if(!i&&!0===n)throw new Error(`Type ${Ue(t)} does not have '\u0275mod' property.`);return i}function xr(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||li,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||bn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ko(t.inputs,n),outputs:Ko(t.outputs)}}function Rs(t){t.features?.forEach(n=>n(t))}function no(t,n){if(!t)return null;const i=n?Yi:ca;return()=>("function"==typeof t?t():t).map(o=>i(o)).filter(tr)}const Vi=0,Rn=1,ei=2,Qi=3,qs=4,io=5,so=6,Qo=7,Zi=8,nr=9,oo=10,ti=11,Yr=12,Aa=13,Ir=14,Ri=15,zr=16,rs=17,So=18,Zo=19,Or=20,Es=21,_o=22,ur=23,da=24,gi=25,Rr=1,hr=2,ro=7,Bo=9,Ss=11;function Ns(t){return Array.isArray(t)&&"object"==typeof t[Rr]}function zi(t){return Array.isArray(t)&&!0===t[Rr]}function fr(t){return 0!=(4&t.flags)}function Vo(t){return t.componentOffset>-1}function Xr(t){return 1==(1&t.flags)}function Ti(t){return!!t.template}function ua(t){return 0!=(512&t[ei])}function jo(t,n){return t.hasOwnProperty(ps)?t[ps]:null}const Go=Symbol("SIGNAL");function Nl(t,n){return(null===t||"object"!=typeof t)&&Object.is(t,n)}let vo=null,Wr=!1;function $o(t){const n=vo;return vo=t,n}const Pa={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function fl(t){if(Wr)throw new Error("");if(null===vo)return;const n=vo.nextProducerIndex++;Ei(vo),n<vo.producerNode.length&&vo.producerNode[n]!==t&&pa(vo)&&rr(vo.producerNode[n],vo.producerIndexOfThis[n]),vo.producerNode[n]!==t&&(vo.producerNode[n]=t,vo.producerIndexOfThis[n]=pa(vo)?pl(t,vo,n):0),vo.producerLastReadVersion[n]=t.version}function or(t){if(!pa(t)||t.dirty){if(!t.producerMustRecompute(t)&&!Ta(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function La(t){if(void 0===t.liveConsumerNode)return;const n=Wr;Wr=!0;try{for(const i of t.liveConsumerNode)i.dirty||fa(i)}finally{Wr=n}}function ko(){return!1!==vo?.consumerAllowSignalWrites}function fa(t){t.dirty=!0,La(t),t.consumerMarkedDirty?.(t)}function Uo(t){return t&&(t.nextProducerIndex=0),$o(t)}function Fr(t,n){if($o(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(pa(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)rr(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ta(t){Ei(t);for(let n=0;n<t.producerNode.length;n++){const i=t.producerNode[n],o=t.producerLastReadVersion[n];if(o!==i.version||(or(i),o!==i.version))return!0}return!1}function Ho(t){if(Ei(t),pa(t))for(let n=0;n<t.producerNode.length;n++)rr(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function pl(t,n,i){if(Kr(t),Ei(t),0===t.liveConsumerNode.length)for(let o=0;o<t.producerNode.length;o++)t.producerIndexOfThis[o]=pl(t.producerNode[o],t,o);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(n)-1}function rr(t,n){if(Kr(t),Ei(t),1===t.liveConsumerNode.length)for(let o=0;o<t.producerNode.length;o++)rr(t.producerNode[o],t.producerIndexOfThis[o]);const i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const o=t.liveConsumerIndexOfThis[n],d=t.liveConsumerNode[n];Ei(d),d.producerIndexOfThis[o]=n}}function pa(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ei(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Kr(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}let Al=function Jl(){throw new Error};function Pi(){Al()}let Qr=null;function nl(t,n){const i=Object.create(xo);function o(){return fl(i),i.value}return i.value=t,n?.equal&&(i.equal=n.equal),o.set=ae,o.update=Y,o.mutate=te,o.asReadonly=Xe,o[Go]=i,o}const xo=(()=>({...Pa,equal:Nl,readonlyFn:void 0}))();function P(t){t.version++,La(t),Qr?.()}function ae(t){const n=this[Go];ko()||Pi(),n.equal(n.value,t)||(n.value=t,P(n))}function Y(t){ko()||Pi(),ae.call(this,t(this[Go].value))}function te(t){const n=this[Go];ko()||Pi(),t(n.value),P(n)}function Xe(){const t=this[Go];if(void 0===t.readonlyFn){const n=()=>this();n[Go]=t,t.readonlyFn=n}return t.readonlyFn}function zt(t){const n=$o(null);try{return t()}finally{$o(n)}}const Gn=()=>{},Ji=(()=>({...Pa,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:Gn}))();class xi{constructor(n,i,o){this.previousValue=n,this.currentValue=i,this.firstChange=o}isFirstChange(){return this.firstChange}}function Zn(){return Ii}function Ii(t){return t.type.prototype.ngOnChanges&&(t.setInput=Li),Gi}function Gi(){const t=as(this),n=t?.current;if(n){const i=t.previous;if(i===li)t.previous=n;else for(let o in n)i[o]=n[o];t.current=null,this.ngOnChanges(n)}}function Li(t,n,i,o){const d=this.declaredInputs[i],g=as(t)||function Io(t,n){return t[Yo]=n}(t,{previous:li,current:null}),T=g.current||(g.current={}),R=g.previous,B=R[d];T[d]=new xi(B&&B.currentValue,n,R===li),t[o]=n}Zn.ngInherit=!0;const Yo="__ngSimpleChanges__";function as(t){return t[Yo]||null}const es=function(t,n,i){},zo="svg";function Di(t){for(;Array.isArray(t);)t=t[Vi];return t}function ma(t,n){return Di(n[t])}function ao(t,n){return Di(n[t.index])}function Va(t,n){return t.data[n]}function ea(t,n){return t[n]}function lo(t,n){const i=n[t];return Ns(i)?i:i[Vi]}function Ro(t,n){return null==n?null:t[n]}function ga(t){t[rs]=0}function Ea(t){1024&t[ei]||(t[ei]|=1024,_a(t,1))}function gl(t){1024&t[ei]&&(t[ei]&=-1025,_a(t,-1))}function _a(t,n){let i=t[Qi];if(null===i)return;i[io]+=n;let o=i;for(i=i[Qi];null!==i&&(1===n&&1===o[io]||-1===n&&0===o[io]);)i[io]+=n,o=i,i=i[Qi]}function Ll(t,n){if(256==(256&t[ei]))throw new me(911,!1);null===t[Es]&&(t[Es]=[]),t[Es].push(n)}const Jn={lFrame:Lr(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ka(){return Jn.bindingsEnabled}function Bl(){return null!==Jn.skipHydrationRootTNode}function Jt(){return Jn.lFrame.lView}function ni(){return Jn.lFrame.tView}function No(t){return Jn.lFrame.contextLView=t,t[Zi]}function Dr(t){return Jn.lFrame.contextLView=null,t}function us(){let t=vl();for(;null!==t&&64===t.type;)t=t.parent;return t}function vl(){return Jn.lFrame.currentTNode}function tc(){const t=Jn.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ta(t,n){const i=Jn.lFrame;i.currentTNode=t,i.isParent=n}function xa(){return Jn.lFrame.isParent}function Dc(){Jn.lFrame.isParent=!1}function co(){const t=Jn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function V(){return Jn.lFrame.bindingIndex++}function O(t){const n=Jn.lFrame,i=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,i}function Q(t){Jn.lFrame.inI18n=t}function Te(t,n){const i=Jn.lFrame;i.bindingIndex=i.bindingRootIndex=t,Wt(n)}function Wt(t){Jn.lFrame.currentDirectiveIndex=t}function Ht(t){const n=Jn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Pn(){return Jn.lFrame.currentQueryIndex}function Ci(t){Jn.lFrame.currentQueryIndex=t}function _s(t){const n=t[Rn];return 2===n.type?n.declTNode:1===n.type?t[so]:null}function Ni(t,n,i){if(i&Ve.SkipSelf){let d=n,g=t;for(;!(d=d.parent,null!==d||i&Ve.Host||(d=_s(g),null===d||(g=g[Ir],10&d.type))););if(null===d)return!1;n=d,t=g}const o=Jn.lFrame=Ds();return o.currentTNode=n,o.lView=t,!0}function Mr(t){const n=Ds(),i=t[Rn];Jn.lFrame=n,n.currentTNode=i.firstChild,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex,n.inI18n=!1}function Ds(){const t=Jn.lFrame,n=null===t?null:t.child;return null===n?Lr(t):n}function Lr(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function il(){const t=Jn.lFrame;return Jn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ia=il;function Mc(){const t=il();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Jo(){return Jn.lFrame.selectedIndex}function ja(t){Jn.lFrame.selectedIndex=t}function Gs(){const t=Jn.lFrame;return Va(t.tView,t.selectedIndex)}function bl(){Jn.lFrame.currentNamespace=zo}function Tc(){!function ba(){Jn.lFrame.currentNamespace=null}()}let Ga=!0;function sl(){return Ga}function Zs(t){Ga=t}function $s(t,n){for(let i=n.directiveStart,o=n.directiveEnd;i<o;i++){const g=t.data[i].type.prototype,{ngAfterContentInit:T,ngAfterContentChecked:R,ngAfterViewInit:B,ngAfterViewChecked:W,ngOnDestroy:he}=g;T&&(t.contentHooks??=[]).push(-i,T),R&&((t.contentHooks??=[]).push(i,R),(t.contentCheckHooks??=[]).push(i,R)),B&&(t.viewHooks??=[]).push(-i,B),W&&((t.viewHooks??=[]).push(i,W),(t.viewCheckHooks??=[]).push(i,W)),null!=he&&(t.destroyHooks??=[]).push(i,he)}}function Ia(t,n,i){Ec(t,n,3,i)}function $a(t,n,i,o){(3&t[ei])===i&&Ec(t,n,i,o)}function nc(t,n){let i=t[ei];(3&i)===n&&(i&=8191,i+=1,t[ei]=i)}function Ec(t,n,i,o){const g=o??-1,T=n.length-1;let R=0;for(let B=void 0!==o?65535&t[rs]:0;B<T;B++)if("number"==typeof n[B+1]){if(R=n[B],null!=o&&R>=o)break}else n[B]<0&&(t[rs]+=65536),(R<g||-1==g)&&(Sc(t,i,n,B),t[rs]=(4294901760&t[rs])+B+2),B++}function Js(t,n){es(4,t,n);const i=$o(null);try{n.call(t)}finally{$o(i),es(5,t,n)}}function Sc(t,n,i,o){const d=i[o]<0,g=i[o+1],R=t[d?-i[o]:i[o]];d?t[ei]>>13<t[rs]>>16&&(3&t[ei])===n&&(t[ei]+=8192,Js(R,g)):Js(R,g)}const ol=-1;class yl{constructor(n,i,o){this.factory=n,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=o}}function wl(t){return t!==ol}function Ha(t){return 32767&t}function ic(t,n){let i=function Dl(t){return t>>16}(t),o=n;for(;i>0;)o=o[Ir],i--;return o}let sc=!0;function Ca(t){const n=sc;return sc=t,n}const Gc=255,Br=5;let oc=0;const Xs={};function Ya(t,n){const i=Ic(t,n);if(-1!==i)return i;const o=n[Rn];o.firstCreatePass&&(t.injectorIndex=n.length,vr(o.data,t),vr(n,null),vr(o.blueprint,null));const d=Ra(t,n),g=t.injectorIndex;if(wl(d)){const T=Ha(d),R=ic(d,n),B=R[Rn].data;for(let W=0;W<8;W++)n[g+W]=R[T+W]|B[T+W]}return n[g+8]=d,g}function vr(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ic(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Ra(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,o=null,d=n;for(;null!==d;){if(o=eo(d),null===o)return ol;if(i++,d=d[Ir],-1!==o.injectorIndex)return o.injectorIndex|i<<16}return ol}function $c(t,n,i){!function qo(t,n,i){let o;"string"==typeof i?o=i.charCodeAt(0)||0:i.hasOwnProperty(Ts)&&(o=i[Ts]),null==o&&(o=i[Ts]=oc++);const d=o&Gc;n.data[t+(d>>Br)]|=1<<d}(t,n,i)}function Ml(t,n,i){if(i&Ve.Optional||void 0!==t)return t;kn()}function $l(t,n,i,o){if(i&Ve.Optional&&void 0===o&&(o=null),!(i&(Ve.Self|Ve.Host))){const d=t[nr],g=on(void 0);try{return d?d.get(n,o,i&Ve.Optional):Ln(n,o,i&Ve.Optional)}finally{on(g)}}return Ml(o,0,i)}function Uc(t,n,i,o=Ve.Default,d){if(null!==t){if(2048&n[ei]&&!(o&Ve.Self)){const T=function ud(t,n,i,o,d){let g=t,T=n;for(;null!==g&&null!==T&&2048&T[ei]&&!(512&T[ei]);){const R=Oc(g,T,i,o|Ve.Self,Xs);if(R!==Xs)return R;let B=g.parent;if(!B){const W=T[Or];if(W){const he=W.get(i,Xs,o);if(he!==Xs)return he}B=eo(T),T=T[Ir]}g=B}return d}(t,n,i,o,Xs);if(T!==Xs)return T}const g=Oc(t,n,i,o,Xs);if(g!==Xs)return g}return $l(n,i,o,d)}function Oc(t,n,i,o,d){const g=function Sd(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Ts)?t[Ts]:void 0;return"number"==typeof n?n>=0?n&Gc:Hc:n}(i);if("function"==typeof g){if(!Ni(n,t,o))return o&Ve.Host?Ml(d,0,o):$l(n,i,o,d);try{let T;if(T=g(o),null!=T||o&Ve.Optional)return T;kn()}finally{ia()}}else if("number"==typeof g){let T=null,R=Ic(t,n),B=ol,W=o&Ve.Host?n[Ri][so]:null;for((-1===R||o&Ve.SkipSelf)&&(B=-1===R?Ra(t,n):n[R+8],B!==ol&&kd(o,!1)?(T=n[Rn],R=Ha(B),n=ic(B,n)):R=-1);-1!==R;){const he=n[Rn];if(rc(g,R,he.data)){const ze=ui(R,n,i,T,o,W);if(ze!==Xs)return ze}B=n[R+8],B!==ol&&kd(o,n[Rn].data[R+8]===W)&&rc(g,R,n)?(T=he,R=Ha(B),n=ic(B,n)):R=-1}}return d}function ui(t,n,i,o,d,g){const T=n[Rn],R=T.data[t+8],he=Na(R,T,i,null==o?Vo(R)&&sc:o!=T&&0!=(3&R.type),d&Ve.Host&&g===R);return null!==he?br(n,T,he,R):Xs}function Na(t,n,i,o,d){const g=t.providerIndexes,T=n.data,R=1048575&g,B=t.directiveStart,he=g>>20,wt=d?R+he:t.directiveEnd;for(let Bt=o?R:R+he;Bt<wt;Bt++){const ln=T[Bt];if(Bt<B&&i===ln||Bt>=B&&ln.type===i)return Bt}if(d){const Bt=T[B];if(Bt&&Ti(Bt)&&Bt.type===i)return B}return null}function br(t,n,i,o){let d=t[i];const g=n.data;if(function dd(t){return t instanceof yl}(d)){const T=d;T.resolving&&function kt(t,n){const i=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new me(-200,`Circular dependency in DI detected for ${t}${i}`)}(function ht(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ot(t)}(g[i]));const R=Ca(T.canSeeViewProviders);T.resolving=!0;const W=T.injectImpl?on(T.injectImpl):null;Ni(t,o,Ve.Default);try{d=t[i]=T.factory(void 0,g,t,o),n.firstCreatePass&&i>=o.directiveStart&&function Tr(t,n,i){const{ngOnChanges:o,ngOnInit:d,ngDoCheck:g}=n.type.prototype;if(o){const T=Ii(n);(i.preOrderHooks??=[]).push(t,T),(i.preOrderCheckHooks??=[]).push(t,T)}d&&(i.preOrderHooks??=[]).push(0-t,d),g&&((i.preOrderHooks??=[]).push(t,g),(i.preOrderCheckHooks??=[]).push(t,g))}(i,g[i],n)}finally{null!==W&&on(W),Ca(R),T.resolving=!1,ia()}}return d}function rc(t,n,i){return!!(i[n+(t>>Br)]&1<<t)}function kd(t,n){return!(t&Ve.Self||t&Ve.Host&&n)}class Fo{constructor(n,i){this._tNode=n,this._lView=i}get(n,i,o){return Uc(this._tNode,this._lView,n,jt(o),i)}}function Hc(){return new Fo(us(),Jt())}function ac(t){return nn(()=>{const n=t.prototype.constructor,i=n[ps]||Yc(n),o=Object.prototype;let d=Object.getPrototypeOf(t.prototype).constructor;for(;d&&d!==o;){const g=d[ps]||Yc(d);if(g&&g!==i)return g;d=Object.getPrototypeOf(d)}return g=>new g})}function Yc(t){return mt(t)?()=>{const n=Yc(ft(t));return n&&n()}:jo(t)}function eo(t){const n=t[Rn],i=n.type;return 2===i?n.declTNode:1===i?t[so]:null}function S(t){return function Gl(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const i=t.attrs;if(i){const o=i.length;let d=0;for(;d<o;){const g=i[d];if(oe(g))break;if(0===g)d+=2;else if("number"==typeof g)for(d++;d<o&&"string"==typeof i[d];)d++;else{if(g===n)return i[d+1];d+=2}}}return null}(us(),t)}const b="__parameters__";function rt(t,n,i){return nn(()=>{const o=function ce(t){return function(...i){if(t){const o=t(...i);for(const d in o)this[d]=o[d]}}}(n);function d(...g){if(this instanceof d)return o.apply(this,g),this;const T=new d(...g);return R.annotation=T,R;function R(B,W,he){const ze=B.hasOwnProperty(b)?B[b]:Object.defineProperty(B,b,{value:[]})[b];for(;ze.length<=he;)ze.push(null);return(ze[he]=ze[he]||[]).push(T),B}}return i&&(d.prototype=Object.create(i.prototype)),d.prototype.ngMetadataName=t,d.annotationCls=d,d})}function El(t,n){t.forEach(i=>Array.isArray(i)?El(i,n):n(i))}function lr(t,n,i){n>=t.length?t.push(i):t.splice(n,0,i)}function qi(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Er(t,n){const i=[];for(let o=0;o<t;o++)i.push(n);return i}function wa(t,n,i){let o=za(t,n);return o>=0?t[1|o]=i:(o=~o,function gu(t,n,i,o){let d=t.length;if(d==n)t.push(i,o);else if(1===d)t.push(o,t[0]),t[0]=i;else{for(d--,t.push(t[d-1],t[d]);d>n;)t[d]=t[d-2],d--;t[n]=i,t[n+1]=o}}(t,o,n,i)),o}function zc(t,n){const i=za(t,n);if(i>=0)return t[1|i]}function za(t,n){return function tu(t,n,i){let o=0,d=t.length>>i;for(;d!==o;){const g=o+(d-o>>1),T=t[g<<i];if(n===T)return g<<i;T>n?d=g:o=g+1}return~(d<<i)}(t,n,1)}const xs=Je(rt("Optional"),8),cc=Je(rt("SkipSelf"),4);function vs(t){return 128==(128&t.flags)}var wo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(wo||{});const Nc=/^>|^->|<!--|-->|--!>|<!-$/g,Tu=/(<|>)/g,Ld="\u200b$1\u200b";const Bd=new Map;let Su=0;const qa="__ngContext__";function C(t,n){Ns(n)?(t[qa]=n[Zo],function Ju(t){Bd.set(t[Zo],t)}(n)):t[qa]=n}let Un;function Dn(t,n){return Un(t,n)}function zn(t){const n=t[Qi];return zi(n)?n[Qi]:n}function ho(t){return Xo(t[Yr])}function Ks(t){return Xo(t[qs])}function Xo(t){for(;null!==t&&!zi(t);)t=t[qs];return t}function cr(t,n,i,o,d){if(null!=o){let g,T=!1;zi(o)?g=o:Ns(o)&&(T=!0,o=o[Vi]);const R=Di(o);0===t&&null!==i?null==d?td(n,i,R):Fs(n,i,R,d||null,!0):1===t&&null!==i?Fs(n,i,R,d||null,!0):2===t?function oh(t,n,i){const o=Da(t,n);o&&function dr(t,n,i,o){t.removeChild(n,i,o)}(t,o,n,i)}(n,R,T):3===t&&n.destroyNode(R),null!=g&&function sp(t,n,i,o,d){const g=i[ro];g!==Di(i)&&cr(n,t,o,g,d);for(let R=Ss;R<i.length;R++){const B=i[R];Fu(B[Rn],B,t,n,o,g)}}(n,t,g,i,d)}}function oa(t,n){return t.createText(n)}function Xa(t,n){return t.createComment(function Eu(t){return t.replace(Nc,n=>n.replace(Tu,Ld))}(n))}function Wa(t,n,i){return t.createElement(n,i)}function Wn(t,n){const i=t[Bo],o=i.indexOf(n);gl(n),i.splice(o,1)}function ci(t,n){if(t.length<=Ss)return;const i=Ss+n,o=t[i];if(o){const d=o[zr];null!==d&&d!==t&&Wn(d,o),n>0&&(t[i-1][qs]=o[qs]);const g=qi(t,Ss+n);!function zl(t,n){Fu(t,n,n[ti],2,null,null),n[Vi]=null,n[so]=null}(o[Rn],o);const T=g[So];null!==T&&T.detachView(g[Rn]),o[Qi]=null,o[qs]=null,o[ei]&=-129}return o}function vi(t,n){if(!(256&n[ei])){const i=n[ti];n[ur]&&Ho(n[ur]),n[da]&&Ho(n[da]),i.destroyNode&&Fu(t,n,i,3,null,null),function Fc(t){let n=t[Yr];if(!n)return ns(t[Rn],t);for(;n;){let i=null;if(Ns(n))i=n[Yr];else{const o=n[Ss];o&&(i=o)}if(!i){for(;n&&!n[qs]&&n!==t;)Ns(n)&&ns(n[Rn],n),n=n[Qi];null===n&&(n=t),Ns(n)&&ns(n[Rn],n),i=n&&n[qs]}n=i}}(n)}}function ns(t,n){if(!(256&n[ei])){n[ei]&=-129,n[ei]|=256,function Ka(t,n){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let o=0;o<i.length;o+=2){const d=n[i[o]];if(!(d instanceof yl)){const g=i[o+1];if(Array.isArray(g))for(let T=0;T<g.length;T+=2){const R=d[g[T]],B=g[T+1];es(4,R,B);try{B.call(R)}finally{es(5,R,B)}}else{es(4,d,g);try{g.call(d)}finally{es(5,d,g)}}}}}(t,n),function Is(t,n){const i=t.cleanup,o=n[Qo];if(null!==i)for(let g=0;g<i.length-1;g+=2)if("string"==typeof i[g]){const T=i[g+3];T>=0?o[T]():o[-T].unsubscribe(),g+=2}else i[g].call(o[i[g+1]]);null!==o&&(n[Qo]=null);const d=n[Es];if(null!==d){n[Es]=null;for(let g=0;g<d.length;g++)(0,d[g])()}}(t,n),1===n[Rn].type&&n[ti].destroy();const i=n[zr];if(null!==i&&zi(n[Qi])){i!==n[Qi]&&Wn(i,n);const o=n[So];null!==o&&o.detachView(t)}!function eh(t){Bd.delete(t[Zo])}(n)}}function $r(t,n,i){return kl(t,n.parent,i)}function kl(t,n,i){let o=n;for(;null!==o&&40&o.type;)o=(n=o).parent;if(null===o)return i[Vi];{const{componentOffset:d}=o;if(d>-1){const{encapsulation:g}=t.data[o.directiveStart+d];if(g===Tn.None||g===Tn.Emulated)return null}return ao(o,i)}}function Fs(t,n,i,o,d){t.insertBefore(n,i,o,d)}function td(t,n,i){t.appendChild(n,i)}function nh(t,n,i,o,d){null!==o?Fs(t,n,i,o,d):td(t,n,i)}function Da(t,n){return t.parentNode(n)}function ou(t,n,i){return ih(t,n,i)}function _f(t,n,i){return 40&t.type?ao(t,i):null}let kh,ah,Ph,lh,ih=_f;function vf(t,n){ih=t,kh=n}function sh(t,n,i,o){const d=$r(t,o,n),g=n[ti],R=ou(o.parent||n[so],o,n);if(null!=d)if(Array.isArray(i))for(let B=0;B<i.length;B++)nh(g,d,i[B],R,!1);else nh(g,d,i,R,!1);void 0!==kh&&kh(g,o,n,i,d)}function Nu(t,n){if(null!==n){const i=n.type;if(3&i)return ao(n,t);if(4&i)return Ih(-1,t[n.index]);if(8&i){const o=n.child;if(null!==o)return Nu(t,o);{const d=t[n.index];return zi(d)?Ih(-1,d):Di(d)}}if(32&i)return Dn(n,t)()||Di(t[n.index]);{const o=xh(t,n);return null!==o?Array.isArray(o)?o[0]:Nu(zn(t[Ri]),o):Nu(t,n.next)}}return null}function xh(t,n){return null!==n?t[Ri][so].projection[n.projection]:null}function Ih(t,n){const i=Ss+t+1;if(i<n.length){const o=n[i],d=o[Rn].firstChild;if(null!==d)return Nu(o,d)}return n[ro]}function Rh(t,n,i,o,d,g,T){for(;null!=i;){const R=o[i.index],B=i.type;if(T&&0===n&&(R&&C(Di(R),o),i.flags|=2),32!=(32&i.flags))if(8&B)Rh(t,n,i.child,o,d,g,!1),cr(n,t,d,R,g);else if(32&B){const W=Dn(i,o);let he;for(;he=W();)cr(n,t,d,he,g);cr(n,t,d,R,g)}else 16&B?bf(t,n,o,i,d,g):cr(n,t,d,R,g);i=T?i.projectionNext:i.next}}function Fu(t,n,i,o,d,g){Rh(i,o,t.firstChild,n,d,g,!1)}function bf(t,n,i,o,d,g){const T=i[Ri],B=T[so].projection[o.projection];if(Array.isArray(B))for(let W=0;W<B.length;W++)cr(n,t,d,B[W],g);else{let W=B;const he=T[Qi];vs(o)&&(W.flags|=128),Rh(t,n,W,he,d,g,!0)}}function yf(t,n,i){""===i?t.removeAttribute(n,"class"):t.setAttribute(n,"class",i)}function rh(t,n,i){const{mergedAttrs:o,classes:d,styles:g}=i;null!==o&&Rt(t,n,o),null!==d&&yf(t,n,d),null!==g&&function rp(t,n,i){t.setAttribute(n,"style",i)}(t,n,g)}function ru(t){return function Fh(){if(void 0===ah&&(ah=null,Xt.trustedTypes))try{ah=Xt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ah}()?.createHTML(t)||t}function dp(t){Ph=t}function Gd(){if(void 0!==Ph)return Ph;if(typeof document<"u")return document;throw new me(210,!1)}function Lh(){if(void 0===lh&&(lh=null,Xt.trustedTypes))try{lh=Xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lh}function Cf(t){return Lh()?.createHTML(t)||t}function ch(t){return Lh()?.createScriptURL(t)||t}class $d{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pt})`}}class up extends $d{getTypeName(){return"HTML"}}class Df extends $d{getTypeName(){return"Style"}}class hp extends $d{getTypeName(){return"Script"}}class fp extends $d{getTypeName(){return"URL"}}class pp extends $d{getTypeName(){return"ResourceURL"}}function nd(t){return t instanceof $d?t.changingThisBreaksApplicationSecurity:t}function au(t,n){const i=function Bh(t){return t instanceof $d&&t.getTypeName()||null}(t);if(null!=i&&i!==n){if("ResourceURL"===i&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${i} (see ${Pt})`)}return i===n}function Mf(t){return new up(t)}function Tf(t){return new Df(t)}function f(t){return new hp(t)}function x(t){return new fp(t)}function a(t){return new pp(t)}function p(t){const n=new X(t);return function se(){try{return!!(new window.DOMParser).parseFromString(ru(""),"text/html")}catch{return!1}}()?new E(n):n}class E{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const i=(new window.DOMParser).parseFromString(ru(n),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(n):(i.removeChild(i.firstChild),i)}catch{return null}}}class X{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const i=this.inertDocument.createElement("template");return i.innerHTML=ru(n),i}}const lt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Et(t){return(t=String(t)).match(lt)?t:"unsafe:"+t}function $t(t){const n={};for(const i of t.split(","))n[i]=!0;return n}function Ut(...t){const n={};for(const i of t)for(const o in i)i.hasOwnProperty(o)&&(n[o]=!0);return n}const Fn=$t("area,br,col,hr,img,wbr"),Mn=$t("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),On=$t("rp,rt"),is=Ut(Fn,Ut(Mn,$t("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")),Ut(On,$t("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")),Ut(On,Mn)),Wi=$t("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),fs=Ut(Wi,$t("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$t("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")),Os=$t("script,style,template");class Do{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let i=n.firstChild,o=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?o=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,o&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let d=this.checkClobberedElement(i,i.nextSibling);if(d){i=d;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(n){const i=n.nodeName.toLowerCase();if(!is.hasOwnProperty(i))return this.sanitizedSomething=!0,!Os.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const o=n.attributes;for(let d=0;d<o.length;d++){const g=o.item(d),T=g.name,R=T.toLowerCase();if(!fs.hasOwnProperty(R)){this.sanitizedSomething=!0;continue}let B=g.value;Wi[R]&&(B=Et(B)),this.buf.push(" ",T,'="',Cr(B),'"')}return this.buf.push(">"),!0}endElement(n){const i=n.nodeName.toLowerCase();is.hasOwnProperty(i)&&!Fn.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(n){this.buf.push(Cr(n))}checkClobberedElement(n,i){if(i&&(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return i}}const fo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function Cr(t){return t.replace(/&/g,"&").replace(fo,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let kr;function xl(t,n){let i=null;try{kr=kr||p(t);let o=n?String(n):"";i=kr.getInertBodyElement(o);let d=5,g=o;do{if(0===d)throw new Error("Failed to sanitize html because the input is unstable");d--,o=g,g=i.innerHTML,i=kr.getInertBodyElement(o)}while(o!==g);return ru((new Do).sanitizeChildren(ra(i)||i))}finally{if(i){const o=ra(i)||i;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function ra(t){return"content"in t&&function bd(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var rl=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(rl||{});function Qa(t){const n=Il();return n?Cf(n.sanitize(rl.HTML,t)||""):au(t,"HTML")?Cf(nd(t)):xl(Gd(),ot(t))}function Ud(t){const n=Il();return n?n.sanitize(rl.URL,t)||"":au(t,"URL")?nd(t):Et(ot(t))}function id(t){const n=Il();if(n)return ch(n.sanitize(rl.RESOURCE_URL,t)||"");if(au(t,"ResourceURL"))return ch(nd(t));throw new me(904,!1)}function sd(t,n,i){return function lu(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?id:Ud}(n,i)(t)}function Il(){const t=Jt();return t&&t[oo].sanitizer}const Wl=new Dt("ENVIRONMENT_INITIALIZER"),Au=new Dt("INJECTOR",-1),Ef=new Dt("INJECTOR_DEF_TYPES");class cu{get(n,i=mn){if(i===mn){const o=new Error(`NullInjectorError: No provider for ${Ue(n)}!`);throw o.name="NullInjectorError",o}return i}}function Pu(t){return{\u0275providers:t}}function Vh(...t){return{\u0275providers:jh(0,t),\u0275fromNgModule:!0}}function jh(t,...n){const i=[],o=new Set;let d;const g=T=>{i.push(T)};return El(n,T=>{const R=T;Ac(R,g,[],o)&&(d||=[],d.push(R))}),void 0!==d&&Lu(d,g),i}function Lu(t,n){for(let i=0;i<t.length;i++){const{ngModule:o,providers:d}=t[i];du(d,g=>{n(g,o)})}}function Ac(t,n,i,o){if(!(t=ft(t)))return!1;let d=null,g=yi(t);const T=!g&&bi(t);if(g||T){if(T&&!T.standalone)return!1;d=t}else{const B=t.ngModule;if(g=yi(B),!g)return!1;d=B}const R=o.has(d);if(T){if(R)return!1;if(o.add(d),T.dependencies){const B="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const W of B)Ac(W,n,i,o)}}else{if(!g)return!1;{if(null!=g.imports&&!R){let W;o.add(d);try{El(g.imports,he=>{Ac(he,n,i,o)&&(W||=[],W.push(he))})}finally{}void 0!==W&&Lu(W,n)}if(!R){const W=jo(d)||(()=>new d);n({provide:d,useFactory:W,deps:bn},d),n({provide:Ef,useValue:d,multi:!0},d),n({provide:Wl,useValue:()=>qe(d),multi:!0},d)}const B=g.providers;if(null!=B&&!R){const W=t;du(B,he=>{n(he,W)})}}}return d!==t&&void 0!==t.providers}function du(t,n){for(let i of t)tn(i)&&(i=i.\u0275providers),Array.isArray(i)?du(i,n):n(i)}const Gh=Me({provide:String,useValue:Me});function Pc(t){return null!==t&&"object"==typeof t&&Gh in t}function Lc(t){return"function"==typeof t}const uu=new Dt("Set Injector scope."),Cd={},ju={};let Gu;function $h(){return void 0===Gu&&(Gu=new cu),Gu}class od{}class $u extends od{get destroyed(){return this._destroyed}constructor(n,i,o,d){super(),this.parent=i,this.source=o,this.scopes=d,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hh(n,T=>this.processProvider(T)),this.records.set(Au,Uu(void 0,this)),d.has("environment")&&this.records.set(od,Uu(void 0,this));const g=this.records.get(uu);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Ef.multi,bn,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const i=fn(this),o=on(void 0);try{return n()}finally{fn(i),on(o)}}get(n,i=mn,o=Ve.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(ki))return n[ki](this);o=jt(o);const g=fn(this),T=on(void 0);try{if(!(o&Ve.SkipSelf)){let B=this.records.get(n);if(void 0===B){const W=function kf(t){return"function"==typeof t||"object"==typeof t&&t instanceof Dt}(n)&&jn(n);B=W&&this.injectableDefInScope(W)?Uu(Sf(n),Cd):null,this.records.set(n,B)}if(null!=B)return this.hydrate(n,B)}return(o&Ve.Self?$h():this.parent).get(n,i=o&Ve.Optional&&i===mn?null:i)}catch(R){if("NullInjectorError"===R.name){if((R[rn]=R[rn]||[]).unshift(Ue(n)),g)throw R;return function it(t,n,i,o){const d=t[rn];throw n[Ne]&&d.unshift(n[Ne]),t.message=function Zt(t,n,i,o=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let d=Ue(n);if(Array.isArray(n))d=n.map(Ue).join(" -> ");else if("object"==typeof n){let g=[];for(let T in n)if(n.hasOwnProperty(T)){let R=n[T];g.push(T+":"+("string"==typeof R?JSON.stringify(R):Ue(R)))}d=`{${g.join(", ")}}`}return`${i}${o?"("+o+")":""}[${d}]: ${t.replace(ve,"\n ")}`}("\n"+t.message,d,i,o),t.ngTokenPath=d,t[rn]=null,t}(R,n,"R3InjectorError",this.source)}throw R}finally{on(T),fn(g)}}resolveInjectorInitializers(){const n=fn(this),i=on(void 0);try{const d=this.get(Wl.multi,bn,Ve.Self);for(const g of d)g()}finally{fn(n),on(i)}}toString(){const n=[],i=this.records;for(const o of i.keys())n.push(Ue(o));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new me(205,!1)}processProvider(n){let i=Lc(n=ft(n))?n:ft(n&&n.provide);const o=function rm(t){return Pc(t)?Uu(void 0,t.useValue):Uu(gp(t),Cd)}(n);if(Lc(n)||!0!==n.multi)this.records.get(i);else{let d=this.records.get(i);d||(d=Uu(void 0,Cd,!0),d.factory=()=>pn(d.multi),this.records.set(i,d)),i=n,d.multi.push(n)}this.records.set(i,o)}hydrate(n,i){return i.value===Cd&&(i.value=ju,i.value=i.factory()),"object"==typeof i.value&&i.value&&function am(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(n){if(!n.providedIn)return!1;const i=ft(n.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(n){const i=this._onDestroyHooks.indexOf(n);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Sf(t){const n=jn(t),i=null!==n?n.factory:jo(t);if(null!==i)return i;if(t instanceof Dt)throw new me(204,!1);if(t instanceof Function)return function mp(t){const n=t.length;if(n>0)throw Er(n,"?"),new me(204,!1);const i=function oi(t){return t&&(t[It]||t[re])||null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new me(204,!1)}function gp(t,n,i){let o;if(Lc(t)){const d=ft(t);return jo(d)||Sf(d)}if(Pc(t))o=()=>ft(t.useValue);else if(function Bu(t){return!(!t||!t.useFactory)}(t))o=()=>t.useFactory(...pn(t.deps||[]));else if(function Yd(t){return!(!t||!t.useExisting)}(t))o=()=>qe(ft(t.useExisting));else{const d=ft(t&&(t.useClass||t.provide));if(!function _p(t){return!!t.deps}(t))return jo(d)||Sf(d);o=()=>new d(...pn(t.deps))}return o}function Uu(t,n,i=!1){return{factory:t,value:n,multi:i?[]:void 0}}function hh(t,n){for(const i of t)Array.isArray(i)?hh(i,n):i&&tn(i)?hh(i.\u0275providers,n):n(i)}const fh=new Dt("AppId",{providedIn:"root",factory:()=>vp}),vp="ng",bp=new Dt("Platform Initializer"),Uh=new Dt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lm=new Dt("AnimationModuleType"),cm=new Dt("CSP nonce",{providedIn:"root",factory:()=>Gd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ff=(t,n,i)=>null;function zh(t,n,i=!1){return Ff(t,n,i)}class zd{}class Pf{}class _m{resolveComponentFactory(n){throw function gm(t){const n=Error(`No component factory found for ${Ue(t)}.`);return n.ngComponent=t,n}(n)}}let s=(()=>{class t{static{this.NULL=new _m}}return t})();function c(){return r(us(),Jt())}function r(t,n){return new m(ao(t,n))}let m=(()=>{class t{constructor(i){this.nativeElement=i}static{this.__NG_ELEMENT_ID__=c}}return t})();function D(t){return t instanceof m?t.nativeElement:t}class G{}let fe=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function st(){const t=Jt(),i=lo(us().index,t);return(Ns(i)?i:t)[ti]}()}}return t})(),Yt=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null})}}return t})();class Bn{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Qn=new Bn("16.2.12"),ls={};function Wo(t){if(!Ft()&&!function qt(){return We}())throw new me(-203,!1)}function Yg(t,n=null,i=null,o){const d=zg(t,n,i,o);return d.resolveInjectorInitializers(),d}function zg(t,n=null,i=null,o,d=new Set){const g=[i||bn,Vh(t)];return o=o||("object"==typeof t?void 0:Ue(t)),new $u(g,n||$h(),o||null,d)}let Dd=(()=>{class t{static{this.THROW_IF_NOT_FOUND=mn}static{this.NULL=new cu}static create(i,o){if(Array.isArray(i))return Yg({name:""},o,i,"");{const d=i.name??"";return Yg({name:d},i.parent,i.providers,d)}}static{this.\u0275prov=dt({token:t,providedIn:"any",factory:()=>qe(Au)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function vm(t){return t.ngOriginalError}class Xu{constructor(){this._console=console}handleError(n){const i=this._findOriginalError(n);this._console.error("ERROR",n),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(n){let i=n&&vm(n);for(;i&&vm(i);)i=vm(i);return i||null}}let Lf=(()=>{class t{static{this.__NG_ELEMENT_ID__=I0}static{this.__NG_ENV_ID__=i=>i}}return t})();class x0 extends Lf{constructor(n){super(),this._lView=n}onDestroy(n){return Ll(this._lView,n),()=>function Sa(t,n){if(null===t[Es])return;const i=t[Es].indexOf(n);-1!==i&&t[Es].splice(i,1)}(this._lView,n)}}function I0(){return new x0(Jt())}function bm(t){return n=>{setTimeout(t,void 0,n)}}const Xd=class O0 extends e.B{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,i,o){let d=n,g=i||(()=>null),T=o;if(n&&"object"==typeof n){const B=n;d=B.next?.bind(B),g=B.error?.bind(B),T=B.complete?.bind(B)}this.__isAsync&&(g=bm(g),d&&(d=bm(d)),T&&(T=bm(T)));const R=super.subscribe({next:d,error:g,complete:T});return n instanceof h.yU&&n.add(R),R}};function Xg(...t){}class Za{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xd(!1),this.onMicrotaskEmpty=new Xd(!1),this.onStable=new Xd(!1),this.onError=new Xd(!1),typeof Zone>"u")throw new me(908,!1);Zone.assertZonePatched();const d=this;d._nesting=0,d._outer=d._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(d._inner=d._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(d._inner=d._inner.fork(Zone.longStackTraceZoneSpec)),d.shouldCoalesceEventChangeDetection=!o&&i,d.shouldCoalesceRunChangeDetection=o,d.lastRequestAnimationFrameId=-1,d.nativeRequestAnimationFrame=function R0(){const t="function"==typeof Xt.requestAnimationFrame;let n=Xt[t?"requestAnimationFrame":"setTimeout"],i=Xt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&i){const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o);const d=i[Zone.__symbol__("OriginalDelegate")];d&&(i=d)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function A0(t){const n=()=>{!function F0(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Xt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cm(t),t.isCheckStableRunning=!0,ym(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,o,d,g,T,R)=>{if(function L0(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(R))return i.invokeTask(d,g,T,R);try{return Wg(t),i.invokeTask(d,g,T,R)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||t.shouldCoalesceRunChangeDetection)&&n(),Kg(t)}},onInvoke:(i,o,d,g,T,R,B)=>{try{return Wg(t),i.invoke(d,g,T,R,B)}finally{t.shouldCoalesceRunChangeDetection&&n(),Kg(t)}},onHasTask:(i,o,d,g)=>{i.hasTask(d,g),o===d&&("microTask"==g.change?(t._hasPendingMicrotasks=g.microTask,Cm(t),ym(t)):"macroTask"==g.change&&(t.hasPendingMacrotasks=g.macroTask))},onHandleError:(i,o,d,g)=>(i.handleError(d,g),t.runOutsideAngular(()=>t.onError.emit(g)),!1)})}(d)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Za.isInAngularZone())throw new me(909,!1)}static assertNotInAngularZone(){if(Za.isInAngularZone())throw new me(909,!1)}run(n,i,o){return this._inner.run(n,i,o)}runTask(n,i,o,d){const g=this._inner,T=g.scheduleEventTask("NgZoneEvent: "+d,n,N0,Xg,Xg);try{return g.runTask(T,i,o)}finally{g.cancelTask(T)}}runGuarded(n,i,o){return this._inner.runGuarded(n,i,o)}runOutsideAngular(n){return this._outer.run(n)}}const N0={};function ym(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Wg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Kg(t){t._nesting--,ym(t)}class P0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xd,this.onMicrotaskEmpty=new Xd,this.onStable=new Xd,this.onError=new Xd}run(n,i,o){return n.apply(i,o)}runGuarded(n,i,o){return n.apply(i,o)}runOutsideAngular(n){return n()}runTask(n,i,o,d){return n.apply(i,o)}}const Qg=new Dt("",{providedIn:"root",factory:Zg});function Zg(){const t=Ke(Za);let n=!0;const i=new ne.c(d=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{d.next(n),d.complete()})}),o=new ne.c(d=>{let g;t.runOutsideAngular(()=>{g=t.onStable.subscribe(()=>{Za.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,d.next(!0))})})});const T=t.onUnstable.subscribe(()=>{Za.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{d.next(!1)}))});return()=>{g.unsubscribe(),T.unsubscribe()}});return(0,Z.h)(i,o.pipe((0,Ie.u)()))}function Jg(t){return t.ownerDocument.defaultView}function e_(t){return t.ownerDocument}function hu(t){return t instanceof Function?t():t}let wm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Bf(t){for(;t;){t[ei]|=64;const n=zn(t);if(ua(t)&&!n)return t;t=n}return null}const o_=new Dt("",{providedIn:"root",factory:()=>!1});let Ep=null;function c_(t,n){return t[n]??h_()}function d_(t,n){const i=h_();i.producerNode?.length&&(t[n]=Ep,i.lView=t,Ep=u_())}const Y0={...Pa,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Bf(t.lView)},lView:null};function u_(){return Object.create(Y0)}function h_(){return Ep??=u_(),Ep}const Hi={};function f_(t){p_(ni(),Jt(),Jo()+t,!1)}function p_(t,n,i,o){if(!o)if(3==(3&n[ei])){const g=t.preOrderCheckHooks;null!==g&&Ia(n,g,i)}else{const g=t.preOrderHooks;null!==g&&$a(n,g,0,i)}ja(i)}function Kh(t,n=Ve.Default){const i=Jt();return null===i?qe(t,n):Uc(us(),i,ft(t),n)}function m_(){throw new Error("invalid")}function Sp(t,n,i,o,d,g,T,R,B,W,he){const ze=n.blueprint.slice();return ze[Vi]=d,ze[ei]=140|o,(null!==W||t&&2048&t[ei])&&(ze[ei]|=2048),ga(ze),ze[Qi]=ze[Ir]=t,ze[Zi]=i,ze[oo]=T||t&&t[oo],ze[ti]=R||t&&t[ti],ze[nr]=B||t&&t[nr]||null,ze[so]=g,ze[Zo]=function su(){return Su++}(),ze[_o]=he,ze[Or]=W,ze[Ri]=2==n.type?t[Ri]:ze,ze}function Qh(t,n,i,o,d){let g=t.data[n];if(null===g)g=Dm(t,n,i,o,d),function j(){return Jn.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=i,g.value=o,g.attrs=d;const T=tc();g.injectorIndex=null===T?-1:T.injectorIndex}return ta(g,!0),g}function Dm(t,n,i,o,d){const g=vl(),T=xa(),B=t.data[n]=function J0(t,n,i,o,d,g){let T=n?n.injectorIndex:-1,R=0;return Bl()&&(R|=128),{type:i,index:o,insertBeforeIndex:null,injectorIndex:T,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:R,providerIndexes:0,value:d,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,T?g:g&&g.parent,i,n,o,d);return null===t.firstChild&&(t.firstChild=B),null!==g&&(T?null==g.child&&null!==B.parent&&(g.child=B):null===g.next&&(g.next=B,B.prev=g)),B}function Vf(t,n,i,o){if(0===i)return-1;const d=n.length;for(let g=0;g<i;g++)n.push(o),t.blueprint.push(o),t.data.push(null);return d}function g_(t,n,i,o,d){const g=c_(n,ur),T=Jo(),R=2&o;try{ja(-1),R&&n.length>gi&&p_(t,n,gi,!1),es(R?2:0,d);const W=R?g:null,he=Uo(W);try{null!==W&&(W.dirty=!1),i(o,d)}finally{Fr(W,he)}}finally{R&&null===n[ur]&&d_(n,ur),ja(T),es(R?3:1,d)}}function Mm(t,n,i){if(fr(n)){const o=$o(null);try{const g=n.directiveEnd;for(let T=n.directiveStart;T<g;T++){const R=t.data[T];R.contentQueries&&R.contentQueries(1,i[T],T)}}finally{$o(o)}}}function Tm(t,n,i){ka()&&(function ry(t,n,i,o){const d=i.directiveStart,g=i.directiveEnd;Vo(i)&&function fy(t,n,i){const o=ao(n,t),d=__(i);let T=16;i.signals?T=4096:i.onPush&&(T=64);const R=kp(t,Sp(t,d,null,T,o,n,null,t[oo].rendererFactory.createRenderer(o,i),null,null,null));t[n.index]=R}(n,i,t.data[d+i.componentOffset]),t.firstCreatePass||Ya(i,n),C(o,n);const T=i.initialInputs;for(let R=d;R<g;R++){const B=t.data[R],W=br(n,t,R,i);C(W,n),null!==T&&py(0,R-d,W,B,0,T),Ti(B)&&(lo(i.index,n)[Zi]=br(n,t,R,i))}}(t,n,i,ao(i,n)),64==(64&i.flags)&&w_(t,n,i))}function Em(t,n,i=ao){const o=n.localNames;if(null!==o){let d=n.index+1;for(let g=0;g<o.length;g+=2){const T=o[g+1],R=-1===T?i(n,t):t[T];t[d++]=R}}}function __(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Sm(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Sm(t,n,i,o,d,g,T,R,B,W,he){const ze=gi+o,wt=ze+d,Bt=function q0(t,n){const i=[];for(let o=0;o<n;o++)i.push(o<t?null:Hi);return i}(ze,wt),ln="function"==typeof W?W():W;return Bt[Rn]={type:t,blueprint:Bt,template:i,queries:null,viewQuery:R,declTNode:n,data:Bt.slice().fill(null,ze),bindingStartIndex:ze,expandoStartIndex:wt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof g?g():g,pipeRegistry:"function"==typeof T?T():T,firstChild:null,schemas:B,consts:ln,incompleteFirstPass:!1,ssrId:he}}let v_=t=>null;function b_(t,n,i,o){for(let d in t)if(t.hasOwnProperty(d)){i=null===i?{}:i;const g=t[d];null===o?y_(i,n,d,g):o.hasOwnProperty(d)&&y_(i,n,o[d],g)}return i}function y_(t,n,i,o){t.hasOwnProperty(i)?t[i].push(n,o):t[i]=[n,o]}function Vc(t,n,i,o,d,g,T,R){const B=ao(n,i);let he,W=n.inputs;!R&&null!=W&&(he=W[o])?(Rm(t,i,he,o,d),Vo(n)&&function ny(t,n){const i=lo(n,t);16&i[ei]||(i[ei]|=64)}(i,n.index)):3&n.type&&(o=function ty(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(o),d=null!=T?T(d,n.value||"",o):d,g.setProperty(B,o,d))}function km(t,n,i,o){if(ka()){const d=null===o?null:{"":-1},g=function ly(t,n){const i=t.directiveRegistry;let o=null,d=null;if(i)for(let g=0;g<i.length;g++){const T=i[g];if(Ls(n,T.selectors,!1))if(o||(o=[]),Ti(T))if(null!==T.findHostDirectiveDefs){const R=[];d=d||new Map,T.findHostDirectiveDefs(T,R,d),o.unshift(...R,T),xm(t,n,R.length)}else o.unshift(T),xm(t,n,0);else d=d||new Map,T.findHostDirectiveDefs?.(T,o,d),o.push(T)}return null===o?null:[o,d]}(t,i);let T,R;null===g?T=R=null:[T,R]=g,null!==T&&C_(t,n,i,T,d,R),d&&function cy(t,n,i){if(n){const o=t.localNames=[];for(let d=0;d<n.length;d+=2){const g=i[n[d+1]];if(null==g)throw new me(-301,!1);o.push(n[d],g)}}}(i,o,d)}i.mergedAttrs=et(i.mergedAttrs,i.attrs)}function C_(t,n,i,o,d,g){for(let W=0;W<o.length;W++)$c(Ya(i,n),t,o[W].type);!function uy(t,n,i){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+i,t.providerIndexes=n}(i,t.data.length,o.length);for(let W=0;W<o.length;W++){const he=o[W];he.providersResolver&&he.providersResolver(he)}let T=!1,R=!1,B=Vf(t,n,o.length,null);for(let W=0;W<o.length;W++){const he=o[W];i.mergedAttrs=et(i.mergedAttrs,he.hostAttrs),hy(t,i,n,B,he),dy(B,he,d),null!==he.contentQueries&&(i.flags|=4),(null!==he.hostBindings||null!==he.hostAttrs||0!==he.hostVars)&&(i.flags|=64);const ze=he.type.prototype;!T&&(ze.ngOnChanges||ze.ngOnInit||ze.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),T=!0),!R&&(ze.ngOnChanges||ze.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),R=!0),B++}!function ey(t,n,i){const d=n.directiveEnd,g=t.data,T=n.attrs,R=[];let B=null,W=null;for(let he=n.directiveStart;he<d;he++){const ze=g[he],wt=i?i.get(ze):null,ln=wt?wt.outputs:null;B=b_(ze.inputs,he,B,wt?wt.inputs:null),W=b_(ze.outputs,he,W,ln);const Sn=null===B||null===T||Hn(n)?null:my(B,he,T);R.push(Sn)}null!==B&&(B.hasOwnProperty("class")&&(n.flags|=8),B.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=R,n.inputs=B,n.outputs=W}(t,i,g)}function w_(t,n,i){const o=i.directiveStart,d=i.directiveEnd,g=i.index,T=function Qe(){return Jn.lFrame.currentDirectiveIndex}();try{ja(g);for(let R=o;R<d;R++){const B=t.data[R],W=n[R];Wt(R),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&ay(B,W)}}finally{ja(-1),Wt(T)}}function ay(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function xm(t,n,i){n.componentOffset=i,(t.components??=[]).push(n.index)}function dy(t,n,i){if(i){if(n.exportAs)for(let o=0;o<n.exportAs.length;o++)i[n.exportAs[o]]=t;Ti(n)&&(i[""]=t)}}function hy(t,n,i,o,d){t.data[o]=d;const g=d.factory||(d.factory=jo(d.type)),T=new yl(g,Ti(d),Kh);t.blueprint[o]=T,i[o]=T,function sy(t,n,i,o,d){const g=d.hostBindings;if(g){let T=t.hostBindingOpCodes;null===T&&(T=t.hostBindingOpCodes=[]);const R=~n.index;(function oy(t){let n=t.length;for(;n>0;){const i=t[--n];if("number"==typeof i&&i<0)return i}return 0})(T)!=R&&T.push(R),T.push(i,o,g)}}(t,n,o,Vf(t,i,d.hostVars,Hi),d)}function Wd(t,n,i,o,d,g){const T=ao(t,n);!function Im(t,n,i,o,d,g,T){if(null==g)t.removeAttribute(n,d,i);else{const R=null==T?ot(g):T(g,o||"",d);t.setAttribute(n,d,R,i)}}(n[ti],T,g,t.value,i,o,d)}function py(t,n,i,o,d,g){const T=g[n];if(null!==T)for(let R=0;R<T.length;)D_(o,i,T[R++],T[R++],T[R++])}function D_(t,n,i,o,d){const g=$o(null);try{const T=t.inputTransforms;null!==T&&T.hasOwnProperty(o)&&(d=T[o].call(n,d)),null!==t.setInput?t.setInput(n,d,i,o):n[o]=d}finally{$o(g)}}function my(t,n,i){let o=null,d=0;for(;d<i.length;){const g=i[d];if(0!==g)if(5!==g){if("number"==typeof g)break;if(t.hasOwnProperty(g)){null===o&&(o=[]);const T=t[g];for(let R=0;R<T.length;R+=2)if(T[R]===n){o.push(g,T[R+1],i[d+1]);break}}d+=2}else d+=2;else d+=4}return o}function M_(t,n,i,o){return[t,!0,!1,n,null,0,o,i,null,null,null]}function T_(t,n){const i=t.contentQueries;if(null!==i)for(let o=0;o<i.length;o+=2){const g=i[o+1];if(-1!==g){const T=t.data[g];Ci(i[o]),T.contentQueries(2,n[g],g)}}}function kp(t,n){return t[Yr]?t[Aa][qs]=n:t[Yr]=n,t[Aa]=n,n}function Om(t,n,i){Ci(0);const o=$o(null);try{n(t,i)}finally{$o(o)}}function E_(t){return t[Qo]||(t[Qo]=[])}function S_(t){return t.cleanup||(t.cleanup=[])}function k_(t,n,i){return(null===t||Ti(t))&&(i=function ec(t){for(;Array.isArray(t);){if("object"==typeof t[Rr])return t;t=t[Vi]}return null}(i[n.index])),i[ti]}function x_(t,n){const i=t[nr],o=i?i.get(Xu,null):null;o&&o.handleError(n)}function Rm(t,n,i,o,d){for(let g=0;g<i.length;){const T=i[g++],R=i[g++];D_(t.data[T],n[T],o,R,d)}}function gy(t,n){const i=lo(n,t),o=i[Rn];!function _y(t,n){for(let i=n.length;i<t.blueprint.length;i++)n.push(t.blueprint[i])}(o,i);const d=i[Vi];null!==d&&null===i[_o]&&(i[_o]=zh(d,i[nr])),Nm(o,i,i[Zi])}function Nm(t,n,i){Mr(n);try{const o=t.viewQuery;null!==o&&Om(1,o,i);const d=t.template;null!==d&&g_(t,n,d,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&T_(t,n),t.staticViewQueries&&Om(2,t.viewQuery,i);const g=t.components;null!==g&&function vy(t,n){for(let i=0;i<n.length;i++)gy(t,n[i])}(n,g)}catch(o){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),o}finally{n[ei]&=-5,Mc()}}let I_=(()=>{class t{constructor(){this.all=new Set,this.queue=new Map}create(i,o,d){const g=typeof Zone>"u"?null:Zone.current,T=function hn(t,n,i){const o=Object.create(Ji);i&&(o.consumerAllowSignalWrites=!0),o.fn=t,o.schedule=n;const d=T=>{o.cleanupFn=T};return o.ref={notify:()=>fa(o),run:()=>{if(o.dirty=!1,o.hasRun&&!Ta(o))return;o.hasRun=!0;const T=Uo(o);try{o.cleanupFn(),o.cleanupFn=Gn,o.fn(d)}finally{Fr(o,T)}},cleanup:()=>o.cleanupFn()},o.ref}(i,W=>{this.all.has(W)&&this.queue.set(W,g)},d);let R;this.all.add(T),T.notify();const B=()=>{T.cleanup(),R?.(),this.all.delete(T),this.queue.delete(T)};return R=o?.onDestroy(B),{destroy:B}}flush(){if(0!==this.queue.size)for(const[i,o]of this.queue)this.queue.delete(i),o?o.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t})}}return t})();function xp(t,n,i){let o=i?t.styles:null,d=i?t.classes:null,g=0;if(null!==n)for(let T=0;T<n.length;T++){const R=n[T];"number"==typeof R?g=R:1==g?d=Ct(d,R):2==g&&(o=Ct(o,R+": "+n[++T]+";"))}i?t.styles=o:t.stylesWithoutHost=o,i?t.classes=d:t.classesWithoutHost=d}function jf(t,n,i,o,d=!1){for(;null!==i;){const g=n[i.index];null!==g&&o.push(Di(g)),zi(g)&&O_(g,o);const T=i.type;if(8&T)jf(t,n,i.child,o);else if(32&T){const R=Dn(i,n);let B;for(;B=R();)o.push(B)}else if(16&T){const R=xh(n,i);if(Array.isArray(R))o.push(...R);else{const B=zn(n[Ri]);jf(B[Rn],B,R,o,!0)}}i=d?i.projectionNext:i.next}return o}function O_(t,n){for(let i=Ss;i<t.length;i++){const o=t[i],d=o[Rn].firstChild;null!==d&&jf(o[Rn],o,d,n)}t[ro]!==t[Vi]&&n.push(t[ro])}function Ip(t,n,i,o=!0){const d=n[oo],g=d.rendererFactory,T=d.afterRenderEventManager;g.begin?.(),T?.begin();try{R_(t,n,t.template,i)}catch(B){throw o&&x_(n,B),B}finally{g.end?.(),d.effectManager?.flush(),T?.end()}}function R_(t,n,i,o){const d=n[ei];if(256!=(256&d)){n[oo].effectManager?.flush(),Mr(n);try{ga(n),function A(t){return Jn.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==i&&g_(t,n,i,2,o);const T=3==(3&d);if(T){const W=t.preOrderCheckHooks;null!==W&&Ia(n,W,null)}else{const W=t.preOrderHooks;null!==W&&$a(n,W,0,null),nc(n,0)}if(function Cy(t){for(let n=ho(t);null!==n;n=Ks(n)){if(!n[hr])continue;const i=n[Bo];for(let o=0;o<i.length;o++){Ea(i[o])}}}(n),N_(n,2),null!==t.contentQueries&&T_(t,n),T){const W=t.contentCheckHooks;null!==W&&Ia(n,W)}else{const W=t.contentHooks;null!==W&&$a(n,W,1),nc(n,1)}!function z0(t,n){const i=t.hostBindingOpCodes;if(null===i)return;const o=c_(n,da);try{for(let d=0;d<i.length;d++){const g=i[d];if(g<0)ja(~g);else{const T=g,R=i[++d],B=i[++d];Te(R,T),o.dirty=!1;const W=Uo(o);try{B(2,n[T])}finally{Fr(o,W)}}}}finally{null===n[da]&&d_(n,da),ja(-1)}}(t,n);const R=t.components;null!==R&&A_(n,R,0);const B=t.viewQuery;if(null!==B&&Om(2,B,o),T){const W=t.viewCheckHooks;null!==W&&Ia(n,W)}else{const W=t.viewHooks;null!==W&&$a(n,W,2),nc(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[ei]&=-73,gl(n)}finally{Mc()}}}function N_(t,n){for(let i=ho(t);null!==i;i=Ks(i))for(let o=Ss;o<i.length;o++)F_(i[o],n)}function wy(t,n,i){F_(lo(n,t),i)}function F_(t,n){if(!function ml(t){return 128==(128&t[ei])}(t))return;const i=t[Rn],o=t[ei];if(80&o&&0===n||1024&o||2===n)R_(i,t,i.template,t[Zi]);else if(t[io]>0){N_(t,1);const d=i.components;null!==d&&A_(t,d,1)}}function A_(t,n,i){for(let o=0;o<n.length;o++)wy(t,n[o],i)}class Gf{get rootNodes(){const n=this._lView,i=n[Rn];return jf(i,n,i.firstChild,[])}constructor(n,i){this._lView=n,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Zi]}set context(n){this._lView[Zi]=n}get destroyed(){return 256==(256&this._lView[ei])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Qi];if(zi(n)){const i=n[8],o=i?i.indexOf(this):-1;o>-1&&(ci(n,o),qi(i,o))}this._attachedToViewContainer=!1}vi(this._lView[Rn],this._lView)}onDestroy(n){Ll(this._lView,n)}markForCheck(){Bf(this._cdRefInjectingView||this._lView)}detach(){this._lView[ei]&=-129}reattach(){this._lView[ei]|=128}detectChanges(){Ip(this._lView[Rn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function jd(t,n){Fu(t,n,n[ti],2,null,null)}(this._lView[Rn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new me(902,!1);this._appRef=n}}class Dy extends Gf{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ip(n[Rn],n,n[Zi],!1)}checkNoChanges(){}get context(){return null}}class P_ extends s{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const i=bi(n);return new $f(i,this.ngModule)}}function L_(t){const n=[];for(let i in t)t.hasOwnProperty(i)&&n.push({propName:t[i],templateName:i});return n}class Ty{constructor(n,i){this.injector=n,this.parentInjector=i}get(n,i,o){o=jt(o);const d=this.injector.get(n,ls,o);return d!==ls||i===ls?d:this.parentInjector.get(n,i,o)}}class $f extends Pf{get inputs(){const n=this.componentDef,i=n.inputTransforms,o=L_(n.inputs);if(null!==i)for(const d of o)i.hasOwnProperty(d.propName)&&(d.transform=i[d.propName]);return o}get outputs(){return L_(this.componentDef.outputs)}constructor(n,i){super(),this.componentDef=n,this.ngModule=i,this.componentType=n.type,this.selector=function wn(t){return t.map(Ja).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!i}create(n,i,o,d){let g=(d=d||this.ngModule)instanceof od?d:d?.injector;g&&null!==this.componentDef.getStandaloneInjector&&(g=this.componentDef.getStandaloneInjector(g)||g);const T=g?new Ty(n,g):n,R=T.get(G,null);if(null===R)throw new me(407,!1);const ze={rendererFactory:R,sanitizer:T.get(Yt,null),effectManager:T.get(I_,null),afterRenderEventManager:T.get(wm,null)},wt=R.createRenderer(null,this.componentDef),Bt=this.componentDef.selectors[0][0]||"div",ln=o?function X0(t,n,i,o){const g=o.get(o_,!1)||i===Tn.ShadowDom,T=t.selectRootElement(n,g);return function W0(t){v_(t)}(T),T}(wt,o,this.componentDef.encapsulation,T):Wa(wt,Bt,function My(t){const n=t.toLowerCase();return"svg"===n?zo:"math"===n?"math":null}(Bt)),pi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let _n=null;null!==ln&&(_n=zh(ln,T,!0));const Fi=Sm(0,null,null,1,0,null,null,null,null,null,null),hs=Sp(null,Fi,null,pi,null,null,ze,wt,T,null,_n);let Mo,_c;Mr(hs);try{const pu=this.componentDef;let gf,Bg=null;pu.findHostDirectiveDefs?(gf=[],Bg=new Map,pu.findHostDirectiveDefs(pu,gf,Bg),gf.push(pu)):gf=[pu];const ST=function Sy(t,n){const i=t[Rn],o=gi;return t[o]=n,Qh(i,o,2,"#host",null)}(hs,ln),kT=function ky(t,n,i,o,d,g,T){const R=d[Rn];!function xy(t,n,i,o){for(const d of t)n.mergedAttrs=et(n.mergedAttrs,d.hostAttrs);null!==n.mergedAttrs&&(xp(n,n.mergedAttrs,!0),null!==i&&rh(o,i,n))}(o,t,n,T);let B=null;null!==n&&(B=zh(n,d[nr]));const W=g.rendererFactory.createRenderer(n,i);let he=16;i.signals?he=4096:i.onPush&&(he=64);const ze=Sp(d,__(i),null,he,d[t.index],t,g,W,null,null,B);return R.firstCreatePass&&xm(R,t,o.length-1),kp(d,ze),d[t.index]=ze}(ST,ln,pu,gf,hs,ze,wt);_c=Va(Fi,gi),ln&&function Oy(t,n,i,o){if(o)Rt(t,i,["ng-version",Qn.full]);else{const{attrs:d,classes:g}=function Ys(t){const n=[],i=[];let o=1,d=2;for(;o<t.length;){let g=t[o];if("string"==typeof g)2===d?""!==g&&n.push(g,t[++o]):8===d&&i.push(g);else{if(!ri(d))break;d=g}o++}return{attrs:n,classes:i}}(n.selectors[0]);d&&Rt(t,i,d),g&&g.length>0&&yf(t,i,g.join(" "))}}(wt,pu,ln,o),void 0!==i&&function Ry(t,n,i){const o=t.projection=[];for(let d=0;d<n.length;d++){const g=i[d];o.push(null!=g?Array.from(g):null)}}(_c,this.ngContentSelectors,i),Mo=function Iy(t,n,i,o,d,g){const T=us(),R=d[Rn],B=ao(T,d);C_(R,d,T,i,null,o);for(let he=0;he<i.length;he++)C(br(d,R,T.directiveStart+he,T),d);w_(R,d,T),B&&C(B,d);const W=br(d,R,T.directiveStart+T.componentOffset,T);if(t[Zi]=d[Zi]=W,null!==g)for(const he of g)he(W,n);return Mm(R,T,t),W}(kT,pu,gf,Bg,hs,[Ny]),Nm(Fi,hs,null)}finally{Mc()}return new Ey(this.componentType,Mo,r(_c,hs),hs,_c)}}class Ey extends zd{constructor(n,i,o,d,g){super(),this.location=o,this._rootLView=d,this._tNode=g,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new Dy(d),this.componentType=n}setInput(n,i){const o=this._tNode.inputs;let d;if(null!==o&&(d=o[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),i))return;const g=this._rootLView;Rm(g[Rn],g,d,n,i),this.previousInputValues.set(n,i),Bf(lo(this._tNode.index,g))}}get injector(){return new Fo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function Ny(){const t=us();$s(Jt()[Rn],t)}function Fm(t){let n=function B_(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),i=!0;const o=[t];for(;n;){let d;if(Ti(t))d=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new me(903,!1);d=n.\u0275dir}if(d){if(i){o.push(d);const T=t;T.inputs=Op(t.inputs),T.inputTransforms=Op(t.inputTransforms),T.declaredInputs=Op(t.declaredInputs),T.outputs=Op(t.outputs);const R=d.hostBindings;R&&Ly(t,R);const B=d.viewQuery,W=d.contentQueries;if(B&&Ay(t,B),W&&Py(t,W),Ge(t.inputs,d.inputs),Ge(t.declaredInputs,d.declaredInputs),Ge(t.outputs,d.outputs),null!==d.inputTransforms&&(null===T.inputTransforms&&(T.inputTransforms={}),Ge(T.inputTransforms,d.inputTransforms)),Ti(d)&&d.data.animation){const he=t.data;he.animation=(he.animation||[]).concat(d.data.animation)}}const g=d.features;if(g)for(let T=0;T<g.length;T++){const R=g[T];R&&R.ngInherit&&R(t),R===Fm&&(i=!1)}}n=Object.getPrototypeOf(n)}!function Fy(t){let n=0,i=null;for(let o=t.length-1;o>=0;o--){const d=t[o];d.hostVars=n+=d.hostVars,d.hostAttrs=et(d.hostAttrs,i=et(i,d.hostAttrs))}}(o)}function Op(t){return t===li?{}:t===bn?[]:t}function Ay(t,n){const i=t.viewQuery;t.viewQuery=i?(o,d)=>{n(o,d),i(o,d)}:n}function Py(t,n){const i=t.contentQueries;t.contentQueries=i?(o,d,g)=>{n(o,d,g),i(o,d,g)}:n}function Ly(t,n){const i=t.hostBindings;t.hostBindings=i?(o,d)=>{n(o,d),i(o,d)}:n}function V_(t){return n=>{n.findHostDirectiveDefs=j_,n.hostDirectives=(Array.isArray(t)?t:t()).map(i=>"function"==typeof i?{directive:ft(i),inputs:li,outputs:li}:{directive:ft(i.directive),inputs:G_(i.inputs),outputs:G_(i.outputs)})}}function j_(t,n,i){if(null!==t.hostDirectives)for(const o of t.hostDirectives){const d=ys(o.directive);Gy(d.declaredInputs,o.inputs),j_(d,n,i),i.set(d,o),n.push(d)}}function G_(t){if(void 0===t||0===t.length)return li;const n={};for(let i=0;i<t.length;i+=2)n[t[i]]=t[i+1];return n}function Gy(t,n){for(const i in n)n.hasOwnProperty(i)&&(t[n[i]]=t[i])}function U_(t){const n=t.inputConfig,i={};for(const o in n)if(n.hasOwnProperty(o)){const d=n[o];Array.isArray(d)&&d[2]&&(i[o]=d[2])}t.inputTransforms=i}function Rp(t){return!!Am(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Am(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Kd(t,n,i){return t[n]=i}function Ol(t,n,i){return!Object.is(t[n],i)&&(t[n]=i,!0)}function vh(t,n,i,o){const d=Ol(t,n,i);return Ol(t,n+1,o)||d}function ad(t,n,i,o,d,g){const T=vh(t,n,i,o);return vh(t,n+2,d,g)||T}function Pm(t,n,i,o){const d=Jt();return Ol(d,V(),n)&&(ni(),Wd(Gs(),d,t,n,i,o)),Pm}function Jh(t,n,i,o){return Ol(t,V(),i)?n+ot(i)+o:Hi}function nv(t,n,i,o,d,g,T,R){const B=Jt(),W=ni(),he=t+gi,ze=W.firstCreatePass?function aC(t,n,i,o,d,g,T,R,B){const W=n.consts,he=Qh(n,t,4,T||null,Ro(W,R));km(n,i,he,Ro(W,B)),$s(n,he);const ze=he.tView=Sm(2,he,o,d,g,n.directiveRegistry,n.pipeRegistry,null,n.schemas,W,null);return null!==n.queries&&(n.queries.template(n,he),ze.queries=n.queries.embeddedTView(he)),he}(he,W,B,n,i,o,d,g,T):W.data[he];ta(ze,!1);const wt=iv(W,B,ze,t);sl()&&sh(W,B,wt,ze),C(wt,B),kp(B,B[he]=M_(wt,B,wt,ze)),Xr(ze)&&Tm(W,B,ze),null!=T&&Em(B,ze,R)}let iv=function sv(t,n,i,o){return Zs(!0),n[ti].createComment("")};function ov(t){return ea(function Jd(){return Jn.lFrame.contextLView}(),gi+t)}function $m(t,n,i){const o=Jt();return Ol(o,V(),n)&&Vc(ni(),Gs(),o,t,n,o[ti],i,!1),$m}function Um(t,n,i,o,d){const T=d?"class":"style";Rm(t,i,n.inputs[T],T,o)}function Lp(t,n,i,o){const d=Jt(),g=ni(),T=gi+t,R=d[ti],B=g.firstCreatePass?function uC(t,n,i,o,d,g){const T=n.consts,B=Qh(n,t,2,o,Ro(T,d));return km(n,i,B,Ro(T,g)),null!==B.attrs&&xp(B,B.attrs,!1),null!==B.mergedAttrs&&xp(B,B.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,B),B}(T,g,d,n,i,o):g.data[T],W=rv(g,d,B,R,n,t);d[T]=W;const he=Xr(B);return ta(B,!0),rh(R,W,B),32!=(32&B.flags)&&sl()&&sh(g,d,W,B),0===function Ar(){return Jn.lFrame.elementDepthCount}()&&C(W,d),function gr(){Jn.lFrame.elementDepthCount++}(),he&&(Tm(g,d,B),Mm(g,B,d)),null!==o&&Em(d,B),Lp}function Bp(){let t=us();xa()?Dc():(t=t.parent,ta(t,!1));const n=t;(function Pr(t){return Jn.skipHydrationRootTNode===t})(n)&&function ld(){Jn.skipHydrationRootTNode=null}(),function qn(){Jn.lFrame.elementDepthCount--}();const i=ni();return i.firstCreatePass&&($s(i,t),fr(t)&&i.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Oa(t){return 0!=(8&t.flags)}(n)&&Um(i,n,Jt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function kc(t){return 0!=(16&t.flags)}(n)&&Um(i,n,Jt(),n.stylesWithoutHost,!1),Bp}function Hm(t,n,i,o){return Lp(t,n,i,o),Bp(),Hm}let rv=(t,n,i,o,d,g)=>(Zs(!0),Wa(o,d,function cd(){return Jn.lFrame.currentNamespace}()));function Vp(t,n,i){const o=Jt(),d=ni(),g=t+gi,T=d.firstCreatePass?function pC(t,n,i,o,d){const g=n.consts,T=Ro(g,o),R=Qh(n,t,8,"ng-container",T);return null!==T&&xp(R,T,!0),km(n,i,R,Ro(g,d)),null!==n.queries&&n.queries.elementStart(n,R),R}(g,d,o,n,i):d.data[g];ta(T,!0);const R=av(d,o,T,t);return o[g]=R,sl()&&sh(d,o,R,T),C(R,o),Xr(T)&&(Tm(d,o,T),Mm(d,T,o)),null!=i&&Em(o,T),Vp}function jp(){let t=us();const n=ni();return xa()?Dc():(t=t.parent,ta(t,!1)),n.firstCreatePass&&($s(n,t),fr(t)&&n.queries.elementEnd(t)),jp}function Ym(t,n,i){return Vp(t,n,i),jp(),Ym}let av=(t,n,i,o)=>(Zs(!0),Xa(n[ti],""));function lv(){return Jt()}function zm(t){return!!t&&"function"==typeof t.then}function cv(t){return!!t&&"function"==typeof t.subscribe}function qm(t,n,i,o){const d=Jt(),g=ni(),T=us();return function uv(t,n,i,o,d,g,T){const R=Xr(o),W=t.firstCreatePass&&S_(t),he=n[Zi],ze=E_(n);let wt=!0;if(3&o.type||T){const Sn=ao(o,n),Xn=T?T(Sn):Sn,pi=ze.length,_n=T?hs=>T(Di(hs[o.index])):o.index;let Fi=null;if(!T&&R&&(Fi=function _C(t,n,i,o){const d=t.cleanup;if(null!=d)for(let g=0;g<d.length-1;g+=2){const T=d[g];if(T===i&&d[g+1]===o){const R=n[Qo],B=d[g+2];return R.length>B?R[B]:null}"string"==typeof T&&(g+=2)}return null}(t,n,d,o.index)),null!==Fi)(Fi.__ngLastListenerFn__||Fi).__ngNextListenerFn__=g,Fi.__ngLastListenerFn__=g,wt=!1;else{g=fv(o,n,he,g,!1);const hs=i.listen(Xn,d,g);ze.push(g,hs),W&&W.push(d,_n,pi,pi+1)}}else g=fv(o,n,he,g,!1);const Bt=o.outputs;let ln;if(wt&&null!==Bt&&(ln=Bt[d])){const Sn=ln.length;if(Sn)for(let Xn=0;Xn<Sn;Xn+=2){const Mo=n[ln[Xn]][ln[Xn+1]].subscribe(g),_c=ze.length;ze.push(g,Mo),W&&W.push(d,o.index,_c,-(_c+1))}}}(g,d,d[ti],T,t,n,o),qm}function hv(t,n,i,o){try{return es(6,n,i),!1!==i(o)}catch(d){return x_(t,d),!1}finally{es(7,n,i)}}function fv(t,n,i,o,d){return function g(T){if(T===Function)return o;Bf(t.componentOffset>-1?lo(t.index,n):n);let B=hv(n,i,o,T),W=g.__ngNextListenerFn__;for(;W;)B=hv(n,i,W,T)&&B,W=W.__ngNextListenerFn__;return d&&!1===B&&T.preventDefault(),B}}function pv(t=1){return function eu(t){return(Jn.lFrame.contextLView=function Ed(t,n){for(;t>0;)n=n[Ir],t--;return n}(t,Jn.lFrame.contextLView))[Zi]}(t)}function vC(t,n){let i=null;const o=function la(t){const n=t.attrs;if(null!=n){const i=n.indexOf(5);if(!(1&i))return n[i+1]}return null}(t);for(let d=0;d<n.length;d++){const g=n[d];if("*"!==g){if(null===o?Ls(t,g,!0):Bs(o,g))return d}else i=d}return i}function mv(t){const n=Jt()[Ri][so];if(!n.projection){const o=n.projection=Er(t?t.length:1,null),d=o.slice();let g=n.child;for(;null!==g;){const T=t?vC(g,t):0;null!==T&&(d[T]?d[T].projectionNext=g:o[T]=g,d[T]=g),g=g.next}}}function gv(t,n=0,i){const o=Jt(),d=ni(),g=Qh(d,gi+t,16,null,i||null);null===g.projection&&(g.projection=n),Dc(),(!o[_o]||Bl())&&32!=(32&g.flags)&&function Nh(t,n,i){bf(n[ti],0,n,i,$r(t,i,n),ou(i.parent||n[so],i,n))}(d,o,g)}function Xm(t,n,i){return Gp(t,"",n,"",i),Xm}function Gp(t,n,i,o,d){const g=Jt(),T=Jh(g,n,i,o);return T!==Hi&&Vc(ni(),Gs(),g,t,T,g[ti],d,!1),Gp}function $p(t,n){return t<<17|n<<2}function Wu(t){return t>>17&32767}function Wm(t){return 2|t}function bh(t){return(131068&t)>>2}function Km(t,n){return-131069&t|n<<2}function Qm(t){return 1|t}function Tv(t,n,i,o,d){const g=t[i+1],T=null===n;let R=o?Wu(g):bh(g),B=!1;for(;0!==R&&(!1===B||T);){const he=t[R+1];MC(t[R],n)&&(B=!0,t[R+1]=o?Qm(he):Wm(he)),R=o?Wu(he):bh(he)}B&&(t[i+1]=o?Wm(g):Qm(g))}function MC(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&za(t,n)>=0}const Fa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ev(t){return t.substring(Fa.key,Fa.keyEnd)}function Sv(t,n){const i=Fa.textEnd;return i===n?-1:(n=Fa.keyEnd=function kC(t,n,i){for(;n<i&&t.charCodeAt(n)>32;)n++;return n}(t,Fa.key=n,i),cf(t,n,i))}function cf(t,n,i){for(;n<i&&t.charCodeAt(n)<=32;)n++;return n}function Zm(t,n,i){return Md(t,n,i,!1),Zm}function Jm(t,n){return Md(t,n,null,!0),Jm}function Rv(t){!function Td(t,n,i,o){const d=ni(),g=O(2);d.firstUpdatePass&&Fv(d,null,g,o);const T=Jt();if(i!==Hi&&Ol(T,g,i)){const R=d.data[Jo()];if(Bv(R,o)&&!Nv(d,g)){let B=o?R.classesWithoutHost:R.stylesWithoutHost;null!==B&&(i=Ct(B,i||"")),Um(d,R,T,i,o)}else!function BC(t,n,i,o,d,g,T,R){d===Hi&&(d=bn);let B=0,W=0,he=0<d.length?d[0]:null,ze=0<g.length?g[0]:null;for(;null!==he||null!==ze;){const wt=B<d.length?d[B+1]:void 0,Bt=W<g.length?g[W+1]:void 0;let Sn,ln=null;he===ze?(B+=2,W+=2,wt!==Bt&&(ln=ze,Sn=Bt)):null===ze||null!==he&&he<ze?(B+=2,ln=he):(W+=2,ln=ze,Sn=Bt),null!==ln&&Pv(t,n,i,o,ln,Sn,T,R),he=B<d.length?d[B]:null,ze=W<g.length?g[W]:null}}(d,R,T,T[ti],T[g+1],T[g+1]=function PC(t,n,i){if(null==i||""===i)return bn;const o=[],d=nd(i);if(Array.isArray(d))for(let g=0;g<d.length;g++)t(o,d[g],!0);else if("object"==typeof d)for(const g in d)d.hasOwnProperty(g)&&t(o,g,d[g]);else"string"==typeof d&&n(o,d);return o}(t,n,i),o,g)}}(LC,Zd,t,!0)}function Zd(t,n){for(let i=function EC(t){return function xv(t){Fa.key=0,Fa.keyEnd=0,Fa.value=0,Fa.valueEnd=0,Fa.textEnd=t.length}(t),Sv(t,cf(t,0,Fa.textEnd))}(n);i>=0;i=Sv(n,i))wa(t,Ev(n),!0)}function Md(t,n,i,o){const d=Jt(),g=ni(),T=O(2);g.firstUpdatePass&&Fv(g,t,T,o),n!==Hi&&Ol(d,T,n)&&Pv(g,g.data[Jo()],d,d[ti],t,d[T+1]=function VC(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ue(nd(t)))),t}(n,i),o,T)}function Nv(t,n){return n>=t.expandoStartIndex}function Fv(t,n,i,o){const d=t.data;if(null===d[i+1]){const g=d[Jo()],T=Nv(t,i);Bv(g,o)&&null===n&&!T&&(n=!1),n=function RC(t,n,i,o){const d=Ht(t);let g=o?n.residualClasses:n.residualStyles;if(null===d)0===(o?n.classBindings:n.styleBindings)&&(i=qf(i=eg(null,t,n,i,o),n.attrs,o),g=null);else{const T=n.directiveStylingLast;if(-1===T||t[T]!==d)if(i=eg(d,t,n,i,o),null===g){let B=function NC(t,n,i){const o=i?n.classBindings:n.styleBindings;if(0!==bh(o))return t[Wu(o)]}(t,n,o);void 0!==B&&Array.isArray(B)&&(B=eg(null,t,n,B[1],o),B=qf(B,n.attrs,o),function FC(t,n,i,o){t[Wu(i?n.classBindings:n.styleBindings)]=o}(t,n,o,B))}else g=function AC(t,n,i){let o;const d=n.directiveEnd;for(let g=1+n.directiveStylingLast;g<d;g++)o=qf(o,t[g].hostAttrs,i);return qf(o,n.attrs,i)}(t,n,o)}return void 0!==g&&(o?n.residualClasses=g:n.residualStyles=g),i}(d,g,n,o),function wC(t,n,i,o,d,g){let T=g?n.classBindings:n.styleBindings,R=Wu(T),B=bh(T);t[o]=i;let he,W=!1;if(Array.isArray(i)?(he=i[1],(null===he||za(i,he)>0)&&(W=!0)):he=i,d)if(0!==B){const wt=Wu(t[R+1]);t[o+1]=$p(wt,R),0!==wt&&(t[wt+1]=Km(t[wt+1],o)),t[R+1]=function yC(t,n){return 131071&t|n<<17}(t[R+1],o)}else t[o+1]=$p(R,0),0!==R&&(t[R+1]=Km(t[R+1],o)),R=o;else t[o+1]=$p(B,0),0===R?R=o:t[B+1]=Km(t[B+1],o),B=o;W&&(t[o+1]=Wm(t[o+1])),Tv(t,he,o,!0),Tv(t,he,o,!1),function DC(t,n,i,o,d){const g=d?t.residualClasses:t.residualStyles;null!=g&&"string"==typeof n&&za(g,n)>=0&&(i[o+1]=Qm(i[o+1]))}(n,he,t,o,g),T=$p(R,B),g?n.classBindings=T:n.styleBindings=T}(d,g,n,i,T,o)}}function eg(t,n,i,o,d){let g=null;const T=i.directiveEnd;let R=i.directiveStylingLast;for(-1===R?R=i.directiveStart:R++;R<T&&(g=n[R],o=qf(o,g.hostAttrs,d),g!==t);)R++;return null!==t&&(i.directiveStylingLast=R),o}function qf(t,n,i){const o=i?1:2;let d=-1;if(null!==n)for(let g=0;g<n.length;g++){const T=n[g];"number"==typeof T?d=T:d===o&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),wa(t,T,!!i||n[++g]))}return void 0===t?null:t}function LC(t,n,i){const o=String(n);""!==o&&!o.includes(" ")&&wa(t,o,i)}function Pv(t,n,i,o,d,g,T,R){if(!(3&n.type))return;const B=t.data,W=B[R+1],he=function CC(t){return 1==(1&t)}(W)?Lv(B,n,i,d,bh(W),T):void 0;Up(he)||(Up(g)||function bC(t){return 2==(2&t)}(W)&&(g=Lv(B,null,i,d,R,T)),function op(t,n,i,o,d){if(n)d?t.addClass(i,o):t.removeClass(i,o);else{let g=-1===o.indexOf("-")?void 0:wo.DashCase;null==d?t.removeStyle(i,o,g):("string"==typeof d&&d.endsWith("!important")&&(d=d.slice(0,-10),g|=wo.Important),t.setStyle(i,o,d,g))}}(o,T,ma(Jo(),i),d,g))}function Lv(t,n,i,o,d,g){const T=null===n;let R;for(;d>0;){const B=t[d],W=Array.isArray(B),he=W?B[1]:B,ze=null===he;let wt=i[d+1];wt===Hi&&(wt=ze?bn:void 0);let Bt=ze?zc(wt,o):he===o?wt:void 0;if(W&&!Up(Bt)&&(Bt=zc(B,o)),Up(Bt)&&(R=Bt,T))return R;const ln=t[d+1];d=T?Wu(ln):bh(ln)}if(null!==n){let B=g?n.residualClasses:n.residualStyles;null!=B&&(R=zc(B,o))}return R}function Up(t){return void 0!==t}function Bv(t,n){return 0!=(t.flags&(n?8:16))}function Vv(t,n=""){const i=Jt(),o=ni(),d=t+gi,g=o.firstCreatePass?Qh(o,d,1,n,null):o.data[d],T=jv(o,i,g,n,t);i[d]=T,sl()&&sh(o,i,T,g),ta(g,!1)}let jv=(t,n,i,o,d)=>(Zs(!0),oa(n[ti],o));function tg(t){return Hp("",t,""),tg}function Hp(t,n,i){const o=Jt(),d=Jh(o,t,n,i);return d!==Hi&&function fu(t,n,i){const o=ma(n,t);!function yr(t,n,i){t.setValue(n,i)}(t[ti],o,i)}(o,Jo(),d),Hp}function ng(t,n,i){const o=Jt();return Ol(o,V(),n)&&Vc(ni(),Gs(),o,t,n,o[ti],i,!0),ng}function ig(t,n,i){const o=Jt();if(Ol(o,V(),n)){const g=ni(),T=Gs();Vc(g,T,o,t,n,k_(Ht(g.data),T,o),i,!0)}return ig}const yh=void 0;var aw=["en",[["a","p"],["AM","PM"],yh],[["AM","PM"],yh,yh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],yh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],yh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",yh,"{1} 'at' {0}",yh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function rw(t){const i=Math.floor(Math.abs(t)),o=t.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===o?1:5}];let df={};function sg(t){const n=function lw(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ob(n);if(i)return i;const o=n.split("-")[0];if(i=ob(o),i)return i;if("en"===o)return aw;throw new me(701,!1)}function sb(t){return sg(t)[uf.PluralCase]}function ob(t){return t in df||(df[t]=Xt.ng&&Xt.ng.common&&Xt.ng.common.locales&&Xt.ng.common.locales[t]),df[t]}var uf=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(uf||{});const hf="en-US",Yp={marker:"element"},zp={marker:"ICU"};var mc=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(mc||{});let rb=hf;function ab(t){(function He(t,n){null==t&&L(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(rb=t.toLowerCase().replace(/_/g,"-"))}function lb(t,n,i){const o=n.insertBeforeIndex,d=Array.isArray(o)?o[0]:o;return null===d?_f(t,0,i):Di(i[d])}function cb(t,n,i,o,d){const g=n.insertBeforeIndex;if(Array.isArray(g)){let T=o,R=null;if(3&n.type||(R=T,T=d),null!==T&&-1===n.componentOffset)for(let B=1;B<g.length;B++)Fs(t,T,i[g[B]],R,!1)}}function db(t,n){if(t.push(n),t.length>1)for(let i=t.length-2;i>=0;i--){const o=t[i];ub(o)||fw(o,n)&&null===pw(o)&&mw(o,n.index)}}function ub(t){return!(64&t.type)}function fw(t,n){return ub(n)||t.index>n.index}function pw(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function mw(t,n){const i=t.insertBeforeIndex;Array.isArray(i)?i[0]=n:(vf(lb,cb),t.insertBeforeIndex=n)}function vw(t,n,i){const o=Dm(t,i,64,null,null);return db(n,o),o}function Tw(){const t=[];let i,o,n=-1;function g(R,B){n=0;const W=function qp(t,n){const i=n[t.currentCaseLViewIndex];return null===i?i:i<0?~i:i}(R,B);o=null!==W?R.remove[W]:bn}function T(){if(n<o.length){const R=o[n++];return R>0?i[R]:(t.push(n,o),g(i[Rn].data[~R],i),T())}return 0===t.length?null:(o=t.pop(),n=t.pop(),T())}return function d(R,B){for(i=B;t.length;)t.pop();return g(R.value,B),T}}const Xp=/\ufffd(\d+):?\d*\ufffd/gi,Sw=/\ufffd(\d+)\ufffd/,yb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Qf="\ufffd",kw=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,xw=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iw=/\uE500/g;function Cb(t,n,i,o,d,g,T){const R=Vf(t,o,1,null);let B=R<<mc.SHIFT,W=tc();n===W&&(W=null),null===W&&(B|=mc.APPEND_EAGERLY),T&&(B|=mc.COMMENT,function An(t){void 0===Un&&(Un=t())}(Tw)),d.push(B,null===g?"":g);const he=Dm(t,R,T?32:1,null===g?"":g,null);db(i,he);const ze=he.index;return ta(he,!1),null!==W&&n!==W&&function _w(t,n){let i=t.insertBeforeIndex;null===i?(vf(lb,cb),i=t.insertBeforeIndex=[null,n]):(function Se(t,n,i){t!=n&&L(i,t,n,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(n))}(W,ze),he}function Nw(t,n,i,o,d,g,T){const R=T.match(Xp),B=Cb(t,n,i,g,o,R?null:T,!1);R&&Zf(d,T,B.index,null,0,null)}function Zf(t,n,i,o,d,g){const T=t.length,R=T+1;t.push(null,null);const B=T+2,W=n.split(Xp);let he=0;for(let ze=0;ze<W.length;ze++){const wt=W[ze];if(1&ze){const Bt=d+parseInt(wt,10);t.push(-1-Bt),he|=wb(Bt)}else""!==wt&&t.push(wt)}return t.push(i<<2|(o?1:0)),o&&t.push(o,g),t[T]=he,t[R]=t.length-B,he}function wb(t){return 1<<Math.min(t,31)}function Db(t){let n,g,i="",o=0,d=!1;for(;null!==(n=kw.exec(t));)d?n[0]===`${Qf}/*${g}${Qf}`&&(o=n.index,d=!1):(i+=t.substring(o,n.index+n[0].length),g=n[1],d=!0);return i+=t.slice(o),i}function Mb(t,n,i,o,d,g){let T=0;const R={type:d.type,currentCaseLViewIndex:Vf(t,n,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};(function Gw(t,n,i){t.push(wb(n.mainBinding),2,-1-n.mainBinding,i<<2|2)})(i,d,g),function gw(t,n,i){const o=t.data[n];null===o?t.data[n]=i:o.value=i}(t,g,R);const B=d.values;for(let W=0;W<B.length;W++){const he=B[W],ze=[];for(let wt=0;wt<he.length;wt++){const Bt=he[wt];if("string"!=typeof Bt){const ln=ze.push(Bt)-1;he[wt]=`\x3c!--\ufffd${ln}\ufffd--\x3e`}}T=Vw(t,R,n,i,o,d.cases[W],he.join(""),ze)|T}T&&function $w(t,n,i){t.push(n,1,i<<2|3)}(i,T,g)}function Bw(t){const n=[],i=[];let o=1,d=0;const g=og(t=t.replace(yb,function(T,R,B){return o="select"===B?0:1,d=parseInt(R.slice(1),10),""}));for(let T=0;T<g.length;){let R=g[T++].trim();1===o&&(R=R.replace(/\s*(?:=)?(\w+)\s*/,"$1")),R.length&&n.push(R);const B=og(g[T++]);n.length>i.length&&i.push(B)}return{type:o,mainBinding:d,cases:n,values:i}}function og(t){if(!t)return[];let n=0;const i=[],o=[],d=/[{}]/g;let g;for(d.lastIndex=0;g=d.exec(t);){const R=g.index;if("}"==g[0]){if(i.pop(),0==i.length){const B=t.substring(n,R);yb.test(B)?o.push(Bw(B)):o.push(B),n=R+1}}else{if(0==i.length){const B=t.substring(n,R);o.push(B),n=R+1}i.push("{")}}const T=t.substring(n);return o.push(T),o}function Vw(t,n,i,o,d,g,T,R){const B=[],W=[],he=[];n.cases.push(g),n.create.push(B),n.remove.push(W),n.update.push(he);const wt=p(Gd()).getInertBodyElement(T),Bt=ra(wt)||wt;return Bt?Tb(t,n,i,o,B,W,he,Bt,d,R,0):0}function Tb(t,n,i,o,d,g,T,R,B,W,he){let ze=0,wt=R.firstChild;for(;wt;){const Bt=Vf(t,i,1,null);switch(wt.nodeType){case Node.ELEMENT_NODE:const ln=wt,Sn=ln.tagName.toLowerCase();if(is.hasOwnProperty(Sn)){rg(d,Yp,Sn,B,Bt),t.data[Bt]=Sn;const Fi=ln.attributes;for(let hs=0;hs<Fi.length;hs++){const Mo=Fi.item(hs),_c=Mo.name.toLowerCase();Mo.value.match(Xp)?fs.hasOwnProperty(_c)&&Zf(T,Mo.value,Bt,Mo.name,0,Wi[_c]?Et:null):Uw(d,Bt,Mo)}ze=Tb(t,n,i,o,d,g,T,wt,Bt,W,he+1)|ze,Eb(g,Bt,he)}break;case Node.TEXT_NODE:const Xn=wt.textContent||"",pi=Xn.match(Xp);rg(d,null,pi?"":Xn,B,Bt),Eb(g,Bt,he),pi&&(ze=Zf(T,Xn,Bt,null,0,null)|ze);break;case Node.COMMENT_NODE:const _n=Sw.exec(wt.textContent||"");if(_n){const hs=W[parseInt(_n[1],10)];rg(d,zp,"",B,Bt),Mb(t,i,o,B,hs,Bt),jw(g,Bt,he)}}wt=wt.nextSibling}return ze}function Eb(t,n,i){0===i&&t.push(n)}function jw(t,n,i){0===i&&(t.push(~n),t.push(n))}function rg(t,n,i,o,d){null!==n&&t.push(n),t.push(i,d,function bw(t,n,i){return t|n<<17|i<<1}(0,o,d))}function Uw(t,n,i){t.push(n<<1|1,i.name,i.value)}function kb(t,n,i=-1){const o=ni(),d=Jt(),g=gi+t,T=Ro(o.consts,n),R=tc();o.firstCreatePass&&function Rw(t,n,i,o,d,g){const T=tc(),R=[],B=[],W=[[]];d=function Lw(t,n){if(function Pw(t){return-1===t}(n))return Db(t);{const i=t.indexOf(`:${n}${Qf}`)+2+n.toString().length,o=t.search(new RegExp(`${Qf}\\/\\*\\d+:${n}${Qf}`));return Db(t.substring(i,o))}}(d,g);const he=function Ow(t){return t.replace(Iw," ")}(d).split(xw);for(let ze=0;ze<he.length;ze++){let wt=he[ze];if(1&ze){const Bt=47===wt.charCodeAt(0),Sn=(wt.charCodeAt(Bt?1:0),gi+Number.parseInt(wt.substring(Bt?2:1)));if(Bt)W.shift(),ta(tc(),!1);else{const Xn=vw(t,W[0],Sn);W.unshift([]),ta(Xn,!0)}}else{const Bt=og(wt);for(let ln=0;ln<Bt.length;ln++){let Sn=Bt[ln];if(1&ln){const Xn=Sn;if("object"!=typeof Xn)throw new Error(`Unable to parse ICU expression in "${d}" message.`);Mb(t,i,B,n,Xn,Cb(t,T,W[0],i,R,"",!0).index)}else""!==Sn&&Nw(t,T,W[0],R,B,i,Sn)}}}t.data[o]={create:R,update:B}}(o,null===R?0:R.index,d,g,T,i),2===o.type?d[Ri][ei]|=32:d[ei]|=32;const B=o.data[g],he=kl(o,R===d[so]?null:R,d);(function ww(t,n,i,o){const d=t[ti];for(let g=0;g<n.length;g++){const T=n[g++],R=n[g],W=(T&mc.APPEND_EAGERLY)===mc.APPEND_EAGERLY,he=T>>>mc.SHIFT;let ze=t[he];null===ze&&(ze=t[he]=(T&mc.COMMENT)===mc.COMMENT?d.createComment(R):oa(d,R)),W&&null!==i&&Fs(d,i,ze,o,!1)}})(d,B.create,he,R&&8&R.type?d[R.index]:null),Q(!0)}function Ib(t,n,i){kb(t,n,i),function xb(){Q(!1)}()}function ag(t,n,i,o,d){if(t=ft(t),Array.isArray(t))for(let g=0;g<t.length;g++)ag(t[g],n,i,o,d);else{const g=ni(),T=Jt(),R=us();let B=Lc(t)?t:ft(t.provide);const W=gp(t),he=1048575&R.providerIndexes,ze=R.directiveStart,wt=R.providerIndexes>>20;if(Lc(t)||!t.multi){const Bt=new yl(W,d,Kh),ln=cg(B,n,d?he:he+wt,ze);-1===ln?($c(Ya(R,T),g,B),lg(g,t,n.length),n.push(B),R.directiveStart++,R.directiveEnd++,d&&(R.providerIndexes+=1048576),i.push(Bt),T.push(Bt)):(i[ln]=Bt,T[ln]=Bt)}else{const Bt=cg(B,n,he+wt,ze),ln=cg(B,n,he,he+wt),Xn=ln>=0&&i[ln];if(d&&!Xn||!d&&!(Bt>=0&&i[Bt])){$c(Ya(R,T),g,B);const pi=function oD(t,n,i,o,d){const g=new yl(t,i,Kh);return g.multi=[],g.index=n,g.componentProviders=0,Rb(g,d,o&&!i),g}(d?sD:iD,i.length,d,o,W);!d&&Xn&&(i[ln].providerFactory=pi),lg(g,t,n.length,0),n.push(B),R.directiveStart++,R.directiveEnd++,d&&(R.providerIndexes+=1048576),i.push(pi),T.push(pi)}else lg(g,t,Bt>-1?Bt:ln,Rb(i[d?ln:Bt],W,!d&&o));!d&&o&&Xn&&i[ln].componentProviders++}}}function lg(t,n,i,o){const d=Lc(n),g=function Vu(t){return!!t.useClass}(n);if(d||g){const B=(g?ft(n.useClass):n).prototype.ngOnDestroy;if(B){const W=t.destroyHooks||(t.destroyHooks=[]);if(!d&&n.multi){const he=W.indexOf(i);-1===he?W.push(i,[o,B]):W[he+1].push(o,B)}else W.push(i,B)}}}function Rb(t,n,i){return i&&t.componentProviders++,t.multi.push(n)-1}function cg(t,n,i,o){for(let d=i;d<o;d++)if(n[d]===t)return d;return-1}function iD(t,n,i,o){return dg(this.multi,[])}function sD(t,n,i,o){const d=this.multi;let g;if(this.providerFactory){const T=this.providerFactory.componentProviders,R=br(i,i[Rn],this.providerFactory.index,o);g=R.slice(0,T),dg(d,g);for(let B=T;B<R.length;B++)g.push(R[B])}else g=[],dg(d,g);return g}function dg(t,n){for(let i=0;i<t.length;i++)n.push((0,t[i])());return n}function Nb(t,n=[]){return i=>{i.providersResolver=(o,d)=>function nD(t,n,i){const o=ni();if(o.firstCreatePass){const d=Ti(t);ag(i,o.data,o.blueprint,d,!0),ag(n,o.data,o.blueprint,d,!1)}}(o,d?d(t):t,n)}}class Ch{}class Fb{}function rD(t,n){return new ug(t,n??null,[])}class ug extends Ch{constructor(n,i,o){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new P_(this);const d=Cs(n);this._bootstrapComponents=hu(d.bootstrap),this._r3Injector=zg(n,i,[{provide:Ch,useValue:this},{provide:s,useValue:this.componentFactoryResolver},...o],Ue(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class hg extends Fb{constructor(n){super(),this.moduleType=n}create(n){return new ug(this.moduleType,n,[])}}class Ab extends Ch{constructor(n){super(),this.componentFactoryResolver=new P_(this),this.instance=null;const i=new $u([...n.providers,{provide:Ch,useValue:this},{provide:s,useValue:this.componentFactoryResolver}],n.parent||$h(),n.debugName,new Set(["environment"]));this.injector=i,n.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Pb(t,n,i=null){return new Ab({providers:t,parent:n,debugName:i,runEnvironmentInitializers:!0}).injector}let lD=(()=>{class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const o=jh(0,i.type),d=o.length>0?Pb([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,d)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=dt({token:t,providedIn:"environment",factory:()=>new t(qe(od))})}}return t})();function Lb(t){t.getStandaloneInjector=n=>n.get(lD).getOrCreateStandaloneInjector(t)}function Hb(t,n,i,o){return Xb(Jt(),co(),t,n,i,o)}function Yb(t,n,i,o,d){return Wb(Jt(),co(),t,n,i,o,d)}function zb(t,n,i,o,d,g){return Kb(Jt(),co(),t,n,i,o,d,g)}function qb(t,n,i,o,d,g,T,R){const B=co()+t,W=Jt(),he=ad(W,B,i,o,d,g);return Ol(W,B+4,T)||he?Kd(W,B+5,R?n.call(R,i,o,d,g,T):n(i,o,d,g,T)):function Uf(t,n){return t[n]}(W,B+5)}function Jf(t,n){const i=t[n];return i===Hi?void 0:i}function Xb(t,n,i,o,d,g){const T=n+i;return Ol(t,T,d)?Kd(t,T+1,g?o.call(g,d):o(d)):Jf(t,T+1)}function Wb(t,n,i,o,d,g,T){const R=n+i;return vh(t,R,d,g)?Kd(t,R+2,T?o.call(T,d,g):o(d,g)):Jf(t,R+2)}function Kb(t,n,i,o,d,g,T,R){const B=n+i;return function Np(t,n,i,o,d){const g=vh(t,n,i,o);return Ol(t,n+2,d)||g}(t,B,d,g,T)?Kd(t,B+3,R?o.call(R,d,g,T):o(d,g,T)):Jf(t,B+3)}function Jb(t,n){const i=ni();let o;const d=t+gi;i.firstCreatePass?(o=function DD(t,n){if(n)for(let i=n.length-1;i>=0;i--){const o=n[i];if(t===o.name)return o}}(n,i.pipeRegistry),i.data[d]=o,o.onDestroy&&(i.destroyHooks??=[]).push(d,o.onDestroy)):o=i.data[d];const g=o.factory||(o.factory=jo(o.type)),R=on(Kh);try{const B=Ca(!1),W=g();return Ca(B),function dC(t,n,i,o){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),n[i]=o}(i,Jt(),d,W),W}finally{on(R)}}function e1(t,n,i){const o=t+gi,d=Jt(),g=ea(d,o);return ep(d,o)?Xb(d,co(),n,g.transform,i,g):g.transform(i)}function t1(t,n,i,o){const d=t+gi,g=Jt(),T=ea(g,d);return ep(g,d)?Wb(g,co(),n,T.transform,i,o,T):T.transform(i,o)}function n1(t,n,i,o,d){const g=t+gi,T=Jt(),R=ea(T,g);return ep(T,g)?Kb(T,co(),n,R.transform,i,o,d,R):R.transform(i,o,d)}function s1(t,n,i,o,d,g){const T=t+gi,R=Jt(),B=ea(R,T);return ep(R,T)?function Qb(t,n,i,o,d,g,T,R,B){const W=n+i;return ad(t,W,d,g,T,R)?Kd(t,W+4,B?o.call(B,d,g,T,R):o(d,g,T,R)):Jf(t,W+4)}(R,co(),n,B.transform,i,o,d,g,B):B.transform(i,o,d,g)}function ep(t,n){return t[Rn].data[n].pure}function TD(){return this._results[Symbol.iterator]()}class Wp{get changes(){return this._changes||(this._changes=new Xd)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Wp.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=TD)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,i){return this._results.reduce(n,i)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,i){const o=this;o.dirty=!1;const d=function sa(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function xd(t,n,i){if(t.length!==n.length)return!1;for(let o=0;o<t.length;o++){let d=t[o],g=n[o];if(i&&(d=i(d),g=i(g)),g!==d)return!1}return!0}(o._results,d,i))&&(o._results=d,o.length=d.length,o.last=d[this.length-1],o.first=d[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function SD(t,n,i,o=!0){const d=n[Rn];if(function Ou(t,n,i,o){const d=Ss+o,g=i.length;o>0&&(i[d-1][qs]=n),o<g-Ss?(n[qs]=i[d],lr(i,Ss+o,n)):(i.push(n),n[qs]=null),n[Qi]=i;const T=n[zr];null!==T&&i!==T&&function Ru(t,n){const i=t[Bo];n[Ri]!==n[Qi][Qi][Ri]&&(t[hr]=!0),null===i?t[Bo]=[n]:i.push(n)}(T,n);const R=n[So];null!==R&&R.insertView(t),n[ei]|=128}(d,n,t,i),o){const g=Ih(i,t),T=n[ti],R=Da(T,t[ro]);null!==R&&function Iu(t,n,i,o,d,g){o[Vi]=d,o[so]=n,Fu(t,o,i,1,d,g)}(d,t[so],T,n,R,g)}}let tp=(()=>{class t{static{this.__NG_ELEMENT_ID__=ID}}return t})();const kD=tp,xD=class extends kD{constructor(n,i,o){super(),this._declarationLView=n,this._declarationTContainer=i,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,i){return this.createEmbeddedViewImpl(n,i)}createEmbeddedViewImpl(n,i,o){const d=function ED(t,n,i,o){const d=n.tView,R=Sp(t,d,i,4096&t[ei]?4096:16,null,n,null,null,null,o?.injector??null,o?.hydrationInfo??null);R[zr]=t[n.index];const W=t[So];return null!==W&&(R[So]=W.createEmbeddedView(d)),Nm(d,R,i),R}(this._declarationLView,this._declarationTContainer,n,{injector:i,hydrationInfo:o});return new Gf(d)}};function ID(){return Kp(us(),Jt())}function Kp(t,n){return 4&t.type?new xD(n,t,r(t,n)):null}let Zp=(()=>{class t{static{this.__NG_ELEMENT_ID__=PD}}return t})();function PD(){return u1(us(),Jt())}const LD=Zp,c1=class extends LD{constructor(n,i,o){super(),this._lContainer=n,this._hostTNode=i,this._hostLView=o}get element(){return r(this._hostTNode,this._hostLView)}get injector(){return new Fo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ra(this._hostTNode,this._hostLView);if(wl(n)){const i=ic(n,this._hostLView),o=Ha(n);return new Fo(i[Rn].data[o+8],i)}return new Fo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const i=d1(this._lContainer);return null!==i&&i[n]||null}get length(){return this._lContainer.length-Ss}createEmbeddedView(n,i,o){let d,g;"number"==typeof o?d=o:null!=o&&(d=o.index,g=o.injector);const R=n.createEmbeddedViewImpl(i||{},g,null);return this.insertImpl(R,d,false),R}createComponent(n,i,o,d,g){const T=n&&!function lc(t){return"function"==typeof t}(n);let R;if(T)R=i;else{const Sn=i||{};R=Sn.index,o=Sn.injector,d=Sn.projectableNodes,g=Sn.environmentInjector||Sn.ngModuleRef}const B=T?n:new $f(bi(n)),W=o||this.parentInjector;if(!g&&null==B.ngModule){const Xn=(T?W:this.parentInjector).get(od,null);Xn&&(g=Xn)}bi(B.componentType??{});const Bt=B.create(W,d,null,g);return this.insertImpl(Bt.hostView,R,false),Bt}insert(n,i){return this.insertImpl(n,i,!1)}insertImpl(n,i,o){const d=n._lView;if(function Pl(t){return zi(t[Qi])}(d)){const B=this.indexOf(n);if(-1!==B)this.detach(B);else{const W=d[Qi],he=new c1(W,W[so],W[Qi]);he.detach(he.indexOf(n))}}const T=this._adjustIndex(i),R=this._lContainer;return SD(R,d,T,!o),n.attachToViewContainerRef(),lr(pg(R),T,n),n}move(n,i){return this.insert(n,i)}indexOf(n){const i=d1(this._lContainer);return null!==i?i.indexOf(n):-1}remove(n){const i=this._adjustIndex(n,-1),o=ci(this._lContainer,i);o&&(qi(pg(this._lContainer),i),vi(o[Rn],o))}detach(n){const i=this._adjustIndex(n,-1),o=ci(this._lContainer,i);return o&&null!=qi(pg(this._lContainer),i)?new Gf(o):null}_adjustIndex(n,i=0){return n??this.length+i}};function d1(t){return t[8]}function pg(t){return t[8]||(t[8]=[])}function u1(t,n){let i;const o=n[t.index];return zi(o)?i=o:(i=M_(o,n,null,t),n[t.index]=i,kp(n,i)),h1(i,n,t,o),new c1(i,t,n)}let h1=function f1(t,n,i,o){if(t[ro])return;let d;d=8&i.type?Di(o):function BD(t,n){const i=t[ti],o=i.createComment(""),d=ao(n,t);return Fs(i,Da(i,d),o,function vd(t,n){return t.nextSibling(n)}(i,d),!1),o}(n,i),t[ro]=d};class mg{constructor(n){this.queryList=n,this.matches=null}clone(){return new mg(this.queryList)}setDirty(){this.queryList.setDirty()}}class gg{constructor(n=[]){this.queries=n}createEmbeddedView(n){const i=n.queries;if(null!==i){const o=null!==n.contentQueries?n.contentQueries[0]:i.length,d=[];for(let g=0;g<o;g++){const T=i.getByIndex(g);d.push(this.queries[T.indexInDeclarationView].clone())}return new gg(d)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let i=0;i<this.queries.length;i++)null!==w1(n,i).matches&&this.queries[i].setDirty()}}class p1{constructor(n,i,o=null){this.predicate=n,this.flags=i,this.read=o}}class _g{constructor(n=[]){this.queries=n}elementStart(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(n,i)}elementEnd(n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(n)}embeddedTView(n){let i=null;for(let o=0;o<this.length;o++){const d=null!==i?i.length:0,g=this.getByIndex(o).embeddedTView(n,d);g&&(g.indexInDeclarationView=o,null!==i?i.push(g):i=[g])}return null!==i?new _g(i):null}template(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].template(n,i)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class vg{constructor(n,i=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(n,i){this.isApplyingToNode(i)&&this.matchTNode(n,i)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,i){this.elementStart(n,i)}embeddedTView(n,i){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,i),new vg(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let o=n.parent;for(;null!==o&&8&o.type&&o.index!==i;)o=o.parent;return i===(null!==o?o.index:-1)}return this._appliesToNextNode}matchTNode(n,i){const o=this.metadata.predicate;if(Array.isArray(o))for(let d=0;d<o.length;d++){const g=o[d];this.matchTNodeWithReadOption(n,i,GD(i,g)),this.matchTNodeWithReadOption(n,i,Na(i,n,g,!1,!1))}else o===tp?4&i.type&&this.matchTNodeWithReadOption(n,i,-1):this.matchTNodeWithReadOption(n,i,Na(i,n,o,!1,!1))}matchTNodeWithReadOption(n,i,o){if(null!==o){const d=this.metadata.read;if(null!==d)if(d===m||d===Zp||d===tp&&4&i.type)this.addMatch(i.index,-2);else{const g=Na(i,n,d,!1,!1);null!==g&&this.addMatch(i.index,g)}else this.addMatch(i.index,o)}}addMatch(n,i){null===this.matches?this.matches=[n,i]:this.matches.push(n,i)}}function GD(t,n){const i=t.localNames;if(null!==i)for(let o=0;o<i.length;o+=2)if(i[o]===n)return i[o+1];return null}function UD(t,n,i,o){return-1===i?function $D(t,n){return 11&t.type?r(t,n):4&t.type?Kp(t,n):null}(n,t):-2===i?function HD(t,n,i){return i===m?r(n,t):i===tp?Kp(n,t):i===Zp?u1(n,t):void 0}(t,n,o):br(t,t[Rn],i,n)}function m1(t,n,i,o){const d=n[So].queries[o];if(null===d.matches){const g=t.data,T=i.matches,R=[];for(let B=0;B<T.length;B+=2){const W=T[B];R.push(W<0?null:UD(n,g[W],T[B+1],i.metadata.read))}d.matches=R}return d.matches}function bg(t,n,i,o){const d=t.queries.getByIndex(i),g=d.matches;if(null!==g){const T=m1(t,n,d,i);for(let R=0;R<g.length;R+=2){const B=g[R];if(B>0)o.push(T[R/2]);else{const W=g[R+1],he=n[-B];for(let ze=Ss;ze<he.length;ze++){const wt=he[ze];wt[zr]===wt[Qi]&&bg(wt[Rn],wt,W,o)}if(null!==he[Bo]){const ze=he[Bo];for(let wt=0;wt<ze.length;wt++){const Bt=ze[wt];bg(Bt[Rn],Bt,W,o)}}}}}return o}function g1(t){const n=Jt(),i=ni(),o=Pn();Ci(o+1);const d=w1(i,o);if(t.dirty&&function Oo(t){return 4==(4&t[ei])}(n)===(2==(2&d.metadata.flags))){if(null===d.matches)t.reset([]);else{const g=d.crossesNgTemplate?bg(i,n,o,[]):m1(i,n,d,o);t.reset(g,D),t.notifyOnChanges()}return!0}return!1}function _1(t,n,i){const o=ni();o.firstCreatePass&&(C1(o,new p1(t,n,i),-1),2==(2&n)&&(o.staticViewQueries=!0)),y1(o,Jt(),n)}function v1(t,n,i,o){const d=ni();if(d.firstCreatePass){const g=us();C1(d,new p1(n,i,o),g.index),function zD(t,n){const i=t.contentQueries||(t.contentQueries=[]);n!==(i.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,n)}(d,t),2==(2&i)&&(d.staticContentQueries=!0)}y1(d,Jt(),i)}function b1(){return function YD(t,n){return t[So].queries[n].queryList}(Jt(),Pn())}function y1(t,n,i){const o=new Wp(4==(4&i));(function Z0(t,n,i,o){const d=E_(n);d.push(i),t.firstCreatePass&&S_(t).push(o,d.length-1)})(t,n,o,o.destroy),null===n[So]&&(n[So]=new gg),n[So].queries.push(new mg(o))}function C1(t,n,i){null===t.queries&&(t.queries=new _g),t.queries.track(new vg(n,i))}function w1(t,n){return t.queries.getByIndex(n)}function D1(t,n){return Kp(t,n)}function yg(t){return!!Cs(t)}const fM=new Dt("Application Initializer");let Tg=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=Ke(fM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const d of this.appInits){const g=d();if(zm(g))i.push(g);else if(cv(g)){const T=new Promise((R,B)=>{g.subscribe({complete:R,error:B})});i.push(T)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(d=>{this.reject(d)}),0===i.length&&o(),this.initialized=!0}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),j1=(()=>{class t{log(i){console.log(i)}warn(i){console.warn(i)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const em=new Dt("LocaleId",{providedIn:"root",factory:()=>Ke(em,Ve.Optional|Ve.SkipSelf)||function pM(){return typeof $localize<"u"&&$localize.locale||hf}()}),mM=new Dt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let G1=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new De.t(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class _M{constructor(n,i){this.ngModuleFactory=n,this.componentFactories=i}}let vM=(()=>{class t{compileModuleSync(i){return new hg(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const o=this.compileModuleSync(i),g=hu(Cs(i).declarations).reduce((T,R)=>{const B=bi(R);return B&&T.push(new $f(B)),T},[]);return new _M(o,g)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Y1=new Dt(""),z1=new Dt("");let kg,jM=(()=>{class t{constructor(i,o,d){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kg||(function GM(t){kg=t}(d),d.addToWindow(o)),this._watchAngularEvents(),i.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:()=>{Za.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(i)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,d){let g=-1;o&&o>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==g),i(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:i,timeoutId:g,updateCb:d})}whenStable(i,o,d){if(d&&!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(i,o,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,d){return[]}static{this.\u0275fac=function(o){return new(o||t)(qe(Za),qe(q1),qe(z1))}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac})}}return t})(),q1=(()=>{class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return kg?.findTestabilityInTree(this,i,o)??null}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ku=null;const X1=new Dt("AllowMultipleToken"),xg=new Dt("PlatformDestroyListeners"),W1=new Dt("appBootstrapListener");function Z1(t,n,i=[]){const o=`Platform: ${n}`,d=new Dt(o);return(g=[])=>{let T=Ig();if(!T||T.injector.get(X1,!1)){const R=[...i,...g,{provide:d,useValue:!0}];t?t(R):function HM(t){if(Ku&&!Ku.get(X1,!1))throw new me(400,!1);(function K1(){!function Cc(t){Al=t}(()=>{throw new me(600,!1)})})(),Ku=t;const n=t.get(e0);(function Q1(t){t.get(bp,null)?.forEach(i=>i())})(t)}(function J1(t=[],n){return Dd.create({name:n,providers:[{provide:uu,useValue:"platform"},{provide:xg,useValue:new Set([()=>Ku=null])},...t]})}(R,o))}return function zM(t){const n=Ig();if(!n)throw new me(401,!1);return n}()}}function Ig(){return Ku?.get(e0)??null}let e0=(()=>{class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,o){const d=function qM(t="zone.js",n){return"noop"===t?new P0:"zone.js"===t?new Za(n):t}(o?.ngZone,function t0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return d.run(()=>{const g=function aD(t,n,i){return new ug(t,n,i)}(i.moduleType,this.injector,function a0(t){return[{provide:Za,useFactory:t},{provide:Wl,multi:!0,useFactory:()=>{const n=Ke(WM,{optional:!0});return()=>n.initialize()}},{provide:r0,useFactory:XM},{provide:Qg,useFactory:Zg}]}(()=>d)),T=g.injector.get(Xu,null);return d.runOutsideAngular(()=>{const R=d.onError.subscribe({next:B=>{T.handleError(B)}});g.onDestroy(()=>{nm(this._modules,g),R.unsubscribe()})}),function n0(t,n,i){try{const o=i();return zm(o)?o.catch(d=>{throw n.runOutsideAngular(()=>t.handleError(d)),d}):o}catch(o){throw n.runOutsideAngular(()=>t.handleError(o)),o}}(T,d,()=>{const R=g.injector.get(Tg);return R.runInitializers(),R.donePromise.then(()=>(ab(g.injector.get(em,hf)||hf),this._moduleDoBootstrap(g),g))})})}bootstrapModule(i,o=[]){const d=s0({},o);return function $M(t,n,i){const o=new hg(i);return Promise.resolve(o)}(0,0,i).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(i){const o=i.injector.get(mf);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(d=>o.bootstrap(d));else{if(!i.instance.ngDoBootstrap)throw new me(-403,!1);i.instance.ngDoBootstrap(o)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new me(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const i=this._injector.get(xg,null);i&&(i.forEach(o=>o()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(o){return new(o||t)(qe(Dd))}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function s0(t,n){return Array.isArray(n)?n.reduce(s0,t):{...t,...n}}let mf=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ke(r0),this.zoneIsStable=Ke(Qg),this.componentTypes=[],this.components=[],this.isStable=Ke(G1).hasPendingTasks.pipe((0,Oe.n)(i=>i?(0,we.of)(!1):this.zoneIsStable),(0,Fe.F)(),(0,Ie.u)()),this._injector=Ke(od)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){const d=i instanceof Pf;if(!this._injector.get(Tg).done)throw!d&&Eo(i),new me(405,!1);let T;T=d?i:this._injector.get(s).resolveComponentFactory(i),this.componentTypes.push(T.componentType);const R=function UM(t){return t.isBoundToModule}(T)?void 0:this._injector.get(Ch),W=T.create(Dd.NULL,[],o||T.selector,R),he=W.location.nativeElement,ze=W.injector.get(Y1,null);return ze?.registerApplication(he),W.onDestroy(()=>{this.detachView(W.hostView),nm(this.components,W),ze?.unregisterApplication(he)}),this._loadComponent(W),W}tick(){if(this._runningTick)throw new me(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){const o=i;nm(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const o=this._injector.get(W1,[]);o.push(...this._bootstrapListeners),o.forEach(d=>d(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>nm(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new me(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function nm(t,n){const i=t.indexOf(n);i>-1&&t.splice(i,1)}const r0=new Dt("",{providedIn:"root",factory:()=>Ke(Xu).handleError.bind(void 0)});function XM(){const t=Ke(Za),n=Ke(Xu);return i=>t.runOutsideAngular(()=>n.handleError(i))}let WM=(()=>{class t{constructor(){this.zone=Ke(Za),this.applicationRef=Ke(mf)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function QM(){return!1}let ZM=(()=>{class t{static{this.__NG_ELEMENT_ID__=JM}}return t})();function JM(t){return function eT(t,n,i){if(Vo(t)&&!i){const o=lo(t.index,n);return new Gf(o,o)}return 47&t.type?new Gf(n[Ri],n):null}(us(),Jt(),16==(16&t))}class h0{constructor(){}supports(n){return Rp(n)}create(n){return new oT(n)}}const sT=(t,n)=>n;class oT{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||sT}forEachItem(n){let i;for(i=this._itHead;null!==i;i=i._next)n(i)}forEachOperation(n){let i=this._itHead,o=this._removalsHead,d=0,g=null;for(;i||o;){const T=!o||i&&i.currentIndex<p0(o,d,g)?i:o,R=p0(T,d,g),B=T.currentIndex;if(T===o)d--,o=o._nextRemoved;else if(i=i._next,null==T.previousIndex)d++;else{g||(g=[]);const W=R-d,he=B-d;if(W!=he){for(let wt=0;wt<W;wt++){const Bt=wt<g.length?g[wt]:g[wt]=0,ln=Bt+wt;he<=ln&&ln<W&&(g[wt]=Bt+1)}g[T.previousIndex]=he-W}}R!==B&&n(T,R,B)}}forEachPreviousItem(n){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachMovedItem(n){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}forEachIdentityChange(n){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)n(i)}diff(n){if(null==n&&(n=[]),!Rp(n))throw new me(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let d,g,T,i=this._itHead,o=!1;if(Array.isArray(n)){this.length=n.length;for(let R=0;R<this.length;R++)g=n[R],T=this._trackByFn(R,g),null!==i&&Object.is(i.trackById,T)?(o&&(i=this._verifyReinsertion(i,g,T,R)),Object.is(i.item,g)||this._addIdentityChange(i,g)):(i=this._mismatch(i,g,T,R),o=!0),i=i._next}else d=0,function Uy(t,n){if(Array.isArray(t))for(let i=0;i<t.length;i++)n(t[i]);else{const i=t[Symbol.iterator]();let o;for(;!(o=i.next()).done;)n(o.value)}}(n,R=>{T=this._trackByFn(d,R),null!==i&&Object.is(i.trackById,T)?(o&&(i=this._verifyReinsertion(i,R,T,d)),Object.is(i.item,R)||this._addIdentityChange(i,R)):(i=this._mismatch(i,R,T,d),o=!0),i=i._next,d++}),this.length=d;return this._truncate(i),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,i,o,d){let g;return null===n?g=this._itTail:(g=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._reinsertAfter(n,g,d)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(o,d))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._moveAfter(n,g,d)):n=this._addAfter(new rT(i,o),g,d),n}_verifyReinsertion(n,i,o,d){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==g?n=this._reinsertAfter(g,n._prev,d):n.currentIndex!=d&&(n.currentIndex=d,this._addToMoves(n,d)),n}_truncate(n){for(;null!==n;){const i=n._next;this._addToRemovals(this._unlink(n)),n=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,i,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const d=n._prevRemoved,g=n._nextRemoved;return null===d?this._removalsHead=g:d._nextRemoved=g,null===g?this._removalsTail=d:g._prevRemoved=d,this._insertAfter(n,i,o),this._addToMoves(n,o),n}_moveAfter(n,i,o){return this._unlink(n),this._insertAfter(n,i,o),this._addToMoves(n,o),n}_addAfter(n,i,o){return this._insertAfter(n,i,o),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,i,o){const d=null===i?this._itHead:i._next;return n._next=d,n._prev=i,null===d?this._itTail=n:d._prev=n,null===i?this._itHead=n:i._next=n,null===this._linkedRecords&&(this._linkedRecords=new f0),this._linkedRecords.put(n),n.currentIndex=o,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const i=n._prev,o=n._next;return null===i?this._itHead=o:i._next=o,null===o?this._itTail=i:o._prev=i,n}_addToMoves(n,i){return n.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new f0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,i){return n.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class rT{constructor(n,i){this.item=n,this.trackById=i,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 aT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,i){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===i||i<=o.currentIndex)&&Object.is(o.trackById,n))return o;return null}remove(n){const i=n._prevDup,o=n._nextDup;return null===i?this._head=o:i._nextDup=o,null===o?this._tail=i:o._prevDup=i,null===this._head}}class f0{constructor(){this.map=new Map}put(n){const i=n.trackById;let o=this.map.get(i);o||(o=new aT,this.map.set(i,o)),o.add(n)}get(n,i){const d=this.map.get(n);return d?d.get(n,i):null}remove(n){const i=n.trackById;return this.map.get(i).remove(n)&&this.map.delete(i),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function p0(t,n,i){const o=t.previousIndex;if(null===o)return o;let d=0;return i&&o<i.length&&(d=i[o]),o+n+d}class m0{constructor(){}supports(n){return n instanceof Map||Am(n)}create(){return new lT}}class lT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let i;for(i=this._mapHead;null!==i;i=i._next)n(i)}forEachPreviousItem(n){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)n(i)}forEachChangedItem(n){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}diff(n){if(n){if(!(n instanceof Map||Am(n)))throw new me(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(n,(o,d)=>{if(i&&i.key===d)this._maybeAddToChanges(i,o),this._appendAfter=i,i=i._next;else{const g=this._getOrCreateRecordForKey(d,o);i=this._insertBeforeOrAppend(i,g)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let o=i;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,i){if(n){const o=n._prev;return i._next=n,i._prev=o,n._prev=i,o&&(o._next=i),n===this._mapHead&&(this._mapHead=i),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(n,i){if(this._records.has(n)){const d=this._records.get(n);this._maybeAddToChanges(d,i);const g=d._prev,T=d._next;return g&&(g._next=T),T&&(T._prev=g),d._next=null,d._prev=null,d}const o=new cT(n);return this._records.set(n,o),o.currentValue=i,this._addToAdditions(o),o}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,i){Object.is(i,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=i,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,i){n instanceof Map?n.forEach(i):Object.keys(n).forEach(o=>i(n[o],o))}}class cT{constructor(n){this.key=n,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 g0(){return new Ag([new h0])}let Ag=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:g0})}constructor(i){this.factories=i}static create(i,o){if(null!=o){const d=o.factories.slice();i=i.concat(d)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||g0()),deps:[[t,new cc,new xs]]}}find(i){const o=this.factories.find(d=>d.supports(i));if(null!=o)return o;throw new me(901,!1)}}return t})();function _0(){return new Pg([new m0])}let Pg=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:_0})}constructor(i){this.factories=i}static create(i,o){if(o){const d=o.factories.slice();i=i.concat(d)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||_0()),deps:[[t,new cc,new xs]]}}find(i){const o=this.factories.find(d=>d.supports(i));if(o)return o;throw new me(901,!1)}}return t})();const hT=Z1(null,"core",[]);let fT=(()=>{class t{constructor(i){}static{this.\u0275fac=function(o){return new(o||t)(qe(mf))}}static{this.\u0275mod=go({type:t})}static{this.\u0275inj=Cn({})}}return t})();function MT(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function ET(t,n){const i=bi(t),o=n.elementInjector||$h();return new $f(i).create(o,n.projectableNodes,n.hostElement,n.environmentInjector)}},9417:(gn,ct,N)=>{N.d(ct,{BC:()=>oi,Fm:()=>Ko,MJ:()=>Hn,Q0:()=>mo,X1:()=>sr,YN:()=>Rl,cz:()=>mt,kq:()=>Oe,l_:()=>Yi,me:()=>_t,tU:()=>ro,vS:()=>wn});var e=N(7705),h=N(177),ne=N(2806),Z=N(7468),De=N(6354);let we=(()=>{class J{constructor(U,Ce){this._renderer=U,this._elementRef=Ce,this.onChange=Ze=>{},this.onTouched=()=>{}}setProperty(U,Ce){this._renderer.setProperty(this._elementRef.nativeElement,U,Ce)}registerOnTouched(U){this.onTouched=U}registerOnChange(U){this.onChange=U}setDisabledState(U){this.setProperty("disabled",U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:J})}}return J})(),Ie=(()=>{class J extends we{static{this.\u0275fac=function(){let U;return function(Ze){return(U||(U=e.xGo(J)))(Ze||J)}}()}static{this.\u0275dir=e.FsC({type:J,features:[e.Vt3]})}}return J})();const Oe=new e.nKC("NgValueAccessor"),Ge={provide:Oe,useExisting:(0,e.Rfq)(()=>_t),multi:!0},Ct=new e.nKC("CompositionEventMode");let _t=(()=>{class J extends we{constructor(U,Ce,Ze){super(U,Ce),this._compositionMode=Ze,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ue(){const J=(0,h.QT)()?(0,h.QT)().getUserAgent():"";return/android (\d+)/.test(J.toLowerCase())}())}writeValue(U){this.setProperty("value",U??"")}_handleInput(U){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(U)}_compositionStart(){this._composing=!0}_compositionEnd(U){this._composing=!1,this._compositionMode&&this.onChange(U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(Ct,8))}}static{this.\u0275dir=e.FsC({type:J,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(Ce,Ze){1&Ce&&e.bIt("input",function(_i){return Ze._handleInput(_i.target.value)})("blur",function(){return Ze.onTouched()})("compositionstart",function(){return Ze._compositionStart()})("compositionend",function(_i){return Ze._compositionEnd(_i.target.value)})},features:[e.Jv_([Ge]),e.Vt3]})}}return J})();const mt=new e.nKC("NgValidators"),tn=new e.nKC("NgAsyncValidators");function dn(J){return null}function Kt(J){return null!=J}function Ye(J){return(0,e.jNT)(J)?(0,ne.H)(J):J}function ye(J){let ee={};return J.forEach(U=>{ee=null!=U?{...ee,...U}:ee}),0===Object.keys(ee).length?null:ee}function Se(J,ee){return ee.map(U=>U(J))}function K(J){return J.map(ee=>function Nt(J){return!J.validate}(ee)?ee:U=>ee.validate(U))}function je(J){return null!=J?function ge(J){if(!J)return null;const ee=J.filter(Kt);return 0==ee.length?null:function(U){return ye(Se(U,ee))}}(K(J)):null}function de(J){return null!=J?function le(J){if(!J)return null;const ee=J.filter(Kt);return 0==ee.length?null:function(U){const Ce=Se(U,ee).map(Ye);return(0,Z.p)(Ce).pipe((0,De.T)(ye))}}(K(J)):null}function Le(J,ee){return null===J?[ee]:Array.isArray(J)?[...J,ee]:[J,ee]}function ue(J){return J._rawValidators}function He(J){return J._rawAsyncValidators}function L(J){return J?Array.isArray(J)?J:[J]:[]}function q(J,ee){return Array.isArray(J)?J.includes(ee):J===ee}function Be(J,ee){const U=L(ee);return L(J).forEach(Ze=>{q(U,Ze)||U.push(Ze)}),U}function pt(J,ee){return L(ee).filter(U=>!q(J,U))}class dt{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(ee){this._rawValidators=ee||[],this._composedValidatorFn=je(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=de(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee=void 0){this.control&&this.control.reset(ee)}hasError(ee,U){return!!this.control&&this.control.hasError(ee,U)}getError(ee,U){return this.control?this.control.getError(ee,U):null}}class Gt extends dt{get formDirective(){return null}get path(){return null}}class Cn extends dt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class jn{constructor(ee){this._cd=ee}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 oi=(()=>{class J extends jn{constructor(U){super(U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(Cn,2))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ce,Ze){2&Ce&&e.AVh("ng-untouched",Ze.isUntouched)("ng-touched",Ze.isTouched)("ng-pristine",Ze.isPristine)("ng-dirty",Ze.isDirty)("ng-valid",Ze.isValid)("ng-invalid",Ze.isInvalid)("ng-pending",Ze.isPending)},features:[e.Vt3]})}}return J})();const di="VALID",ai="INVALID",Ai="PENDING",cs="DISABLED";function mn(J){return null!=J&&!Array.isArray(J)&&"object"==typeof J}class xt{constructor(ee,U){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ee),this._assignAsyncValidators(U)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===di}get invalid(){return this.status===ai}get pending(){return this.status==Ai}get disabled(){return this.status===cs}get enabled(){return this.status!==cs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._assignValidators(ee)}setAsyncValidators(ee){this._assignAsyncValidators(ee)}addValidators(ee){this.setValidators(Be(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(Be(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(pt(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(pt(ee,this._rawAsyncValidators))}hasValidator(ee){return q(this._rawValidators,ee)}hasAsyncValidator(ee){return q(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(U=>{U.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(U=>{U.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=Ai,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const U=this._parentMarkedDirty(ee.onlySelf);this.status=cs,this.errors=null,this._forEachChild(Ce=>{Ce.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:U}),this._onDisabledChange.forEach(Ce=>Ce(!0))}enable(ee={}){const U=this._parentMarkedDirty(ee.onlySelf);this.status=di,this._forEachChild(Ce=>{Ce.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:U}),this._onDisabledChange.forEach(Ce=>Ce(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===di||this.status===Ai)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(U=>U._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cs:di}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=Ai,this._hasOwnPendingAsyncValidator=!0;const U=Ye(this.asyncValidator(this));this._asyncValidationSubscription=U.subscribe(Ce=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ce,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,U={}){this.errors=ee,this._updateControlsErrors(!1!==U.emitEvent)}get(ee){let U=ee;return null==U||(Array.isArray(U)||(U=U.split(".")),0===U.length)?null:U.reduce((Ce,Ze)=>Ce&&Ce._find(Ze),this)}getError(ee,U){const Ce=U?this.get(U):this;return Ce&&Ce.errors?Ce.errors[ee]:null}hasError(ee,U){return!!this.getError(ee,U)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new e.bkB,this.statusChanges=new e.bkB}_calculateStatus(){return this._allControlsDisabled()?cs:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ai)?Ai:this._anyControlsHaveStatus(ai)?ai:di}_anyControlsHaveStatus(ee){return this._anyControls(U=>U.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){mn(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}_assignValidators(ee){this._rawValidators=Array.isArray(ee)?ee.slice():ee,this._composedValidatorFn=function As(J){return Array.isArray(J)?je(J):J||null}(this._rawValidators)}_assignAsyncValidators(ee){this._rawAsyncValidators=Array.isArray(ee)?ee.slice():ee,this._composedAsyncValidatorFn=function to(J){return Array.isArray(J)?de(J):J||null}(this._rawAsyncValidators)}}const fn=new e.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>gt}),gt="always";function Ee(J,ee,U=gt){(function Je(J,ee){const U=ue(J);null!==ee.validator?J.setValidators(Le(U,ee.validator)):"function"==typeof U&&J.setValidators([U]);const Ce=He(J);null!==ee.asyncValidator?J.setAsyncValidators(Le(Ce,ee.asyncValidator)):"function"==typeof Ce&&J.setAsyncValidators([Ce]);const Ze=()=>J.updateValueAndValidity();jt(ee._rawValidators,Ze),jt(ee._rawAsyncValidators,Ze)})(J,ee),ee.valueAccessor.writeValue(J.value),(J.disabled||"always"===U)&&ee.valueAccessor.setDisabledState?.(J.disabled),function it(J,ee){ee.valueAccessor.registerOnChange(U=>{J._pendingValue=U,J._pendingChange=!0,J._pendingDirty=!0,"change"===J.updateOn&&nn(J,ee)})}(J,ee),function un(J,ee){const U=(Ce,Ze)=>{ee.valueAccessor.writeValue(Ce),Ze&&ee.viewToModelUpdate(Ce)};J.registerOnChange(U),ee._registerOnDestroy(()=>{J._unregisterOnChange(U)})}(J,ee),function Zt(J,ee){ee.valueAccessor.registerOnTouched(()=>{J._pendingTouched=!0,"blur"===J.updateOn&&J._pendingChange&&nn(J,ee),"submit"!==J.updateOn&&J.markAsTouched()})}(J,ee),function pn(J,ee){if(ee.valueAccessor.setDisabledState){const U=Ce=>{ee.valueAccessor.setDisabledState(Ce)};J.registerOnDisabledChange(U),ee._registerOnDestroy(()=>{J._unregisterOnDisabledChange(U)})}}(J,ee)}function Ke(J,ee,U=!0){const Ce=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(Ce),ee.valueAccessor.registerOnTouched(Ce)),function $e(J,ee){let U=!1;if(null!==J){if(null!==ee.validator){const Ze=ue(J);if(Array.isArray(Ze)&&Ze.length>0){const Yn=Ze.filter(_i=>_i!==ee.validator);Yn.length!==Ze.length&&(U=!0,J.setValidators(Yn))}}if(null!==ee.asyncValidator){const Ze=He(J);if(Array.isArray(Ze)&&Ze.length>0){const Yn=Ze.filter(_i=>_i!==ee.asyncValidator);Yn.length!==Ze.length&&(U=!0,J.setAsyncValidators(Yn))}}}const Ce=()=>{};return jt(ee._rawValidators,Ce),jt(ee._rawAsyncValidators,Ce),U}(J,ee),J&&(ee._invokeOnDestroyCallbacks(),J._registerOnCollectionChange(()=>{}))}function jt(J,ee){J.forEach(U=>{U.registerOnValidatorChange&&U.registerOnValidatorChange(ee)})}function nn(J,ee){J._pendingDirty&&J.markAsDirty(),J.setValue(J._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(J._pendingValue),J._pendingChange=!1}function ps(J,ee){if(!J.hasOwnProperty("model"))return!1;const U=J.model;return!!U.isFirstChange()||!Object.is(ee,U.currentValue)}function Re(J,ee){if(!ee)return null;let U,Ce,Ze;return Array.isArray(ee),ee.forEach(Yn=>{Yn.constructor===_t?U=Yn:function Ts(J){return Object.getPrototypeOf(J.constructor)===Ie}(Yn)?Ce=Yn:Ze=Yn}),Ze||Ce||U||null}function At(J,ee){const U=J.indexOf(ee);U>-1&&J.splice(U,1)}function In(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}const Hn=class extends xt{constructor(ee=null,U,Ce){super(function Bi(J){return(mn(J)?J.validators:J)||null}(U),function Ms(J,ee){return(mn(ee)?ee.asyncValidators:J)||null}(Ce,U)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(U),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mn(U)&&(U.nonNullable||U.initialValueIsDefault)&&(this.defaultValue=In(ee)?ee.value:ee)}setValue(ee,U={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==U.emitModelToViewChange&&this._onChange.forEach(Ce=>Ce(this.value,!1!==U.emitViewToModelChange)),this.updateValueAndValidity(U)}patchValue(ee,U={}){this.setValue(ee,U)}reset(ee=this.defaultValue,U={}){this._applyFormState(ee),this.markAsPristine(U),this.markAsUntouched(U),this.setValue(this.value,U),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){At(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){At(this._onDisabledChange,ee)}_forEachChild(ee){}_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(ee){In(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},Vs={provide:Cn,useExisting:(0,e.Rfq)(()=>wn)},Ja=(()=>Promise.resolve())();let wn=(()=>{class J extends Cn{constructor(U,Ce,Ze,Yn,_i,wr){super(),this._changeDetectorRef=_i,this.callSetDisabledState=wr,this.control=new Hn,this._registered=!1,this.name="",this.update=new e.bkB,this._parent=U,this._setValidators(Ce),this._setAsyncValidators(Ze),this.valueAccessor=Re(0,Yn)}ngOnChanges(U){if(this._checkForErrors(),!this._registered||"name"in U){if(this._registered&&(this._checkName(),this.formDirective)){const Ce=U.name.previousValue;this.formDirective.removeControl({name:Ce,path:this._getPath(Ce)})}this._setUpControl()}"isDisabled"in U&&this._updateDisabled(U),ps(U,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(U){this.viewModel=U,this.update.emit(U)}_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(){Ee(this.control,this,this.callSetDisabledState),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(U){Ja.then(()=>{this.control.setValue(U,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(U){const Ce=U.isDisabled.currentValue,Ze=0!==Ce&&(0,e.L39)(Ce);Ja.then(()=>{Ze&&!this.control.disabled?this.control.disable():!Ze&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(U){return this._parent?function qe(J,ee){return[...ee.path,J]}(U,this._parent):[U]}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(Gt,9),e.rXU(mt,10),e.rXU(tn,10),e.rXU(Oe,10),e.rXU(e.gRc,8),e.rXU(fn,8))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e.Jv_([Vs]),e.Vt3,e.OA$]})}}return J})();const ms={provide:Oe,useExisting:(0,e.Rfq)(()=>mo),multi:!0};let mo=(()=>{class J extends Ie{writeValue(U){this.setProperty("value",U??"")}registerOnChange(U){this.onChange=Ce=>{U(""==Ce?null:parseFloat(Ce))}}static{this.\u0275fac=function(){let U;return function(Ze){return(U||(U=e.xGo(J)))(Ze||J)}}()}static{this.\u0275dir=e.FsC({type:J,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ce,Ze){1&Ce&&e.bIt("input",function(_i){return Ze.onChange(_i.target.value)})("blur",function(){return Ze.onTouched()})},features:[e.Jv_([ms]),e.Vt3]})}}return J})();const ca={provide:Oe,useExisting:(0,e.Rfq)(()=>Ko),multi:!0};let go=(()=>{class J{static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({})}}return J})(),Po=(()=>{class J{constructor(){this._accessors=[]}add(U,Ce){this._accessors.push([U,Ce])}remove(U){for(let Ce=this._accessors.length-1;Ce>=0;--Ce)if(this._accessors[Ce][1]===U)return void this._accessors.splice(Ce,1)}select(U){this._accessors.forEach(Ce=>{this._isSameGroup(Ce,U)&&Ce[1]!==U&&Ce[1].fireUncheck(U.value)})}_isSameGroup(U,Ce){return!!U[0].control&&U[0]._parent===Ce._control._parent&&U[1].name===Ce.name}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275prov=e.jDH({token:J,factory:J.\u0275fac,providedIn:go})}}return J})(),Ko=(()=>{class J extends Ie{constructor(U,Ce,Ze,Yn){super(U,Ce),this._registry=Ze,this._injector=Yn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.WQX)(fn,{optional:!0})??gt}ngOnInit(){this._control=this._injector.get(Cn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(U){this._state=U===this.value,this.setProperty("checked",this._state)}registerOnChange(U){this._fn=U,this.onChange=()=>{U(this.value),this._registry.select(this)}}setDisabledState(U){(this.setDisabledStateFired||U||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",U),this.setDisabledStateFired=!0}fireUncheck(U){this.writeValue(U)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(Po),e.rXU(e.zZn))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Ce,Ze){1&Ce&&e.bIt("change",function(){return Ze.onChange()})("blur",function(){return Ze.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e.Jv_([ca]),e.Vt3]})}}return J})();const bi=new e.nKC("NgModelWithFormControlWarning"),ys={provide:Cn,useExisting:(0,e.Rfq)(()=>Yi)};let Yi=(()=>{class J extends Cn{set isDisabled(U){}static{this._ngModelWarningSentOnce=!1}constructor(U,Ce,Ze,Yn,_i){super(),this._ngModelWarningConfig=Yn,this.callSetDisabledState=_i,this.update=new e.bkB,this._ngModelWarningSent=!1,this._setValidators(U),this._setAsyncValidators(Ce),this.valueAccessor=Re(0,Ze)}ngOnChanges(U){if(this._isControlChanged(U)){const Ce=U.form.previousValue;Ce&&Ke(Ce,this,!1),Ee(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ps(U,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ke(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(U){this.viewModel=U,this.update.emit(U)}_isControlChanged(U){return U.hasOwnProperty("form")}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(mt,10),e.rXU(tn,10),e.rXU(Oe,10),e.rXU(bi,8),e.rXU(fn,8))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e.Jv_([ys]),e.Vt3,e.OA$]})}}return J})();let Ri=(()=>{class J{constructor(){this._validator=dn}ngOnChanges(U){if(this.inputName in U){const Ce=this.normalizeInput(U[this.inputName].currentValue);this._enabled=this.enabled(Ce),this._validator=this._enabled?this.createValidator(Ce):dn,this._onChange&&this._onChange()}}validate(U){return this._validator(U)}registerOnValidatorChange(U){this._onChange=U}enabled(U){return null!=U}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275dir=e.FsC({type:J,features:[e.OA$]})}}return J})();const hr={provide:mt,useExisting:(0,e.Rfq)(()=>ro),multi:!0};let ro=(()=>{class J extends Ri{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=U=>function Aa(J){return"number"==typeof J?J:parseInt(J,10)}(U),this.createValidator=U=>function cn(J){return ee=>function ft(J){return null!=J&&"number"==typeof J.length}(ee.value)&&ee.value.length>J?{maxlength:{requiredLength:J,actualLength:ee.value.length}}:null}(U)}static{this.\u0275fac=function(){let U;return function(Ze){return(U||(U=e.xGo(J)))(Ze||J)}}()}static{this.\u0275dir=e.FsC({type:J,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ce,Ze){2&Ce&&e.BMQ("maxlength",Ze._enabled?Ze.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e.Jv_([hr]),e.Vt3]})}}return J})(),Ns=(()=>{class J{static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[go]})}}return J})(),Rl=(()=>{class J{static withConfig(U){return{ngModule:J,providers:[{provide:fn,useValue:U.callSetDisabledState??gt}]}}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[Ns]})}}return J})(),sr=(()=>{class J{static withConfig(U){return{ngModule:J,providers:[{provide:bi,useValue:U.warnOnNgModelWithFormControl??"always"},{provide:fn,useValue:U.callSetDisabledState??gt}]}}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[Ns]})}}return J})()},969:(gn,ct,N)=>{N.d(ct,{rJ:()=>le,u6:()=>ft});var e=N(7705),h=N(177),ne=N(4412),Z=N(1985),Ie=(N(1413),N(4572),N(5558));N(6697),N(6354),N(6977);const Ge=["*"];class Ue{_clearListeners(){for(const He of this._listeners)He.remove();this._listeners=[]}constructor(He){this._ngZone=He,this._pending=[],this._listeners=[],this._targetStream=new ne.t(void 0)}getLazyEmitter(He){return this._targetStream.pipe((0,Ie.n)(L=>{const q=new Z.c(Be=>{if(!L)return void this._pending.push({observable:q,observer:Be});const pt=L.addListener(He,dt=>{this._ngZone.run(()=>Be.next(dt))});if(pt)return this._listeners.push(pt),()=>pt.remove();Be.complete()});return q}))}setTarget(He){const L=this._targetStream.value;He!==L&&(L&&(this._clearListeners(),this._pending=[]),this._targetStream.next(He),this._pending.forEach(q=>q.observable.subscribe(q.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const Ct={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"};let ft=(()=>{class ue{set center(L){this._center=L}set zoom(L){this._zoom=L}set options(L){this._options=L||Ct}constructor(L,q,Be){if(this._elementRef=L,this._ngZone=q,this._eventManager=new Ue((0,e.WQX)(e.SKi)),this.height="500px",this.width="500px",this._options=Ct,this.mapInitialized=new e.bkB,this.authFailure=new e.bkB,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=(0,h.UE)(Be),this._isBrowser){const pt=window;this._existingAuthFailureCallback=pt.gm_authFailure,pt.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(L){(L.height||L.width)&&this._setSize();const q=this.googleMap;q&&(L.options&&q.setOptions(this._combineOptions()),L.center&&this._center&&q.setCenter(this._center),L.zoom&&null!=this._zoom&&q.setZoom(this._zoom),L.mapTypeId&&this.mapTypeId&&q.setMapTypeId(this.mapTypeId))}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._ngZone.runOutsideAngular(()=>{this.googleMap=new google.maps.Map(this._mapEl,this._combineOptions())}),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap))}ngOnDestroy(){this._eventManager.destroy(),this._isBrowser&&(window.gm_authFailure=this._existingAuthFailureCallback)}fitBounds(L,q){this._assertInitialized(),this.googleMap.fitBounds(L,q)}panBy(L,q){this._assertInitialized(),this.googleMap.panBy(L,q)}panTo(L){this._assertInitialized(),this.googleMap.panTo(L)}panToBounds(L,q){this._assertInitialized(),this.googleMap.panToBounds(L,q)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_setSize(){if(this._mapEl){const L=this._mapEl.style;L.height=null===this.height?"":tn(this.height)||"500px",L.width=null===this.width?"":tn(this.width)||"500px"}}_combineOptions(){const L=this._options||{};return{...L,center:this._center||L.center||Ct.center,zoom:this._zoom??L.zoom??Ct.zoom,mapTypeId:this.mapTypeId||L.mapTypeId||Ct.mapTypeId}}_assertInitialized(){}static{this.\u0275fac=function(q){return new(q||ue)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:ue,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[e.OA$],ngContentSelectors:Ge,decls:2,vars:0,consts:[[1,"map-container"]],template:function(q,Be){1&q&&(e.NAR(),e.nrm(0,"div",0),e.SdG(1))},encapsulation:2,changeDetection:0})}}return ue})();const mt=/([A-Za-z%]+)$/;function tn(ue){return null==ue?"":mt.test(ue)?ue:`${ue}px`}let le=(()=>{class ue{static{this.\u0275fac=function(q){return new(q||ue)}}static{this.\u0275mod=e.$C({type:ue})}static{this.\u0275inj=e.G2t({})}}return ue})()},6600:(gn,ct,N)=>{N.d(ct,{$E:()=>re,yE:()=>me,r6:()=>xe,pZ:()=>Ve,Zc:()=>Tt,GG:()=>cn,Ob:()=>kt});var e=N(7705),h=N(6039),ne=N(8203),De=N(177),we=N(6860),Ie=N(4085);const Pt=new e.nKC("mat-sanity-checks",{providedIn:"root",factory:function vt(){return!0}});let me=(()=>{class rn{constructor(ve,Ae,Ne){this._sanityChecks=Ae,this._document=Ne,this._hasDoneGlobalChecks=!1,ve._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ve){return!(0,we.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ve])}static{this.\u0275fac=function(Ae){return new(Ae||rn)(e.KVO(h.Q_),e.KVO(Pt,8),e.KVO(De.qQ))}}static{this.\u0275mod=e.$C({type:rn})}static{this.\u0275inj=e.G2t({imports:[ne.jI,ne.jI]})}}return rn})();function kt(rn){return class extends rn{get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,Ie.he)(xt)}constructor(...xt){super(...xt),this._disabled=!1}}}function Tt(rn,xt){return class extends rn{get color(){return this._color}set color(ve){const Ae=ve||this.defaultColor;Ae!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ae&&this._elementRef.nativeElement.classList.add(`mat-${Ae}`),this._color=Ae)}constructor(...ve){super(...ve),this.defaultColor=xt,this.color=xt}}}function cn(rn){return class extends rn{get disableRipple(){return this._disableRipple}set disableRipple(xt){this._disableRipple=(0,Ie.he)(xt)}constructor(...xt){super(...xt),this._disableRipple=!1}}}class dt{constructor(xt,ve,Ae,Ne=!1){this._renderer=xt,this.element=ve,this.config=Ae,this._animationForciblyDisabledThroughCss=Ne,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Gt=(0,we.BQ)({passive:!0,capture:!0});class Cn{constructor(){this._events=new Map,this._delegateEventHandler=xt=>{const ve=(0,we.Fb)(xt);ve&&this._events.get(xt.type)?.forEach((Ae,Ne)=>{(Ne===ve||Ne.contains(ve))&&Ae.forEach(We=>We.handleEvent(xt))})}}addHandler(xt,ve,Ae,Ne){const We=this._events.get(ve);if(We){const qt=We.get(Ae);qt?qt.add(Ne):We.set(Ae,new Set([Ne]))}else this._events.set(ve,new Map([[Ae,new Set([Ne])]])),xt.runOutsideAngular(()=>{document.addEventListener(ve,this._delegateEventHandler,Gt)})}removeHandler(xt,ve,Ae){const Ne=this._events.get(xt);if(!Ne)return;const We=Ne.get(ve);We&&(We.delete(Ae),0===We.size&&Ne.delete(ve),0===Ne.size&&(this._events.delete(xt),document.removeEventListener(xt,this._delegateEventHandler,Gt)))}}const jn={enterDuration:225,exitDuration:150},Vn=(0,we.BQ)({passive:!0,capture:!0}),oi=["mousedown","touchstart"],yi=["mouseup","mouseleave","touchend","touchcancel"];class It{static{this._eventManager=new Cn}constructor(xt,ve,Ae,Ne){this._target=xt,this._ngZone=ve,this._platform=Ne,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ne.isBrowser&&(this._containerElement=(0,Ie.i8)(Ae))}fadeInRipple(xt,ve,Ae={}){const Ne=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),We={...jn,...Ae.animation};Ae.centered&&(xt=Ne.left+Ne.width/2,ve=Ne.top+Ne.height/2);const qt=Ae.radius||function ke(rn,xt,ve){const Ae=Math.max(Math.abs(rn-ve.left),Math.abs(rn-ve.right)),Ne=Math.max(Math.abs(xt-ve.top),Math.abs(xt-ve.bottom));return Math.sqrt(Ae*Ae+Ne*Ne)}(xt,ve,Ne),fn=xt-Ne.left,gt=ve-Ne.top,qe=We.enterDuration,Ee=document.createElement("div");Ee.classList.add("mat-ripple-element"),Ee.style.left=fn-qt+"px",Ee.style.top=gt-qt+"px",Ee.style.height=2*qt+"px",Ee.style.width=2*qt+"px",null!=Ae.color&&(Ee.style.backgroundColor=Ae.color),Ee.style.transitionDuration=`${qe}ms`,this._containerElement.appendChild(Ee);const Ke=window.getComputedStyle(Ee),pn=Ke.transitionDuration,Je="none"===Ke.transitionProperty||"0s"===pn||"0s, 0s"===pn||0===Ne.width&&0===Ne.height,$e=new dt(this,Ee,Ae,Je);Ee.style.transform="scale3d(1, 1, 1)",$e.state=0,Ae.persistent||(this._mostRecentTransientRipple=$e);let it=null;return!Je&&(qe||We.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Zt=()=>this._finishRippleTransition($e),nn=()=>this._destroyRipple($e);Ee.addEventListener("transitionend",Zt),Ee.addEventListener("transitioncancel",nn),it={onTransitionEnd:Zt,onTransitionCancel:nn}}),this._activeRipples.set($e,it),(Je||!qe)&&this._finishRippleTransition($e),$e}fadeOutRipple(xt){if(2===xt.state||3===xt.state)return;const ve=xt.element,Ae={...jn,...xt.config.animation};ve.style.transitionDuration=`${Ae.exitDuration}ms`,ve.style.opacity="0",xt.state=2,(xt._animationForciblyDisabledThroughCss||!Ae.exitDuration)&&this._finishRippleTransition(xt)}fadeOutAll(){this._getActiveRipples().forEach(xt=>xt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(xt=>{xt.config.persistent||xt.fadeOut()})}setupTriggerEvents(xt){const ve=(0,Ie.i8)(xt);!this._platform.isBrowser||!ve||ve===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ve,oi.forEach(Ae=>{It._eventManager.addHandler(this._ngZone,Ae,ve,this)}))}handleEvent(xt){"mousedown"===xt.type?this._onMousedown(xt):"touchstart"===xt.type?this._onTouchStart(xt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{yi.forEach(ve=>{this._triggerElement.addEventListener(ve,this,Vn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(xt){0===xt.state?this._startFadeOutTransition(xt):2===xt.state&&this._destroyRipple(xt)}_startFadeOutTransition(xt){const ve=xt===this._mostRecentTransientRipple,{persistent:Ae}=xt.config;xt.state=1,!Ae&&(!ve||!this._isPointerDown)&&xt.fadeOut()}_destroyRipple(xt){const ve=this._activeRipples.get(xt)??null;this._activeRipples.delete(xt),this._activeRipples.size||(this._containerRect=null),xt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),xt.state=3,null!==ve&&(xt.element.removeEventListener("transitionend",ve.onTransitionEnd),xt.element.removeEventListener("transitioncancel",ve.onTransitionCancel)),xt.element.remove()}_onMousedown(xt){const ve=(0,h._G)(xt),Ae=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ve&&!Ae&&(this._isPointerDown=!0,this.fadeInRipple(xt.clientX,xt.clientY,this._target.rippleConfig))}_onTouchStart(xt){if(!this._target.rippleDisabled&&!(0,h.w6)(xt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ve=xt.changedTouches;if(ve)for(let Ae=0;Ae<ve.length;Ae++)this.fadeInRipple(ve[Ae].clientX,ve[Ae].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(xt=>{!xt.config.persistent&&(1===xt.state||xt.config.terminateOnPointerUp&&0===xt.state)&&xt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const xt=this._triggerElement;xt&&(oi.forEach(ve=>It._eventManager.removeHandler(ve,xt,this)),this._pointerUpEventsRegistered&&yi.forEach(ve=>xt.removeEventListener(ve,this,Vn)))}}const re=new e.nKC("mat-ripple-global-options");let xe=(()=>{class rn{get disabled(){return this._disabled}set disabled(ve){ve&&this.fadeOutAllNonPersistent(),this._disabled=ve,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ve){this._trigger=ve,this._setupTriggerEventsIfEnabled()}constructor(ve,Ae,Ne,We,qt){this._elementRef=ve,this._animationMode=qt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=We||{},this._rippleRenderer=new It(this,Ae,ve,Ne)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ve,Ae=0,Ne){return"number"==typeof ve?this._rippleRenderer.fadeInRipple(ve,Ae,{...this.rippleConfig,...Ne}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ve})}static{this.\u0275fac=function(Ae){return new(Ae||rn)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(we.OD),e.rXU(re,8),e.rXU(e.bc$,8))}}static{this.\u0275dir=e.FsC({type:rn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ae,Ne){2&Ae&&e.AVh("mat-ripple-unbounded",Ne.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}}return rn})(),Ve=(()=>{class rn{static{this.\u0275fac=function(Ae){return new(Ae||rn)}}static{this.\u0275mod=e.$C({type:rn})}static{this.\u0275inj=e.G2t({imports:[me,me]})}}return rn})()},5351:(gn,ct,N)=>{N.d(ct,{Vh:()=>pt,bZ:()=>yi,ru:()=>Nt,hM:()=>Ft,CP:()=>q});var e=N(7987),h=N(177),ne=N(7705),Z=N(6039),De=N(6860),we=N(6939),Ie=N(7336),Oe=N(1413),Fe=N(9030),Me=N(7673),Ge=N(8203),Ue=N(9172);function Ct(Qt,Xt){}class _t{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let ft=(()=>{class Qt extends we.lb{constructor(nt,Mt,Dt,Nn,yn,$n,di,ai){super(),this._elementRef=nt,this._focusTrapFactory=Mt,this._config=Nn,this._interactivityChecker=yn,this._ngZone=$n,this._overlayRef=di,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Ai=>{this._portalOutlet.hasAttached();const cs=this._portalOutlet.attachDomPortal(Ai);return this._contentAttached(),cs},this._document=Dt,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(nt){this._portalOutlet.hasAttached();const Mt=this._portalOutlet.attachComponentPortal(nt);return this._contentAttached(),Mt}attachTemplatePortal(nt){this._portalOutlet.hasAttached();const Mt=this._portalOutlet.attachTemplatePortal(nt);return this._contentAttached(),Mt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(nt,Mt){this._interactivityChecker.isFocusable(nt)||(nt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Dt=()=>{nt.removeEventListener("blur",Dt),nt.removeEventListener("mousedown",Dt),nt.removeAttribute("tabindex")};nt.addEventListener("blur",Dt),nt.addEventListener("mousedown",Dt)})),nt.focus(Mt)}_focusByCssSelector(nt,Mt){let Dt=this._elementRef.nativeElement.querySelector(nt);Dt&&this._forceFocus(Dt,Mt)}_trapFocus(){const nt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||nt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Mt=>{Mt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const nt=this._config.restoreFocus;let Mt=null;if("string"==typeof nt?Mt=this._document.querySelector(nt):"boolean"==typeof nt?Mt=nt?this._elementFocusedBeforeDialogWasOpened:null:nt&&(Mt=nt),this._config.restoreFocus&&Mt&&"function"==typeof Mt.focus){const Dt=(0,De.vc)(),Nn=this._elementRef.nativeElement;(!Dt||Dt===this._document.body||Dt===Nn||Nn.contains(Dt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Mt,this._closeInteractionType),this._closeInteractionType=null):Mt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const nt=this._elementRef.nativeElement,Mt=(0,De.vc)();return nt===Mt||nt.contains(Mt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,De.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(Mt){return new(Mt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(_t),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["cdk-dialog-container"]],viewQuery:function(Mt,Dt){if(1&Mt&&ne.GBs(we.I3,7),2&Mt){let Nn;ne.mGM(Nn=ne.lsd())&&(Dt._portalOutlet=Nn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Mt,Dt){2&Mt&&ne.BMQ("id",Dt._config.id||null)("role",Dt._config.role)("aria-modal",Dt._config.ariaModal)("aria-labelledby",Dt._config.ariaLabel?null:Dt._ariaLabelledByQueue[0])("aria-label",Dt._config.ariaLabel)("aria-describedby",Dt._config.ariaDescribedBy||null)},features:[ne.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Mt,Dt){1&Mt&&ne.DNE(0,Ct,0,0,"ng-template",0)},dependencies:[we.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return Qt})();class mt{constructor(Xt,nt){this.overlayRef=Xt,this.config=nt,this.closed=new Oe.B,this.disableClose=nt.disableClose,this.backdropClick=Xt.backdropClick(),this.keydownEvents=Xt.keydownEvents(),this.outsidePointerEvents=Xt.outsidePointerEvents(),this.id=nt.id,this.keydownEvents.subscribe(Mt=>{Mt.keyCode===Ie._f&&!this.disableClose&&!(0,Ie.rp)(Mt)&&(Mt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Xt.detachments().subscribe(()=>{!1!==nt.closeOnOverlayDetachments&&this.close()})}close(Xt,nt){if(this.containerInstance){const Mt=this.closed;this.containerInstance._closeInteractionType=nt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Mt.next(Xt),Mt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Xt="",nt=""){return this.overlayRef.updateSize({width:Xt,height:nt}),this}addPanelClass(Xt){return this.overlayRef.addPanelClass(Xt),this}removePanelClass(Xt){return this.overlayRef.removePanelClass(Xt),this}}const tn=new ne.nKC("DialogScrollStrategy"),vt=new ne.nKC("DialogData"),Pt=new ne.nKC("DefaultDialogConfig"),at={provide:tn,deps:[e.hJ],useFactory:function me(Qt){return()=>Qt.scrollStrategies.block()}};let ot=0,ht=(()=>{class Qt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(nt,Mt,Dt,Nn,yn,$n){this._overlay=nt,this._injector=Mt,this._defaultOptions=Dt,this._parentDialog=Nn,this._overlayContainer=yn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Oe.B,this._afterOpenedAtThisLevel=new Oe.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,Fe.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,Ue.Z)(void 0))),this._scrollStrategy=$n}open(nt,Mt){(Mt={...this._defaultOptions||new _t,...Mt}).id=Mt.id||"cdk-dialog-"+ot++,Mt.id&&this.getDialogById(Mt.id);const Nn=this._getOverlayConfig(Mt),yn=this._overlay.create(Nn),$n=new mt(yn,Mt),di=this._attachContainer(yn,$n,Mt);return $n.containerInstance=di,this._attachDialogContent(nt,$n,di,Mt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push($n),$n.closed.subscribe(()=>this._removeOpenDialog($n,!0)),this.afterOpened.next($n),$n}closeAll(){kt(this.openDialogs,nt=>nt.close())}getDialogById(nt){return this.openDialogs.find(Mt=>Mt.id===nt)}ngOnDestroy(){kt(this._openDialogsAtThisLevel,nt=>{!1===nt.config.closeOnDestroy&&this._removeOpenDialog(nt,!1)}),kt(this._openDialogsAtThisLevel,nt=>nt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(nt){const Mt=new e.rR({positionStrategy:nt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:nt.scrollStrategy||this._scrollStrategy(),panelClass:nt.panelClass,hasBackdrop:nt.hasBackdrop,direction:nt.direction,minWidth:nt.minWidth,minHeight:nt.minHeight,maxWidth:nt.maxWidth,maxHeight:nt.maxHeight,width:nt.width,height:nt.height,disposeOnNavigation:nt.closeOnNavigation});return nt.backdropClass&&(Mt.backdropClass=nt.backdropClass),Mt}_attachContainer(nt,Mt,Dt){const Nn=Dt.injector||Dt.viewContainerRef?.injector,yn=[{provide:_t,useValue:Dt},{provide:mt,useValue:Mt},{provide:e.yY,useValue:nt}];let $n;Dt.container?"function"==typeof Dt.container?$n=Dt.container:($n=Dt.container.type,yn.push(...Dt.container.providers(Dt))):$n=ft;const di=new we.A8($n,Dt.viewContainerRef,ne.zZn.create({parent:Nn||this._injector,providers:yn}),Dt.componentFactoryResolver);return nt.attach(di).instance}_attachDialogContent(nt,Mt,Dt,Nn){if(nt instanceof ne.C4Q){const yn=this._createInjector(Nn,Mt,Dt,void 0);let $n={$implicit:Nn.data,dialogRef:Mt};Nn.templateContext&&($n={...$n,..."function"==typeof Nn.templateContext?Nn.templateContext():Nn.templateContext}),Dt.attachTemplatePortal(new we.VA(nt,null,$n,yn))}else{const yn=this._createInjector(Nn,Mt,Dt,this._injector),$n=Dt.attachComponentPortal(new we.A8(nt,Nn.viewContainerRef,yn,Nn.componentFactoryResolver));Mt.componentRef=$n,Mt.componentInstance=$n.instance}}_createInjector(nt,Mt,Dt,Nn){const yn=nt.injector||nt.viewContainerRef?.injector,$n=[{provide:vt,useValue:nt.data},{provide:mt,useValue:Mt}];return nt.providers&&("function"==typeof nt.providers?$n.push(...nt.providers(Mt,nt,Dt)):$n.push(...nt.providers)),nt.direction&&(!yn||!yn.get(Ge.dS,null,{optional:!0}))&&$n.push({provide:Ge.dS,useValue:{value:nt.direction,change:(0,Me.of)()}}),ne.zZn.create({parent:yn||Nn,providers:$n})}_removeOpenDialog(nt,Mt){const Dt=this.openDialogs.indexOf(nt);Dt>-1&&(this.openDialogs.splice(Dt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Nn,yn)=>{Nn?yn.setAttribute("aria-hidden",Nn):yn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Mt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const nt=this._overlayContainer.getContainerElement();if(nt.parentElement){const Mt=nt.parentElement.children;for(let Dt=Mt.length-1;Dt>-1;Dt--){const Nn=Mt[Dt];Nn!==nt&&"SCRIPT"!==Nn.nodeName&&"STYLE"!==Nn.nodeName&&!Nn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Nn,Nn.getAttribute("aria-hidden")),Nn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(Mt){return new(Mt||Qt)(ne.KVO(e.hJ),ne.KVO(ne.zZn),ne.KVO(Pt,8),ne.KVO(Qt,12),ne.KVO(e.Sf),ne.KVO(tn))}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})();function kt(Qt,Xt){let nt=Qt.length;for(;nt--;)Xt(Qt[nt])}let Tt=(()=>{class Qt{static{this.\u0275fac=function(Mt){return new(Mt||Qt)}}static{this.\u0275mod=ne.$C({type:Qt})}static{this.\u0275inj=ne.G2t({providers:[ht,at],imports:[e.z_,we.jc,Z.Pd,we.jc]})}}return Qt})();var cn=N(4085),kn=N(7786),dn=N(5964),Kt=N(6697),Ye=N(6600);function Se(Qt,Xt){}N(9969);class Nt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const K="mdc-dialog--open",ge="mdc-dialog--opening",je="mdc-dialog--closing";let Le=(()=>{class Qt extends ft{constructor(nt,Mt,Dt,Nn,yn,$n,di,ai){super(nt,Mt,Dt,Nn,yn,$n,di,ai),this._animationStateChanged=new ne.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(nt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:nt})}static{this.\u0275fac=function(Mt){return new(Mt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(Nt),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["ng-component"]],features:[ne.Vt3],decls:0,vars:0,template:function(Mt,Dt){},encapsulation:2})}}return Qt})();const ue="--mat-dialog-transition-duration";function He(Qt){return null==Qt?null:"number"==typeof Qt?Qt:Qt.endsWith("ms")?(0,cn.OE)(Qt.substring(0,Qt.length-2)):Qt.endsWith("s")?1e3*(0,cn.OE)(Qt.substring(0,Qt.length-1)):"0"===Qt?0:null}let L=(()=>{class Qt extends Le{constructor(nt,Mt,Dt,Nn,yn,$n,di,ai,Ai){super(nt,Mt,Dt,Nn,yn,$n,di,Ai),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?He(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?He(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ue,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ge,K)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(K),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(K),this._animationsEnabled?(this._hostElement.style.setProperty(ue,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(je)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(ge,je)}_waitForAnimationToComplete(nt,Mt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Mt,nt)}_requestAnimationFrame(nt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(nt):nt()})}static{this.\u0275fac=function(Mt){return new(Mt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(Nt),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(ne.bc$,8),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Mt,Dt){2&Mt&&(ne.Mr5("id",Dt._config.id),ne.BMQ("aria-modal",Dt._config.ariaModal)("role",Dt._config.role)("aria-labelledby",Dt._config.ariaLabel?null:Dt._ariaLabelledByQueue[0])("aria-label",Dt._config.ariaLabel)("aria-describedby",Dt._config.ariaDescribedBy||null),ne.AVh("_mat-animation-noopable",!Dt._animationsEnabled))},features:[ne.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Mt,Dt){1&Mt&&(ne.j41(0,"div",0)(1,"div",1),ne.DNE(2,Se,0,0,"ng-template",2),ne.k0s()())},dependencies:[we.I3],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}}return Qt})();class q{constructor(Xt,nt,Mt){this._ref=Xt,this._containerInstance=Mt,this._afterOpened=new Oe.B,this._beforeClosed=new Oe.B,this._state=0,this.disableClose=nt.disableClose,this.id=Xt.id,Mt._animationStateChanged.pipe((0,dn.p)(Dt=>"opened"===Dt.state),(0,Kt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Mt._animationStateChanged.pipe((0,dn.p)(Dt=>"closed"===Dt.state),(0,Kt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Xt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,kn.h)(this.backdropClick(),this.keydownEvents().pipe((0,dn.p)(Dt=>Dt.keyCode===Ie._f&&!this.disableClose&&!(0,Ie.rp)(Dt)))).subscribe(Dt=>{this.disableClose||(Dt.preventDefault(),function Be(Qt,Xt,nt){Qt._closeInteractionType=Xt,Qt.close(nt)}(this,"keydown"===Dt.type?"keyboard":"mouse"))})}close(Xt){this._result=Xt,this._containerInstance._animationStateChanged.pipe((0,dn.p)(nt=>"closing"===nt.state),(0,Kt.s)(1)).subscribe(nt=>{this._beforeClosed.next(Xt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),nt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Xt){let nt=this._ref.config.positionStrategy;return Xt&&(Xt.left||Xt.right)?Xt.left?nt.left(Xt.left):nt.right(Xt.right):nt.centerHorizontally(),Xt&&(Xt.top||Xt.bottom)?Xt.top?nt.top(Xt.top):nt.bottom(Xt.bottom):nt.centerVertically(),this._ref.updatePosition(),this}updateSize(Xt="",nt=""){return this._ref.updateSize(Xt,nt),this}addPanelClass(Xt){return this._ref.addPanelClass(Xt),this}removePanelClass(Xt){return this._ref.removePanelClass(Xt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const pt=new ne.nKC("MatMdcDialogData"),dt=new ne.nKC("mat-mdc-dialog-default-options"),Gt=new ne.nKC("mat-mdc-dialog-scroll-strategy"),jn={provide:Gt,deps:[e.hJ],useFactory:function Cn(Qt){return()=>Qt.scrollStrategies.block()}};let Vn=0,oi=(()=>{class Qt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const nt=this._parentDialog;return nt?nt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(nt,Mt,Dt,Nn,yn,$n,di,ai,Ai,cs){this._overlay=nt,this._defaultOptions=Dt,this._parentDialog=Nn,this._dialogRefConstructor=di,this._dialogContainerType=ai,this._dialogDataToken=Ai,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Oe.B,this._afterOpenedAtThisLevel=new Oe.B,this._idPrefix="mat-dialog-",this.dialogConfigClass=Nt,this.afterAllClosed=(0,Fe.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,Ue.Z)(void 0))),this._scrollStrategy=$n,this._dialog=Mt.get(ht)}open(nt,Mt){let Dt;(Mt={...this._defaultOptions||new Nt,...Mt}).id=Mt.id||`${this._idPrefix}${Vn++}`,Mt.scrollStrategy=Mt.scrollStrategy||this._scrollStrategy();const Nn=this._dialog.open(nt,{...Mt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Mt},{provide:_t,useValue:Mt}]},templateContext:()=>({dialogRef:Dt}),providers:(yn,$n,di)=>(Dt=new this._dialogRefConstructor(yn,Mt,di),Dt.updatePosition(Mt?.position),[{provide:this._dialogContainerType,useValue:di},{provide:this._dialogDataToken,useValue:$n.data},{provide:this._dialogRefConstructor,useValue:Dt}])});return Dt.componentRef=Nn.componentRef,Dt.componentInstance=Nn.componentInstance,this.openDialogs.push(Dt),this.afterOpened.next(Dt),Dt.afterClosed().subscribe(()=>{const yn=this.openDialogs.indexOf(Dt);yn>-1&&(this.openDialogs.splice(yn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Dt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(nt){return this.openDialogs.find(Mt=>Mt.id===nt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(nt){let Mt=nt.length;for(;Mt--;)nt[Mt].close()}static{this.\u0275fac=function(Mt){ne.QTQ()}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})(),yi=(()=>{class Qt extends oi{constructor(nt,Mt,Dt,Nn,yn,$n,di,ai){super(nt,Mt,Nn,$n,di,yn,q,L,pt,ai),this._idPrefix="mat-mdc-dialog-"}static{this.\u0275fac=function(Mt){return new(Mt||Qt)(ne.KVO(e.hJ),ne.KVO(ne.zZn),ne.KVO(h.aZ,8),ne.KVO(dt,8),ne.KVO(Gt),ne.KVO(Qt,12),ne.KVO(e.Sf),ne.KVO(ne.bc$,8))}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})(),Ft=(()=>{class Qt{static{this.\u0275fac=function(Mt){return new(Mt||Qt)}}static{this.\u0275mod=ne.$C({type:Qt})}static{this.\u0275inj=ne.G2t({providers:[yi,jn],imports:[Tt,e.z_,we.jc,Ye.yE,Ye.yE]})}}return Qt})()},9213:(gn,ct,N)=>{N.d(ct,{An:()=>de,m_:()=>Le});var e=N(7705),h=N(6600),ne=N(4085),Z=N(177),De=N(7673),we=N(8810),Ie=N(7468),Oe=N(8359),Fe=N(8141),Me=N(6354),Ge=N(9437),Ue=N(980),Ct=N(7647),_t=N(6697),bt=N(1626),ft=N(345);const mt=["*"];let tn;function Pt(ue){return function vt(){if(void 0===tn&&(tn=null,typeof window<"u")){const ue=window;void 0!==ue.trustedTypes&&(tn=ue.trustedTypes.createPolicy("angular#components",{createHTML:He=>He}))}return tn}()?.createHTML(ue)||ue}function me(ue){return Error(`Unable to find icon with the name "${ue}"`)}function ot(ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ue}".`)}function ht(ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ue}".`)}class kt{constructor(He,L,q){this.url=He,this.svgText=L,this.options=q}}let Tt=(()=>{class ue{constructor(L,q,Be,pt){this._httpClient=L,this._sanitizer=q,this._errorHandler=pt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Be}addSvgIcon(L,q,Be){return this.addSvgIconInNamespace("",L,q,Be)}addSvgIconLiteral(L,q,Be){return this.addSvgIconLiteralInNamespace("",L,q,Be)}addSvgIconInNamespace(L,q,Be,pt){return this._addSvgIconConfig(L,q,new kt(Be,null,pt))}addSvgIconResolver(L){return this._resolvers.push(L),this}addSvgIconLiteralInNamespace(L,q,Be,pt){const dt=this._sanitizer.sanitize(e.WPN.HTML,Be);if(!dt)throw ht(Be);const Gt=Pt(dt);return this._addSvgIconConfig(L,q,new kt("",Gt,pt))}addSvgIconSet(L,q){return this.addSvgIconSetInNamespace("",L,q)}addSvgIconSetLiteral(L,q){return this.addSvgIconSetLiteralInNamespace("",L,q)}addSvgIconSetInNamespace(L,q,Be){return this._addSvgIconSetConfig(L,new kt(q,null,Be))}addSvgIconSetLiteralInNamespace(L,q,Be){const pt=this._sanitizer.sanitize(e.WPN.HTML,q);if(!pt)throw ht(q);const dt=Pt(pt);return this._addSvgIconSetConfig(L,new kt("",dt,Be))}registerFontClassAlias(L,q=L){return this._fontCssClassesByAlias.set(L,q),this}classNameForFontAlias(L){return this._fontCssClassesByAlias.get(L)||L}setDefaultFontSetClass(...L){return this._defaultFontSetClass=L,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(L){const q=this._sanitizer.sanitize(e.WPN.RESOURCE_URL,L);if(!q)throw ot(L);const Be=this._cachedIconsByUrl.get(q);return Be?(0,De.of)(dn(Be)):this._loadSvgIconFromConfig(new kt(L,null)).pipe((0,Fe.M)(pt=>this._cachedIconsByUrl.set(q,pt)),(0,Me.T)(pt=>dn(pt)))}getNamedSvgIcon(L,q=""){const Be=Kt(q,L);let pt=this._svgIconConfigs.get(Be);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(q,L),pt)return this._svgIconConfigs.set(Be,pt),this._getSvgFromConfig(pt);const dt=this._iconSetConfigs.get(q);return dt?this._getSvgFromIconSetConfigs(L,dt):(0,we.$)(me(Be))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(L){return L.svgText?(0,De.of)(dn(this._svgElementFromConfig(L))):this._loadSvgIconFromConfig(L).pipe((0,Me.T)(q=>dn(q)))}_getSvgFromIconSetConfigs(L,q){const Be=this._extractIconWithNameFromAnySet(L,q);if(Be)return(0,De.of)(Be);const pt=q.filter(dt=>!dt.svgText).map(dt=>this._loadSvgIconSetFromConfig(dt).pipe((0,Ge.W)(Gt=>{const jn=`Loading icon set URL: ${this._sanitizer.sanitize(e.WPN.RESOURCE_URL,dt.url)} failed: ${Gt.message}`;return this._errorHandler.handleError(new Error(jn)),(0,De.of)(null)})));return(0,Ie.p)(pt).pipe((0,Me.T)(()=>{const dt=this._extractIconWithNameFromAnySet(L,q);if(!dt)throw me(L);return dt}))}_extractIconWithNameFromAnySet(L,q){for(let Be=q.length-1;Be>=0;Be--){const pt=q[Be];if(pt.svgText&&pt.svgText.toString().indexOf(L)>-1){const dt=this._svgElementFromConfig(pt),Gt=this._extractSvgIconFromSet(dt,L,pt.options);if(Gt)return Gt}}return null}_loadSvgIconFromConfig(L){return this._fetchIcon(L).pipe((0,Fe.M)(q=>L.svgText=q),(0,Me.T)(()=>this._svgElementFromConfig(L)))}_loadSvgIconSetFromConfig(L){return L.svgText?(0,De.of)(null):this._fetchIcon(L).pipe((0,Fe.M)(q=>L.svgText=q))}_extractSvgIconFromSet(L,q,Be){const pt=L.querySelector(`[id="${q}"]`);if(!pt)return null;const dt=pt.cloneNode(!0);if(dt.removeAttribute("id"),"svg"===dt.nodeName.toLowerCase())return this._setSvgAttributes(dt,Be);if("symbol"===dt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(dt),Be);const Gt=this._svgElementFromString(Pt("<svg></svg>"));return Gt.appendChild(dt),this._setSvgAttributes(Gt,Be)}_svgElementFromString(L){const q=this._document.createElement("DIV");q.innerHTML=L;const Be=q.querySelector("svg");if(!Be)throw Error("<svg> tag not found");return Be}_toSvgElement(L){const q=this._svgElementFromString(Pt("<svg></svg>")),Be=L.attributes;for(let pt=0;pt<Be.length;pt++){const{name:dt,value:Gt}=Be[pt];"id"!==dt&&q.setAttribute(dt,Gt)}for(let pt=0;pt<L.childNodes.length;pt++)L.childNodes[pt].nodeType===this._document.ELEMENT_NODE&&q.appendChild(L.childNodes[pt].cloneNode(!0));return q}_setSvgAttributes(L,q){return L.setAttribute("fit",""),L.setAttribute("height","100%"),L.setAttribute("width","100%"),L.setAttribute("preserveAspectRatio","xMidYMid meet"),L.setAttribute("focusable","false"),q&&q.viewBox&&L.setAttribute("viewBox",q.viewBox),L}_fetchIcon(L){const{url:q,options:Be}=L,pt=Be?.withCredentials??!1;if(!this._httpClient)throw function at(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==q)throw Error(`Cannot fetch icon from URL "${q}".`);const dt=this._sanitizer.sanitize(e.WPN.RESOURCE_URL,q);if(!dt)throw ot(q);const Gt=this._inProgressUrlFetches.get(dt);if(Gt)return Gt;const Cn=this._httpClient.get(dt,{responseType:"text",withCredentials:pt}).pipe((0,Me.T)(jn=>Pt(jn)),(0,Ue.j)(()=>this._inProgressUrlFetches.delete(dt)),(0,Ct.u)());return this._inProgressUrlFetches.set(dt,Cn),Cn}_addSvgIconConfig(L,q,Be){return this._svgIconConfigs.set(Kt(L,q),Be),this}_addSvgIconSetConfig(L,q){const Be=this._iconSetConfigs.get(L);return Be?Be.push(q):this._iconSetConfigs.set(L,[q]),this}_svgElementFromConfig(L){if(!L.svgElement){const q=this._svgElementFromString(L.svgText);this._setSvgAttributes(q,L.options),L.svgElement=q}return L.svgElement}_getIconConfigFromResolvers(L,q){for(let Be=0;Be<this._resolvers.length;Be++){const pt=this._resolvers[Be](q,L);if(pt)return Ye(pt)?new kt(pt.url,null,pt.options):new kt(pt,null)}}static{this.\u0275fac=function(q){return new(q||ue)(e.KVO(bt.Qq,8),e.KVO(ft.up),e.KVO(Z.qQ,8),e.KVO(e.zcH))}}static{this.\u0275prov=e.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})();function dn(ue){return ue.cloneNode(!0)}function Kt(ue,He){return ue+":"+He}function Ye(ue){return!(!ue.url||!ue.options)}const ye=(0,h.Zc)(class{constructor(ue){this._elementRef=ue}}),Se=new e.nKC("MAT_ICON_DEFAULT_OPTIONS"),Nt=new e.nKC("mat-icon-location",{providedIn:"root",factory:function K(){const ue=(0,e.WQX)(Z.qQ),He=ue?ue.location:null;return{getPathname:()=>He?He.pathname+He.search:""}}}),ge=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],je=ge.map(ue=>`[${ue}]`).join(", "),le=/^url\(['"]?#(.*?)['"]?\)$/;let de=(()=>{class ue extends ye{get inline(){return this._inline}set inline(L){this._inline=(0,ne.he)(L)}get svgIcon(){return this._svgIcon}set svgIcon(L){L!==this._svgIcon&&(L?this._updateSvgIcon(L):this._svgIcon&&this._clearSvgElement(),this._svgIcon=L)}get fontSet(){return this._fontSet}set fontSet(L){const q=this._cleanupFontValue(L);q!==this._fontSet&&(this._fontSet=q,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(L){const q=this._cleanupFontValue(L);q!==this._fontIcon&&(this._fontIcon=q,this._updateFontIconClasses())}constructor(L,q,Be,pt,dt,Gt){super(L),this._iconRegistry=q,this._location=pt,this._errorHandler=dt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Oe.yU.EMPTY,Gt&&(Gt.color&&(this.color=this.defaultColor=Gt.color),Gt.fontSet&&(this.fontSet=Gt.fontSet)),Be||L.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(L){if(!L)return["",""];const q=L.split(":");switch(q.length){case 1:return["",q[0]];case 2:return q;default:throw Error(`Invalid icon name: "${L}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const L=this._elementsWithExternalReferences;if(L&&L.size){const q=this._location.getPathname();q!==this._previousPath&&(this._previousPath=q,this._prependPathToReferences(q))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(L){this._clearSvgElement();const q=this._location.getPathname();this._previousPath=q,this._cacheChildrenWithExternalReferences(L),this._prependPathToReferences(q),this._elementRef.nativeElement.appendChild(L)}_clearSvgElement(){const L=this._elementRef.nativeElement;let q=L.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();q--;){const Be=L.childNodes[q];(1!==Be.nodeType||"svg"===Be.nodeName.toLowerCase())&&Be.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const L=this._elementRef.nativeElement,q=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Be=>Be.length>0);this._previousFontSetClass.forEach(Be=>L.classList.remove(Be)),q.forEach(Be=>L.classList.add(Be)),this._previousFontSetClass=q,this.fontIcon!==this._previousFontIconClass&&!q.includes("mat-ligature-font")&&(this._previousFontIconClass&&L.classList.remove(this._previousFontIconClass),this.fontIcon&&L.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(L){return"string"==typeof L?L.trim().split(" ")[0]:L}_prependPathToReferences(L){const q=this._elementsWithExternalReferences;q&&q.forEach((Be,pt)=>{Be.forEach(dt=>{pt.setAttribute(dt.name,`url('${L}#${dt.value}')`)})})}_cacheChildrenWithExternalReferences(L){const q=L.querySelectorAll(je),Be=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt<q.length;pt++)ge.forEach(dt=>{const Gt=q[pt],Cn=Gt.getAttribute(dt),jn=Cn?Cn.match(le):null;if(jn){let sn=Be.get(Gt);sn||(sn=[],Be.set(Gt,sn)),sn.push({name:dt,value:jn[1]})}})}_updateSvgIcon(L){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),L){const[q,Be]=this._splitIconName(L);q&&(this._svgNamespace=q),Be&&(this._svgName=Be),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Be,q).pipe((0,_t.s)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${q}:${Be}! ${pt.message}`))})}}static{this.\u0275fac=function(q){return new(q||ue)(e.rXU(e.aKT),e.rXU(Tt),e.kS0("aria-hidden"),e.rXU(Nt),e.rXU(e.zcH),e.rXU(Se,8))}}static{this.\u0275cmp=e.VBU({type:ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(q,Be){2&q&&(e.BMQ("data-mat-icon-type",Be._usingFontIcon()?"font":"svg")("data-mat-icon-name",Be._svgName||Be.fontIcon)("data-mat-icon-namespace",Be._svgNamespace||Be.fontSet)("fontIcon",Be._usingFontIcon()?Be.fontIcon:null),e.AVh("mat-icon-inline",Be.inline)("mat-icon-no-color","primary"!==Be.color&&"accent"!==Be.color&&"warn"!==Be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.Vt3],ngContentSelectors:mt,decls:1,vars:0,template:function(q,Be){1&q&&(e.NAR(),e.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return ue})(),Le=(()=>{class ue{static{this.\u0275fac=function(q){return new(q||ue)}}static{this.\u0275mod=e.$C({type:ue})}static{this.\u0275inj=e.G2t({imports:[h.yE,h.yE]})}}return ue})()},9115:(gn,ct,N)=>{N.d(ct,{Cn:()=>yi,Cp:()=>oi,fb:()=>ye,kk:()=>pt});var e=N(7705),h=N(6039),ne=N(4085),Z=N(7336),De=N(1413),we=N(7786),Ie=N(8359),Oe=N(7673),Fe=N(5007),Me=N(9172),Ge=N(5558),Ue=N(6697),Ct=N(6977),_t=N(5964),bt=N(1986),ft=N(6600),mt=N(177),tn=N(6939),vt=N(9969),Pt=N(8203),me=N(7987),at=N(6860),ot=N(7333);const ht=["mat-menu-item",""];function kt(It,ke){1&It&&(e.qSk(),e.j41(0,"svg",3),e.nrm(1,"polygon",4),e.k0s())}const Tt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],cn=["mat-icon, [matMenuItemIcon]","*"];function kn(It,ke){if(1&It){const re=e.RV6();e.j41(0,"div",0),e.bIt("keydown",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._handleKeydown(Ve))})("click",function(){e.eBV(re);const Ve=e.XpG();return e.Njj(Ve.closed.emit("click"))})("@transformMenu.start",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._onAnimationStart(Ve))})("@transformMenu.done",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._onAnimationDone(Ve))}),e.j41(1,"div",1),e.SdG(2),e.k0s()()}if(2&It){const re=e.XpG();e.Y8G("id",re.panelId)("ngClass",re._classList)("@transformMenu",re._panelAnimationState),e.BMQ("aria-label",re.ariaLabel||null)("aria-labelledby",re.ariaLabelledby||null)("aria-describedby",re.ariaDescribedby||null)}}const dn=["*"],Kt=new e.nKC("MAT_MENU_PANEL"),Ye=(0,ft.GG)((0,ft.Ob)(class{}));let ye=(()=>{class It extends Ye{constructor(re,xe,Ve,ut,Ft){super(),this._elementRef=re,this._document=xe,this._focusMonitor=Ve,this._parentMenu=ut,this._changeDetectorRef=Ft,this.role="menuitem",this._hovered=new De.B,this._focused=new De.B,this._highlighted=!1,this._triggersSubmenu=!1,ut?.addItem?.(this)}focus(re,xe){this._focusMonitor&&re?this._focusMonitor.focusVia(this._getHostElement(),re,xe):this._getHostElement().focus(xe),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(re){this.disabled&&(re.preventDefault(),re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const re=this._elementRef.nativeElement.cloneNode(!0),xe=re.querySelectorAll("mat-icon, .material-icons");for(let Ve=0;Ve<xe.length;Ve++)xe[Ve].remove();return re.textContent?.trim()||""}_setHighlighted(re){this._highlighted=re,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(re){this._triggersSubmenu=re,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(xe){return new(xe||It)(e.rXU(e.aKT),e.rXU(mt.qQ),e.rXU(h.FN),e.rXU(Kt,8),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:It,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(xe,Ve){1&xe&&e.bIt("click",function(Ft){return Ve._checkDisabled(Ft)})("mouseenter",function(){return Ve._handleMouseEnter()}),2&xe&&(e.BMQ("role",Ve.role)("tabindex",Ve._getTabIndex())("aria-disabled",Ve.disabled)("disabled",Ve.disabled||null),e.AVh("mat-mdc-menu-item-highlighted",Ve._highlighted)("mat-mdc-menu-item-submenu-trigger",Ve._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.Vt3],attrs:ht,ngContentSelectors:cn,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(xe,Ve){1&xe&&(e.NAR(Tt),e.SdG(0),e.j41(1,"span",0),e.SdG(2,1),e.k0s(),e.nrm(3,"div",1),e.DNE(4,kt,2,0,"svg",2)),2&xe&&(e.R7$(3),e.Y8G("matRippleDisabled",Ve.disableRipple||Ve.disabled)("matRippleTrigger",Ve._getHostElement()),e.R7$(1),e.Y8G("ngIf",Ve._triggersSubmenu))},dependencies:[mt.bT,ft.r6],encapsulation:2,changeDetection:0})}}return It})();const ge=new e.nKC("MatMenuContent"),de={transformMenu:(0,vt.hZ)("transformMenu",[(0,vt.wk)("void",(0,vt.iF)({opacity:0,transform:"scale(0.8)"})),(0,vt.kY)("void => enter",(0,vt.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,vt.iF)({opacity:1,transform:"scale(1)"}))),(0,vt.kY)("* => void",(0,vt.i0)("100ms 25ms linear",(0,vt.iF)({opacity:0})))]),fadeInItems:(0,vt.hZ)("fadeInItems",[(0,vt.wk)("showing",(0,vt.iF)({opacity:1})),(0,vt.kY)("void => *",[(0,vt.iF)({opacity:0}),(0,vt.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let He=0;const L=new e.nKC("mat-menu-default-options",{providedIn:"root",factory:function q(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Be=(()=>{class It{get xPosition(){return this._xPosition}set xPosition(re){this._xPosition=re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(re){this._yPosition=re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(re){this._overlapTrigger=(0,ne.he)(re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(re){this._hasBackdrop=(0,ne.he)(re)}set panelClass(re){const xe=this._previousPanelClass;xe&&xe.length&&xe.split(" ").forEach(Ve=>{this._classList[Ve]=!1}),this._previousPanelClass=re,re&&re.length&&(re.split(" ").forEach(Ve=>{this._classList[Ve]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(re){this.panelClass=re}constructor(re,xe,Ve,ut){this._elementRef=re,this._ngZone=xe,this._changeDetectorRef=ut,this._directDescendantItems=new e.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new De.B,this.closed=new e.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+He++,this.overlayPanelClass=Ve.overlayPanelClass||"",this._xPosition=Ve.xPosition,this._yPosition=Ve.yPosition,this.backdropClass=Ve.backdropClass,this._overlapTrigger=Ve.overlapTrigger,this._hasBackdrop=Ve.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new h.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,Me.Z)(this._directDescendantItems),(0,Ge.n)(re=>(0,we.h)(...re.map(xe=>xe._focused)))).subscribe(re=>this._keyManager.updateActiveItem(re)),this._directDescendantItems.changes.subscribe(re=>{const xe=this._keyManager;if("enter"===this._panelAnimationState&&xe.activeItem?._hasFocus()){const Ve=re.toArray(),ut=Math.max(0,Math.min(Ve.length-1,xe.activeItemIndex||0));Ve[ut]&&!Ve[ut].disabled?xe.setActiveItem(ut):xe.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,Me.Z)(this._directDescendantItems),(0,Ge.n)(xe=>(0,we.h)(...xe.map(Ve=>Ve._hovered))))}addItem(re){}removeItem(re){}_handleKeydown(re){const xe=re.keyCode,Ve=this._keyManager;switch(xe){case Z._f:(0,Z.rp)(re)||(re.preventDefault(),this.closed.emit("keydown"));break;case Z.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Z.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(xe===Z.i7||xe===Z.n6)&&Ve.setFocusOrigin("keyboard"),void Ve.onKeydown(re)}re.stopPropagation()}focusFirstItem(re="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,Ue.s)(1)).subscribe(()=>{let xe=null;if(this._directDescendantItems.length&&(xe=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!xe||!xe.contains(document.activeElement)){const Ve=this._keyManager;Ve.setFocusOrigin(re).setFirstItemActive(),!Ve.activeItem&&xe&&xe.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(re){const xe=Math.min(this._baseElevation+re,24),Ve=`${this._elevationPrefix}${xe}`,ut=Object.keys(this._classList).find(Ft=>Ft.startsWith(this._elevationPrefix));(!ut||ut===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ve]=!0,this._previousElevation=Ve)}setPositionClasses(re=this.xPosition,xe=this.yPosition){const Ve=this._classList;Ve["mat-menu-before"]="before"===re,Ve["mat-menu-after"]="after"===re,Ve["mat-menu-above"]="above"===xe,Ve["mat-menu-below"]="below"===xe,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(re){this._animationDone.next(re),this._isAnimating=!1}_onAnimationStart(re){this._isAnimating=!0,"enter"===re.toState&&0===this._keyManager.activeItemIndex&&(re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,Me.Z)(this._allItems)).subscribe(re=>{this._directDescendantItems.reset(re.filter(xe=>xe._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(xe){return new(xe||It)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(L),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:It,contentQueries:function(xe,Ve,ut){if(1&xe&&(e.wni(ut,ge,5),e.wni(ut,ye,5),e.wni(ut,ye,4)),2&xe){let Ft;e.mGM(Ft=e.lsd())&&(Ve.lazyContent=Ft.first),e.mGM(Ft=e.lsd())&&(Ve._allItems=Ft),e.mGM(Ft=e.lsd())&&(Ve.items=Ft)}},viewQuery:function(xe,Ve){if(1&xe&&e.GBs(e.C4Q,5),2&xe){let ut;e.mGM(ut=e.lsd())&&(Ve.templateRef=ut.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}}return It})(),pt=(()=>{class It extends Be{constructor(re,xe,Ve,ut){super(re,xe,Ve,ut),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static{this.\u0275fac=function(xe){return new(xe||It)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(L),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:It,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(xe,Ve){2&xe&&e.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e.Jv_([{provide:Kt,useExisting:It}]),e.Vt3],ngContentSelectors:dn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(xe,Ve){1&xe&&(e.NAR(),e.DNE(0,kn,3,6,"ng-template"))},dependencies:[mt.YU],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[de.transformMenu,de.fadeInItems]},changeDetection:0})}}return It})();const dt=new e.nKC("mat-menu-scroll-strategy"),Cn={provide:dt,deps:[me.hJ],useFactory:function Gt(It){return()=>It.scrollStrategies.reposition()}},jn=(0,at.BQ)({passive:!0});let Vn=(()=>{class It{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(re){this.menu=re}get menu(){return this._menu}set menu(re){re!==this._menu&&(this._menu=re,this._menuCloseSubscription.unsubscribe(),re&&(this._menuCloseSubscription=re.close.subscribe(xe=>{this._destroyMenu(xe),("click"===xe||"tab"===xe)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(xe)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(re,xe,Ve,ut,Ft,on,Ln,Qt,Xt){this._overlay=re,this._element=xe,this._viewContainerRef=Ve,this._menuItemInstance=on,this._dir=Ln,this._focusMonitor=Qt,this._ngZone=Xt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ie.yU.EMPTY,this._hoverSubscription=Ie.yU.EMPTY,this._menuCloseSubscription=Ie.yU.EMPTY,this._changeDetectorRef=(0,e.WQX)(e.gRc),this._handleTouchStart=nt=>{(0,h.w6)(nt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=ut,this._parentMaterialMenu=Ft instanceof Be?Ft:void 0,xe.nativeElement.addEventListener("touchstart",this._handleTouchStart,jn)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const re=this.menu;if(this._menuOpen||!re)return;const xe=this._createOverlay(re),Ve=xe.getConfig(),ut=Ve.positionStrategy;this._setPosition(re,ut),Ve.hasBackdrop=null==re.hasBackdrop?!this.triggersSubmenu():re.hasBackdrop,xe.attach(this._getPortal(re)),re.lazyContent&&re.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(re),re instanceof Be&&(re._startAnimation(),re._directDescendantItems.changes.pipe((0,Ct.Q)(re.close)).subscribe(()=>{ut.withLockedPosition(!1).reapplyLastPosition(),ut.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(re,xe){this._focusMonitor&&re?this._focusMonitor.focusVia(this._element,re,xe):this._element.nativeElement.focus(xe)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(re){if(!this._overlayRef||!this.menuOpen)return;const xe=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,xe instanceof Be?(xe._resetAnimation(),xe.lazyContent?xe._animationDone.pipe((0,_t.p)(Ve=>"void"===Ve.toState),(0,Ue.s)(1),(0,Ct.Q)(xe.lazyContent._attached)).subscribe({next:()=>xe.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),xe?.lazyContent?.detach())}_initMenu(re){re.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,re.direction=this.dir,this._setMenuElevation(re),re.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(re){if(re.setElevation){let xe=0,Ve=re.parentMenu;for(;Ve;)xe++,Ve=Ve.parentMenu;re.setElevation(xe)}}_setIsMenuOpen(re){re!==this._menuOpen&&(this._menuOpen=re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(re),this._changeDetectorRef.markForCheck())}_createOverlay(re){if(!this._overlayRef){const xe=this._getOverlayConfig(re);this._subscribeToPositions(re,xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(re){return new me.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:re.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:re.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(re,xe){re.setPositionClasses&&xe.positionChanges.subscribe(Ve=>{const ut="start"===Ve.connectionPair.overlayX?"after":"before",Ft="top"===Ve.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>re.setPositionClasses(ut,Ft)):re.setPositionClasses(ut,Ft)})}_setPosition(re,xe){let[Ve,ut]="before"===re.xPosition?["end","start"]:["start","end"],[Ft,on]="above"===re.yPosition?["bottom","top"]:["top","bottom"],[Ln,Qt]=[Ft,on],[Xt,nt]=[Ve,ut],Mt=0;if(this.triggersSubmenu()){if(nt=Ve="before"===re.xPosition?"start":"end",ut=Xt="end"===Ve?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Dt=this._parentMaterialMenu.items.first;this._parentInnerPadding=Dt?Dt._getHostElement().offsetTop:0}Mt="bottom"===Ft?this._parentInnerPadding:-this._parentInnerPadding}}else re.overlapTrigger||(Ln="top"===Ft?"bottom":"top",Qt="top"===on?"bottom":"top");xe.withPositions([{originX:Ve,originY:Ln,overlayX:Xt,overlayY:Ft,offsetY:Mt},{originX:ut,originY:Ln,overlayX:nt,overlayY:Ft,offsetY:Mt},{originX:Ve,originY:Qt,overlayX:Xt,overlayY:on,offsetY:-Mt},{originX:ut,originY:Qt,overlayX:nt,overlayY:on,offsetY:-Mt}])}_menuClosingActions(){const re=this._overlayRef.backdropClick(),xe=this._overlayRef.detachments(),Ve=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Oe.of)(),ut=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_t.p)(Ft=>Ft!==this._menuItemInstance),(0,_t.p)(()=>this._menuOpen)):(0,Oe.of)();return(0,we.h)(re,Ve,ut,xe)}_handleMousedown(re){(0,h._G)(re)||(this._openedBy=0===re.button?"mouse":void 0,this.triggersSubmenu()&&re.preventDefault())}_handleKeydown(re){const xe=re.keyCode;(xe===Z.Fm||xe===Z.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(xe===Z.LE&&"ltr"===this.dir||xe===Z.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(re){this.triggersSubmenu()?(re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,_t.p)(re=>re===this._menuItemInstance&&!re.disabled),(0,bt.c)(0,Fe.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Be&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ue.s)(1),(0,bt.c)(0,Fe.$),(0,Ct.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(re){return(!this._portal||this._portal.templateRef!==re.templateRef)&&(this._portal=new tn.VA(re.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(xe){return new(xe||It)(e.rXU(me.hJ),e.rXU(e.aKT),e.rXU(e.c1b),e.rXU(dt),e.rXU(Kt,8),e.rXU(ye,10),e.rXU(Pt.dS,8),e.rXU(h.FN),e.rXU(e.SKi))}}static{this.\u0275dir=e.FsC({type:It,hostVars:3,hostBindings:function(xe,Ve){1&xe&&e.bIt("click",function(Ft){return Ve._handleClick(Ft)})("mousedown",function(Ft){return Ve._handleMousedown(Ft)})("keydown",function(Ft){return Ve._handleKeydown(Ft)}),2&xe&&e.BMQ("aria-haspopup",Ve.menu?"menu":null)("aria-expanded",Ve.menuOpen)("aria-controls",Ve.menuOpen?Ve.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}}return It})(),oi=(()=>{class It extends Vn{static{this.\u0275fac=function(){let re;return function(Ve){return(re||(re=e.xGo(It)))(Ve||It)}}()}static{this.\u0275dir=e.FsC({type:It,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.Vt3]})}}return It})(),yi=(()=>{class It{static{this.\u0275fac=function(xe){return new(xe||It)}}static{this.\u0275mod=e.$C({type:It})}static{this.\u0275inj=e.G2t({providers:[Cn],imports:[mt.MD,ft.pZ,ft.yE,me.z_,ot.Gj,ft.yE]})}}return It})()},3881:(gn,ct,N)=>{N.d(ct,{Ez:()=>ye,IV:()=>kt,OU:()=>Kt});var e=N(8203),h=N(4085),ne=N(6860),Z=N(7705),De=N(6600),we=N(177),Ie=N(9417),Oe=N(1413);const Fe=["knob"],Me=["valueIndicatorContainer"];function Ge(Se,Nt){if(1&Se&&(Z.j41(0,"div",4,5)(2,"div",6)(3,"span",7),Z.EFF(4),Z.k0s()()()),2&Se){const K=Z.XpG();Z.R7$(4),Z.JRh(K.valueIndicatorText)}}const Ue=["trackActive"];function Ct(Se,Nt){if(1&Se&&Z.nrm(0,"div"),2&Se){const K=Nt.$implicit,ge=Nt.index,je=Z.XpG(3);Z.HbH(0===K?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Z.xc7("transform",je._calcTickMarkTransform(ge))}}function _t(Se,Nt){if(1&Se&&(Z.qex(0),Z.DNE(1,Ct,1,4,"div",11),Z.bVm()),2&Se){const K=Z.XpG(2);Z.R7$(1),Z.Y8G("ngForOf",K._tickMarks)}}function bt(Se,Nt){if(1&Se&&(Z.j41(0,"div",8,9),Z.DNE(2,_t,2,1,"ng-container",10),Z.k0s()),2&Se){const K=Z.XpG();Z.R7$(2),Z.Y8G("ngIf",K._cachedWidth)}}function ft(Se,Nt){if(1&Se&&Z.nrm(0,"mat-slider-visual-thumb",7),2&Se){const K=Z.XpG();Z.Y8G("discrete",K.discrete)("thumbPosition",1)("valueIndicatorText",K.startValueIndicatorText)}}const mt=["*"],tn=new Z.nKC("_MatSlider"),vt=new Z.nKC("_MatSliderThumb"),Pt=new Z.nKC("_MatSliderRangeThumb"),me=new Z.nKC("_MatSliderVisualThumb");let ot=(()=>{class Se{constructor(K,ge,je,le){this._cdr=K,this._ngZone=ge,this._slider=le,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=de=>{if(this._sliderInput._isFocused)return;const Le=this._hostElement.getBoundingClientRect(),ue=this._slider._isCursorOnSliderThumb(de,Le);this._isHovered=ue,ue?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=de=>{0===de.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=je.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const K=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{K.addEventListener("pointermove",this._onPointerMove),K.addEventListener("pointerdown",this._onDragStart),K.addEventListener("pointerup",this._onDragEnd),K.addEventListener("pointerleave",this._onMouseLeave),K.addEventListener("focus",this._onFocus),K.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const K=this._sliderInputEl;K.removeEventListener("pointermove",this._onPointerMove),K.removeEventListener("pointerdown",this._onDragStart),K.removeEventListener("pointerup",this._onDragEnd),K.removeEventListener("pointerleave",this._onMouseLeave),K.removeEventListener("focus",this._onFocus),K.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(K){return 0===K?.state||1===K?.state}_showRipple(K,ge){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||ge))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:K,centered:!0,persistent:!0})}_hideRipple(K){if(K?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const ge=this._getSibling();ge._isShowingAnyRipple()||(this._hideValueIndicator(),ge._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.gRc),Z.rXU(Z.SKi),Z.rXU(Z.aKT),Z.rXU(tn))}}static{this.\u0275cmp=Z.VBU({type:Se,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(ge,je){if(1&ge&&(Z.GBs(De.r6,5),Z.GBs(Fe,5),Z.GBs(Me,5)),2&ge){let le;Z.mGM(le=Z.lsd())&&(je._ripple=le.first),Z.mGM(le=Z.lsd())&&(je._knob=le.first),Z.mGM(le=Z.lsd())&&(je._valueIndicatorContainer=le.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Z.Jv_([{provide:me,useExisting:Se}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container",4,"ngIf"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(ge,je){1&ge&&(Z.DNE(0,Ge,5,1,"div",0),Z.nrm(1,"div",1,2)(3,"div",3)),2&ge&&(Z.Y8G("ngIf",je.discrete),Z.R7$(3),Z.Y8G("matRippleDisabled",!0))},dependencies:[we.bT,De.r6],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}}return Se})();const ht=(0,De.Zc)((0,De.GG)(class{constructor(Se){this._elementRef=Se}}),"primary");let kt=(()=>{class Se extends ht{get disabled(){return this._disabled}set disabled(K){this._disabled=(0,h.he)(K);const ge=this._getInput(2),je=this._getInput(1);ge&&(ge.disabled=this._disabled),je&&(je.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(K){this._discrete=(0,h.he)(K),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(K){this._showTickMarks=(0,h.he)(K)}get min(){return this._min}set min(K){const ge=(0,h.OE)(K,this._min);this._min!==ge&&this._updateMin(ge)}_updateMin(K){const ge=this._min;this._min=K,this._isRange?this._updateMinRange({old:ge,new:K}):this._updateMinNonRange(K),this._onMinMaxOrStepChange()}_updateMinRange(K){const ge=this._getInput(2),je=this._getInput(1),le=ge.value,de=je.value;je.min=K.new,ge.min=Math.max(K.new,je.value),je.max=Math.min(ge.max,ge.value),je._updateWidthInactive(),ge._updateWidthInactive(),K.new<K.old?this._onTranslateXChangeBySideEffect(ge,je):this._onTranslateXChangeBySideEffect(je,ge),le!==ge.value&&this._onValueChange(ge),de!==je.value&&this._onValueChange(je)}_updateMinNonRange(K){const ge=this._getInput(2);if(ge){const je=ge.value;ge.min=K,ge._updateThumbUIByValue(),this._updateTrackUI(ge),je!==ge.value&&this._onValueChange(ge)}}get max(){return this._max}set max(K){const ge=(0,h.OE)(K,this._max);this._max!==ge&&this._updateMax(ge)}_updateMax(K){const ge=this._max;this._max=K,this._isRange?this._updateMaxRange({old:ge,new:K}):this._updateMaxNonRange(K),this._onMinMaxOrStepChange()}_updateMaxRange(K){const ge=this._getInput(2),je=this._getInput(1),le=ge.value,de=je.value;ge.max=K.new,je.max=Math.min(K.new,ge.value),ge.min=je.value,ge._updateWidthInactive(),je._updateWidthInactive(),K.new>K.old?this._onTranslateXChangeBySideEffect(je,ge):this._onTranslateXChangeBySideEffect(ge,je),le!==ge.value&&this._onValueChange(ge),de!==je.value&&this._onValueChange(je)}_updateMaxNonRange(K){const ge=this._getInput(2);if(ge){const je=ge.value;ge.max=K,ge._updateThumbUIByValue(),this._updateTrackUI(ge),je!==ge.value&&this._onValueChange(ge)}}get step(){return this._step}set step(K){const ge=(0,h.OE)(K,this._step);this._step!==ge&&this._updateStep(ge)}_updateStep(K){this._step=K,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const K=this._getInput(2),ge=this._getInput(1),je=K.value,le=ge.value,de=ge.value;K.min=this._min,ge.max=this._max,K.step=this._step,ge.step=this._step,this._platform.SAFARI&&(K.value=K.value,ge.value=ge.value),K.min=Math.max(this._min,ge.value),ge.max=Math.min(this._max,K.value),ge._updateWidthInactive(),K._updateWidthInactive(),K.value<de?this._onTranslateXChangeBySideEffect(ge,K):this._onTranslateXChangeBySideEffect(K,ge),je!==K.value&&this._onValueChange(K),le!==ge.value&&this._onValueChange(ge)}_updateStepNonRange(){const K=this._getInput(2);if(K){const ge=K.value;K.step=this._step,this._platform.SAFARI&&(K.value=K.value),K._updateThumbUIByValue(),ge!==K.value&&this._onValueChange(K)}}constructor(K,ge,je,le,de,Le){super(je),this._ngZone=K,this._cdr=ge,this._dir=le,this._globalRippleOptions=de,this._disabled=!1,this._discrete=!1,this._showTickMarks=!1,this._min=0,this._max=100,this._step=1,this.displayWith=ue=>`${ue}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,Z.WQX)(ne.OD),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===Le,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const K=this._getInput(2),ge=this._getInput(1);this._isRange=!!K&&!!ge,this._cdr.detectChanges();const je=this._getThumb(2);this._rippleRadius=je._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(K,ge):this._initUINonRange(K),this._updateTrackUI(K),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(K){K.initProps(),K.initUI(),this._updateValueIndicatorUI(K),this._hasViewInitialized=!0,K._updateThumbUIByValue()}_initUIRange(K,ge){K.initProps(),K.initUI(),ge.initProps(),ge.initUI(),K._updateMinMax(),ge._updateMinMax(),K._updateStaticStyles(),ge._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,K._updateThumbUIByValue(),ge._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const K=this._getInput(2),ge=this._getInput(1);K._setIsLeftThumb(),ge._setIsLeftThumb(),K.translateX=K._calcTranslateXByValue(),ge.translateX=ge._calcTranslateXByValue(),K._updateStaticStyles(),ge._updateStaticStyles(),K._updateWidthInactive(),ge._updateWidthInactive(),K._updateThumbUIByValue(),ge._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(K=2){const ge=this._getInput(K);return ge?ge.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(K){const ge=this._trackActive.nativeElement.style;ge.left=K.left,ge.right=K.right,ge.transformOrigin=K.transformOrigin,ge.transform=K.transform}_calcTickMarkTransform(K){return`translateX(${K*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(K){this._hasViewInitialized&&(this._updateThumbUI(K),this._updateTrackUI(K),this._updateOverlappingThumbUI(K))}_onTranslateXChangeBySideEffect(K,ge){this._hasViewInitialized&&(K._updateThumbUIByValue(),ge._updateThumbUIByValue())}_onValueChange(K){this._hasViewInitialized&&(this._updateValueIndicatorUI(K),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const K=this._getInput(2),ge=this._getInput(1);K._updateThumbUIByValue(),ge._updateThumbUIByValue(),K._updateStaticStyles(),ge._updateStaticStyles(),K._updateMinMax(),ge._updateMinMax(),K._updateWidthInactive(),ge._updateWidthInactive()}else{const K=this._getInput(2);K&&K._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const K=this._getInput(1),ge=this._getInput(2);return!(!K||!ge)&&ge.translateX-K.translateX<20}_updateOverlappingThumbClassNames(K){const ge=K.getSibling(),je=this._getThumb(K.thumbPosition);this._getThumb(ge.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),je._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(K){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(K))}_updateThumbUI(K){this._skipUpdate()||(this._getThumb(2===K.thumbPosition?2:1)._hostElement.style.transform=`translateX(${K.translateX}px)`)}_updateValueIndicatorUI(K){if(this._skipUpdate())return;const ge=this.displayWith(K.value);if(this._hasViewInitialized?K._valuetext=ge:K._hostElement.setAttribute("aria-valuetext",ge),this.discrete){1===K.thumbPosition?this.startValueIndicatorText=ge:this.endValueIndicatorText=ge;const je=this._getThumb(K.thumbPosition);ge.length<3?je._hostElement.classList.add("mdc-slider__thumb--short-value"):je._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const K=this._getInput(2),ge=this._getInput(1);K&&this._updateValueIndicatorUI(K),ge&&this._updateValueIndicatorUI(ge)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const K=this._step&&this._step>0?this._step:1,je=(Math.floor(this.max/K)*K-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*je-6}_updateTrackUI(K){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(K):this._updateTrackUINonRange(K))}_updateTrackUIRange(K){const ge=K.getSibling();if(!ge||!this._cachedWidth)return;const je=Math.abs(ge.translateX-K.translateX)/this._cachedWidth;this._setTrackActiveStyles(K._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-ge.translateX+"px",transformOrigin:"right",transform:`scaleX(${je})`}:{left:`${ge.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${je})`})}_updateTrackUINonRange(K){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-K.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${K.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const K=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(K):this._updateTickMarkUINonRange(K),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(K){const ge=this._getValue();let je=Math.max(Math.round((ge-this.min)/K),0),le=Math.max(Math.round((this.max-ge)/K),0);this._isRtl?je++:le++,this._tickMarks=Array(je).fill(0).concat(Array(le).fill(1))}_updateTickMarkUIRange(K){const ge=this._getValue(),je=this._getValue(1),le=Math.max(Math.floor((je-this.min)/K),0),de=Math.max(Math.floor((ge-je)/K)+1,0),Le=Math.max(Math.floor((this.max-ge)/K),0);this._tickMarks=Array(le).fill(1).concat(Array(de).fill(0),Array(Le).fill(1))}_getInput(K){return 2===K&&this._input?this._input:this._inputs?.length?1===K?this._inputs.first:this._inputs.last:void 0}_getThumb(K){return 2===K?this._thumbs?.last:this._thumbs?.first}_setTransition(K){this._hasAnimation=!this._platform.IOS&&K&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(K,ge){const je=ge.width/2,ue=K.clientY-(ge.y+je);return Math.pow(K.clientX-(ge.x+je),2)+Math.pow(ue,2)<Math.pow(je,2)}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.SKi),Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(e.dS,8),Z.rXU(De.$E,8),Z.rXU(Z.bc$,8))}}static{this.\u0275cmp=Z.VBU({type:Se,selectors:[["mat-slider"]],contentQueries:function(ge,je,le){if(1&ge&&(Z.wni(le,vt,5),Z.wni(le,Pt,4)),2&ge){let de;Z.mGM(de=Z.lsd())&&(je._input=de.first),Z.mGM(de=Z.lsd())&&(je._inputs=de)}},viewQuery:function(ge,je){if(1&ge&&(Z.GBs(Ue,5),Z.GBs(me,5)),2&ge){let le;Z.mGM(le=Z.lsd())&&(je._trackActive=le.first),Z.mGM(le=Z.lsd())&&(je._thumbs=le)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:10,hostBindings:function(ge,je){2&ge&&Z.AVh("mdc-slider--range",je._isRange)("mdc-slider--disabled",je.disabled)("mdc-slider--discrete",je.discrete)("mdc-slider--tick-marks",je.showTickMarks)("_mat-animation-noopable",je._noopAnimations)},inputs:{color:"color",disableRipple:"disableRipple",disabled:"disabled",discrete:"discrete",showTickMarks:"showTickMarks",min:"min",max:"max",step:"step",displayWith:"displayWith"},exportAs:["matSlider"],features:[Z.Jv_([{provide:tn,useExisting:Se}]),Z.Vt3],ngContentSelectors:mt,decls:9,vars:5,consts:[[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],["trackActive",""],["class","mdc-slider__tick-marks",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText"],[1,"mdc-slider__tick-marks"],["tickMarkContainer",""],[4,"ngIf"],[3,"class","transform",4,"ngFor","ngForOf"]],template:function(ge,je){1&ge&&(Z.NAR(),Z.SdG(0),Z.j41(1,"div",0),Z.nrm(2,"div",1),Z.j41(3,"div",2),Z.nrm(4,"div",3,4),Z.k0s(),Z.DNE(6,bt,3,1,"div",5),Z.k0s(),Z.DNE(7,ft,1,3,"mat-slider-visual-thumb",6),Z.nrm(8,"mat-slider-visual-thumb",7)),2&ge&&(Z.R7$(6),Z.Y8G("ngIf",je.showTickMarks),Z.R7$(1),Z.Y8G("ngIf",je._isRange),Z.R7$(1),Z.Y8G("discrete",je.discrete)("thumbPosition",2)("valueIndicatorText",je.endValueIndicatorText))},dependencies:[we.Sq,we.bT,ot],styles:['.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{overflow:hidden}.mdc-slider .mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__thumb{display:flex;left:-24px;outline:none;position:absolute;user-select:none;height:48px;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-sizing:border-box;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;pointer-events:none;position:absolute;top:2px;width:44px}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;margin-left:8px;margin-right:8px;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider .mdc-slider__thumb-knob{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000));border-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb::before,.mat-mdc-slider .mdc-slider__thumb::after{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover::before,.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__track--active_fill{border-color:var(--mdc-slider-active-track-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider .mdc-slider__track--inactive{background-color:var(--mdc-slider-inactive-track-color, var(--mdc-theme-primary, #6200ee));opacity:.24}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color, var(--mdc-theme-on-surface, #000));opacity:.24}.mat-mdc-slider .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mdc-theme-primary, #6200ee));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mdc-theme-on-surface, #000));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__value-indicator{background-color:var(--mdc-slider-label-container-color, #666666);opacity:1}.mat-mdc-slider .mdc-slider__value-indicator::before{border-top-color:var(--mdc-slider-label-container-color, #666666)}.mat-mdc-slider .mdc-slider__value-indicator{color:var(--mdc-slider-label-label-text-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slider .mdc-slider__track{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__track--active{height:var(--mdc-slider-active-track-height, 6px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-slider-active-track-height, 6px)) / 2)}.mat-mdc-slider .mdc-slider__track--active_fill{border-top-width:var(--mdc-slider-active-track-height, 6px)}.mat-mdc-slider .mdc-slider__track--inactive{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{height:var(--mdc-slider-with-tick-marks-container-size, 2px);width:var(--mdc-slider-with-tick-marks-container-size, 2px)}.mat-mdc-slider.mdc-slider--disabled{opacity:0.38}.mat-mdc-slider .mdc-slider__value-indicator-text{letter-spacing:var(--mdc-slider-label-label-text-tracking, 0.0071428571em);font-size:var(--mdc-slider-label-label-text-size, 0.875rem);font-family:var(--mdc-slider-label-label-text-font, Roboto, sans-serif);font-weight:var(--mdc-slider-label-label-text-weight, 500);line-height:var(--mdc-slider-label-label-text-line-height, 1.375rem)}.mat-mdc-slider .mdc-slider__track--active{border-radius:var(--mdc-slider-active-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__track--inactive{border-radius:var(--mdc-slider-inactive-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__thumb-knob{border-radius:var(--mdc-slider-handle-shape, 50%);width:var(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-style:solid;border-width:calc(var(--mdc-slider-handle-height, 20px) / 2) calc(var(--mdc-slider-handle-width, 20px) / 2)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{border-radius:var(--mdc-slider-with-tick-marks-container-shape, 50%)}.mat-mdc-slider .mdc-slider__thumb-knob{box-shadow:var(--mdc-slider-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:var(--mdc-slider-with-overlap-handle-outline-color, #fff);border-width:var(--mdc-slider-with-overlap-handle-outline-width, 1px)}.mat-mdc-slider .mdc-slider__input{box-sizing:content-box;pointer-events:auto}.mat-mdc-slider .mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mat-mdc-slider .mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__value-indicator{word-break:normal}.mat-mdc-slider .mdc-slider__track,.mat-mdc-slider .mdc-slider__thumb{pointer-events:none}.mat-mdc-slider .mdc-slider__value-indicator{opacity:var(--mat-mdc-slider-value-indicator-opacity, 1)}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-mdc-slider-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-mdc-slider-hover-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-mdc-slider-focus-ripple-color, transparent)}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-mdc-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return Se})();const kn={provide:Ie.kq,useExisting:(0,Z.Rfq)(()=>Kt),multi:!0};let Kt=(()=>{class Se{get value(){return(0,h.OE)(this._hostElement.value)}set value(K){const ge=(0,h.OE)(K).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=ge,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()):this._initialValue=ge}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(K){this._translateX=K}get min(){return(0,h.OE)(this._hostElement.min)}set min(K){this._hostElement.min=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get max(){return(0,h.OE)(this._hostElement.max)}set max(K){this._hostElement.max=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get step(){return(0,h.OE)(this._hostElement.step)}set step(K){this._hostElement.step=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get disabled(){return(0,h.he)(this._hostElement.disabled)}set disabled(K){this._hostElement.disabled=(0,h.he)(K),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(K){this._isFocused=K}constructor(K,ge,je,le){this._ngZone=K,this._elementRef=ge,this._cdr=je,this._slider=le,this.valueChange=new Z.bkB,this.dragStart=new Z.bkB,this.dragEnd=new Z.bkB,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new Oe.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,Z.WQX)(ne.OD),this._hostElement=ge.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(K){if(!this.disabled&&0===K.button){if(this._platform.IOS){const ge=this._slider._isCursorOnSliderThumb(K,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=ge,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(K,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(K),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(K){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(K)},0)}_fixValue(K){const ge=K.clientX-this._slider._cachedLeft,je=this._slider._cachedWidth,le=0===this._slider.step?1:this._slider.step,de=Math.floor((this._slider.max-this._slider.min)/le),He=Math.round((this._slider._isRtl?1-ge/je:ge/je)*de)/de*(this._slider.max-this._slider.min)+this._slider.min,L=Math.round(He/le)*le;if(L===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(K,{withAnimation:this._slider._hasAnimation}));this.value=L,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(K,{withAnimation:this._slider._hasAnimation})}_onPointerMove(K){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(K)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(K){return Math.max(Math.min(K,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(K){return K.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(K){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(K)}_updateThumbUIByPointerEvent(K,ge){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(K)),this._updateThumbUI(ge)}_updateThumbUI(K){this._slider._setTransition(!!K?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(K){(this._isControlInitialized||null!==K)&&(this.value=K)}registerOnChange(K){this._onChangeFn=K,this._isControlInitialized=!0}registerOnTouched(K){this._onTouchedFn=K}setDisabledState(K){this.disabled=K}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.SKi),Z.rXU(Z.aKT),Z.rXU(Z.gRc),Z.rXU(tn))}}static{this.\u0275dir=Z.FsC({type:Se,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(ge,je){1&ge&&Z.bIt("change",function(){return je._onChange()})("input",function(){return je._onInput()})("blur",function(){return je._onBlur()})("focus",function(){return je._onFocus()}),2&ge&&Z.BMQ("aria-valuetext",je._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[Z.Jv_([kn,{provide:vt,useExisting:Se}])]})}}return Se})(),ye=(()=>{class Se{static{this.\u0275fac=function(ge){return new(ge||Se)}}static{this.\u0275mod=Z.$C({type:Se})}static{this.\u0275inj=Z.G2t({imports:[De.yE,we.MD,De.pZ]})}}return Se})()},7675:(gn,ct,N)=>{N.d(ct,{$R:()=>$e,YV:()=>qe,cC:()=>jt,KS:()=>pn,tL:()=>Ee,YZ:()=>Tn,ji:()=>Zt,NB:()=>bn,iL:()=>un,Zl:()=>gt,tP:()=>ds});var e=N(7705),h=N(8203),ne=N(4085),Z=N(17),De=N(4402),we=N(7673);function Oe(Re){return Re&&"function"==typeof Re.connect&&!(Re instanceof Z.G)}class Me{applyChanges(Rt,oe,_e,et,Vt){Rt.forEachOperation((At,In,Hn)=>{let mi,Kn;if(null==At.previousIndex){const ri=_e(At,In,Hn);mi=oe.createEmbeddedView(ri.templateRef,ri.context,ri.index),Kn=1}else null==Hn?(oe.remove(In),Kn=3):(mi=oe.get(In),oe.move(mi,Hn),Kn=2);Vt&&Vt({context:mi?.context,operation:Kn,record:At})})}detach(){}}const bt=new e.nKC("_ViewRepeater");var ft=N(6860),mt=N(7333),tn=N(177),vt=N(1413),Pt=N(2806),me=N(4412),at=N(6977),ot=N(6697);const ht=[[["caption"]],[["colgroup"],["col"]]],kt=["caption","colgroup, col"];function kn(Re){return class extends Re{get sticky(){return this._sticky}set sticky(Rt){const oe=this._sticky;this._sticky=(0,ne.he)(Rt),this._hasStickyChanged=oe!==this._sticky}hasStickyChanged(){const Rt=this._hasStickyChanged;return this._hasStickyChanged=!1,Rt}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...Rt){super(...Rt),this._sticky=!1,this._hasStickyChanged=!1}}}const dn=new e.nKC("CDK_TABLE");let Ye=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkCellDef",""]]})}}return Re})(),ye=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkHeaderCellDef",""]]})}}return Re})(),Se=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkFooterCellDef",""]]})}}return Re})();class Nt{}const K=kn(Nt);let ge=(()=>{class Re extends K{get name(){return this._name}set name(oe){this._setNameInput(oe)}get stickyEnd(){return this._stickyEnd}set stickyEnd(oe){const _e=this._stickyEnd;this._stickyEnd=(0,ne.he)(oe),this._hasStickyChanged=_e!==this._stickyEnd}constructor(oe){super(),this._table=oe,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(oe){oe&&(this._name=oe,this.cssClassFriendlyName=oe.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,et,Vt){if(1&_e&&(e.wni(Vt,Ye,5),e.wni(Vt,ye,5),e.wni(Vt,Se,5)),2&_e){let At;e.mGM(At=e.lsd())&&(et.cell=At.first),e.mGM(At=e.lsd())&&(et.headerCell=At.first),e.mGM(At=e.lsd())&&(et.footerCell=At.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),e.Vt3]})}}return Re})();class je{constructor(Rt,oe){oe.nativeElement.classList.add(...Rt._columnCssClassName)}}let le=(()=>{class Re extends je{constructor(oe,_e){super(oe,_e)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(ge),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.Vt3]})}}return Re})(),Le=(()=>{class Re extends je{constructor(oe,_e){if(super(oe,_e),1===oe._table?._elementRef.nativeElement.nodeType){const et=oe._table._elementRef.nativeElement.getAttribute("role");_e.nativeElement.setAttribute("role","grid"===et||"treegrid"===et?"gridcell":"cell")}}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(ge),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.Vt3]})}}return Re})();class ue{constructor(){this.tasks=[],this.endTasks=[]}}const He=new e.nKC("_COALESCED_STYLE_SCHEDULER");let L=(()=>{class Re{constructor(oe){this._ngZone=oe,this._currentSchedule=null,this._destroyed=new vt.B}schedule(oe){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(oe)}scheduleEnd(oe){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(oe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ue,this._getScheduleObservable().pipe((0,at.Q)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const oe=this._currentSchedule;this._currentSchedule=new ue;for(const _e of oe.tasks)_e();for(const _e of oe.endTasks)_e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Pt.H)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ot.s)(1))}static{this.\u0275fac=function(_e){return new(_e||Re)(e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:Re,factory:Re.\u0275fac})}}return Re})(),Be=(()=>{class Re{constructor(oe,_e){this.template=oe,this._differs=_e}ngOnChanges(oe){if(!this._columnsDiffer){const _e=oe.columns&&oe.columns.currentValue||[];this._columnsDiffer=this._differs.find(_e).create(),this._columnsDiffer.diff(_e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(oe){return this instanceof Gt?oe.headerCell.template:this instanceof sn?oe.footerCell.template:oe.cell.template}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3))}}static{this.\u0275dir=e.FsC({type:Re,features:[e.OA$]})}}return Re})();class pt extends Be{}const dt=kn(pt);let Gt=(()=>{class Re extends dt{constructor(oe,_e,et){super(oe,_e),this._table=et}ngOnChanges(oe){super.ngOnChanges(oe)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.Vt3,e.OA$]})}}return Re})();class Cn extends Be{}const jn=kn(Cn);let sn=(()=>{class Re extends jn{constructor(oe,_e,et){super(oe,_e),this._table=et}ngOnChanges(oe){super.ngOnChanges(oe)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.Vt3,e.OA$]})}}return Re})(),Vn=(()=>{class Re extends Be{constructor(oe,_e,et){super(oe,_e),this._table=et}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.Vt3]})}}return Re})(),oi=(()=>{class Re{static{this.mostRecentCellOutlet=null}constructor(oe){this._viewContainer=oe,Re.mostRecentCellOutlet=this}ngOnDestroy(){Re.mostRecentCellOutlet===this&&(Re.mostRecentCellOutlet=null)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkCellOutlet",""]]})}}return Re})(),yi=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,et){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),ke=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,et){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),re=(()=>{class Re{constructor(oe){this.templateRef=oe,this._contentClassName="cdk-no-data-row"}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["ng-template","cdkNoDataRow",""]]})}}return Re})();const xe=["top","bottom","left","right"];class Ve{constructor(Rt,oe,_e,et,Vt=!0,At=!0,In){this._isNativeHtmlTable=Rt,this._stickCellCss=oe,this.direction=_e,this._coalescedStyleScheduler=et,this._isBrowser=Vt,this._needsPositionStickyOnElement=At,this._positionListener=In,this._cachedCellWidths=[],this._borderCellCss={top:`${oe}-border-elem-top`,bottom:`${oe}-border-elem-bottom`,left:`${oe}-border-elem-left`,right:`${oe}-border-elem-right`}}clearStickyPositioning(Rt,oe){const _e=[];for(const et of Rt)if(et.nodeType===et.ELEMENT_NODE){_e.push(et);for(let Vt=0;Vt<et.children.length;Vt++)_e.push(et.children[Vt])}this._coalescedStyleScheduler.schedule(()=>{for(const et of _e)this._removeStickyStyle(et,oe)})}updateStickyColumns(Rt,oe,_e,et=!0){if(!Rt.length||!this._isBrowser||!oe.some(Ki=>Ki)&&!_e.some(Ki=>Ki))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Vt=Rt[0],At=Vt.children.length,In=this._getCellWidths(Vt,et),Hn=this._getStickyStartColumnPositions(In,oe),mi=this._getStickyEndColumnPositions(In,_e),Kn=oe.lastIndexOf(!0),ri=_e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ki="rtl"===this.direction,Ls=Ki?"right":"left",la=Ki?"left":"right";for(const er of Rt)for(let os=0;os<At;os++){const Bs=er.children[os];oe[os]&&this._addStickyStyle(Bs,Ls,Hn[os],os===Kn),_e[os]&&this._addStickyStyle(Bs,la,mi[os],os===ri)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Kn?[]:In.slice(0,Kn+1).map((er,os)=>oe[os]?er:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===ri?[]:In.slice(ri).map((er,os)=>_e[os+ri]?er:null).reverse()}))})}stickRows(Rt,oe,_e){if(!this._isBrowser)return;const et="bottom"===_e?Rt.slice().reverse():Rt,Vt="bottom"===_e?oe.slice().reverse():oe,At=[],In=[],Hn=[];for(let Kn=0,ri=0;Kn<et.length;Kn++){if(!Vt[Kn])continue;At[Kn]=ri;const Ki=et[Kn];Hn[Kn]=this._isNativeHtmlTable?Array.from(Ki.children):[Ki];const Ls=Ki.getBoundingClientRect().height;ri+=Ls,In[Kn]=Ls}const mi=Vt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Kn=0;Kn<et.length;Kn++){if(!Vt[Kn])continue;const ri=At[Kn],Ki=Kn===mi;for(const Ls of Hn[Kn])this._addStickyStyle(Ls,_e,ri,Ki)}"top"===_e?this._positionListener?.stickyHeaderRowsUpdated({sizes:In,offsets:At,elements:Hn}):this._positionListener?.stickyFooterRowsUpdated({sizes:In,offsets:At,elements:Hn})})}updateStickyFooterContainer(Rt,oe){if(!this._isNativeHtmlTable)return;const _e=Rt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{oe.some(et=>!et)?this._removeStickyStyle(_e,["bottom"]):this._addStickyStyle(_e,"bottom",0,!1)})}_removeStickyStyle(Rt,oe){for(const et of oe)Rt.style[et]="",Rt.classList.remove(this._borderCellCss[et]);xe.some(et=>-1===oe.indexOf(et)&&Rt.style[et])?Rt.style.zIndex=this._getCalculatedZIndex(Rt):(Rt.style.zIndex="",this._needsPositionStickyOnElement&&(Rt.style.position=""),Rt.classList.remove(this._stickCellCss))}_addStickyStyle(Rt,oe,_e,et){Rt.classList.add(this._stickCellCss),et&&Rt.classList.add(this._borderCellCss[oe]),Rt.style[oe]=`${_e}px`,Rt.style.zIndex=this._getCalculatedZIndex(Rt),this._needsPositionStickyOnElement&&(Rt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rt){const oe={top:100,bottom:10,left:1,right:1};let _e=0;for(const et of xe)Rt.style[et]&&(_e+=oe[et]);return _e?`${_e}`:""}_getCellWidths(Rt,oe=!0){if(!oe&&this._cachedCellWidths.length)return this._cachedCellWidths;const _e=[],et=Rt.children;for(let Vt=0;Vt<et.length;Vt++)_e.push(et[Vt].getBoundingClientRect().width);return this._cachedCellWidths=_e,_e}_getStickyStartColumnPositions(Rt,oe){const _e=[];let et=0;for(let Vt=0;Vt<Rt.length;Vt++)oe[Vt]&&(_e[Vt]=et,et+=Rt[Vt]);return _e}_getStickyEndColumnPositions(Rt,oe){const _e=[];let et=0;for(let Vt=Rt.length;Vt>0;Vt--)oe[Vt]&&(_e[Vt]=et,et+=Rt[Vt]);return _e}}const Dt=new e.nKC("CDK_SPL");let yn=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","rowOutlet",""]]})}}return Re})(),$n=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","headerRowOutlet",""]]})}}return Re})(),di=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","footerRowOutlet",""]]})}}return Re})(),ai=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","noDataRowOutlet",""]]})}}return Re})(),Bi=(()=>{class Re{get trackBy(){return this._trackByFn}set trackBy(oe){this._trackByFn=oe}get dataSource(){return this._dataSource}set dataSource(oe){this._dataSource!==oe&&this._switchDataSource(oe)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(oe){this._multiTemplateDataRows=(0,ne.he)(oe),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(oe){this._fixedLayout=(0,ne.he)(oe),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(oe,_e,et,Vt,At,In,Hn,mi,Kn,ri,Ki,Ls){this._differs=oe,this._changeDetectorRef=_e,this._elementRef=et,this._dir=At,this._platform=Hn,this._viewRepeater=mi,this._coalescedStyleScheduler=Kn,this._viewportRuler=ri,this._stickyPositioningListener=Ki,this._ngZone=Ls,this._onDestroy=new vt.B,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.bkB,this.viewChange=new me.t({start:0,end:Number.MAX_VALUE}),Vt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=In,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((oe,_e)=>this.trackBy?this.trackBy(_e.dataIndex,_e.data):_e),this._viewportRuler.change().pipe((0,at.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const _e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||_e,this._forceRecalculateCellWidths=_e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(oe=>{oe.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Oe(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const oe=this._dataDiffer.diff(this._renderRows);if(!oe)return this._updateNoDataRow(),void this.contentChanged.next();const _e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(oe,_e,(et,Vt,At)=>this._getEmbeddedViewArgs(et.item,At),et=>et.item.data,et=>{1===et.operation&&et.context&&this._renderCellTemplateForItem(et.record.item.rowDef,et.context)}),this._updateRowIndexContext(),oe.forEachIdentityChange(et=>{_e.get(et.currentIndex).context.$implicit=et.item.data}),this._updateNoDataRow(),this._ngZone&&e.SKi.isInAngularZone()?this._ngZone.onStable.pipe((0,ot.s)(1),(0,at.Q)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(oe){this._customColumnDefs.add(oe)}removeColumnDef(oe){this._customColumnDefs.delete(oe)}addRowDef(oe){this._customRowDefs.add(oe)}removeRowDef(oe){this._customRowDefs.delete(oe)}addHeaderRowDef(oe){this._customHeaderRowDefs.add(oe),this._headerRowDefChanged=!0}removeHeaderRowDef(oe){this._customHeaderRowDefs.delete(oe),this._headerRowDefChanged=!0}addFooterRowDef(oe){this._customFooterRowDefs.add(oe),this._footerRowDefChanged=!0}removeFooterRowDef(oe){this._customFooterRowDefs.delete(oe),this._footerRowDefChanged=!0}setNoDataRow(oe){this._customNoDataRow=oe}updateStickyHeaderRowStyles(){const oe=this._getRenderedRows(this._headerRowOutlet),et=this._elementRef.nativeElement.querySelector("thead");et&&(et.style.display=oe.length?"":"none");const Vt=this._headerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(oe,["top"]),this._stickyStyler.stickRows(oe,Vt,"top"),this._headerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyFooterRowStyles(){const oe=this._getRenderedRows(this._footerRowOutlet),et=this._elementRef.nativeElement.querySelector("tfoot");et&&(et.style.display=oe.length?"":"none");const Vt=this._footerRowDefs.map(At=>At.sticky);this._stickyStyler.clearStickyPositioning(oe,["bottom"]),this._stickyStyler.stickRows(oe,Vt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Vt),this._footerRowDefs.forEach(At=>At.resetStickyChanged())}updateStickyColumnStyles(){const oe=this._getRenderedRows(this._headerRowOutlet),_e=this._getRenderedRows(this._rowOutlet),et=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...oe,..._e,...et],["left","right"]),this._stickyColumnStylesNeedReset=!1),oe.forEach((Vt,At)=>{this._addStickyColumnStyles([Vt],this._headerRowDefs[At])}),this._rowDefs.forEach(Vt=>{const At=[];for(let In=0;In<_e.length;In++)this._renderRows[In].rowDef===Vt&&At.push(_e[In]);this._addStickyColumnStyles(At,Vt)}),et.forEach((Vt,At)=>{this._addStickyColumnStyles([Vt],this._footerRowDefs[At])}),Array.from(this._columnDefsByName.values()).forEach(Vt=>Vt.resetStickyChanged())}_getAllRenderRows(){const oe=[],_e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let et=0;et<this._data.length;et++){let Vt=this._data[et];const At=this._getRenderRowsForData(Vt,et,_e.get(Vt));this._cachedRenderRowsMap.has(Vt)||this._cachedRenderRowsMap.set(Vt,new WeakMap);for(let In=0;In<At.length;In++){let Hn=At[In];const mi=this._cachedRenderRowsMap.get(Hn.data);mi.has(Hn.rowDef)?mi.get(Hn.rowDef).push(Hn):mi.set(Hn.rowDef,[Hn]),oe.push(Hn)}}return oe}_getRenderRowsForData(oe,_e,et){return this._getRowDefs(oe,_e).map(At=>{const In=et&&et.has(At)?et.get(At):[];if(In.length){const Hn=In.shift();return Hn.dataIndex=_e,Hn}return{data:oe,rowDef:At,dataIndex:_e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),As(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(_e=>{this._columnDefsByName.has(_e.name),this._columnDefsByName.set(_e.name,_e)})}_cacheRowDefs(){this._headerRowDefs=As(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=As(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=As(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const oe=this._rowDefs.filter(_e=>!_e.when);this._defaultRowDef=oe[0]}_renderUpdatedColumns(){const oe=(At,In)=>At||!!In.getColumnsDiff(),_e=this._rowDefs.reduce(oe,!1);_e&&this._forceRenderDataRows();const et=this._headerRowDefs.reduce(oe,!1);et&&this._forceRenderHeaderRows();const Vt=this._footerRowDefs.reduce(oe,!1);return Vt&&this._forceRenderFooterRows(),_e||et||Vt}_switchDataSource(oe){this._data=[],Oe(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),oe||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=oe}_observeRenderChanges(){if(!this.dataSource)return;let oe;Oe(this.dataSource)?oe=this.dataSource.connect(this):(0,De.A)(this.dataSource)?oe=this.dataSource:Array.isArray(this.dataSource)&&(oe=(0,we.of)(this.dataSource)),this._renderChangeSubscription=oe.pipe((0,at.Q)(this._onDestroy)).subscribe(_e=>{this._data=_e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((oe,_e)=>this._renderRow(this._headerRowOutlet,oe,_e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((oe,_e)=>this._renderRow(this._footerRowOutlet,oe,_e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(oe,_e){const et=Array.from(_e.columns||[]).map(In=>this._columnDefsByName.get(In)),Vt=et.map(In=>In.sticky),At=et.map(In=>In.stickyEnd);this._stickyStyler.updateStickyColumns(oe,Vt,At,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(oe){const _e=[];for(let et=0;et<oe.viewContainer.length;et++){const Vt=oe.viewContainer.get(et);_e.push(Vt.rootNodes[0])}return _e}_getRowDefs(oe,_e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let et=[];if(this.multiTemplateDataRows)et=this._rowDefs.filter(Vt=>!Vt.when||Vt.when(_e,oe));else{let Vt=this._rowDefs.find(At=>At.when&&At.when(_e,oe))||this._defaultRowDef;Vt&&et.push(Vt)}return et}_getEmbeddedViewArgs(oe,_e){return{templateRef:oe.rowDef.template,context:{$implicit:oe.data},index:_e}}_renderRow(oe,_e,et,Vt={}){const At=oe.viewContainer.createEmbeddedView(_e.template,Vt,et);return this._renderCellTemplateForItem(_e,Vt),At}_renderCellTemplateForItem(oe,_e){for(let et of this._getCellTemplates(oe))oi.mostRecentCellOutlet&&oi.mostRecentCellOutlet._viewContainer.createEmbeddedView(et,_e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const oe=this._rowOutlet.viewContainer;for(let _e=0,et=oe.length;_e<et;_e++){const At=oe.get(_e).context;At.count=et,At.first=0===_e,At.last=_e===et-1,At.even=_e%2==0,At.odd=!At.even,this.multiTemplateDataRows?(At.dataIndex=this._renderRows[_e].dataIndex,At.renderIndex=_e):At.index=this._renderRows[_e].dataIndex}}_getCellTemplates(oe){return oe&&oe.columns?Array.from(oe.columns,_e=>{const et=this._columnDefsByName.get(_e);return oe.extractCellTemplate(et)}):[]}_applyNativeTableSections(){const oe=this._document.createDocumentFragment(),_e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const et of _e){const Vt=this._document.createElement(et.tag);Vt.setAttribute("role","rowgroup");for(const At of et.outlets)Vt.appendChild(At.elementRef.nativeElement);oe.appendChild(Vt)}this._elementRef.nativeElement.appendChild(oe)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const oe=(_e,et)=>_e||et.hasStickyChanged();this._headerRowDefs.reduce(oe,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(oe,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(oe,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ve(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,we.of)()).pipe((0,at.Q)(this._onDestroy)).subscribe(_e=>{this._stickyStyler.direction=_e,this.updateStickyColumnStyles()})}_getOwnDefs(oe){return oe.filter(_e=>!_e._table||_e._table===this)}_updateNoDataRow(){const oe=this._customNoDataRow||this._noDataRow;if(!oe)return;const _e=0===this._rowOutlet.viewContainer.length;if(_e===this._isShowingNoDataRow)return;const et=this._noDataRowOutlet.viewContainer;if(_e){const Vt=et.createEmbeddedView(oe.templateRef),At=Vt.rootNodes[0];1===Vt.rootNodes.length&&At?.nodeType===this._document.ELEMENT_NODE&&(At.setAttribute("role","row"),At.classList.add(oe._contentClassName))}else et.clear();this._isShowingNoDataRow=_e,this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e._q3),e.rXU(e.gRc),e.rXU(e.aKT),e.kS0("role"),e.rXU(h.dS,8),e.rXU(tn.qQ),e.rXU(ft.OD),e.rXU(bt),e.rXU(He),e.rXU(mt.Xj),e.rXU(Dt,12),e.rXU(e.SKi,8))}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,et,Vt){if(1&_e&&(e.wni(Vt,re,5),e.wni(Vt,ge,5),e.wni(Vt,Vn,5),e.wni(Vt,Gt,5),e.wni(Vt,sn,5)),2&_e){let At;e.mGM(At=e.lsd())&&(et._noDataRow=At.first),e.mGM(At=e.lsd())&&(et._contentColumnDefs=At),e.mGM(At=e.lsd())&&(et._contentRowDefs=At),e.mGM(At=e.lsd())&&(et._contentHeaderRowDefs=At),e.mGM(At=e.lsd())&&(et._contentFooterRowDefs=At)}},viewQuery:function(_e,et){if(1&_e&&(e.GBs(yn,7),e.GBs($n,7),e.GBs(di,7),e.GBs(ai,7)),2&_e){let Vt;e.mGM(Vt=e.lsd())&&(et._rowOutlet=Vt.first),e.mGM(Vt=e.lsd())&&(et._headerRowOutlet=Vt.first),e.mGM(Vt=e.lsd())&&(et._footerRowOutlet=Vt.first),e.mGM(Vt=e.lsd())&&(et._noDataRowOutlet=Vt.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(_e,et){2&_e&&e.AVh("cdk-table-fixed-layout",et.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e.Jv_([{provide:dn,useExisting:Re},{provide:bt,useClass:Me},{provide:He,useClass:L},{provide:Dt,useValue:null}])],ngContentSelectors:kt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,et){1&_e&&(e.NAR(ht),e.SdG(0),e.SdG(1,1),e.eu8(2,0)(3,1)(4,2)(5,3))},dependencies:[yn,$n,di,ai],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}}return Re})();function As(Re,Rt){return Re.concat(Array.from(Rt))}let mn=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275mod=e.$C({type:Re})}static{this.\u0275inj=e.G2t({imports:[mt.E9]})}}return Re})();var Hs=N(6600);N(7786),N(4572),N(6354);const Ae=[[["caption"]],[["colgroup"],["col"]]],Ne=["caption","colgroup, col"];let gt=(()=>{class Re extends Bi{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(_e,et){2&_e&&e.AVh("mdc-table-fixed-layout",et.fixedLayout)},exportAs:["matTable"],features:[e.Jv_([{provide:Bi,useExisting:Re},{provide:dn,useExisting:Re},{provide:He,useClass:L},{provide:bt,useClass:Me},{provide:Dt,useValue:null}]),e.Vt3],ngContentSelectors:Ne,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,et){1&_e&&(e.NAR(Ae),e.SdG(0),e.SdG(1,1),e.eu8(2,0)(3,1)(4,2)(5,3))},dependencies:[yn,$n,di,ai],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}}return Re})(),qe=(()=>{class Re extends Ye{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matCellDef",""]],features:[e.Jv_([{provide:Ye,useExisting:Re}]),e.Vt3]})}}return Re})(),Ee=(()=>{class Re extends ye{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matHeaderCellDef",""]],features:[e.Jv_([{provide:ye,useExisting:Re}]),e.Vt3]})}}return Re})(),jt=(()=>{class Re extends ge{get name(){return this._name}set name(oe){this._setNameInput(oe)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e.Jv_([{provide:ge,useExisting:Re},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),e.Vt3]})}}return Re})(),pn=(()=>{class Re extends le{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[e.Vt3]})}}return Re})(),$e=(()=>{class Re extends Le{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[e.Vt3]})}}return Re})(),Zt=(()=>{class Re extends Gt{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e.Jv_([{provide:Gt,useExisting:Re}]),e.Vt3]})}}return Re})(),un=(()=>{class Re extends Vn{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e.Jv_([{provide:Vn,useExisting:Re}]),e.Vt3]})}}return Re})(),Tn=(()=>{class Re extends yi{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[e.Jv_([{provide:yi,useExisting:Re}]),e.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,et){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),bn=(()=>{class Re extends ke{static{this.\u0275fac=function(){let oe;return function(et){return(oe||(oe=e.xGo(Re)))(et||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[e.Jv_([{provide:ke,useExisting:Re}]),e.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,et){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),ds=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275mod=e.$C({type:Re})}static{this.\u0275inj=e.G2t({imports:[Hs.yE,mn,Hs.yE]})}}return Re})()},345:(gn,ct,N)=>{N.d(ct,{B7:()=>Tt,Bb:()=>sn,hE:()=>ke,sG:()=>dt,up:()=>ai});var e=N(7705),h=N(177);class ne extends h.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Z extends ne{static makeCurrent(){(0,h.ZD)(new Z)}onAndCancel(Ae,Ne,We){return Ae.addEventListener(Ne,We),()=>{Ae.removeEventListener(Ne,We)}}dispatchEvent(Ae,Ne){Ae.dispatchEvent(Ne)}remove(Ae){Ae.parentNode&&Ae.parentNode.removeChild(Ae)}createElement(Ae,Ne){return(Ne=Ne||this.getDefaultDocument()).createElement(Ae)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ae){return Ae.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ae){return Ae instanceof DocumentFragment}getGlobalEventTarget(Ae,Ne){return"window"===Ne?window:"document"===Ne?Ae:"body"===Ne?Ae.body:null}getBaseHref(Ae){const Ne=function we(){return De=De||document.querySelector("base"),De?De.getAttribute("href"):null}();return null==Ne?null:function Oe(ve){Ie=Ie||document.createElement("a"),Ie.setAttribute("href",ve);const Ae=Ie.pathname;return"/"===Ae.charAt(0)?Ae:`/${Ae}`}(Ne)}resetBaseElement(){De=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ae){return(0,h._b)(document.cookie,Ae)}}let Ie,De=null,Me=(()=>{class ve{build(){return new XMLHttpRequest}static{this.\u0275fac=function(We){return new(We||ve)}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();const Ge=new e.nKC("EventManagerPlugins");let Ue=(()=>{class ve{constructor(Ne,We){this._zone=We,this._eventNameToPlugin=new Map,Ne.forEach(qt=>{qt.manager=this}),this._plugins=Ne.slice().reverse()}addEventListener(Ne,We,qt){return this._findPluginFor(We).addEventListener(Ne,We,qt)}getZone(){return this._zone}_findPluginFor(Ne){let We=this._eventNameToPlugin.get(Ne);if(We)return We;if(We=this._plugins.find(fn=>fn.supports(Ne)),!We)throw new e.wOt(5101,!1);return this._eventNameToPlugin.set(Ne,We),We}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(Ge),e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();class Ct{constructor(Ae){this._doc=Ae}}const _t="ng-app-id";let bt=(()=>{class ve{constructor(Ne,We,qt,fn={}){this.doc=Ne,this.appId=We,this.nonce=qt,this.platformId=fn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,h.Vy)(fn),this.resetHostNodes()}addStyles(Ne){for(const We of Ne)1===this.changeUsageCount(We,1)&&this.onStyleAdded(We)}removeStyles(Ne){for(const We of Ne)this.changeUsageCount(We,-1)<=0&&this.onStyleRemoved(We)}ngOnDestroy(){const Ne=this.styleNodesInDOM;Ne&&(Ne.forEach(We=>We.remove()),Ne.clear());for(const We of this.getAllStyles())this.onStyleRemoved(We);this.resetHostNodes()}addHost(Ne){this.hostNodes.add(Ne);for(const We of this.getAllStyles())this.addStyleToHost(Ne,We)}removeHost(Ne){this.hostNodes.delete(Ne)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Ne){for(const We of this.hostNodes)this.addStyleToHost(We,Ne)}onStyleRemoved(Ne){const We=this.styleRef;We.get(Ne)?.elements?.forEach(qt=>qt.remove()),We.delete(Ne)}collectServerRenderedStyles(){const Ne=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(Ne?.length){const We=new Map;return Ne.forEach(qt=>{null!=qt.textContent&&We.set(qt.textContent,qt)}),We}return null}changeUsageCount(Ne,We){const qt=this.styleRef;if(qt.has(Ne)){const fn=qt.get(Ne);return fn.usage+=We,fn.usage}return qt.set(Ne,{usage:We,elements:[]}),We}getStyleElement(Ne,We){const qt=this.styleNodesInDOM,fn=qt?.get(We);if(fn?.parentNode===Ne)return qt.delete(We),fn.removeAttribute(_t),fn;{const gt=this.doc.createElement("style");return this.nonce&>.setAttribute("nonce",this.nonce),gt.textContent=We,this.platformIsServer&>.setAttribute(_t,this.appId),gt}}addStyleToHost(Ne,We){const qt=this.getStyleElement(Ne,We);Ne.appendChild(qt);const fn=this.styleRef,gt=fn.get(We)?.elements;gt?gt.push(qt):fn.set(We,{elements:[qt],usage:1})}resetHostNodes(){const Ne=this.hostNodes;Ne.clear(),Ne.add(this.doc.head)}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(h.qQ),e.KVO(e.sZ2),e.KVO(e.BIS,8),e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();const ft={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/"},mt=/%COMP%/g,at=new e.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function kt(ve,Ae){return Ae.map(Ne=>Ne.replace(mt,ve))}let Tt=(()=>{class ve{constructor(Ne,We,qt,fn,gt,qe,Ee,Ke=null){this.eventManager=Ne,this.sharedStylesHost=We,this.appId=qt,this.removeStylesOnCompDestroy=fn,this.doc=gt,this.platformId=qe,this.ngZone=Ee,this.nonce=Ke,this.rendererByCompId=new Map,this.platformIsServer=(0,h.Vy)(qe),this.defaultRenderer=new cn(Ne,gt,Ee,this.platformIsServer)}createRenderer(Ne,We){if(!Ne||!We)return this.defaultRenderer;this.platformIsServer&&We.encapsulation===e.gXe.ShadowDom&&(We={...We,encapsulation:e.gXe.Emulated});const qt=this.getOrCreateRenderer(Ne,We);return qt instanceof Se?qt.applyToHost(Ne):qt instanceof ye&&qt.applyStyles(),qt}getOrCreateRenderer(Ne,We){const qt=this.rendererByCompId;let fn=qt.get(We.id);if(!fn){const gt=this.doc,qe=this.ngZone,Ee=this.eventManager,Ke=this.sharedStylesHost,jt=this.removeStylesOnCompDestroy,pn=this.platformIsServer;switch(We.encapsulation){case e.gXe.Emulated:fn=new Se(Ee,Ke,We,this.appId,jt,gt,qe,pn);break;case e.gXe.ShadowDom:return new Ye(Ee,Ke,Ne,We,gt,qe,this.nonce,pn);default:fn=new ye(Ee,Ke,We,jt,gt,qe,pn)}qt.set(We.id,fn)}return fn}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(Ue),e.KVO(bt),e.KVO(e.sZ2),e.KVO(at),e.KVO(h.qQ),e.KVO(e.Agw),e.KVO(e.SKi),e.KVO(e.BIS))}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();class cn{constructor(Ae,Ne,We,qt){this.eventManager=Ae,this.doc=Ne,this.ngZone=We,this.platformIsServer=qt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ae,Ne){return Ne?this.doc.createElementNS(ft[Ne]||Ne,Ae):this.doc.createElement(Ae)}createComment(Ae){return this.doc.createComment(Ae)}createText(Ae){return this.doc.createTextNode(Ae)}appendChild(Ae,Ne){(Kt(Ae)?Ae.content:Ae).appendChild(Ne)}insertBefore(Ae,Ne,We){Ae&&(Kt(Ae)?Ae.content:Ae).insertBefore(Ne,We)}removeChild(Ae,Ne){Ae&&Ae.removeChild(Ne)}selectRootElement(Ae,Ne){let We="string"==typeof Ae?this.doc.querySelector(Ae):Ae;if(!We)throw new e.wOt(-5104,!1);return Ne||(We.textContent=""),We}parentNode(Ae){return Ae.parentNode}nextSibling(Ae){return Ae.nextSibling}setAttribute(Ae,Ne,We,qt){if(qt){Ne=qt+":"+Ne;const fn=ft[qt];fn?Ae.setAttributeNS(fn,Ne,We):Ae.setAttribute(Ne,We)}else Ae.setAttribute(Ne,We)}removeAttribute(Ae,Ne,We){if(We){const qt=ft[We];qt?Ae.removeAttributeNS(qt,Ne):Ae.removeAttribute(`${We}:${Ne}`)}else Ae.removeAttribute(Ne)}addClass(Ae,Ne){Ae.classList.add(Ne)}removeClass(Ae,Ne){Ae.classList.remove(Ne)}setStyle(Ae,Ne,We,qt){qt&(e.czy.DashCase|e.czy.Important)?Ae.style.setProperty(Ne,We,qt&e.czy.Important?"important":""):Ae.style[Ne]=We}removeStyle(Ae,Ne,We){We&e.czy.DashCase?Ae.style.removeProperty(Ne):Ae.style[Ne]=""}setProperty(Ae,Ne,We){Ae[Ne]=We}setValue(Ae,Ne){Ae.nodeValue=Ne}listen(Ae,Ne,We){if("string"==typeof Ae&&!(Ae=(0,h.QT)().getGlobalEventTarget(this.doc,Ae)))throw new Error(`Unsupported event target ${Ae} for event ${Ne}`);return this.eventManager.addEventListener(Ae,Ne,this.decoratePreventDefault(We))}decoratePreventDefault(Ae){return Ne=>{if("__ngUnwrap__"===Ne)return Ae;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ae(Ne)):Ae(Ne))&&Ne.preventDefault()}}}function Kt(ve){return"TEMPLATE"===ve.tagName&&void 0!==ve.content}class Ye extends cn{constructor(Ae,Ne,We,qt,fn,gt,qe,Ee){super(Ae,fn,gt,Ee),this.sharedStylesHost=Ne,this.hostEl=We,this.shadowRoot=We.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ke=kt(qt.id,qt.styles);for(const jt of Ke){const pn=document.createElement("style");qe&&pn.setAttribute("nonce",qe),pn.textContent=jt,this.shadowRoot.appendChild(pn)}}nodeOrShadowRoot(Ae){return Ae===this.hostEl?this.shadowRoot:Ae}appendChild(Ae,Ne){return super.appendChild(this.nodeOrShadowRoot(Ae),Ne)}insertBefore(Ae,Ne,We){return super.insertBefore(this.nodeOrShadowRoot(Ae),Ne,We)}removeChild(Ae,Ne){return super.removeChild(this.nodeOrShadowRoot(Ae),Ne)}parentNode(Ae){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ae)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ye extends cn{constructor(Ae,Ne,We,qt,fn,gt,qe,Ee){super(Ae,fn,gt,qe),this.sharedStylesHost=Ne,this.removeStylesOnCompDestroy=qt,this.styles=Ee?kt(Ee,We.styles):We.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Se extends ye{constructor(Ae,Ne,We,qt,fn,gt,qe,Ee){const Ke=qt+"-"+We.id;super(Ae,Ne,We,fn,gt,qe,Ee,Ke),this.contentAttr=function ot(ve){return"_ngcontent-%COMP%".replace(mt,ve)}(Ke),this.hostAttr=function ht(ve){return"_nghost-%COMP%".replace(mt,ve)}(Ke)}applyToHost(Ae){this.applyStyles(),this.setAttribute(Ae,this.hostAttr,"")}createElement(Ae,Ne){const We=super.createElement(Ae,Ne);return super.setAttribute(We,this.contentAttr,""),We}}let Nt=(()=>{class ve extends Ct{constructor(Ne){super(Ne)}supports(Ne){return!0}addEventListener(Ne,We,qt){return Ne.addEventListener(We,qt,!1),()=>this.removeEventListener(Ne,We,qt)}removeEventListener(Ne,We,qt){return Ne.removeEventListener(We,qt)}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();const K=["alt","control","meta","shift"],ge={"\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"},je={alt:ve=>ve.altKey,control:ve=>ve.ctrlKey,meta:ve=>ve.metaKey,shift:ve=>ve.shiftKey};let le=(()=>{class ve extends Ct{constructor(Ne){super(Ne)}supports(Ne){return null!=ve.parseEventName(Ne)}addEventListener(Ne,We,qt){const fn=ve.parseEventName(We),gt=ve.eventCallback(fn.fullKey,qt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,h.QT)().onAndCancel(Ne,fn.domEventName,gt))}static parseEventName(Ne){const We=Ne.toLowerCase().split("."),qt=We.shift();if(0===We.length||"keydown"!==qt&&"keyup"!==qt)return null;const fn=ve._normalizeKey(We.pop());let gt="",qe=We.indexOf("code");if(qe>-1&&(We.splice(qe,1),gt="code."),K.forEach(Ke=>{const jt=We.indexOf(Ke);jt>-1&&(We.splice(jt,1),gt+=Ke+".")}),gt+=fn,0!=We.length||0===fn.length)return null;const Ee={};return Ee.domEventName=qt,Ee.fullKey=gt,Ee}static matchEventFullKeyCode(Ne,We){let qt=ge[Ne.key]||Ne.key,fn="";return We.indexOf("code.")>-1&&(qt=Ne.code,fn="code."),!(null==qt||!qt)&&(qt=qt.toLowerCase()," "===qt?qt="space":"."===qt&&(qt="dot"),K.forEach(gt=>{gt!==qt&&(0,je[gt])(Ne)&&(fn+=gt+".")}),fn+=qt,fn===We)}static eventCallback(Ne,We,qt){return fn=>{ve.matchEventFullKeyCode(fn,Ne)&&qt.runGuarded(()=>We(fn))}}static _normalizeKey(Ne){return"esc"===Ne?"escape":Ne}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ve,factory:ve.\u0275fac})}}return ve})();const dt=(0,e.oH4)(e.fpN,"browser",[{provide:e.Agw,useValue:h.AJ},{provide:e.PLl,useValue:function L(){Z.makeCurrent()},multi:!0},{provide:h.qQ,useFactory:function Be(){return(0,e.TL$)(document),document},deps:[]}]),Gt=new e.nKC(""),Cn=[{provide:e.e01,useClass:class Fe{addToWindow(Ae){e.JZv.getAngularTestability=(We,qt=!0)=>{const fn=Ae.findTestabilityInTree(We,qt);if(null==fn)throw new e.wOt(5103,!1);return fn},e.JZv.getAllAngularTestabilities=()=>Ae.getAllTestabilities(),e.JZv.getAllAngularRootElements=()=>Ae.getAllRootElements(),e.JZv.frameworkStabilizers||(e.JZv.frameworkStabilizers=[]),e.JZv.frameworkStabilizers.push(We=>{const qt=e.JZv.getAllAngularTestabilities();let fn=qt.length,gt=!1;const qe=function(Ee){gt=gt||Ee,fn--,0==fn&&We(gt)};qt.forEach(Ee=>{Ee.whenStable(qe)})})}findTestabilityInTree(Ae,Ne,We){return null==Ne?null:Ae.getTestability(Ne)??(We?(0,h.QT)().isShadowRoot(Ne)?this.findTestabilityInTree(Ae,Ne.host,!0):this.findTestabilityInTree(Ae,Ne.parentElement,!0):null)}},deps:[]},{provide:e.WHO,useClass:e.NYb,deps:[e.SKi,e.giA,e.e01]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.e01]}],jn=[{provide:e.H8p,useValue:"root"},{provide:e.zcH,useFactory:function q(){return new e.zcH},deps:[]},{provide:Ge,useClass:Nt,multi:!0,deps:[h.qQ,e.SKi,e.Agw]},{provide:Ge,useClass:le,multi:!0,deps:[h.qQ]},Tt,bt,Ue,{provide:e._9s,useExisting:Tt},{provide:h.N0,useClass:Me,deps:[]},[]];let sn=(()=>{class ve{constructor(Ne){}static withServerTransition(Ne){return{ngModule:ve,providers:[{provide:e.sZ2,useValue:Ne.appId}]}}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(Gt,12))}}static{this.\u0275mod=e.$C({type:ve})}static{this.\u0275inj=e.G2t({providers:[...jn,...Cn],imports:[h.MD,e.Hbi]})}}return ve})(),ke=(()=>{class ve{constructor(Ne){this._doc=Ne}getTitle(){return this._doc.title}setTitle(Ne){this._doc.title=Ne||""}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ve,factory:function(We){let qt=null;return qt=We?new We:function It(){return new ke((0,e.KVO)(h.qQ))}(),qt},providedIn:"root"})}}return ve})();typeof window<"u"&&window;let ai=(()=>{class ve{static{this.\u0275fac=function(We){return new(We||ve)}}static{this.\u0275prov=e.jDH({token:ve,factory:function(We){let qt=null;return qt=We?new(We||ve):e.KVO(cs),qt},providedIn:"root"})}}return ve})(),cs=(()=>{class ve extends ai{constructor(Ne){super(),this._doc=Ne}sanitize(Ne,We){if(null==We)return null;switch(Ne){case e.WPN.NONE:return We;case e.WPN.HTML:return(0,e.ZF7)(We,"HTML")?(0,e.rcV)(We):(0,e.h9k)(this._doc,String(We)).toString();case e.WPN.STYLE:return(0,e.ZF7)(We,"Style")?(0,e.rcV)(We):We;case e.WPN.SCRIPT:if((0,e.ZF7)(We,"Script"))return(0,e.rcV)(We);throw new e.wOt(5200,!1);case e.WPN.URL:return(0,e.ZF7)(We,"URL")?(0,e.rcV)(We):(0,e.$MX)(String(We));case e.WPN.RESOURCE_URL:if((0,e.ZF7)(We,"ResourceURL"))return(0,e.rcV)(We);throw new e.wOt(5201,!1);default:throw new e.wOt(5202,!1)}}bypassSecurityTrustHtml(Ne){return(0,e.Kcf)(Ne)}bypassSecurityTrustStyle(Ne){return(0,e.cWb)(Ne)}bypassSecurityTrustScript(Ne){return(0,e.UyX)(Ne)}bypassSecurityTrustUrl(Ne){return(0,e.osQ)(Ne)}bypassSecurityTrustResourceUrl(Ne){return(0,e.e5t)(Ne)}static{this.\u0275fac=function(We){return new(We||ve)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ve,factory:function(We){let qt=null;return qt=We?new We:function Ai(ve){return new cs(ve.get(h.qQ))}(e.KVO(e.zZn)),qt},providedIn:"root"})}}return ve})()},1593:(gn,ct,N)=>{N.d(ct,{wF:()=>Vt,Ix:()=>es});var e=N(7705),h=N(4402),ne=N(2806),Z=N(7673),De=N(4412),we=N(9350),Ie=N(4572),Oe=N(8793),Fe=N(9030),Me=N(1203),Ge=N(8810),Ue=N(983),Ct=N(17),_t=N(1413),bt=N(8359),ft=N(177),mt=N(6354),tn=N(5558),vt=N(6697),Pt=N(9172),me=N(5964),at=N(1397),ot=N(9974),ht=N(4360);function kt(A){return(0,ot.N)((V,O)=>{let j=!1;V.subscribe((0,ht._)(O,Q=>{j=!0,O.next(Q)},()=>{j||O.next(A),O.complete()}))})}function Tt(A=cn){return(0,ot.N)((V,O)=>{let j=!1;V.subscribe((0,ht._)(O,Q=>{j=!0,O.next(Q)},()=>j?O.complete():O.error(A())))})}function cn(){return new we.G}var kn=N(3669);function dn(A,V){const O=arguments.length>=2;return j=>j.pipe(A?(0,me.p)((Q,Te)=>A(Q,Te,j)):kn.D,(0,vt.s)(1),O?kt(V):Tt(()=>new we.G))}var Kt=N(274),Ye=N(8141),ye=N(9437),Se=N(2816);function Nt(A){return A<=0?()=>Ue.w:(0,ot.N)((V,O)=>{let j=[];V.subscribe((0,ht._)(O,Q=>{j.push(Q),A<j.length&&j.shift()},()=>{for(const Q of j)O.next(Q);O.complete()},void 0,()=>{j=null}))})}var ge=N(3703),je=N(980),le=N(9898),de=N(6977),ue=(N(6365),N(345));const He="primary",L=Symbol("RouteTitle");class q{constructor(V){this.params=V||{}}has(V){return Object.prototype.hasOwnProperty.call(this.params,V)}get(V){if(this.has(V)){const O=this.params[V];return Array.isArray(O)?O[0]:O}return null}getAll(V){if(this.has(V)){const O=this.params[V];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function Be(A){return new q(A)}function pt(A,V,O){const j=O.path.split("/");if(j.length>A.length||"full"===O.pathMatch&&(V.hasChildren()||j.length<A.length))return null;const Q={};for(let Te=0;Te<j.length;Te++){const Qe=j[Te],Wt=A[Te];if(Qe.startsWith(":"))Q[Qe.substring(1)]=Wt;else if(Qe!==Wt.path)return null}return{consumed:A.slice(0,j.length),posParams:Q}}function Gt(A,V){const O=A?Object.keys(A):void 0,j=V?Object.keys(V):void 0;if(!O||!j||O.length!=j.length)return!1;let Q;for(let Te=0;Te<O.length;Te++)if(Q=O[Te],!Cn(A[Q],V[Q]))return!1;return!0}function Cn(A,V){if(Array.isArray(A)&&Array.isArray(V)){if(A.length!==V.length)return!1;const O=[...A].sort(),j=[...V].sort();return O.every((Q,Te)=>j[Te]===Q)}return A===V}function jn(A){return A.length>0?A[A.length-1]:null}function sn(A){return(0,h.A)(A)?A:(0,e.jNT)(A)?(0,ne.H)(Promise.resolve(A)):(0,Z.of)(A)}const Vn={exact:function ke(A,V,O){if(!Xt(A.segments,V.segments)||!ut(A.segments,V.segments,O)||A.numberOfChildren!==V.numberOfChildren)return!1;for(const j in V.children)if(!A.children[j]||!ke(A.children[j],V.children[j],O))return!1;return!0},subset:xe},oi={exact:function It(A,V){return Gt(A,V)},subset:function re(A,V){return Object.keys(V).length<=Object.keys(A).length&&Object.keys(V).every(O=>Cn(A[O],V[O]))},ignored:()=>!0};function yi(A,V,O){return Vn[O.paths](A.root,V.root,O.matrixParams)&&oi[O.queryParams](A.queryParams,V.queryParams)&&!("exact"===O.fragment&&A.fragment!==V.fragment)}function xe(A,V,O){return Ve(A,V,V.segments,O)}function Ve(A,V,O,j){if(A.segments.length>O.length){const Q=A.segments.slice(0,O.length);return!(!Xt(Q,O)||V.hasChildren()||!ut(Q,O,j))}if(A.segments.length===O.length){if(!Xt(A.segments,O)||!ut(A.segments,O,j))return!1;for(const Q in V.children)if(!A.children[Q]||!xe(A.children[Q],V.children[Q],j))return!1;return!0}{const Q=O.slice(0,A.segments.length),Te=O.slice(A.segments.length);return!!(Xt(A.segments,Q)&&ut(A.segments,Q,j)&&A.children[He])&&Ve(A.children[He],V,Te,j)}}function ut(A,V,O){return V.every((j,Q)=>oi[O](A[Q].parameters,j.parameters))}class Ft{constructor(V=new on([],{}),O={},j=null){this.root=V,this.queryParams=O,this.fragment=j}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){return Nn.serialize(this)}}class on{constructor(V,O){this.segments=V,this.children=O,this.parent=null,Object.values(O).forEach(j=>j.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yn(this)}}class Ln{constructor(V,O){this.path=V,this.parameters=O}get parameterMap(){return this._parameterMap||(this._parameterMap=Be(this.parameters)),this._parameterMap}toString(){return Ms(this)}}function Xt(A,V){return A.length===V.length&&A.every((O,j)=>O.path===V[j].path)}let Mt=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return new Dt},providedIn:"root"})}}return A})();class Dt{parse(V){const O=new fn(V);return new Ft(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(V){const O=`/${$n(V.root,!0)}`,j=function mn(A){const V=Object.keys(A).map(O=>{const j=A[O];return Array.isArray(j)?j.map(Q=>`${ai(O)}=${ai(Q)}`).join("&"):`${ai(O)}=${ai(j)}`}).filter(O=>!!O);return V.length?`?${V.join("&")}`:""}(V.queryParams);return`${O}${j}${"string"==typeof V.fragment?`#${function Ai(A){return encodeURI(A)}(V.fragment)}`:""}`}}const Nn=new Dt;function yn(A){return A.segments.map(V=>Ms(V)).join("/")}function $n(A,V){if(!A.hasChildren())return yn(A);if(V){const O=A.children[He]?$n(A.children[He],!1):"",j=[];return Object.entries(A.children).forEach(([Q,Te])=>{Q!==He&&j.push(`${Q}:${$n(Te,!1)}`)}),j.length>0?`${O}(${j.join("//")})`:O}{const O=function nt(A,V){let O=[];return Object.entries(A.children).forEach(([j,Q])=>{j===He&&(O=O.concat(V(Q,j)))}),Object.entries(A.children).forEach(([j,Q])=>{j!==He&&(O=O.concat(V(Q,j)))}),O}(A,(j,Q)=>Q===He?[$n(A.children[He],!1)]:[`${Q}:${$n(j,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[He]?`${yn(A)}/${O[0]}`:`${yn(A)}/(${O.join("//")})`}}function di(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ai(A){return di(A).replace(/%3B/gi,";")}function cs(A){return di(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bi(A){return decodeURIComponent(A)}function As(A){return Bi(A.replace(/\+/g,"%20"))}function Ms(A){return`${cs(A.path)}${function to(A){return Object.keys(A).map(V=>`;${cs(V)}=${cs(A[V])}`).join("")}(A.parameters)}`}const Hs=/^[^\/()?;#]+/;function rn(A){const V=A.match(Hs);return V?V[0]:""}const xt=/^[^\/()?;=#]+/,Ae=/^[^=?&#]+/,We=/^[^&#]+/;class fn{constructor(V){this.url=V,this.remaining=V}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new on([],{}):new on([],this.parseChildren())}parseQueryParams(){const V={};if(this.consumeOptional("?"))do{this.parseQueryParam(V)}while(this.consumeOptional("&"));return V}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const V=[];for(this.peekStartsWith("(")||V.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),V.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let j={};return this.peekStartsWith("(")&&(j=this.parseParens(!1)),(V.length>0||Object.keys(O).length>0)&&(j[He]=new on(V,O)),j}parseSegment(){const V=rn(this.remaining);if(""===V&&this.peekStartsWith(";"))throw new e.wOt(4009,!1);return this.capture(V),new Ln(Bi(V),this.parseMatrixParams())}parseMatrixParams(){const V={};for(;this.consumeOptional(";");)this.parseParam(V);return V}parseParam(V){const O=function ve(A){const V=A.match(xt);return V?V[0]:""}(this.remaining);if(!O)return;this.capture(O);let j="";if(this.consumeOptional("=")){const Q=rn(this.remaining);Q&&(j=Q,this.capture(j))}V[Bi(O)]=Bi(j)}parseQueryParam(V){const O=function Ne(A){const V=A.match(Ae);return V?V[0]:""}(this.remaining);if(!O)return;this.capture(O);let j="";if(this.consumeOptional("=")){const Qe=function qt(A){const V=A.match(We);return V?V[0]:""}(this.remaining);Qe&&(j=Qe,this.capture(j))}const Q=As(O),Te=As(j);if(V.hasOwnProperty(Q)){let Qe=V[Q];Array.isArray(Qe)||(Qe=[Qe],V[Q]=Qe),Qe.push(Te)}else V[Q]=Te}parseParens(V){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const j=rn(this.remaining),Q=this.remaining[j.length];if("/"!==Q&&")"!==Q&&";"!==Q)throw new e.wOt(4010,!1);let Te;j.indexOf(":")>-1?(Te=j.slice(0,j.indexOf(":")),this.capture(Te),this.capture(":")):V&&(Te=He);const Qe=this.parseChildren();O[Te]=1===Object.keys(Qe).length?Qe[He]:new on([],Qe),this.consumeOptional("//")}return O}peekStartsWith(V){return this.remaining.startsWith(V)}consumeOptional(V){return!!this.peekStartsWith(V)&&(this.remaining=this.remaining.substring(V.length),!0)}capture(V){if(!this.consumeOptional(V))throw new e.wOt(4011,!1)}}function gt(A){return A.segments.length>0?new on([],{[He]:A}):A}function qe(A){const V={};for(const j of Object.keys(A.children)){const Te=qe(A.children[j]);if(j===He&&0===Te.segments.length&&Te.hasChildren())for(const[Qe,Wt]of Object.entries(Te.children))V[Qe]=Wt;else(Te.segments.length>0||Te.hasChildren())&&(V[j]=Te)}return function Ee(A){if(1===A.numberOfChildren&&A.children[He]){const V=A.children[He];return new on(A.segments.concat(V.segments),V.children)}return A}(new on(A.segments,V))}function Ke(A){return A instanceof Ft}function pn(A){let V;const Q=gt(function O(Te){const Qe={};for(const Ht of Te.children){const Pn=O(Ht);Qe[Ht.outlet]=Pn}const Wt=new on(Te.url,Qe);return Te===A&&(V=Wt),Wt}(A.root));return V??Q}function Je(A,V,O,j){let Q=A;for(;Q.parent;)Q=Q.parent;if(0===V.length)return Zt(Q,Q,Q,O,j);const Te=function Tn(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new un(!0,0,A);let V=0,O=!1;const j=A.reduce((Q,Te,Qe)=>{if("object"==typeof Te&&null!=Te){if(Te.outlets){const Wt={};return Object.entries(Te.outlets).forEach(([Ht,Pn])=>{Wt[Ht]="string"==typeof Pn?Pn.split("/"):Pn}),[...Q,{outlets:Wt}]}if(Te.segmentPath)return[...Q,Te.segmentPath]}return"string"!=typeof Te?[...Q,Te]:0===Qe?(Te.split("/").forEach((Wt,Ht)=>{0==Ht&&"."===Wt||(0==Ht&&""===Wt?O=!0:".."===Wt?V++:""!=Wt&&Q.push(Wt))}),Q):[...Q,Te]},[]);return new un(O,V,j)}(V);if(Te.toRoot())return Zt(Q,Q,new on([],{}),O,j);const Qe=function bn(A,V,O){if(A.isAbsolute)return new li(V,!0,0);if(!O)return new li(V,!1,NaN);if(null===O.parent)return new li(O,!0,0);const j=$e(A.commands[0])?0:1;return function Mi(A,V,O){let j=A,Q=V,Te=O;for(;Te>Q;){if(Te-=Q,j=j.parent,!j)throw new e.wOt(4005,!1);Q=j.segments.length}return new li(j,!1,Q-Te)}(O,O.segments.length-1+j,A.numberOfDoubleDots)}(Te,Q,A),Wt=Qe.processChildren?ds(Qe.segmentGroup,Qe.index,Te.commands):bs(Qe.segmentGroup,Qe.index,Te.commands);return Zt(Q,Qe.segmentGroup,Wt,O,j)}function $e(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function it(A){return"object"==typeof A&&null!=A&&A.outlets}function Zt(A,V,O,j,Q){let Qe,Te={};j&&Object.entries(j).forEach(([Ht,Pn])=>{Te[Ht]=Array.isArray(Pn)?Pn.map(Ci=>`${Ci}`):`${Pn}`}),Qe=A===V?O:nn(A,V,O);const Wt=gt(qe(Qe));return new Ft(Wt,Te,Q)}function nn(A,V,O){const j={};return Object.entries(A.children).forEach(([Q,Te])=>{j[Q]=Te===V?O:nn(Te,V,O)}),new on(A.segments,j)}class un{constructor(V,O,j){if(this.isAbsolute=V,this.numberOfDoubleDots=O,this.commands=j,V&&j.length>0&&$e(j[0]))throw new e.wOt(4003,!1);const Q=j.find(it);if(Q&&Q!==jn(j))throw new e.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class li{constructor(V,O,j){this.segmentGroup=V,this.processChildren=O,this.index=j}}function bs(A,V,O){if(A||(A=new on([],{})),0===A.segments.length&&A.hasChildren())return ds(A,V,O);const j=function ps(A,V,O){let j=0,Q=V;const Te={match:!1,pathIndex:0,commandIndex:0};for(;Q<A.segments.length;){if(j>=O.length)return Te;const Qe=A.segments[Q],Wt=O[j];if(it(Wt))break;const Ht=`${Wt}`,Pn=j<O.length-1?O[j+1]:null;if(Q>0&&void 0===Ht)break;if(Ht&&Pn&&"object"==typeof Pn&&void 0===Pn.outlets){if(!Rt(Ht,Pn,Qe))return Te;j+=2}else{if(!Rt(Ht,{},Qe))return Te;j++}Q++}return{match:!0,pathIndex:Q,commandIndex:j}}(A,V,O),Q=O.slice(j.commandIndex);if(j.match&&j.pathIndex<A.segments.length){const Te=new on(A.segments.slice(0,j.pathIndex),{});return Te.children[He]=new on(A.segments.slice(j.pathIndex),A.children),ds(Te,0,Q)}return j.match&&0===Q.length?new on(A.segments,{}):j.match&&!A.hasChildren()?Ts(A,V,O):j.match?ds(A,0,Q):Ts(A,V,O)}function ds(A,V,O){if(0===O.length)return new on(A.segments,{});{const j=function Ps(A){return it(A[0])?A[0].outlets:{[He]:A}}(O),Q={};if(Object.keys(j).some(Te=>Te!==He)&&A.children[He]&&1===A.numberOfChildren&&0===A.children[He].segments.length){const Te=ds(A.children[He],V,O);return new on(A.segments,Te.children)}return Object.entries(j).forEach(([Te,Qe])=>{"string"==typeof Qe&&(Qe=[Qe]),null!==Qe&&(Q[Te]=bs(A.children[Te],V,Qe))}),Object.entries(A.children).forEach(([Te,Qe])=>{void 0===j[Te]&&(Q[Te]=Qe)}),new on(A.segments,Q)}}function Ts(A,V,O){const j=A.segments.slice(0,V);let Q=0;for(;Q<O.length;){const Te=O[Q];if(it(Te)){const Ht=ki(Te.outlets);return new on(j,Ht)}if(0===Q&&$e(O[0])){j.push(new Ln(A.segments[V].path,Re(O[0]))),Q++;continue}const Qe=it(Te)?Te.outlets[He]:`${Te}`,Wt=Q<O.length-1?O[Q+1]:null;Qe&&Wt&&$e(Wt)?(j.push(new Ln(Qe,Re(Wt))),Q+=2):(j.push(new Ln(Qe,{})),Q++)}return new on(j,{})}function ki(A){const V={};return Object.entries(A).forEach(([O,j])=>{"string"==typeof j&&(j=[j]),null!==j&&(V[O]=Ts(new on([],{}),0,j))}),V}function Re(A){const V={};return Object.entries(A).forEach(([O,j])=>V[O]=`${j}`),V}function Rt(A,V,O){return A==O.path&&Gt(V,O.parameters)}const oe="imperative";class _e{constructor(V,O){this.id=V,this.url=O}}class et extends _e{constructor(V,O,j="imperative",Q=null){super(V,O),this.type=0,this.navigationTrigger=j,this.restoredState=Q}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vt extends _e{constructor(V,O,j){super(V,O),this.urlAfterRedirects=j,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class At extends _e{constructor(V,O,j,Q){super(V,O),this.reason=j,this.code=Q,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class In extends _e{constructor(V,O,j,Q){super(V,O),this.reason=j,this.code=Q,this.type=16}}class Hn extends _e{constructor(V,O,j,Q){super(V,O),this.error=j,this.target=Q,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kn extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ri extends _e{constructor(V,O,j,Q,Te){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.shouldActivate=Te,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ki extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ls extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class la{constructor(V){this.route=V,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class er{constructor(V){this.route=V,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class os{constructor(V){this.snapshot=V,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bs{constructor(V){this.snapshot=V,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vs{constructor(V){this.snapshot=V,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ja{constructor(V){this.snapshot=V,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ys{}class ms{constructor(V){this.url=V}}class ca{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new tr,this.attachRef=null}}let tr=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(O,j){const Q=this.getOrCreateContext(O);Q.outlet=j,this.contexts.set(O,Q)}onChildOutletDestroyed(O){const j=this.getContext(O);j&&(j.outlet=null,j.attachRef=null)}onOutletDeactivated(){const O=this.contexts;return this.contexts=new Map,O}onOutletReAttached(O){this.contexts=O}getOrCreateContext(O){let j=this.getContext(O);return j||(j=new ca,this.contexts.set(O,j)),j}getContext(O){return this.contexts.get(O)||null}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();class go{constructor(V){this._root=V}get root(){return this._root.value}parent(V){const O=this.pathFromRoot(V);return O.length>1?O[O.length-2]:null}children(V){const O=Po(V,this._root);return O?O.children.map(j=>j.value):[]}firstChild(V){const O=Po(V,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(V){const O=Ko(V,this._root);return O.length<2?[]:O[O.length-2].children.map(Q=>Q.value).filter(Q=>Q!==V)}pathFromRoot(V){return Ko(V,this._root).map(O=>O.value)}}function Po(A,V){if(A===V.value)return V;for(const O of V.children){const j=Po(A,O);if(j)return j}return null}function Ko(A,V){if(A===V.value)return[V];for(const O of V.children){const j=Ko(A,O);if(j.length)return j.unshift(V),j}return[]}class To{constructor(V,O){this.value=V,this.children=O}toString(){return`TreeNode(${this.value})`}}function zs(A){const V={};return A&&A.children.forEach(O=>V[O.value.outlet]=O),V}class bi extends go{constructor(V,O){super(V),this.snapshot=O,Lo(this,V)}toString(){return this.snapshot.toString()}}function ys(A,V){const O=function Yi(A,V){const Qe=new Rs([],{},{},"",{},He,V,null,{});return new no("",new To(Qe,[]))}(0,V),j=new De.t([new Ln("",{})]),Q=new De.t({}),Te=new De.t({}),Qe=new De.t({}),Wt=new De.t(""),Ht=new Eo(j,Q,Qe,Wt,Te,He,V,O.root);return Ht.snapshot=O.root,new bi(new To(Ht,[]),O)}class Eo{constructor(V,O,j,Q,Te,Qe,Wt,Ht){this.urlSubject=V,this.paramsSubject=O,this.queryParamsSubject=j,this.fragmentSubject=Q,this.dataSubject=Te,this.outlet=Qe,this.component=Wt,this._futureSnapshot=Ht,this.title=this.dataSubject?.pipe((0,mt.T)(Pn=>Pn[L]))??(0,Z.of)(void 0),this.url=V,this.params=O,this.queryParams=j,this.fragment=Q,this.data=Te}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((0,mt.T)(V=>Be(V)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.T)(V=>Be(V)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Cs(A,V="emptyOnly"){const O=A.pathFromRoot;let j=0;if("always"!==V)for(j=O.length-1;j>=1;){const Q=O[j],Te=O[j-1];if(Q.routeConfig&&""===Q.routeConfig.path)j--;else{if(Te.component)break;j--}}return function xr(A){return A.reduce((V,O)=>({params:{...V.params,...O.params},data:{...V.data,...O.data},resolve:{...O.data,...V.resolve,...O.routeConfig?.data,...O._resolvedData}}),{params:{},data:{},resolve:{}})}(O.slice(j))}class Rs{get title(){return this.data?.[L]}constructor(V,O,j,Q,Te,Qe,Wt,Ht,Pn){this.url=V,this.params=O,this.queryParams=j,this.fragment=Q,this.data=Te,this.outlet=Qe,this.component=Wt,this.routeConfig=Ht,this._resolve=Pn}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=Be(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(j=>j.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class no extends go{constructor(V,O){super(O),this.url=V,Lo(this,O)}toString(){return Hr(this._root)}}function Lo(A,V){V.value._routerState=A,V.children.forEach(O=>Lo(A,O))}function Hr(A){const V=A.children.length>0?` { ${A.children.map(Hr).join(", ")} } `:"";return`${A.value}${V}`}function Vi(A){if(A.snapshot){const V=A.snapshot,O=A._futureSnapshot;A.snapshot=O,Gt(V.queryParams,O.queryParams)||A.queryParamsSubject.next(O.queryParams),V.fragment!==O.fragment&&A.fragmentSubject.next(O.fragment),Gt(V.params,O.params)||A.paramsSubject.next(O.params),function dt(A,V){if(A.length!==V.length)return!1;for(let O=0;O<A.length;++O)if(!Gt(A[O],V[O]))return!1;return!0}(V.url,O.url)||A.urlSubject.next(O.url),Gt(V.data,O.data)||A.dataSubject.next(O.data)}else A.snapshot=A._futureSnapshot,A.dataSubject.next(A._futureSnapshot.data)}function Rn(A,V){const O=Gt(A.params,V.params)&&function Qt(A,V){return Xt(A,V)&&A.every((O,j)=>Gt(O.parameters,V[j].parameters))}(A.url,V.url);return O&&!(!A.parent!=!V.parent)&&(!A.parent||Rn(A.parent,V.parent))}let ei=(()=>{class A{constructor(){this.activated=null,this._activatedRoute=null,this.name=He,this.activateEvents=new e.bkB,this.deactivateEvents=new e.bkB,this.attachEvents=new e.bkB,this.detachEvents=new e.bkB,this.parentContexts=(0,e.WQX)(tr),this.location=(0,e.WQX)(e.c1b),this.changeDetector=(0,e.WQX)(e.gRc),this.environmentInjector=(0,e.WQX)(e.uvJ),this.inputBinder=(0,e.WQX)(qs,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(O){if(O.name){const{firstChange:j,previousValue:Q}=O.name;if(j)return;this.isTrackedInParentContexts(Q)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Q)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(O){return this.parentContexts.getContext(O)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const O=this.parentContexts.getContext(this.name);O?.route&&(O.attachRef?this.attach(O.attachRef,O.route):this.activateWith(O.route,O.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.wOt(4012,!1);this.location.detach();const O=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(O.instance),O}attach(O,j){this.activated=O,this._activatedRoute=j,this.location.insert(O.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(O.instance)}deactivate(){if(this.activated){const O=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(O)}}activateWith(O,j){if(this.isActivated)throw new e.wOt(4013,!1);this._activatedRoute=O;const Q=this.location,Qe=O.snapshot.component,Wt=this.parentContexts.getOrCreateContext(this.name).children,Ht=new Qi(O,Wt,Q.injector);this.activated=Q.createComponent(Qe,{index:Q.length,injector:Ht,environmentInjector:j??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275dir=e.FsC({type:A,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.OA$]})}}return A})();class Qi{constructor(V,O,j){this.route=V,this.childContexts=O,this.parent=j}get(V,O){return V===Eo?this.route:V===tr?this.childContexts:this.parent.get(V,O)}}const qs=new e.nKC("");function Qo(A,V,O){if(O&&A.shouldReuseRoute(V.value,O.value.snapshot)){const j=O.value;j._futureSnapshot=V.value;const Q=function Zi(A,V,O){return V.children.map(j=>{for(const Q of O.children)if(A.shouldReuseRoute(j.value,Q.value.snapshot))return Qo(A,j,Q);return Qo(A,j)})}(A,V,O);return new To(j,Q)}{if(A.shouldAttach(V.value)){const Te=A.retrieve(V.value);if(null!==Te){const Qe=Te.route;return Qe.value._futureSnapshot=V.value,Qe.children=V.children.map(Wt=>Qo(A,Wt)),Qe}}const j=function nr(A){return new Eo(new De.t(A.url),new De.t(A.params),new De.t(A.queryParams),new De.t(A.fragment),new De.t(A.data),A.outlet,A.component,A)}(V.value),Q=V.children.map(Te=>Qo(A,Te));return new To(j,Q)}}const oo="ngNavigationCancelingError";function ti(A,V){const{redirectTo:O,navigationBehaviorOptions:j}=Ke(V)?{redirectTo:V,navigationBehaviorOptions:void 0}:V,Q=Yr(!1,0,V);return Q.url=O,Q.navigationBehaviorOptions=j,Q}function Yr(A,V,O){const j=new Error("NavigationCancelingError: "+(A||""));return j[oo]=!0,j.cancellationCode=V,O&&(j.url=O),j}function Ir(A){return A&&A[oo]}let Ri=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275cmp=e.VBU({type:A,selectors:[["ng-component"]],standalone:!0,features:[e.aNF],decls:1,vars:0,template:function(j,Q){1&j&&e.nrm(0,"router-outlet")},dependencies:[ei],encapsulation:2})}}return A})();function gi(A){const V=A.children&&A.children.map(gi),O=V?{...A,children:V}:{...A};return!O.component&&!O.loadComponent&&(V||O.loadChildren)&&O.outlet&&O.outlet!==He&&(O.component=Ri),O}function js(A){return A.outlet||He}function hr(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let V=A.parent;V;V=V.parent){const O=V.routeConfig;if(O?._loadedInjector)return O._loadedInjector;if(O?._injector)return O._injector}return null}class Bo{constructor(V,O,j,Q,Te){this.routeReuseStrategy=V,this.futureState=O,this.currState=j,this.forwardEvent=Q,this.inputBindingEnabled=Te}activate(V){const O=this.futureState._root,j=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,j,V),Vi(this.futureState.root),this.activateChildRoutes(O,j,V)}deactivateChildRoutes(V,O,j){const Q=zs(O);V.children.forEach(Te=>{const Qe=Te.value.outlet;this.deactivateRoutes(Te,Q[Qe],j),delete Q[Qe]}),Object.values(Q).forEach(Te=>{this.deactivateRouteAndItsChildren(Te,j)})}deactivateRoutes(V,O,j){const Q=V.value,Te=O?O.value:null;if(Q===Te)if(Q.component){const Qe=j.getContext(Q.outlet);Qe&&this.deactivateChildRoutes(V,O,Qe.children)}else this.deactivateChildRoutes(V,O,j);else Te&&this.deactivateRouteAndItsChildren(O,j)}deactivateRouteAndItsChildren(V,O){V.value.component&&this.routeReuseStrategy.shouldDetach(V.value.snapshot)?this.detachAndStoreRouteSubtree(V,O):this.deactivateRouteAndOutlet(V,O)}detachAndStoreRouteSubtree(V,O){const j=O.getContext(V.value.outlet),Q=j&&V.value.component?j.children:O,Te=zs(V);for(const Qe of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Qe],Q);if(j&&j.outlet){const Qe=j.outlet.detach(),Wt=j.children.onOutletDeactivated();this.routeReuseStrategy.store(V.value.snapshot,{componentRef:Qe,route:V,contexts:Wt})}}deactivateRouteAndOutlet(V,O){const j=O.getContext(V.value.outlet),Q=j&&V.value.component?j.children:O,Te=zs(V);for(const Qe of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Qe],Q);j&&(j.outlet&&(j.outlet.deactivate(),j.children.onOutletDeactivated()),j.attachRef=null,j.route=null)}activateChildRoutes(V,O,j){const Q=zs(O);V.children.forEach(Te=>{this.activateRoutes(Te,Q[Te.value.outlet],j),this.forwardEvent(new Ja(Te.value.snapshot))}),V.children.length&&this.forwardEvent(new Bs(V.value.snapshot))}activateRoutes(V,O,j){const Q=V.value,Te=O?O.value:null;if(Vi(Q),Q===Te)if(Q.component){const Qe=j.getOrCreateContext(Q.outlet);this.activateChildRoutes(V,O,Qe.children)}else this.activateChildRoutes(V,O,j);else if(Q.component){const Qe=j.getOrCreateContext(Q.outlet);if(this.routeReuseStrategy.shouldAttach(Q.snapshot)){const Wt=this.routeReuseStrategy.retrieve(Q.snapshot);this.routeReuseStrategy.store(Q.snapshot,null),Qe.children.onOutletReAttached(Wt.contexts),Qe.attachRef=Wt.componentRef,Qe.route=Wt.route.value,Qe.outlet&&Qe.outlet.attach(Wt.componentRef,Wt.route.value),Vi(Wt.route.value),this.activateChildRoutes(V,null,Qe.children)}else{const Wt=hr(Q.snapshot);Qe.attachRef=null,Qe.route=Q,Qe.injector=Wt,Qe.outlet&&Qe.outlet.activateWith(Q,Qe.injector),this.activateChildRoutes(V,null,Qe.children)}}else this.activateChildRoutes(V,null,j)}}class ir{constructor(V){this.path=V,this.route=this.path[this.path.length-1]}}class Ss{constructor(V,O){this.component=V,this.route=O}}function qr(A,V,O){const j=A._root;return fr(j,V?V._root:null,O,[j.value])}function zi(A,V){const O=Symbol(),j=V.get(A,O);return j===O?"function"!=typeof A||(0,e.LfX)(A)?V.get(A):A:j}function fr(A,V,O,j,Q={canDeactivateChecks:[],canActivateChecks:[]}){const Te=zs(V);return A.children.forEach(Qe=>{(function Vo(A,V,O,j,Q={canDeactivateChecks:[],canActivateChecks:[]}){const Te=A.value,Qe=V?V.value:null,Wt=O?O.getContext(A.value.outlet):null;if(Qe&&Te.routeConfig===Qe.routeConfig){const Ht=function Xr(A,V,O){if("function"==typeof O)return O(A,V);switch(O){case"pathParamsChange":return!Xt(A.url,V.url);case"pathParamsOrQueryParamsChange":return!Xt(A.url,V.url)||!Gt(A.queryParams,V.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rn(A,V)||!Gt(A.queryParams,V.queryParams);default:return!Rn(A,V)}}(Qe,Te,Te.routeConfig.runGuardsAndResolvers);Ht?Q.canActivateChecks.push(new ir(j)):(Te.data=Qe.data,Te._resolvedData=Qe._resolvedData),fr(A,V,Te.component?Wt?Wt.children:null:O,j,Q),Ht&&Wt&&Wt.outlet&&Wt.outlet.isActivated&&Q.canDeactivateChecks.push(new Ss(Wt.outlet.component,Qe))}else Qe&&Ti(V,Wt,Q),Q.canActivateChecks.push(new ir(j)),fr(A,null,Te.component?Wt?Wt.children:null:O,j,Q)})(Qe,Te[Qe.value.outlet],O,j.concat([Qe.value]),Q),delete Te[Qe.value.outlet]}),Object.entries(Te).forEach(([Qe,Wt])=>Ti(Wt,O.getContext(Qe),Q)),Q}function Ti(A,V,O){const j=zs(A),Q=A.value;Object.entries(j).forEach(([Te,Qe])=>{Ti(Qe,Q.component?V?V.children.getContext(Te):null:V,O)}),O.canDeactivateChecks.push(new Ss(Q.component&&V&&V.outlet&&V.outlet.isActivated?V.outlet.component:null,Q))}function ua(A){return"function"==typeof A}function Ze(A){return A instanceof we.G||"EmptyError"===A?.name}const Yn=Symbol("INITIAL_VALUE");function _i(){return(0,tn.n)(A=>(0,Ie.z)(A.map(V=>V.pipe((0,vt.s)(1),(0,Pt.Z)(Yn)))).pipe((0,mt.T)(V=>{for(const O of V)if(!0!==O){if(O===Yn)return Yn;if(!1===O||O instanceof Ft)return O}return!0}),(0,me.p)(V=>V!==Yn),(0,vt.s)(1)))}function hl(A){return(0,Me.F)((0,Ye.M)(V=>{if(Ke(V))throw ti(0,V)}),(0,mt.T)(V=>!0===V))}class jo{constructor(V){this.segmentGroup=V||null}}class Go{constructor(V){this.urlTree=V}}function pr(A){return(0,Ge.$)(new jo(A))}function Nl(A){return(0,Ge.$)(new Go(A))}class $o{constructor(V,O){this.urlSerializer=V,this.urlTree=O}noMatchError(V){return new e.wOt(4002,!1)}lineralizeSegments(V,O){let j=[],Q=O.root;for(;;){if(j=j.concat(Q.segments),0===Q.numberOfChildren)return(0,Z.of)(j);if(Q.numberOfChildren>1||!Q.children[He])return(0,Ge.$)(new e.wOt(4e3,!1));Q=Q.children[He]}}applyRedirectCommands(V,O,j){return this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),V,j)}applyRedirectCreateUrlTree(V,O,j,Q){const Te=this.createSegmentGroup(V,O.root,j,Q);return new Ft(Te,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(V,O){const j={};return Object.entries(V).forEach(([Q,Te])=>{if("string"==typeof Te&&Te.startsWith(":")){const Wt=Te.substring(1);j[Q]=O[Wt]}else j[Q]=Te}),j}createSegmentGroup(V,O,j,Q){const Te=this.createSegments(V,O.segments,j,Q);let Qe={};return Object.entries(O.children).forEach(([Wt,Ht])=>{Qe[Wt]=this.createSegmentGroup(V,Ht,j,Q)}),new on(Te,Qe)}createSegments(V,O,j,Q){return O.map(Te=>Te.path.startsWith(":")?this.findPosParam(V,Te,Q):this.findOrReturn(Te,j))}findPosParam(V,O,j){const Q=j[O.path.substring(1)];if(!Q)throw new e.wOt(4001,!1);return Q}findOrReturn(V,O){let j=0;for(const Q of O){if(Q.path===V.path)return O.splice(j),Q;j++}return V}}const Pa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fl(A,V,O,j,Q){const Te=or(A,V,O);return Te.matched?(j=function zr(A,V){return A.providers&&!A._injector&&(A._injector=(0,e.Ol2)(A.providers,V,`Route: ${A.path}`)),A._injector??V}(V,j),function ha(A,V,O,j){const Q=V.canMatch;if(!Q||0===Q.length)return(0,Z.of)(!0);const Te=Q.map(Qe=>{const Wt=zi(Qe,A);return sn(function ee(A){return A&&ua(A.canMatch)}(Wt)?Wt.canMatch(V,O):A.runInContext(()=>Wt(V,O)))});return(0,Z.of)(Te).pipe(_i(),hl())}(j,V,O).pipe((0,mt.T)(Qe=>!0===Qe?Te:{...Pa}))):(0,Z.of)(Te)}function or(A,V,O){if(""===V.path)return"full"===V.pathMatch&&(A.hasChildren()||O.length>0)?{...Pa}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Q=(V.matcher||pt)(O,A,V);if(!Q)return{...Pa};const Te={};Object.entries(Q.posParams??{}).forEach(([Wt,Ht])=>{Te[Wt]=Ht.path});const Qe=Q.consumed.length>0?{...Te,...Q.consumed[Q.consumed.length-1].parameters}:Te;return{matched:!0,consumedSegments:Q.consumed,remainingSegments:O.slice(Q.consumed.length),parameters:Qe,positionalParamSegments:Q.posParams??{}}}function La(A,V,O,j){return O.length>0&&function Uo(A,V,O){return O.some(j=>Ta(A,V,j)&&js(j)!==He)}(A,O,j)?{segmentGroup:new on(V,fa(j,new on(O,A.children))),slicedSegments:[]}:0===O.length&&function Fr(A,V,O){return O.some(j=>Ta(A,V,j))}(A,O,j)?{segmentGroup:new on(A.segments,ko(A,0,O,j,A.children)),slicedSegments:O}:{segmentGroup:new on(A.segments,A.children),slicedSegments:O}}function ko(A,V,O,j,Q){const Te={};for(const Qe of j)if(Ta(A,O,Qe)&&!Q[js(Qe)]){const Wt=new on([],{});Te[js(Qe)]=Wt}return{...Q,...Te}}function fa(A,V){const O={};O[He]=V;for(const j of A)if(""===j.path&&js(j)!==He){const Q=new on([],{});O[js(j)]=Q}return O}function Ta(A,V,O){return(!(A.hasChildren()||V.length>0)||"full"!==O.pathMatch)&&""===O.path}class pa{constructor(V,O,j,Q,Te,Qe,Wt){this.injector=V,this.configLoader=O,this.rootComponentType=j,this.config=Q,this.urlTree=Te,this.paramsInheritanceStrategy=Qe,this.urlSerializer=Wt,this.allowRedirects=!0,this.applyRedirects=new $o(this.urlSerializer,this.urlTree)}noMatchError(V){return new e.wOt(4002,!1)}recognize(){const V=La(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,V,He).pipe((0,ye.W)(O=>{if(O instanceof Go)return this.allowRedirects=!1,this.urlTree=O.urlTree,this.match(O.urlTree);throw O instanceof jo?this.noMatchError(O):O}),(0,mt.T)(O=>{const j=new Rs([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},He,this.rootComponentType,null,{}),Q=new To(j,O),Te=new no("",Q),Qe=function jt(A,V,O=null,j=null){return Je(pn(A),V,O,j)}(j,[],this.urlTree.queryParams,this.urlTree.fragment);return Qe.queryParams=this.urlTree.queryParams,Te.url=this.urlSerializer.serialize(Qe),this.inheritParamsAndData(Te._root),{state:Te,tree:Qe}}))}match(V){return this.processSegmentGroup(this.injector,this.config,V.root,He).pipe((0,ye.W)(j=>{throw j instanceof jo?this.noMatchError(j):j}))}inheritParamsAndData(V){const O=V.value,j=Cs(O,this.paramsInheritanceStrategy);O.params=Object.freeze(j.params),O.data=Object.freeze(j.data),V.children.forEach(Q=>this.inheritParamsAndData(Q))}processSegmentGroup(V,O,j,Q){return 0===j.segments.length&&j.hasChildren()?this.processChildren(V,O,j):this.processSegment(V,O,j,j.segments,Q,!0)}processChildren(V,O,j){const Q=[];for(const Te of Object.keys(j.children))"primary"===Te?Q.unshift(Te):Q.push(Te);return(0,ne.H)(Q).pipe((0,Kt.H)(Te=>{const Qe=j.children[Te],Wt=function Rr(A,V){const O=A.filter(j=>js(j)===V);return O.push(...A.filter(j=>js(j)!==V)),O}(O,Te);return this.processSegmentGroup(V,Wt,Qe,Te)}),(0,Se.S)((Te,Qe)=>(Te.push(...Qe),Te)),kt(null),function K(A,V){const O=arguments.length>=2;return j=>j.pipe(A?(0,me.p)((Q,Te)=>A(Q,Te,j)):kn.D,Nt(1),O?kt(V):Tt(()=>new we.G))}(),(0,at.Z)(Te=>{if(null===Te)return pr(j);const Qe=Fl(Te);return function Ei(A){A.sort((V,O)=>V.value.outlet===He?-1:O.value.outlet===He?1:V.value.outlet.localeCompare(O.value.outlet))}(Qe),(0,Z.of)(Qe)}))}processSegment(V,O,j,Q,Te,Qe){return(0,ne.H)(O).pipe((0,Kt.H)(Wt=>this.processSegmentAgainstRoute(Wt._injector??V,O,Wt,j,Q,Te,Qe).pipe((0,ye.W)(Ht=>{if(Ht instanceof jo)return(0,Z.of)(null);throw Ht}))),dn(Wt=>!!Wt),(0,ye.W)(Wt=>{if(Ze(Wt))return function pl(A,V,O){return 0===V.length&&!A.children[O]}(j,Q,Te)?(0,Z.of)([]):pr(j);throw Wt}))}processSegmentAgainstRoute(V,O,j,Q,Te,Qe,Wt){return function Ho(A,V,O,j){return!!(js(A)===j||j!==He&&Ta(V,O,A))&&("**"===A.path||or(V,A,O).matched)}(j,Q,Te,Qe)?void 0===j.redirectTo?this.matchSegmentAgainstRoute(V,Q,j,Te,Qe,Wt):Wt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(V,Q,O,j,Te,Qe):pr(Q):pr(Q)}expandSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Qe){return"**"===Q.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(V,j,Q,Qe):this.expandRegularSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Qe)}expandWildCardWithParamsAgainstRouteUsingRedirect(V,O,j,Q){const Te=this.applyRedirects.applyRedirectCommands([],j.redirectTo,{});return j.redirectTo.startsWith("/")?Nl(Te):this.applyRedirects.lineralizeSegments(j,Te).pipe((0,at.Z)(Qe=>{const Wt=new on(Qe,{});return this.processSegment(V,O,Wt,Qe,Q,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Qe){const{matched:Wt,consumedSegments:Ht,remainingSegments:Pn,positionalParamSegments:Ci}=or(O,Q,Te);if(!Wt)return pr(O);const _s=this.applyRedirects.applyRedirectCommands(Ht,Q.redirectTo,Ci);return Q.redirectTo.startsWith("/")?Nl(_s):this.applyRedirects.lineralizeSegments(Q,_s).pipe((0,at.Z)(Ni=>this.processSegment(V,j,O,Ni.concat(Pn),Qe,!1)))}matchSegmentAgainstRoute(V,O,j,Q,Te,Qe){let Wt;if("**"===j.path){const Ht=Q.length>0?jn(Q).parameters:{},Pn=new Rs(Q,Ht,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ba(j),js(j),j.component??j._loadedComponent??null,j,tl(j));Wt=(0,Z.of)({snapshot:Pn,consumedSegments:[],remainingSegments:[]}),O.children={}}else Wt=fl(O,j,Q,V).pipe((0,mt.T)(({matched:Ht,consumedSegments:Pn,remainingSegments:Ci,parameters:_s})=>Ht?{snapshot:new Rs(Pn,_s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ba(j),js(j),j.component??j._loadedComponent??null,j,tl(j)),consumedSegments:Pn,remainingSegments:Ci}:null));return Wt.pipe((0,tn.n)(Ht=>null===Ht?pr(O):this.getChildConfig(V=j._injector??V,j,Q).pipe((0,tn.n)(({routes:Pn})=>{const Ci=j._loadedInjector??V,{snapshot:_s,consumedSegments:Ni,remainingSegments:Mr}=Ht,{segmentGroup:Ds,slicedSegments:Lr}=La(O,Ni,Mr,Pn);if(0===Lr.length&&Ds.hasChildren())return this.processChildren(Ci,Pn,Ds).pipe((0,mt.T)(ia=>null===ia?null:[new To(_s,ia)]));if(0===Pn.length&&0===Lr.length)return(0,Z.of)([new To(_s,[])]);const il=js(j)===Te;return this.processSegment(Ci,Pn,Ds,Lr,il?He:Te,!0).pipe((0,mt.T)(ia=>[new To(_s,ia)]))}))))}getChildConfig(V,O,j){return O.children?(0,Z.of)({routes:O.children,injector:V}):O.loadChildren?void 0!==O._loadedRoutes?(0,Z.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function yc(A,V,O,j){const Q=V.canLoad;if(void 0===Q||0===Q.length)return(0,Z.of)(!0);const Te=Q.map(Qe=>{const Wt=zi(Qe,A);return sn(function Ma(A){return A&&ua(A.canLoad)}(Wt)?Wt.canLoad(V,O):A.runInContext(()=>Wt(V,O)))});return(0,Z.of)(Te).pipe(_i(),hl())}(V,O,j).pipe((0,at.Z)(Q=>Q?this.configLoader.loadChildren(V,O).pipe((0,Ye.M)(Te=>{O._loadedRoutes=Te.routes,O._loadedInjector=Te.injector})):function Wr(A){return(0,Ge.$)(Yr(!1,3))}())):(0,Z.of)({routes:[],injector:V})}}function Kr(A){const V=A.value.routeConfig;return V&&""===V.path}function Fl(A){const V=[],O=new Set;for(const j of A){if(!Kr(j)){V.push(j);continue}const Q=V.find(Te=>j.value.routeConfig===Te.value.routeConfig);void 0!==Q?(Q.children.push(...j.children),O.add(Q)):V.push(j)}for(const j of O){const Q=Fl(j.children);V.push(new To(j.value,Q))}return V.filter(j=>!O.has(j))}function Ba(A){return A.data||{}}function tl(A){return A.resolve||{}}function nl(A){return"string"==typeof A.title||null===A.title}function Zr(A){return(0,tn.n)(V=>{const O=A(V);return O?(0,ne.H)(O).pipe((0,mt.T)(()=>V)):(0,Z.of)(V)})}const xo=new e.nKC("ROUTES");let P=(()=>{class A{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.WQX)(e.Ql9)}loadComponent(O){if(this.componentLoaders.get(O))return this.componentLoaders.get(O);if(O._loadedComponent)return(0,Z.of)(O._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(O);const j=sn(O.loadComponent()).pipe((0,mt.T)(te),(0,Ye.M)(Te=>{this.onLoadEndListener&&this.onLoadEndListener(O),O._loadedComponent=Te}),(0,je.j)(()=>{this.componentLoaders.delete(O)})),Q=new Ct.G(j,()=>new _t.B).pipe((0,le.B)());return this.componentLoaders.set(O,Q),Q}loadChildren(O,j){if(this.childrenLoaders.get(j))return this.childrenLoaders.get(j);if(j._loadedRoutes)return(0,Z.of)({routes:j._loadedRoutes,injector:j._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(j);const Te=function ae(A,V,O,j){return sn(A.loadChildren()).pipe((0,mt.T)(te),(0,at.Z)(Q=>Q instanceof e.Co$||Array.isArray(Q)?(0,Z.of)(Q):(0,ne.H)(V.compileModuleAsync(Q))),(0,mt.T)(Q=>{j&&j(A);let Te,Qe,Wt=!1;return Array.isArray(Q)?(Qe=Q,!0):(Te=Q.create(O).injector,Qe=Te.get(xo,[],{optional:!0,self:!0}).flat()),{routes:Qe.map(gi),injector:Te}}))}(j,this.compiler,O,this.onLoadEndListener).pipe((0,je.j)(()=>{this.childrenLoaders.delete(j)})),Qe=new Ct.G(Te,()=>new _t.B).pipe((0,le.B)());return this.childrenLoaders.set(j,Qe),Qe}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function te(A){return function Y(A){return A&&"object"==typeof A&&"default"in A}(A)?A.default:A}let Xe=(()=>{class A{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t.B,this.transitionAbortSubject=new _t.B,this.configLoader=(0,e.WQX)(P),this.environmentInjector=(0,e.WQX)(e.uvJ),this.urlSerializer=(0,e.WQX)(Mt),this.rootContexts=(0,e.WQX)(tr),this.inputBindingEnabled=null!==(0,e.WQX)(qs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,Z.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Q=>this.events.next(new er(Q)),this.configLoader.onLoadStartListener=Q=>this.events.next(new la(Q))}complete(){this.transitions?.complete()}handleNavigationRequest(O){const j=++this.navigationId;this.transitions?.next({...this.transitions.value,...O,id:j})}setupNavigations(O,j,Q){return this.transitions=new De.t({id:0,currentUrlTree:j,currentRawUrl:j,currentBrowserUrl:j,extractedUrl:O.urlHandlingStrategy.extract(j),urlAfterRedirects:O.urlHandlingStrategy.extract(j),rawUrl:j,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oe,restoredState:null,currentSnapshot:Q.snapshot,targetSnapshot:null,currentRouterState:Q,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,me.p)(Te=>0!==Te.id),(0,mt.T)(Te=>({...Te,extractedUrl:O.urlHandlingStrategy.extract(Te.rawUrl)})),(0,tn.n)(Te=>{this.currentTransition=Te;let Qe=!1,Wt=!1;return(0,Z.of)(Te).pipe((0,Ye.M)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,tn.n)(Ht=>{const Pn=Ht.currentBrowserUrl.toString(),Ci=!O.navigated||Ht.extractedUrl.toString()!==Pn||Pn!==Ht.currentUrlTree.toString();if(!Ci&&"reload"!==(Ht.extras.onSameUrlNavigation??O.onSameUrlNavigation)){const Ni="";return this.events.next(new In(Ht.id,this.urlSerializer.serialize(Ht.rawUrl),Ni,0)),Ht.resolve(null),Ue.w}if(O.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return(0,Z.of)(Ht).pipe((0,tn.n)(Ni=>{const Mr=this.transitions?.getValue();return this.events.next(new et(Ni.id,this.urlSerializer.serialize(Ni.extractedUrl),Ni.source,Ni.restoredState)),Mr!==this.transitions?.getValue()?Ue.w:Promise.resolve(Ni)}),function Zl(A,V,O,j,Q,Te){return(0,at.Z)(Qe=>function rr(A,V,O,j,Q,Te,Qe="emptyOnly"){return new pa(A,V,O,j,Q,Qe,Te).recognize()}(A,V,O,j,Qe.extractedUrl,Q,Te).pipe((0,mt.T)(({state:Wt,tree:Ht})=>({...Qe,targetSnapshot:Wt,urlAfterRedirects:Ht}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,O.config,this.urlSerializer,O.paramsInheritanceStrategy),(0,Ye.M)(Ni=>{Te.targetSnapshot=Ni.targetSnapshot,Te.urlAfterRedirects=Ni.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ni.urlAfterRedirects};const Mr=new mi(Ni.id,this.urlSerializer.serialize(Ni.extractedUrl),this.urlSerializer.serialize(Ni.urlAfterRedirects),Ni.targetSnapshot);this.events.next(Mr)}));if(Ci&&O.urlHandlingStrategy.shouldProcessUrl(Ht.currentRawUrl)){const{id:Ni,extractedUrl:Mr,source:Ds,restoredState:Lr,extras:il}=Ht,ia=new et(Ni,this.urlSerializer.serialize(Mr),Ds,Lr);this.events.next(ia);const Mc=ys(0,this.rootComponentType).snapshot;return this.currentTransition=Te={...Ht,targetSnapshot:Mc,urlAfterRedirects:Mr,extras:{...il,skipLocationChange:!1,replaceUrl:!1}},(0,Z.of)(Te)}{const Ni="";return this.events.next(new In(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),Ni,1)),Ht.resolve(null),Ue.w}}),(0,Ye.M)(Ht=>{const Pn=new Kn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(Pn)}),(0,mt.T)(Ht=>(this.currentTransition=Te={...Ht,guards:qr(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)},Te)),function wr(A,V){return(0,at.Z)(O=>{const{targetSnapshot:j,currentSnapshot:Q,guards:{canActivateChecks:Te,canDeactivateChecks:Qe}}=O;return 0===Qe.length&&0===Te.length?(0,Z.of)({...O,guardsResult:!0}):function Nr(A,V,O,j){return(0,ne.H)(A).pipe((0,at.Z)(Q=>function Ql(A,V,O,j,Q){const Te=V&&V.routeConfig?V.routeConfig.canDeactivate:null;if(!Te||0===Te.length)return(0,Z.of)(!0);const Qe=Te.map(Wt=>{const Ht=hr(V)??Q,Pn=zi(Wt,Ht);return sn(function J(A){return A&&ua(A.canDeactivate)}(Pn)?Pn.canDeactivate(A,V,O,j):Ht.runInContext(()=>Pn(A,V,O,j))).pipe(dn())});return(0,Z.of)(Qe).pipe(_i())}(Q.component,Q.route,O,V,j)),dn(Q=>!0!==Q,!0))}(Qe,j,Q,A).pipe((0,at.Z)(Wt=>Wt&&function cl(A){return"boolean"==typeof A}(Wt)?function dl(A,V,O,j){return(0,ne.H)(V).pipe((0,Kt.H)(Q=>(0,Oe.x)(function bc(A,V){return null!==A&&V&&V(new os(A)),(0,Z.of)(!0)}(Q.route.parent,j),function vc(A,V){return null!==A&&V&&V(new Vs(A)),(0,Z.of)(!0)}(Q.route,j),function el(A,V,O){const j=V[V.length-1],Te=V.slice(0,V.length-1).reverse().map(Qe=>function Ns(A){const V=A.routeConfig?A.routeConfig.canActivateChild:null;return V&&0!==V.length?{node:A,guards:V}:null}(Qe)).filter(Qe=>null!==Qe).map(Qe=>(0,Fe.v)(()=>{const Wt=Qe.guards.map(Ht=>{const Pn=hr(Qe.node)??O,Ci=zi(Ht,Pn);return sn(function sr(A){return A&&ua(A.canActivateChild)}(Ci)?Ci.canActivateChild(j,A):Pn.runInContext(()=>Ci(j,A))).pipe(dn())});return(0,Z.of)(Wt).pipe(_i())}));return(0,Z.of)(Te).pipe(_i())}(A,Q.path,O),function ul(A,V,O){const j=V.routeConfig?V.routeConfig.canActivate:null;if(!j||0===j.length)return(0,Z.of)(!0);const Q=j.map(Te=>(0,Fe.v)(()=>{const Qe=hr(V)??O,Wt=zi(Te,Qe);return sn(function Rl(A){return A&&ua(A.canActivate)}(Wt)?Wt.canActivate(V,A):Qe.runInContext(()=>Wt(V,A))).pipe(dn())}));return(0,Z.of)(Q).pipe(_i())}(A,Q.route,O))),dn(Q=>!0!==Q,!0))}(j,Te,A,V):(0,Z.of)(Wt)),(0,mt.T)(Wt=>({...O,guardsResult:Wt})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,Ye.M)(Ht=>{if(Te.guardsResult=Ht.guardsResult,Ke(Ht.guardsResult))throw ti(0,Ht.guardsResult);const Pn=new ri(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(Pn)}),(0,me.p)(Ht=>!!Ht.guardsResult||(this.cancelNavigationTransition(Ht,"",3),!1)),Zr(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,Z.of)(Ht).pipe((0,Ye.M)(Pn=>{const Ci=new Ki(Pn.id,this.urlSerializer.serialize(Pn.extractedUrl),this.urlSerializer.serialize(Pn.urlAfterRedirects),Pn.targetSnapshot);this.events.next(Ci)}),(0,tn.n)(Pn=>{let Ci=!1;return(0,Z.of)(Pn).pipe(function Jl(A,V){return(0,at.Z)(O=>{const{targetSnapshot:j,guards:{canActivateChecks:Q}}=O;if(!Q.length)return(0,Z.of)(O);let Te=0;return(0,ne.H)(Q).pipe((0,Kt.H)(Qe=>function Al(A,V,O,j){const Q=A.routeConfig,Te=A._resolve;return void 0!==Q?.title&&!nl(Q)&&(Te[L]=Q.title),function Pi(A,V,O,j){const Q=function Cc(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===Q.length)return(0,Z.of)({});const Te={};return(0,ne.H)(Q).pipe((0,at.Z)(Qe=>function Qr(A,V,O,j){const Q=hr(V)??j,Te=zi(A,Q);return sn(Te.resolve?Te.resolve(V,O):Q.runInContext(()=>Te(V,O)))}(A[Qe],V,O,j).pipe(dn(),(0,Ye.M)(Wt=>{Te[Qe]=Wt}))),Nt(1),(0,ge.u)(Te),(0,ye.W)(Qe=>Ze(Qe)?Ue.w:(0,Ge.$)(Qe)))}(Te,A,V,j).pipe((0,mt.T)(Qe=>(A._resolvedData=Qe,A.data=Cs(A,O).resolve,Q&&nl(Q)&&(A.data[L]=Q.title),null)))}(Qe.route,j,A,V)),(0,Ye.M)(()=>Te++),Nt(1),(0,at.Z)(Qe=>Te===Q.length?(0,Z.of)(O):Ue.w))})}(O.paramsInheritanceStrategy,this.environmentInjector),(0,Ye.M)({next:()=>Ci=!0,complete:()=>{Ci||this.cancelNavigationTransition(Pn,"",2)}}))}),(0,Ye.M)(Pn=>{const Ci=new Ls(Pn.id,this.urlSerializer.serialize(Pn.extractedUrl),this.urlSerializer.serialize(Pn.urlAfterRedirects),Pn.targetSnapshot);this.events.next(Ci)}))}),Zr(Ht=>{const Pn=Ci=>{const _s=[];Ci.routeConfig?.loadComponent&&!Ci.routeConfig._loadedComponent&&_s.push(this.configLoader.loadComponent(Ci.routeConfig).pipe((0,Ye.M)(Ni=>{Ci.component=Ni}),(0,mt.T)(()=>{})));for(const Ni of Ci.children)_s.push(...Pn(Ni));return _s};return(0,Ie.z)(Pn(Ht.targetSnapshot.root)).pipe(kt(),(0,vt.s)(1))}),Zr(()=>this.afterPreactivation()),(0,mt.T)(Ht=>{const Pn=function so(A,V,O){const j=Qo(A,V._root,O?O._root:void 0);return new bi(j,V)}(O.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return this.currentTransition=Te={...Ht,targetRouterState:Pn},Te}),(0,Ye.M)(()=>{this.events.next(new Ys)}),((A,V,O,j)=>(0,mt.T)(Q=>(new Bo(V,Q.targetRouterState,Q.currentRouterState,O,j).activate(A),Q)))(this.rootContexts,O.routeReuseStrategy,Ht=>this.events.next(Ht),this.inputBindingEnabled),(0,vt.s)(1),(0,Ye.M)({next:Ht=>{Qe=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vt(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects))),O.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{Qe=!0}}),(0,de.Q)(this.transitionAbortSubject.pipe((0,Ye.M)(Ht=>{throw Ht}))),(0,je.j)(()=>{Qe||Wt||this.cancelNavigationTransition(Te,"",1),this.currentNavigation?.id===Te.id&&(this.currentNavigation=null)}),(0,ye.W)(Ht=>{if(Wt=!0,Ir(Ht))this.events.next(new At(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Ht.message,Ht.cancellationCode)),function Aa(A){return Ir(A)&&Ke(A.url)}(Ht)?this.events.next(new ms(Ht.url)):Te.resolve(!1);else{this.events.next(new Hn(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Ht,Te.targetSnapshot??void 0));try{Te.resolve(O.errorHandler(Ht))}catch(Pn){Te.reject(Pn)}}return Ue.w}))}))}cancelNavigationTransition(O,j,Q){const Te=new At(O.id,this.urlSerializer.serialize(O.extractedUrl),j,Q);this.events.next(Te),O.resolve(!1)}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function zt(A){return A!==oe}let hn=(()=>{class A{buildTitle(O){let j,Q=O.root;for(;void 0!==Q;)j=this.getResolvedTitleForRoute(Q)??j,Q=Q.children.find(Te=>Te.outlet===He);return j}getResolvedTitleForRoute(O){return O.data[L]}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(Gn)},providedIn:"root"})}}return A})(),Gn=(()=>{class A extends hn{constructor(O){super(),this.title=O}updateTitle(O){const j=this.buildTitle(O);void 0!==j&&this.title.setTitle(j)}static{this.\u0275fac=function(j){return new(j||A)(e.KVO(ue.hE))}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),Ji=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(xi)},providedIn:"root"})}}return A})();class ji{shouldDetach(V){return!1}store(V,O){}shouldAttach(V){return!1}retrieve(V){return null}shouldReuseRoute(V,O){return V.routeConfig===O.routeConfig}}let xi=(()=>{class A extends ji{static{this.\u0275fac=function(){let O;return function(Q){return(O||(O=e.xGo(A)))(Q||A)}}()}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();const Zn=new e.nKC("",{providedIn:"root",factory:()=>({})});let Ii=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(Gi)},providedIn:"root"})}}return A})(),Gi=(()=>{class A{shouldProcessUrl(O){return!0}extract(O){return O}merge(O,j){return O}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();var Li=function(A){return A[A.COMPLETE=0]="COMPLETE",A[A.FAILED=1]="FAILED",A[A.REDIRECTING=2]="REDIRECTING",A}(Li||{});function as(A){throw A}function Io(A,V,O){return V.parse("/")}const bo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let es=(()=>{class A{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.WQX)(e.H3F),this.isNgZoneEnabled=!1,this._events=new _t.B,this.options=(0,e.WQX)(Zn,{optional:!0})||{},this.pendingTasks=(0,e.WQX)(e.$K3),this.errorHandler=this.options.errorHandler||as,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Io,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.WQX)(Ii),this.routeReuseStrategy=(0,e.WQX)(Ji),this.titleStrategy=(0,e.WQX)(hn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.WQX)(xo,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.WQX)(Xe),this.urlSerializer=(0,e.WQX)(Mt),this.location=(0,e.WQX)(ft.aZ),this.componentInputBindingEnabled=!!(0,e.WQX)(qs,{optional:!0}),this.eventsSubscription=new bt.yU,this.isNgZoneEnabled=(0,e.WQX)(e.SKi)instanceof e.SKi&&e.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ys(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(O=>{this.lastSuccessfulId=O.id,this.currentPageId=this.browserPageId},O=>{this.console.warn(`Unhandled Navigation Error: ${O}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const O=this.navigationTransitions.events.subscribe(j=>{try{const{currentTransition:Q}=this.navigationTransitions;if(null===Q)return void(gs(j)&&this._events.next(j));if(j instanceof et)zt(Q.source)&&(this.browserUrlTree=Q.extractedUrl);else if(j instanceof In)this.rawUrlTree=Q.rawUrl;else if(j instanceof mi){if("eager"===this.urlUpdateStrategy){if(!Q.extras.skipLocationChange){const Te=this.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl);this.setBrowserUrl(Te,Q)}this.browserUrlTree=Q.urlAfterRedirects}}else if(j instanceof Ys)this.currentUrlTree=Q.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl),this.routerState=Q.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Q.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Q),this.browserUrlTree=Q.urlAfterRedirects);else if(j instanceof At)0!==j.code&&1!==j.code&&(this.navigated=!0),(3===j.code||2===j.code)&&this.restoreHistory(Q);else if(j instanceof ms){const Te=this.urlHandlingStrategy.merge(j.url,Q.currentRawUrl),Qe={skipLocationChange:Q.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||zt(Q.source)};this.scheduleNavigation(Te,oe,null,Qe,{resolve:Q.resolve,reject:Q.reject,promise:Q.promise})}j instanceof Hn&&this.restoreHistory(Q,!0),j instanceof Vt&&(this.navigated=!0),gs(j)&&this._events.next(j)}catch(Q){this.navigationTransitions.transitionAbortSubject.next(Q)}});this.eventsSubscription.add(O)}resetRootComponentType(O){this.routerState.root.component=O,this.navigationTransitions.rootComponentType=O}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const O=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),oe,O)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(O=>{const j="popstate"===O.type?"popstate":"hashchange";"popstate"===j&&setTimeout(()=>{this.navigateToSyncWithBrowser(O.url,j,O.state)},0)}))}navigateToSyncWithBrowser(O,j,Q){const Te={replaceUrl:!0},Qe=Q?.navigationId?Q:null;if(Q){const Ht={...Q};delete Ht.navigationId,delete Ht.\u0275routerPageId,0!==Object.keys(Ht).length&&(Te.state=Ht)}const Wt=this.parseUrl(O);this.scheduleNavigation(Wt,j,Qe,Te)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(O){this.config=O.map(gi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(O,j={}){const{relativeTo:Q,queryParams:Te,fragment:Qe,queryParamsHandling:Wt,preserveFragment:Ht}=j,Pn=Ht?this.currentUrlTree.fragment:Qe;let _s,Ci=null;switch(Wt){case"merge":Ci={...this.currentUrlTree.queryParams,...Te};break;case"preserve":Ci=this.currentUrlTree.queryParams;break;default:Ci=Te||null}null!==Ci&&(Ci=this.removeEmptyProps(Ci));try{_s=pn(Q?Q.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof O[0]||!O[0].startsWith("/"))&&(O=[]),_s=this.currentUrlTree.root}return Je(_s,O,Ci,Pn??null)}navigateByUrl(O,j={skipLocationChange:!1}){const Q=Ke(O)?O:this.parseUrl(O),Te=this.urlHandlingStrategy.merge(Q,this.rawUrlTree);return this.scheduleNavigation(Te,oe,null,j)}navigate(O,j={skipLocationChange:!1}){return function zo(A){for(let V=0;V<A.length;V++)if(null==A[V])throw new e.wOt(4008,!1)}(O),this.navigateByUrl(this.createUrlTree(O,j),j)}serializeUrl(O){return this.urlSerializer.serialize(O)}parseUrl(O){let j;try{j=this.urlSerializer.parse(O)}catch(Q){j=this.malformedUriErrorHandler(Q,this.urlSerializer,O)}return j}isActive(O,j){let Q;if(Q=!0===j?{...bo}:!1===j?{...Jr}:j,Ke(O))return yi(this.currentUrlTree,O,Q);const Te=this.parseUrl(O);return yi(this.currentUrlTree,Te,Q)}removeEmptyProps(O){return Object.keys(O).reduce((j,Q)=>{const Te=O[Q];return null!=Te&&(j[Q]=Te),j},{})}scheduleNavigation(O,j,Q,Te,Qe){if(this.disposed)return Promise.resolve(!1);let Wt,Ht,Pn;Qe?(Wt=Qe.resolve,Ht=Qe.reject,Pn=Qe.promise):Pn=new Promise((_s,Ni)=>{Wt=_s,Ht=Ni});const Ci=this.pendingTasks.add();return function Yo(A,V){A.events.pipe((0,me.p)(O=>O instanceof Vt||O instanceof At||O instanceof Hn||O instanceof In),(0,mt.T)(O=>O instanceof Vt||O instanceof In?Li.COMPLETE:O instanceof At&&(0===O.code||1===O.code)?Li.REDIRECTING:Li.FAILED),(0,me.p)(O=>O!==Li.REDIRECTING),(0,vt.s)(1)).subscribe(()=>{V()})}(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ci))}),this.navigationTransitions.handleNavigationRequest({source:j,restoredState:Q,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:O,extras:Te,resolve:Wt,reject:Ht,promise:Pn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Pn.catch(_s=>Promise.reject(_s))}setBrowserUrl(O,j){const Q=this.urlSerializer.serialize(O);if(this.location.isCurrentPathEqualTo(Q)||j.extras.replaceUrl){const Qe={...j.extras.state,...this.generateNgRouterState(j.id,this.browserPageId)};this.location.replaceState(Q,"",Qe)}else{const Te={...j.extras.state,...this.generateNgRouterState(j.id,this.browserPageId+1)};this.location.go(Q,"",Te)}}restoreHistory(O,j=!1){if("computed"===this.canceledNavigationResolution){const Te=this.currentPageId-this.browserPageId;0!==Te?this.location.historyGo(Te):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Te&&(this.resetState(O),this.browserUrlTree=O.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(j&&this.resetState(O),this.resetUrlToCurrentUrlTree())}resetState(O){this.routerState=O.currentRouterState,this.currentUrlTree=O.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,O.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(O,j){return"computed"===this.canceledNavigationResolution?{navigationId:O,\u0275routerPageId:j}:{navigationId:O}}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function gs(A){return!(A instanceof Ys||A instanceof ms)}},6911:(gn,ct,N)=>{N.d(ct,{Lw:()=>Ld,Bq:()=>Gr,UN:()=>Tf});var e=N(7705),h=N(1985),ne=N(983),Z=N(7673),De=N(1413),we=N(3726),Ie=N(1584),Oe=N(8750);const{isArray:Fe}=Array;function Me(f){return 1===f.length&&Fe(f[0])?f[0]:f}var Ge=N(4360);N(7786);var bt=N(9326);function ft(...f){const x=(0,bt.ms)(f),a=Me(f);return a.length?new h.c(p=>{let E=a.map(()=>[]),X=a.map(()=>!1);p.add(()=>{E=X=null});for(let se=0;!p.closed&&se<a.length;se++)(0,Oe.Tg)(a[se]).subscribe((0,Ge._)(p,lt=>{if(E[se].push(lt),E.every(Et=>Et.length)){const Et=E.map($t=>$t.shift());p.next(x?x(...Et):Et),E.some(($t,Ut)=>!$t.length&&X[Ut])&&p.complete()}},()=>{X[se]=!0,!E[se].length&&p.complete()}));return()=>{E=X=null}}):ne.w}var mt=N(8793),vt=N(6977),Pt=N(5964),me=N(6697),at=N(8141),ot=N(6354),ht=N(9974),kt=N(3669),Tt=N(5343);function cn(...f){const x=(0,bt.ms)(f);return(0,ht.N)((a,p)=>{const E=f.length,X=new Array(E);let se=f.map(()=>!1),lt=!1;for(let Et=0;Et<E;Et++)(0,Oe.Tg)(f[Et]).subscribe((0,Ge._)(p,$t=>{X[Et]=$t,!lt&&!se[Et]&&(se[Et]=!0,(lt=se.every(kt.D))&&(se=null))},Tt.l));a.subscribe((0,Ge._)(p,Et=>{if(lt){const $t=[Et,...X];p.next(x?x(...$t):$t)}}))})}N(1986);var dn=N(5558),Se=(N(9172),N(3294),N(5245),N(177));Error,N(9417),Math,Math,Math;const dl=["*"],Zl=["dialog"];function Jt(f){return"string"==typeof f}function Dr(f){return null!=f}function xa(f){return(f||document.body).getBoundingClientRect()}const co={animation:!0,transitionTimerDelayMs:5},ar=()=>{},{transitionTimerDelayMs:A}=co,V=new Map,O=(f,x,a,p)=>{let E=p.context||{};const X=V.get(x);if(X)switch(p.runningTransition){case"continue":return ne.w;case"stop":f.run(()=>X.transition$.complete()),E=Object.assign(X.context,E),V.delete(x)}const se=a(x,p.animation,E)||ar;if(!p.animation||"none"===window.getComputedStyle(x).transitionProperty)return f.run(()=>se()),(0,Z.of)(void 0).pipe(function Dc(f){return x=>new h.c(a=>x.subscribe({next:se=>f.run(()=>a.next(se)),error:se=>f.run(()=>a.error(se)),complete:()=>f.run(()=>a.complete())}))}(f));const lt=new De.B,Et=new De.B,$t=lt.pipe(function tn(...f){return x=>(0,mt.x)(x,(0,Z.of)(...f))}(!0));V.set(x,{transition$:lt,complete:()=>{Et.next(),Et.complete()},context:E});const Ut=function Vl(f){const{transitionDelay:x,transitionDuration:a}=window.getComputedStyle(f);return 1e3*(parseFloat(x)+parseFloat(a))}(x);return f.runOutsideAngular(()=>{const Fn=(0,we.R)(x,"transitionend").pipe((0,vt.Q)($t),(0,Pt.p)(({target:On})=>On===x));(function Ue(...f){return 1===(f=Me(f)).length?(0,Oe.Tg)(f[0]):new h.c(function Ct(f){return x=>{let a=[];for(let p=0;a&&!x.closed&&p<f.length;p++)a.push((0,Oe.Tg)(f[p]).subscribe((0,Ge._)(x,E=>{if(a){for(let X=0;X<a.length;X++)X!==p&&a[X].unsubscribe();a=null}x.next(E)})))}}(f))})((0,Ie.O)(Ut+A).pipe((0,vt.Q)($t)),Fn,Et).pipe((0,vt.Q)($t)).subscribe(()=>{V.delete(x),f.run(()=>{se(),lt.next(),lt.complete()})})}),lt.asObservable()};let Qe=(()=>{class f{constructor(){this.animation=co.animation}static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),ba=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Zs=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Ua=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Cl=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();var ui=function(f){return f[f.Tab=9]="Tab",f[f.Enter=13]="Enter",f[f.Escape=27]="Escape",f[f.Space=32]="Space",f[f.PageUp=33]="PageUp",f[f.PageDown=34]="PageDown",f[f.End=35]="End",f[f.Home=36]="Home",f[f.ArrowLeft=37]="ArrowLeft",f[f.ArrowUp=38]="ArrowUp",f[f.ArrowRight=39]="ArrowRight",f[f.ArrowDown=40]="ArrowDown",f}(ui||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const S=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function y(f){const x=Array.from(f.querySelectorAll(S)).filter(a=>-1!==a.tabIndex);return[x[0],x[x.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let k=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Sr=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();class wo{constructor(x,a,p){this.nodes=x,this.viewRef=a,this.componentRef=p}}let Tu=(()=>{class f{constructor(a,p){this._el=a,this._zone=p}ngOnInit(){this._zone.onStable.asObservable().pipe((0,me.s)(1)).subscribe(()=>{O(this._zone,this._el.nativeElement,(a,p)=>{p&&xa(a),a.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return O(this._zone,this._el.nativeElement,({classList:a})=>a.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(p){return new(p||f)(e.rXU(e.aKT),e.rXU(e.SKi))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(p,E){2&p&&(e.HbH("modal-backdrop"+(E.backdropClass?" "+E.backdropClass:"")),e.AVh("show",!E.animation)("fade",E.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[e.aNF],decls:0,vars:0,template:function(p,E){},encapsulation:2})}}return f})();class Ld{update(x){}close(x){}dismiss(x){}}const Eu=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Bd=["animation","backdropClass"];class Su{_applyWindowOptions(x,a){Eu.forEach(p=>{Dr(a[p])&&(x[p]=a[p])})}_applyBackdropOptions(x,a){Bd.forEach(p=>{Dr(a[p])&&(x[p]=a[p])})}update(x){this._applyWindowOptions(this._windowCmptRef.instance,x),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,x)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,vt.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,vt.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(x,a,p,E){this._windowCmptRef=x,this._contentRef=a,this._backdropCmptRef=p,this._beforeDismiss=E,this._closed=new De.B,this._dismissed=new De.B,this._hidden=new De.B,x.instance.dismissEvent.subscribe(X=>{this.dismiss(X)}),this.result=new Promise((X,se)=>{this._resolve=X,this._reject=se}),this.result.then(null,()=>{})}close(x){this._windowCmptRef&&(this._closed.next(x),this._resolve(x),this._removeModalElements())}_dismiss(x){this._dismissed.next(x),this._reject(x),this._removeModalElements()}dismiss(x){if(this._windowCmptRef)if(this._beforeDismiss){const a=this._beforeDismiss();!function us(f){return f&&f.then}(a)?!1!==a&&this._dismiss(x):a.then(p=>{!1!==p&&this._dismiss(x)},()=>{})}else this._dismiss(x)}_removeModalElements(){const x=this._windowCmptRef.instance.hide(),a=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Z.of)(void 0);x.subscribe(()=>{const{nativeElement:p}=this._windowCmptRef.location;p.parentNode.removeChild(p),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),a.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:p}=this._backdropCmptRef.location;p.parentNode.removeChild(p),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ft(x,a).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var su=function(f){return f[f.BACKDROP_CLICK=0]="BACKDROP_CLICK",f[f.ESC=1]="ESC",f}(su||{});let Ju=(()=>{class f{constructor(a,p,E){this._document=a,this._elRef=p,this._zone=E,this._closed$=new De.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new e.bkB,this.shown=new De.B,this.hidden=new De.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Jt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(a){this.dismissEvent.emit(a)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,me.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:a}=this._elRef,p={animation:this.animation,runningTransition:"stop"},se=ft(O(this._zone,a,()=>a.classList.remove("show"),p),O(this._zone,this._dialogEl.nativeElement,()=>{},p));return se.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),se}_show(){const a={animation:this.animation,runningTransition:"continue"};ft(O(this._zone,this._elRef.nativeElement,(X,se)=>{se&&xa(X),X.classList.add("show")},a),O(this._zone,this._dialogEl.nativeElement,()=>{},a)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:a}=this._elRef;this._zone.runOutsideAngular(()=>{(0,we.R)(a,"keydown").pipe((0,vt.Q)(this._closed$),(0,Pt.p)(E=>E.which===ui.Escape)).subscribe(E=>{this.keyboard?requestAnimationFrame(()=>{E.defaultPrevented||this._zone.run(()=>this.dismiss(su.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let p=!1;(0,we.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,vt.Q)(this._closed$),(0,at.M)(()=>p=!1),(0,dn.n)(()=>(0,we.R)(a,"mouseup").pipe((0,vt.Q)(this._closed$),(0,me.s)(1))),(0,Pt.p)(({target:E})=>a===E)).subscribe(()=>{p=!0}),(0,we.R)(a,"click").pipe((0,vt.Q)(this._closed$)).subscribe(({target:E})=>{a===E&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!p&&this._zone.run(()=>this.dismiss(su.BACKDROP_CLICK))),p=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:a}=this._elRef;if(!a.contains(document.activeElement)){const p=a.querySelector("[ngbAutofocus]"),E=y(a)[0];(p||E||a).focus()}}_restoreFocus(){const a=this._document.body,p=this._elWithFocus;let E;E=p&&p.focus&&a.contains(p)?p:a,this._zone.runOutsideAngular(()=>{setTimeout(()=>E.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&O(this._zone,this._elRef.nativeElement,({classList:a})=>(a.add("modal-static"),()=>a.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(p){return new(p||f)(e.rXU(Se.qQ),e.rXU(e.aKT),e.rXU(e.SKi))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["ngb-modal-window"]],viewQuery:function(p,E){if(1&p&&e.GBs(Zl,7),2&p){let X;e.mGM(X=e.lsd())&&(E._dialogEl=X.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(p,E){2&p&&(e.BMQ("aria-modal",!0)("aria-labelledby",E.ariaLabelledBy)("aria-describedby",E.ariaDescribedBy),e.HbH("modal d-block"+(E.windowClass?" "+E.windowClass:"")),e.AVh("fade",E.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[e.aNF],ngContentSelectors:dl,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(p,E){1&p&&(e.NAR(),e.j41(0,"div",0,1)(2,"div",2),e.SdG(3),e.k0s()()),2&p&&e.HbH("modal-dialog"+(E.size?" modal-"+E.size:"")+(E.centered?" modal-dialog-centered":"")+E.fullscreenClass+(E.scrollable?" modal-dialog-scrollable":"")+(E.modalDialogClass?" "+E.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return f})(),ku=(()=>{class f{constructor(a){this._document=a}hide(){const a=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),p=this._document.body,E=p.style,{overflow:X,paddingRight:se}=E;if(a>0){const lt=parseFloat(window.getComputedStyle(p).paddingRight);E.paddingRight=`${lt+a}px`}return E.overflow="hidden",()=>{a>0&&(E.paddingRight=se),E.overflow=X}}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(Se.qQ))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),eh=(()=>{class f{constructor(a,p,E,X,se,lt,Et){this._applicationRef=a,this._injector=p,this._environmentInjector=E,this._document=X,this._scrollBar=se,this._rendererFactory=lt,this._ngZone=Et,this._activeWindowCmptHasChanged=new De.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new e.bkB,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const $t=this._windowCmpts[this._windowCmpts.length-1];((f,x,a,p=!1)=>{f.runOutsideAngular(()=>{const E=(0,we.R)(x,"focusin").pipe((0,vt.Q)(a),(0,ot.T)(X=>X.target));(0,we.R)(x,"keydown").pipe((0,vt.Q)(a),(0,Pt.p)(X=>X.which===ui.Tab),cn(E)).subscribe(([X,se])=>{const[lt,Et]=y(x);(se===lt||se===x)&&X.shiftKey&&(Et.focus(),X.preventDefault()),se===Et&&!X.shiftKey&&(lt.focus(),X.preventDefault())}),p&&(0,we.R)(x,"click").pipe((0,vt.Q)(a),cn(E),(0,ot.T)(X=>X[1])).subscribe(X=>X.focus())})})(this._ngZone,$t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden($t.location.nativeElement)}})}_restoreScrollBar(){const a=this._scrollBarRestoreFn;a&&(this._scrollBarRestoreFn=null,a())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(a,p,E){const X=E.container instanceof HTMLElement?E.container:Dr(E.container)?this._document.querySelector(E.container):this._document.body,se=this._rendererFactory.createRenderer(null,null);if(!X)throw new Error(`The specified modal container "${E.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const lt=new Ld,Et=(a=E.injector||a).get(e.uvJ,null)||this._environmentInjector,$t=this._getContentRef(a,Et,p,lt,E);let Ut=!1!==E.backdrop?this._attachBackdrop(X):void 0,Fn=this._attachWindowComponent(X,$t.nodes),Mn=new Su(Fn,$t,Ut,E.beforeDismiss);return this._registerModalRef(Mn),this._registerWindowCmpt(Fn),Mn.hidden.pipe((0,me.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(se.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),lt.close=On=>{Mn.close(On)},lt.dismiss=On=>{Mn.dismiss(On)},lt.update=On=>{Mn.update(On)},Mn.update(E),1===this._modalRefs.length&&se.addClass(this._document.body,"modal-open"),Ut&&Ut.instance&&Ut.changeDetectorRef.detectChanges(),Fn.changeDetectorRef.detectChanges(),Mn}get activeInstances(){return this._activeInstances}dismissAll(a){this._modalRefs.forEach(p=>p.dismiss(a))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(a){let p=(0,e.a0P)(Tu,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(p.hostView),a.appendChild(p.location.nativeElement),p}_attachWindowComponent(a,p){let E=(0,e.a0P)(Ju,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:p});return this._applicationRef.attachView(E.hostView),a.appendChild(E.location.nativeElement),E}_getContentRef(a,p,E,X,se){return E?E instanceof e.C4Q?this._createFromTemplateRef(E,X):Jt(E)?this._createFromString(E):this._createFromComponent(a,p,E,X,se):new wo([])}_createFromTemplateRef(a,p){const X=a.createEmbeddedView({$implicit:p,close(se){p.close(se)},dismiss(se){p.dismiss(se)}});return this._applicationRef.attachView(X),new wo([X.rootNodes],X)}_createFromString(a){const p=this._document.createTextNode(`${a}`);return new wo([[p]])}_createFromComponent(a,p,E,X,se){const lt=e.zZn.create({providers:[{provide:Ld,useValue:X}],parent:a}),Et=(0,e.a0P)(E,{environmentInjector:p,elementInjector:lt}),$t=Et.location.nativeElement;return se.scrollable&&$t.classList.add("component-host-scrollable"),this._applicationRef.attachView(Et.hostView),new wo([[$t]],Et.hostView,Et)}_setAriaHidden(a){const p=a.parentElement;p&&a!==this._document.body&&(Array.from(p.children).forEach(E=>{E!==a&&"SCRIPT"!==E.nodeName&&(this._ariaHiddenValues.set(E,E.getAttribute("aria-hidden")),E.setAttribute("aria-hidden","true"))}),this._setAriaHidden(p))}_revertAriaHidden(){this._ariaHiddenValues.forEach((a,p)=>{a?p.setAttribute("aria-hidden",a):p.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(a){const p=()=>{const E=this._modalRefs.indexOf(a);E>-1&&(this._modalRefs.splice(E,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(a),this._activeInstances.emit(this._modalRefs),a.result.then(p,p)}_registerWindowCmpt(a){this._windowCmpts.push(a),this._activeWindowCmptHasChanged.next(),a.onDestroy(()=>{const p=this._windowCmpts.indexOf(a);p>-1&&(this._windowCmpts.splice(p,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(e.o8S),e.KVO(e.zZn),e.KVO(e.uvJ),e.KVO(Se.qQ),e.KVO(ku),e.KVO(e._9s),e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),th=(()=>{class f{constructor(a){this._ngbConfig=a,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(a){this._animation=a}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(Qe))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),Gr=(()=>{class f{constructor(a,p,E){this._injector=a,this._modalStack=p,this._config=E}open(a,p={}){const E={...this._config,animation:this._config.animation,...p};return this._modalStack.open(this._injector,a,E)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(a){this._modalStack.dismissAll(a)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(e.zZn),e.KVO(eh),e.KVO(th))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),Vd=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({providers:[Gr]})}}return f})(),Dn=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Xa=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Wn=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),ns=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),$r=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),ih=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Nh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),rh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Ah=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();new e.nKC("live announcer delay",{providedIn:"root",factory:function Gd(){return 100}});let ch=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Bh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();const Mf=[ba,Zs,Ua,Cl,k,Sr,Vd,Dn,Bh,Xa,Wn,ns,$r,ih,Nh,rh,Ah,ch];let Tf=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({imports:[Mf,ba,Zs,Ua,Cl,k,Sr,Vd,Dn,Bh,Xa,Wn,ns,$r,ih,Nh,rh,Ah,ch]})}}return f})()},4958:(gn,ct,N)=>{N.d(ct,{Ps:()=>Se,kr:()=>Nt});var e=N(7705),h=N(9417),ne=N(177);const Z=["dropdownItems"],De=["dropdown"];function we(K,ge){if(1&K&&e.nrm(0,"img",26),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function Ie(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div",23),e.DNE(1,we,1,1,"img",24),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4,"\xa0 "),e.j41(5,"span",25),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(3);return e.Njj(ue.unselectItem(Le))}),e.EFF(6,"\xd7"),e.k0s()()}if(2&K){const je=ge.$implicit;e.R7$(1),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(je.label)}}function Oe(K,ge){if(1&K&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&K){const je=e.XpG(3);e.R7$(1),e.SpI(" +",je.selectedItems.length-3," more ")}}function Fe(K,ge){if(1&K&&(e.j41(0,"div",20),e.DNE(1,Ie,7,2,"div",21),e.DNE(2,Oe,2,1,"div",22),e.k0s()),2&K){const je=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",je.selectedItems.slice(0,3)),e.R7$(1),e.Y8G("ngIf",je.selectedItems.length>3)}}function Me(K,ge){if(1&K){const je=e.RV6();e.j41(0,"span",28),e.bIt("click",function(){e.eBV(je);const de=e.XpG(2);return e.Njj(de.unselectAll())}),e.EFF(1,"\xd7 "),e.k0s()}}function Ge(K,ge){if(1&K&&(e.j41(0,"div",4)(1,"div",5),e.DNE(2,Fe,3,2,"div",18),e.k0s(),e.j41(3,"div",8)(4,"div"),e.DNE(5,Me,2,0,"span",19),e.k0s()()()),2&K){const je=e.XpG();e.R7$(2),e.Y8G("ngIf",!je.selectedItem&&je.multiple),e.R7$(3),e.Y8G("ngIf",je.selectedItems.length>0&&je.multiple)}}function Ue(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div")(1,"input",29),e.bIt("ngModelChange",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.searchText=de)})("input",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.search(de))}),e.k0s()()}if(2&K){const je=e.XpG();e.R7$(1),e.Y8G("ngModel",je.searchText)("placeholder",je.placeholder)}}function Ct(K,ge){if(1&K&&e.nrm(0,"img",31),2&K){const je=e.XpG(2);e.Y8G("src",je.selectedItemImage,e.B4B)}}function _t(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div"),e.DNE(1,Ct,1,1,"img",30),e.j41(2,"input",29),e.bIt("ngModelChange",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.searchText=de)})("ngModelChange",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.selectedItemName=de)})("input",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.search(de))}),e.k0s()()}if(2&K){const je=e.XpG();e.R7$(1),e.Y8G("ngIf",je.selectedItemImage),e.R7$(1),e.Y8G("ngModel",je.searchText)("placeholder",je.placeholder)("ngModel",je.selectedItemName)}}function bt(K,ge){1&K&&(e.j41(0,"a",38),e.EFF(1,"Create new"),e.k0s())}function ft(K,ge){if(1&K&&e.nrm(0,"img",49),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function mt(K,ge){if(1&K&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&K){const je=e.XpG().$implicit;e.R7$(1),e.JRh(null==je?null:je.subLabel)}}function tn(K,ge){1&K&&e.nrm(0,"div",50)}function vt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(5);return e.Njj(ue.handleButtonClick(Le.action))}),e.nrm(1,"i"),e.k0s()}if(2&K){const je=ge.$implicit;e.R7$(1),e.HbH(je.icon),e.xc7("color",je.color)}}function Pt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"a",41),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(4);return e.Njj(ue.selectItem(Le))}),e.j41(1,"div",42)(2,"div",43)(3,"div"),e.DNE(4,ft,1,1,"img",44),e.j41(5,"span",45),e.EFF(6),e.k0s(),e.nrm(7,"br"),e.DNE(8,mt,2,1,"small",7),e.k0s(),e.DNE(9,tn,1,0,"div",46),e.j41(10,"div",47),e.DNE(11,vt,2,4,"button",48),e.k0s()()()()}if(2&K){const je=ge.$implicit,le=e.XpG(4);e.R7$(4),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(null==je?null:je.label),e.R7$(2),e.Y8G("ngIf",le.showSubLabel),e.R7$(1),e.Y8G("ngIf",null==je?null:je.label),e.R7$(2),e.Y8G("ngForOf",le.customButtons)}}function me(K,ge){if(1&K&&(e.qex(0),e.DNE(1,Pt,12,5,"a",40),e.bVm()),2&K){const je=e.XpG(3);e.R7$(1),e.Y8G("ngForOf",je.items)}}function at(K,ge){if(1&K&&e.nrm(0,"img",49),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function ot(K,ge){if(1&K&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&K){const je=e.XpG().$implicit;e.R7$(1),e.JRh(null==je?null:je.subLabel)}}function ht(K,ge){1&K&&e.nrm(0,"div",50)}function kt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(5);return e.Njj(ue.handleButtonClick(Le.action))}),e.nrm(1,"i"),e.k0s()}if(2&K){const je=ge.$implicit;e.R7$(1),e.HbH(je.icon),e.xc7("color",je.color)}}function Tt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"a",41),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(4);return e.Njj(ue.selectItem(Le))}),e.j41(1,"div",42)(2,"div",43),e.DNE(3,at,1,1,"img",44),e.j41(4,"span",45),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.DNE(7,ot,2,1,"small",7),e.DNE(8,ht,1,0,"div",46),e.j41(9,"div",47),e.DNE(10,kt,2,4,"button",48),e.k0s()()()()}if(2&K){const je=ge.$implicit,le=e.XpG(4);e.R7$(3),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(null==je?null:je.label),e.R7$(2),e.Y8G("ngIf",le.showSubLabel),e.R7$(1),e.Y8G("ngIf",null==je?null:je.label),e.R7$(2),e.Y8G("ngForOf",le.customButtons)}}function cn(K,ge){if(1&K&&e.DNE(0,Tt,11,5,"a",40),2&K){const je=e.XpG(3);e.Y8G("ngForOf",je.items)}}function kn(K,ge){if(1&K&&(e.qex(0),e.DNE(1,me,2,1,"ng-container",36),e.DNE(2,cn,1,1,"ng-template",null,39,e.C5r),e.bVm()),2&K){const je=e.sdS(3),le=e.XpG(2);e.R7$(1),e.Y8G("ngIf",le.multiple)("ngIfElse",je)}}function dn(K,ge){1&K&&(e.j41(0,"div",51),e.EFF(1,"No data available"),e.k0s())}function Kt(K,ge){if(1&K){const je=e.RV6();e.qSk(),e.joV(),e.j41(0,"div",32,33),e.bIt("scroll",function(de){e.eBV(je);const Le=e.XpG();return e.Njj(Le.dropdownScroll(de))}),e.j41(2,"div",34),e.bIt("click",function(){e.eBV(je);const de=e.XpG();return e.Njj(de.createNew())}),e.DNE(3,bt,2,0,"a",35),e.k0s(),e.DNE(4,kn,4,2,"ng-container",36),e.DNE(5,dn,2,0,"ng-template",null,37,e.C5r),e.k0s()}if(2&K){const je=e.sdS(6),le=e.XpG();e.R7$(3),e.Y8G("ngIf",le.showCreateNew),e.R7$(1),e.Y8G("ngIf",le.items.length>0)("ngIfElse",je)}}const Ye=function(K,ge){return{opened:K,closed:ge}};let Se=(()=>{class K{constructor(je){this.cdr=je,this.selectedItems=[],this.placeholder="",this.items=[],this.selectedValues="",this.customButtons=[],this.showBorder=!0,this.buttonClick=new e.bkB,this.selectedItemsChange=new e.bkB,this.onDropdownScroll=new e.bkB,this.onCreateNew=new e.bkB,this.onSearch=new e.bkB,this.showSubLabel=!1,this.dropdownOpened=!1,this.selectedItemName="",this.selectedItemImage="",this.originalItems=[],this.searchTerm="",this.initialized=!1,this.searchText=""}ngOnInit(){this.initialize()}ngOnChanges(je){je.selectedItems&&(this.selectedItems=je.selectedItems.currentValue,this.selectedItemName=this.selectedItems[0]?.label,this.selectedItemImage=this.selectedItems[0]?.image,this.selectedItemsChange.emit(this.selectedItems)),je.items&&(this.originalItems=this.items.slice()),je.selectedValues&&(this.selectedItemName=this.selectedValues)}initialize(){setTimeout(()=>{this.selectedItems&&this.selectedItems.length>0&&(this.multiple||this.selectItem(this.selectedItems[0]))},1e3);const je=this.items.filter((le,de,Le)=>de===Le.findIndex(ue=>ue.value===le.value));this.items=je}openDropdown(){this.dropdownOpened=!this.dropdownOpened}dropdownScroll(je){this.onDropdownScroll.observed&&(this.onDropdownScroll.emit(je),this.cdr.markForCheck())}selectItem(je){this.multiple?this.selectedItems.includes(je)?(this.selectedItems=this.selectedItems.filter(le=>le!==je),this.selectedItemsChange.emit(this.selectedItems)):(this.selectedItems.push(je),this.selectedItemsChange.emit(this.selectedItems)):(this.searchText="",this.selectedItems[0]=je,this.selectedItemName=this.selectedItems[0]?.label,this.selectedItemImage=this.selectedItems[0]?.image,this.dropdownOpened=!1,this.selectedItemsChange.emit(this.selectedItems))}unselectItem(je){this.selectedItems=this.selectedItems.filter(le=>le!==je),this.selectedItemsChange.emit(this.selectedItems)}unselectAll(){this.selectedItems=[],this.selectedItemName="",this.selectedItemImage="",this.selectedItemsChange.emit(this.selectedItems),this.cdr.markForCheck()}onDocumentClick(je){this.dropdown.nativeElement.contains(je.target)||(this.dropdownOpened=!1)}createNew(){this.onCreateNew.emit(),this.dropdownOpened=!1}search(je){if(this.dropdownOpened=!0,this.searchTerm=je.target.value.toLowerCase(),this.onSearch.observed)this.onSearch.emit(this.searchTerm);else if(""===this.searchTerm.trim())this.multiple||this.unselectAll(),this.items=this.originalItems.slice();else{const de=this.searchTerm.toLowerCase();this.items=this.originalItems.filter(Le=>Le.label.toLowerCase().includes(de)||Le.value&&Le.value.toLowerCase().includes(de))}}handleButtonClick(je){je(),this.buttonClick.emit()}static{this.\u0275fac=function(le){return new(le||K)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:K,selectors:[["lib-dropdown"]],viewQuery:function(le,de){if(1&le&&(e.GBs(Z,5),e.GBs(De,5)),2&le){let Le;e.mGM(Le=e.lsd())&&(de.dropdownitems=Le.first),e.mGM(Le=e.lsd())&&(de.dropdown=Le.first)}},hostBindings:function(le,de){1&le&&e.bIt("click",function(ue){return de.onDocumentClick(ue)},!1,e.EBC)},inputs:{multiple:"multiple",selectedItems:"selectedItems",placeholder:"placeholder",items:"items",showCreateNew:"showCreateNew",selectedValues:"selectedValues",customButtons:"customButtons",showBorder:"showBorder",showSubLabel:"showSubLabel"},outputs:{buttonClick:"buttonClick",selectedItemsChange:"selectedItemsChange",onDropdownScroll:"onDropdownScroll",onCreateNew:"onCreateNew",onSearch:"onSearch"},features:[e.OA$],decls:19,vars:20,consts:[[1,"dropdown",3,"ngClass"],["dropdown",""],["id","division",1,"dropdown-field",3,"ngClass","click"],["class","flexSection",4,"ngIf"],[1,"flexSection"],[1,"dataSection"],[1,"input-field"],[4,"ngIf"],[1,"iconSection"],[1,"down-arrow",3,"ngClass"],["width","1em","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"down-arrow-img"],["id","Down Arrow"],["id","Group"],["id","Path","d","M6 9.13741L12 15.229L18 9.13741","stroke","#8E9AA0","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"up-arrow",3,"ngClass"],["width","1em","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"up-arrow-img"],["d","M18 15.229L12 9.1374L6 15.229","stroke","#8E9AA0","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["class","dropdown-items",3,"scroll",4,"ngIf"],["class","selected selectedList",4,"ngIf"],["class","deselect",3,"click",4,"ngIf"],[1,"selected","selectedList"],["class","selected-item",4,"ngFor","ngForOf"],["class","remaining-items",4,"ngIf"],[1,"selected-item"],["class","multiSelected-icon-size","alt","image",3,"src",4,"ngIf"],[1,"close-icon",3,"click"],["alt","image",1,"multiSelected-icon-size",3,"src"],[1,"remaining-items"],[1,"deselect",3,"click"],[1,"dropdown_text",3,"ngModel","placeholder","ngModelChange","input"],["class","selected-icon-size","alt","image",3,"src",4,"ngIf"],["alt","image",1,"selected-icon-size",3,"src"],[1,"dropdown-items",3,"scroll"],["dropdownItems",""],[3,"click"],["class","create_button",4,"ngIf"],[4,"ngIf","ngIfElse"],["noDataAvailable",""],[1,"create_button"],["singleSelection",""],["class","items d-block",3,"click",4,"ngFor","ngForOf"],[1,"items","d-block",3,"click"],[1,"dropdown-item"],[1,"item-details"],["alt","Item Image","class","item-image icon-size",3,"src",4,"ngIf"],[1,"item-label"],["class","space",4,"ngIf"],[1,"dropdown_buttons"],[3,"click",4,"ngFor","ngForOf"],["alt","Item Image",1,"item-image","icon-size",3,"src"],[1,"space"],[1,"items"]],template:function(le,de){1&le&&(e.j41(0,"div",0,1)(2,"div",2),e.bIt("click",function(){return de.openDropdown()}),e.DNE(3,Ge,6,2,"div",3),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.DNE(7,Ue,2,2,"div",7),e.DNE(8,_t,3,4,"div",7),e.k0s()(),e.j41(9,"div",8)(10,"div",9),e.qSk(),e.j41(11,"svg",10)(12,"g",11)(13,"g",12),e.nrm(14,"path",13),e.k0s()()()(),e.joV(),e.j41(15,"div",14),e.qSk(),e.j41(16,"svg",15),e.nrm(17,"path",16),e.k0s()()()()(),e.DNE(18,Kt,7,3,"div",17),e.k0s()),2&le&&(e.Y8G("ngClass",e.l_i(8,Ye,de.showBorder&&de.dropdownOpened,de.showBorder&&!de.dropdownOpened)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,Ye,de.showBorder&&de.dropdownOpened,de.showBorder&&!de.dropdownOpened)),e.R7$(1),e.Y8G("ngIf",!de.selectedItem&&de.multiple),e.R7$(4),e.Y8G("ngIf",de.multiple),e.R7$(1),e.Y8G("ngIf",!de.multiple),e.R7$(2),e.Y8G("ngClass",e.l_i(14,Ye,de.dropdownOpened,!de.dropdownOpened)),e.R7$(5),e.Y8G("ngClass",e.l_i(17,Ye,de.dropdownOpened,!de.dropdownOpened)),e.R7$(3),e.Y8G("ngIf",de.dropdownOpened))},dependencies:[h.me,h.BC,h.vS,ne.YU,ne.Sq,ne.bT],styles:[".dropdown{background:#fff;border-radius:6px}.dropdown .dropdown-field{background:#fff;border-radius:6px;position:relative;cursor:pointer}.dropdown .dropdown-field .selected{margin:5px}.dropdown .dropdown-field .selected.selectedList{display:flex;flex-wrap:wrap}.dropdown .dropdown-field .selected .selected-item{background:#cdd0d1;display:inline;margin:5px;padding:2px;border-radius:5px;font-size:small}.dropdown .dropdown-field .selected .remaining-items{margin:5px;padding:2px;font-size:smaller;display:block}.dropdown .dropdown-field .input-field .dropdown_text{width:100%;border:none;padding:2px;margin-left:3px;margin-right:3px;outline:none;box-sizing:border-box;font-weight:500;font-family:Poppins;font-size:14px;font-style:normal}@media (max-width: 576px){.dropdown .dropdown-field .input-field .dropdown_text{width:53%;font-size:12px;margin-left:3px;padding-left:2px}}@media (max-width: 420px){.dropdown .dropdown-field .input-field .dropdown_text{width:53%;font-size:12px;margin-left:3px;padding-left:2px}}@media only screen and (min-width: 576px){.dropdown .dropdown-field .input-field .dropdown_text{height:25px}}@media only screen and (min-width: 992px){.dropdown .dropdown-field .input-field .dropdown_text{height:30px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-field .input-field .dropdown_text{height:35px}}.dropdown .dropdown-field.closed{border:1px solid #d8d8d8}.dropdown .dropdown-field.opened{border-bottom:1px solid #d8d8d8}.dropdown .dropdown-items{overflow-y:auto;overflow-x:auto;position:absolute!important;top:100%;left:0;width:100%;background:#fff;z-index:9999999;border:solid 1px #dbdbdb;box-shadow:0 4px 4px -5px #00000040;transition:transform .3s ease-out;scroll-behavior:smooth;cursor:pointer}@media only screen and (min-width: 276px){.dropdown .dropdown-items{max-height:150px;padding:3px}}@media only screen and (min-width: 576px){.dropdown .dropdown-items{max-height:150px;padding:3px}}@media only screen and (min-width: 992px){.dropdown .dropdown-items{max-height:150px;padding:5px}}@media only screen and (min-width: 1441px){.dropdown .dropdown-items{max-height:200px;padding:7px}}.dropdown .dropdown-items .create_button{text-decoration:none;cursor:pointer}@media only screen and (min-width: 576px){.dropdown .dropdown-items .create_button{padding-left:8px}}@media only screen and (min-width: 992px){.dropdown .dropdown-items .create_button{padding-left:8px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-items .create_button{padding-left:8px}}.dropdown .dropdown-items .items{text-decoration:none;color:inherit;line-height:41px;position:relative;cursor:pointer}@media only screen and (min-width: 576px){.dropdown .dropdown-items .items{padding-left:8px;font-size:small}}@media only screen and (min-width: 992px){.dropdown .dropdown-items .items{padding-left:8px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-items .items{padding-left:8px;font-size:small}}.dropdown .dropdown-items .items:hover{background:#ebedef;border-radius:6px}.dropdown .dropdown-items .items:hover button{visibility:visible}.dropdown .dropdown-items .items .dropdown_buttons{display:inline}.dropdown .dropdown-items .items button{border:0;background:transparent;visibility:hidden}.dropdown.opened{border:1px #d8d8d8 solid}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{background-color:#b2b2b2;border-radius:6px}.space{width:10px}.item-details{display:flex;align-items:center;justify-content:space-between}.icon-size{width:25px;height:20px;margin-right:7px}.smallSpace{width:3px}.selected-icon-size{width:25px;height:20px;margin-left:10px}@media (max-width: 576px){.selected-icon-size{width:21px;height:15px;margin-right:7px;margin-bottom:1px}}.multiSelected-icon-size{width:25px;height:20px;margin-left:1px;margin-bottom:1px;margin-right:3px}.flexSection{display:flex}.dataSection{width:calc(100% - 20px)}.iconSection{width:20px;padding:1px}.down-arrow,.up-arrow,.deselect{width:20px;height:20px;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer}.down-arrow{cursor:pointer;padding-top:.5em}.down-arrow.opened{display:none}.down-arrow.closed{display:block}.up-arrow{cursor:pointer}.up-arrow.closed{display:none}.iconSection{display:flex;flex-direction:row-reverse}\n"],encapsulation:2,changeDetection:0})}}return K})(),Nt=(()=>{class K{static{this.\u0275fac=function(le){return new(le||K)}}static{this.\u0275mod=e.$C({type:K})}static{this.\u0275inj=e.G2t({imports:[h.YN,ne.MD]})}}return K})()},8737:(gn,ct,N)=>{N.d(ct,{pl:()=>kn,GQ:()=>dn});var e=N(467),h=N(7705),ne=N(177);class Z{constructor(Ye){this.rawFile=Ye;const ye=Ye instanceof HTMLInputElement?Ye.value:Ye;this["_createFrom"+("string"==typeof ye?"FakePath":"Object")](ye)}_createFromFakePath(Ye){this.lastModifiedDate=void 0,this.size=void 0,this.type=`like/${Ye.slice(Ye.lastIndexOf(".")+1).toLowerCase()}`,this.name=Ye.slice(Ye.lastIndexOf("/")+Ye.lastIndexOf("\\")+2)}_createFromObject(Ye){this.size=Ye.size,this.type=Ye.type,this.name=Ye.name}}class De{constructor(Ye,ye,Se){this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=Ye,this.some=ye,this.options=Se,this.file=new Z(ye),this._file=ye,Ye.options&&(this.method=Ye.options.method||"POST",this.alias=Ye.options.itemAlias||"file"),this.url=Ye.options.url}upload(){try{this.uploader.uploadItem(this)}catch{this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(Ye){return{form:Ye}}onProgress(Ye){return{progress:Ye}}onSuccess(Ye,ye,Se){return{response:Ye,status:ye,headers:Se}}onError(Ye,ye,Se){return{response:Ye,status:ye,headers:Se}}onCancel(Ye,ye,Se){return{response:Ye,status:ye,headers:Se}}onComplete(Ye,ye,Se){return{response:Ye,status:ye,headers:Se}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(Ye){this.onBuildForm(Ye)}_onProgress(Ye){this.progress=Ye,this.onProgress(Ye)}_onSuccess(Ye,ye,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(Ye,ye,Se)}_onError(Ye,ye,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(Ye,ye,Se)}_onCancel(Ye,ye,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(Ye,ye,Se)}_onComplete(Ye,ye,Se){this.onComplete(Ye,ye,Se),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}let we=(()=>{class Kt{static{this.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"]}static{this.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"]}static{this.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"]}static{this.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"]}static{this.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"]}static getMimeClass(ye){let Se="application";return ye?.type&&-1!==this.mime_psd.indexOf(ye.type)||ye?.type?.match("image.*")?Se="image":ye?.type?.match("video.*")?Se="video":ye?.type?.match("audio.*")?Se="audio":"application/pdf"===ye?.type?Se="pdf":ye?.type&&-1!==this.mime_compress.indexOf(ye.type)?Se="compress":ye?.type&&-1!==this.mime_doc.indexOf(ye.type)?Se="doc":ye?.type&&-1!==this.mime_xsl.indexOf(ye.type)?Se="xls":ye?.type&&-1!==this.mime_ppt.indexOf(ye.type)&&(Se="ppt"),"application"===Se&&ye?.name&&(Se=this.fileTypeDetection(ye.name)),Se}static fileTypeDetection(ye){const Se={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},Nt=ye.split(".");if(Nt.length<2)return"application";const K=Nt[Nt.length-1].toLowerCase();return void 0===Se[K]?"application":Se[K]}}return Kt})();class Oe{constructor(Ye){this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:ye=>ye._file,formatDataFunctionIsAsync:!1,url:""},this.setOptions(Ye),this.response=new h.bkB}setOptions(Ye){this.options=Object.assign(this.options,Ye),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters?.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters?.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters?.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters?.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(let ye=0;ye<this.queue.length;ye++)this.queue[ye].url=this.options.url}addToQueue(Ye,ye,Se){let Nt=ye;const K=[];for(const de of Ye)K.push(de);const ge=this._getFilters(Se),je=this.queue.length,le=[];K.map(de=>{Nt||(Nt=this.options);const Le=new Z(de);if(this._isValidFile(Le,ge,Nt)){const ue=new De(this,de,Nt);le.push(ue),this.queue.push(ue),this._onAfterAddingFile(ue)}else"number"==typeof this._failFilterIndex&&this._failFilterIndex>=0&&this._onWhenAddingFileFailed(Le,ge[this._failFilterIndex],Nt)}),this.queue.length!==je&&(this._onAfterAddingAll(le),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(Ye){const ye=this.getIndexOfItem(Ye),Se=this.queue[ye];Se.isUploading&&Se.cancel(),this.queue.splice(ye,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(Ye){const ye=this.getIndexOfItem(Ye),Se=this.queue[ye],Nt=this.options.isHTML5?"_xhrTransport":"_iframeTransport";Se._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[Nt](Se))}cancelItem(Ye){const ye=this.getIndexOfItem(Ye),Se=this.queue[ye];Se&&Se.isUploading&&(this.options.isHTML5?Se._xhr:Se._form).abort()}uploadAll(){const Ye=this.getNotUploadedItems().filter(ye=>!ye.isUploading);Ye.length&&(Ye.map(ye=>ye._prepareToUploading()),Ye[0].upload())}cancelAll(){this.getNotUploadedItems().map(ye=>ye.cancel())}isFile(Ye){return function Ie(Kt){return File&&Kt instanceof File}(Ye)}isFileLikeObject(Ye){return Ye instanceof Z}getIndexOfItem(Ye){return"number"==typeof Ye?Ye:this.queue.indexOf(Ye)}getNotUploadedItems(){return this.queue.filter(Ye=>!Ye.isUploaded)}getReadyItems(){return this.queue.filter(Ye=>Ye.isReady&&!Ye.isUploading).sort((Ye,ye)=>Ye.index-ye.index)}onAfterAddingAll(Ye){return{fileItems:Ye}}onBuildItemForm(Ye,ye){return{fileItem:Ye,form:ye}}onAfterAddingFile(Ye){return{fileItem:Ye}}onWhenAddingFileFailed(Ye,ye,Se){return{item:Ye,filter:ye,options:Se}}onBeforeUploadItem(Ye){return{fileItem:Ye}}onProgressItem(Ye,ye){return{fileItem:Ye,progress:ye}}onProgressAll(Ye){return{progress:Ye}}onSuccessItem(Ye,ye,Se,Nt){return{item:Ye,response:ye,status:Se,headers:Nt}}onErrorItem(Ye,ye,Se,Nt){return{item:Ye,response:ye,status:Se,headers:Nt}}onCancelItem(Ye,ye,Se,Nt){return{item:Ye,response:ye,status:Se,headers:Nt}}onCompleteItem(Ye,ye,Se,Nt){return{item:Ye,response:ye,status:Se,headers:Nt}}onCompleteAll(){}_mimeTypeFilter(Ye){return!(Ye?.type&&this.options.allowedMimeType&&-1===this.options.allowedMimeType?.indexOf(Ye.type))}_fileSizeFilter(Ye){return!(this.options.maxFileSize&&Ye.size>this.options.maxFileSize)}_fileTypeFilter(Ye){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(we.getMimeClass(Ye)))}_onErrorItem(Ye,ye,Se,Nt){Ye._onError(ye,Se,Nt),this.onErrorItem(Ye,ye,Se,Nt)}_onCompleteItem(Ye,ye,Se,Nt){Ye._onComplete(ye,Se,Nt),this.onCompleteItem(Ye,ye,Se,Nt);const K=this.getReadyItems()[0];this.isUploading=!1,K?K.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(Ye){return ye=>ye?Ye[ye.toLowerCase()]||void 0:Ye}_xhrTransport(Ye){const ye=this,Se=Ye._xhr=new XMLHttpRequest;let Nt;if(this._onBeforeUploadItem(Ye),"number"!=typeof Ye._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(Nt=this.options.formatDataFunction(Ye));else{Nt=new FormData,this._onBuildItemForm(Ye,Nt);const K=()=>Nt.append(Ye.alias,Ye._file,Ye.file.name);this.options.parametersBeforeFiles||K(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(ge=>{let je=this.options.additionalParameter?.[ge];"string"==typeof je&&je.indexOf("{{file_name}}")>=0&&Ye.file?.name&&(je=je.replace("{{file_name}}",Ye.file.name)),Nt.append(ge,je)}),K&&this.options.parametersBeforeFiles&&K()}if(Se.upload.onprogress=K=>{const ge=Math.round(K.lengthComputable?100*K.loaded/K.total:0);this._onProgressItem(Ye,ge)},Se.onload=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this[`_on${this._isSuccessCode(Se.status)?"Success":"Error"}Item`](Ye,ge,Se.status,K),this._onCompleteItem(Ye,ge,Se.status,K)},Se.onerror=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this._onErrorItem(Ye,ge,Se.status,K),this._onCompleteItem(Ye,ge,Se.status,K)},Se.onabort=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this._onCancelItem(Ye,ge,Se.status,K),this._onCompleteItem(Ye,ge,Se.status,K)},Ye.method&&Ye.url&&Se.open(Ye.method,Ye.url,!0),Se.withCredentials=Ye.withCredentials,this.options.headers)for(const K of this.options.headers)Se.setRequestHeader(K.name,K.value);if(Ye.headers.length)for(const K of Ye.headers)Se.setRequestHeader(K.name,K.value);this.authToken&&this.authTokenHeader&&Se.setRequestHeader(this.authTokenHeader,this.authToken),Se.onreadystatechange=function(){Se.readyState==XMLHttpRequest.DONE&&ye.response.emit(Se.responseText)},this.options.formatDataFunctionIsAsync?Nt.then(K=>Se.send(JSON.stringify(K))):Se.send(Nt),this._render()}_getTotalProgress(Ye=0){if(this.options.removeAfterUpload)return Ye;const ye=this.getNotUploadedItems().length,Nt=100/this.queue.length;return Math.round((ye?this.queue.length-ye:this.queue.length)*Nt+Ye*Nt/100)}_getFilters(Ye){if(!Ye)return this.options?.filters||[];if(Array.isArray(Ye))return Ye;if("string"==typeof Ye){const ye=Ye.match(/[^\s,]+/g);return this.options?.filters||[].filter(Se=>-1!==ye?.indexOf(Se.name))}return this.options?.filters||[]}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}_isValidFile(Ye,ye,Se){return this._failFilterIndex=-1,!ye.length||ye.every(Nt=>("number"==typeof this._failFilterIndex&&this._failFilterIndex++,Nt.fn.call(this,Ye,Se)))}_isSuccessCode(Ye){return Ye>=200&&Ye<300||304===Ye}_transformResponse(Ye,ye){return Ye}_parseHeaders(Ye){const ye={};let Se,Nt,K;return Ye&&Ye.split("\n").map(ge=>{K=ge.indexOf(":"),Se=ge.slice(0,K).trim().toLowerCase(),Nt=ge.slice(K+1).trim(),Se&&(ye[Se]=ye[Se]?ye[Se]+", "+Nt:Nt)}),ye}_onWhenAddingFileFailed(Ye,ye,Se){this.onWhenAddingFileFailed(Ye,ye,Se)}_onAfterAddingFile(Ye){this.onAfterAddingFile(Ye)}_onAfterAddingAll(Ye){this.onAfterAddingAll(Ye)}_onBeforeUploadItem(Ye){Ye._onBeforeUpload(),this.onBeforeUploadItem(Ye)}_onBuildItemForm(Ye,ye){Ye._onBuildForm(ye),this.onBuildItemForm(Ye,ye)}_onProgressItem(Ye,ye){const Se=this._getTotalProgress(ye);this.progress=Se,Ye._onProgress(ye),this.onProgressItem(Ye,ye),this.onProgressAll(Se),this._render()}_onSuccessItem(Ye,ye,Se,Nt){Ye._onSuccess(ye,Se,Nt),this.onSuccessItem(Ye,ye,Se,Nt)}_onCancelItem(Ye,ye,Se,Nt){Ye._onCancel(ye,Se,Nt),this.onCancelItem(Ye,ye,Se,Nt)}}let Me=(()=>{class Kt{constructor(ye){this.onFileSelected=new h.bkB,this.element=ye}getOptions(){return this.uploader?.options}getFilters(){return""}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){const ye=this.element.nativeElement.files,Se=this.getOptions(),Nt=this.getFilters();this.uploader?.addToQueue(ye,Se,Nt),this.onFileSelected.emit(ye),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}static{this.\u0275fac=function(Se){return new(Se||Kt)(h.rXU(h.aKT))}}static{this.\u0275dir=h.FsC({type:Kt,selectors:[["","ng2FileSelect",""]],hostBindings:function(Se,Nt){1&Se&&h.bIt("change",function(){return Nt.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}})}}return Kt})(),Ge=(()=>{class Kt{static{this.\u0275fac=function(Se){return new(Se||Kt)}}static{this.\u0275mod=h.$C({type:Kt})}static{this.\u0275inj=h.G2t({imports:[ne.MD]})}}return Kt})();const Ue=["fileInput"];function Ct(Kt,Ye){if(1&Kt&&(h.qex(0),h.nrm(1,"img",26),h.bVm()),2&Kt){const ye=h.XpG().$implicit,Se=h.XpG(3);h.R7$(1),h.Y8G("src",Se.imagePreviews[ye._file.name]||"",h.B4B)("alt",ye._file.name)}}function _t(Kt,Ye){1&Kt&&(h.qSk(),h.j41(0,"svg",27),h.nrm(1,"path",28)(2,"path",29),h.k0s())}const bt=function(Kt){return{"upload-complete":Kt}};function ft(Kt,Ye){if(1&Kt){const ye=h.RV6();h.j41(0,"div",17)(1,"div",18)(2,"div",19),h.DNE(3,Ct,2,2,"ng-container",20),h.DNE(4,_t,3,0,"ng-template",null,21,h.C5r),h.k0s(),h.j41(6,"div",22)(7,"div",23),h.EFF(8),h.k0s(),h.j41(9,"div",24),h.EFF(10),h.k0s()()(),h.j41(11,"div")(12,"button",25),h.bIt("click",function(){const K=h.eBV(ye).$implicit,ge=h.XpG(3);return h.Njj(ge.removeFile(K))}),h.EFF(13," \xd7 "),h.k0s()()()}if(2&Kt){const ye=Ye.$implicit,Se=h.sdS(5),Nt=h.XpG(3);let K;h.Y8G("ngClass",h.eq3(6,bt,ye.isUploaded)),h.R7$(3),h.Y8G("ngIf",(null==ye?null:ye._file)&&(null==ye||null==ye._file||null==ye._file.type?null:ye._file.type.startsWith("image/")))("ngIfElse",Se),h.R7$(4),h.Y8G("title",ye.file.name),h.R7$(1),h.JRh(Nt.truncateFileName(null!==(K=ye.file.name)&&void 0!==K?K:"",20)),h.R7$(2),h.SpI(" ",Nt.formatFileSize(ye.file.size)," ")}}function mt(Kt,Ye){if(1&Kt&&(h.j41(0,"div",15),h.DNE(1,ft,14,8,"div",16),h.k0s()),2&Kt){const ye=h.XpG(2);h.R7$(1),h.Y8G("ngForOf",ye.uploader.queue)}}function tn(Kt,Ye){if(1&Kt&&(h.qex(0),h.nrm(1,"img",26),h.bVm()),2&Kt){const ye=h.XpG().$implicit;h.R7$(1),h.Y8G("src",ye.fileUrl,h.B4B)("alt",ye.fileName)}}function vt(Kt,Ye){1&Kt&&(h.qSk(),h.j41(0,"svg",27),h.nrm(1,"path",28)(2,"path",29),h.k0s())}function Pt(Kt,Ye){if(1&Kt){const ye=h.RV6();h.j41(0,"div",32)(1,"button",25),h.bIt("click",function(){const K=h.eBV(ye).$implicit,ge=h.XpG(3);return h.Njj(ge.removeAttachment(K))}),h.EFF(2," \xd7 "),h.k0s(),h.j41(3,"div",18)(4,"div",19),h.DNE(5,tn,2,2,"ng-container",20),h.DNE(6,vt,3,0,"ng-template",null,33,h.C5r),h.k0s(),h.j41(8,"div",22)(9,"div",23),h.EFF(10),h.k0s(),h.j41(11,"div",24),h.EFF(12),h.k0s()()()()}if(2&Kt){const ye=Ye.$implicit,Se=h.sdS(7),Nt=h.XpG(3);h.R7$(5),h.Y8G("ngIf",Nt.isImageFile(ye.fileName))("ngIfElse",Se),h.R7$(4),h.Y8G("title",ye.fileName),h.R7$(1),h.JRh(Nt.truncateFileName(ye.fileName,20)),h.R7$(2),h.SpI(" ",Nt.formatFileSize(null==ye?null:ye.fileSize)," ")}}function me(Kt,Ye){if(1&Kt&&(h.j41(0,"div",30),h.DNE(1,Pt,13,5,"div",31),h.k0s()),2&Kt){const ye=h.XpG(2);h.R7$(1),h.Y8G("ngForOf",ye.attachments)}}const at=function(Kt){return{"file-over":Kt}};function ot(Kt,Ye){if(1&Kt){const ye=h.RV6();h.j41(0,"div")(1,"div",3),h.bIt("drop",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDrop(Nt))})("dragover",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDragOver(Nt))})("dragleave",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDragLeave(Nt))}),h.j41(2,"div",4)(3,"div",5),h.bIt("click",function(){h.eBV(ye);const Nt=h.XpG();return h.Njj(Nt.openFileDialog())}),h.qSk(),h.j41(4,"svg",6),h.nrm(5,"path",7)(6,"path",8)(7,"path",9),h.k0s()(),h.joV(),h.j41(8,"p"),h.EFF(9," Drag & Drop or to "),h.j41(10,"span",10),h.bIt("click",function(){h.eBV(ye);const Nt=h.XpG();return h.Njj(Nt.openFileDialog())}),h.EFF(11,"Choose file"),h.k0s(),h.EFF(12," to upload "),h.k0s()(),h.j41(13,"input",11,12),h.bIt("change",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onFileSelected(Nt))}),h.k0s()(),h.DNE(15,mt,2,1,"div",13),h.DNE(16,me,2,1,"div",14),h.k0s()}if(2&Kt){const ye=h.XpG();h.R7$(1),h.Y8G("ngClass",h.eq3(4,at,ye.hasAnotherDropZoneOver)),h.R7$(12),h.Y8G("multiple",ye.multiple),h.R7$(2),h.Y8G("ngIf",((null==ye.uploader||null==ye.uploader.queue?null:ye.uploader.queue.length)||0)>0),h.R7$(1),h.Y8G("ngIf",((null==ye.attachments?null:ye.attachments.length)||0)>0)}}function ht(Kt,Ye){if(1&Kt&&h.nrm(0,"img",45),2&Kt){const ye=h.XpG(2);h.Y8G("src",ye.previewUrl,h.B4B)}}const kt=function(Kt){return{"another-file-over-class":Kt}};function Tt(Kt,Ye){if(1&Kt){const ye=h.RV6();h.j41(0,"div",34)(1,"div",35),h.bIt("drop",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDrop(Nt))})("dragover",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDragOver(Nt))})("dragleave",function(Nt){h.eBV(ye);const K=h.XpG();return h.Njj(K.onDragLeave(Nt))}),h.j41(2,"div",36),h.bIt("click",function(){h.eBV(ye);const Nt=h.sdS(9);return h.Njj(Nt.click())}),h.DNE(3,ht,1,1,"img",37),h.k0s(),h.j41(4,"button",38),h.bIt("click",function(){h.eBV(ye);const Nt=h.sdS(9);return h.Njj(Nt.click())}),h.nrm(5,"i",39),h.k0s(),h.j41(6,"button",40),h.bIt("click",function(){h.eBV(ye);const Nt=h.XpG();return h.Njj(Nt.removeFile(Nt.uploader.queue[0]))}),h.nrm(7,"i",41),h.k0s(),h.nrm(8,"input",42,12)(10,"div",43),h.k0s(),h.nrm(11,"div",44),h.k0s()}if(2&Kt){const ye=h.XpG();h.R7$(2),h.Y8G("ngClass",h.eq3(3,kt,ye.hasAnotherDropZoneOver)),h.R7$(1),h.Y8G("ngIf",ye.previewUrl),h.R7$(5),h.Y8G("uploader",ye.uploader)}}let kn=(()=>{class Kt{constructor(){var ye;this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.total=0,this.previewUrl=null,this.deletedAttachments=[],this.totalSize="",this.fileAllowed=[],this.multiple=!1,this.avatarPicker=!1,this.attachments=[],this.fileSize="",this.fileTypeNotAllowed=new h.bkB,this.fileSizeAllowed=new h.bkB,this.finalArray=new h.bkB,this.deleteFiles=new h.bkB,this.imagePreviews={},this.uploader=new Oe({url:"URL",disableMultipart:!0,formatDataFunctionIsAsync:!0,formatDataFunction:(ye=(0,e.A)(function*(Se){return new Promise((Nt,K)=>{Nt({name:Se._file.name,length:Se._file.size,contentType:Se._file.type,date:new Date})})}),function(Nt){return ye.apply(this,arguments)})}),this.uploader.onAfterAddingFile=ye=>this.onAfterAddingFile(ye),this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.uploader.response.subscribe(ye=>this.response=ye)}ngOnInit(){this.avatarPicker&&(this.multiple=!1,this.fileAllowed=["image/jpeg","image/png","image/svg+xml","image/webp"]),this.files&&this.files.length>0&&this.rebindFilesToQueue(this.files)}rebindFilesToQueue(ye){ye.forEach(Se=>{const Nt=Se.file.rawFile||Se,K=new File([Nt],Nt.name,{type:Nt.type}),ge=new De(this.uploader,K,this.uploader.options);this.uploader.queue.push(ge)})}fileOverBase(ye){this.hasBaseDropZoneOver=ye}fileOverAnother(ye){this.hasAnotherDropZoneOver=ye}save(ye){this.finalArray.emit(this.uploader.queue)}onAfterAddingFile(ye){const Se=ye._file;!this.multiple&&this.uploader.queue?.length>1&&this.uploader.removeFromQueue(this.uploader.queue[0]),this.uploadFiles(ye),this.finalArray.emit(this.uploader.queue),!this.multiple&&this.attachments?.length>0&&this.removeAttachment(this.attachments[0]),this.isFileTypeAllowed(Se)?(Se.type.startsWith("image/")&&this.generateImagePreview(Se),this.avatarPicker&&this.showPreview(Se)):(this.fileTypeNotAllowed.emit(Se.type),this.uploader.removeFromQueue(ye))}generateImagePreview(ye){const Se=new FileReader;Se.onload=()=>{this.imagePreviews[ye.name]=Se.result},Se.readAsDataURL(ye)}isImageFile(ye){return/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/i.test(ye)}isFileTypeAllowed(ye){return this.fileAllowed.includes(ye.type)}uploadFiles(ye){this.fileSize&&ye._file.size>this.fileSize&&(this.fileSizeAllowed.emit("File size exceeds the limit"),this.uploader.removeFromQueue(ye)),this.total=0;for(const Se of this.uploader.queue)this.total+=Se._file.size;this.total>this.totalSize&&(this.fileSizeAllowed.emit("Total size exceeds the limit"),this.uploader.removeFromQueue(ye))}openFileDialog(){this.fileInput.nativeElement.click()}onFileSelected(ye){const Se=ye.target.files;if(Se)for(let Nt=0;Nt<Se.length;Nt++)this.uploader.addToQueue([Se[Nt]])}removeFile(ye){delete this.imagePreviews[ye._file.name],ye.remove(),this.finalArray.emit(this.uploader.queue),this.previewUrl="",this.fileInput?.nativeElement&&(this.fileInput.nativeElement.value="")}onDrop(ye){ye.preventDefault(),ye.stopPropagation();const Se=ye.dataTransfer?.files;if(Se){const Nt=Array.from(Se);this.uploader.addToQueue(Nt)}}onDragOver(ye){ye.preventDefault(),ye.stopPropagation(),this.hasAnotherDropZoneOver=!0}onDragLeave(ye){ye.preventDefault(),ye.stopPropagation(),this.hasAnotherDropZoneOver=!1}showPreview(ye){if(this.uploader.queue.length>0){const Se=new FileReader;Se.onload=()=>{this.previewUrl=Se.result},Se.readAsDataURL(ye)}}removeAttachment(ye){this.attachments=this.attachments.filter(Se=>Se.fileId!==ye.fileId),this.deletedAttachments.push(ye.fileId),this.deleteFiles.emit(this.deletedAttachments)}formatFileSize(ye){if(!ye)return"";const Se=["Bytes","KB","MB","GB","TB"];let Nt=0;for(;ye>=1024&&Nt<Se.length-1;)ye/=1024,Nt++;return`${ye.toFixed(2)} ${Se[Nt]}`}truncateFileName(ye,Se){if(!ye||ye.length<=Se)return ye;const Nt=ye.lastIndexOf(".");if(-1===Nt||0===Nt)return ye;const K=ye.slice(0,Nt),ge=ye.slice(Nt),je=Se-ge.length-3;return(K.length>je?K.slice(0,je)+"...":K)+ge}static{this.\u0275fac=function(Se){return new(Se||Kt)}}static{this.\u0275cmp=h.VBU({type:Kt,selectors:[["lib-docUpload"]],viewQuery:function(Se,Nt){if(1&Se&&h.GBs(Ue,5),2&Se){let K;h.mGM(K=h.lsd())&&(Nt.fileInput=K.first)}},inputs:{totalSize:"totalSize",fileAllowed:"fileAllowed",multiple:"multiple",avatarPicker:"avatarPicker",attachments:"attachments",files:"files",fileSize:"fileSize"},outputs:{fileTypeNotAllowed:"fileTypeNotAllowed",fileSizeAllowed:"fileSizeAllowed",finalArray:"finalArray",deleteFiles:"deleteFiles"},decls:3,vars:2,consts:[[1,"upload-container"],[4,"ngIf"],["class","row avatar-picker-container",4,"ngIf"],[1,"upload-dropzone",3,"ngClass","drop","dragover","dragleave"],[1,"dropzone-content"],["aria-label","Upload","title","Click to choose file",1,"upload-icon",3,"click"],["width","29","height","29","viewBox","0 0 29 29","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M14.5001 8.45833L14.5001 25.375","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M3.625 8.45898C3.625 5.78977 5.78912 3.62565 8.45833 3.62565L20.5417 3.62565C23.2109 3.62565 25.375 5.78978 25.375 8.45898","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M8.45843 14.5L14.5013 8.45712L20.543 14.5","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"choose-file-text",3,"click"],["type","file","hidden","",3,"multiple","change"],["fileInput",""],["class","file-queue",4,"ngIf"],["class","existing-attachments",4,"ngIf"],[1,"file-queue"],["class","file-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"file-item",3,"ngClass"],[1,"file-info"],[1,"icon"],[4,"ngIf","ngIfElse"],["showDefaultIcon",""],[1,"text-container"],[1,"file-name",3,"title"],[1,"file-meta"],["type","button","aria-label","Close",1,"close-btn",3,"click"],[1,"preview-image",3,"src","alt"],["width","38","height","38","viewBox","0 0 38 38","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M31.7332 6.26688C38.7662 13.2998 38.7662 24.7006 31.7332 31.7335C24.7003 38.7664 13.2996 38.7664 6.26664 31.7335C-0.766289 24.7006 -0.766289 13.2998 6.26664 6.26688C13.2996 -0.766044 24.7003 -0.766044 31.7332 6.26688","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.0028 13.9373H18.9998L17.5953 11.8705C17.2211 11.3242 16.6028 10.9961 15.9406 10.9961H11.9969C10.8925 10.9961 9.99609 11.8925 9.99609 12.9969V25.0019C9.99609 26.1064 10.8925 27.0028 11.9969 27.0028H26.0028C27.1072 27.0028 28.0036 26.1064 28.0036 25.0019V15.9382C28.0036 14.8337 27.1072 13.9373 26.0028 13.9373Z","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"existing-attachments"],["class","file-item",4,"ngFor","ngForOf"],[1,"file-item"],["defaultIcon",""],[1,"row","avatar-picker-container"],[1,"uploader",2,"margin-bottom","40px",3,"drop","dragover","dragleave"],[1,"avatarPicker",3,"ngClass","click"],["alt","File Preview","class","img-responsive preview-img",3,"src",4,"ngIf"],[1,"editIcon",3,"click"],[1,"bi","bi-pencil-fill"],[1,"deleteIcon",3,"click"],[1,"bi","bi-trash"],["type","file","ng2FileSelect","","hidden","",3,"uploader"],[1,"buttons"],[1,"col-sm-2","previewImage",2,"margin-bottom","40px"],["alt","File Preview",1,"img-responsive","preview-img",3,"src"]],template:function(Se,Nt){1&Se&&(h.j41(0,"div",0),h.DNE(1,ot,17,6,"div",1),h.DNE(2,Tt,12,5,"div",2),h.k0s()),2&Se&&(h.R7$(1),h.Y8G("ngIf",!Nt.avatarPicker),h.R7$(1),h.Y8G("ngIf",Nt.avatarPicker))},dependencies:[ne.YU,ne.Sq,ne.bT,Me],styles:[".upload-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:5px;font-family:sans-serif}.upload-dropzone[_ngcontent-%COMP%]{border:2px dashed #d8d8d8;border-radius:8px;padding:2rem;text-align:center;position:relative;cursor:pointer;transition:border-color .3s ease;width:100%}.upload-dropzone.file-over[_ngcontent-%COMP%]{border-color:#0f62fe;background-color:#f7faff}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{margin-bottom:.5rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6f6f6f;font-size:.95rem;margin:0}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]{color:#0f62fe;cursor:pointer;margin:0 4px}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]:hover{color:#0043ce}.file-queue[_ngcontent-%COMP%]{margin:1rem 0}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.file-queue[_ngcontent-%COMP%] .file-item.upload-complete[_ngcontent-%COMP%]{background-color:#f2f9ee;border:1px solid #c9e2b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;line-height:1;cursor:pointer;color:#333}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{color:#000}.existing-attachments[_ngcontent-%COMP%]{margin:1rem 0}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;cursor:pointer;color:#333}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.avatar-picker-container[_ngcontent-%COMP%] .uploader[_ngcontent-%COMP%]{position:relative}.avatar-picker-container[_ngcontent-%COMP%] .avatarPicker[_ngcontent-%COMP%]{border:1px solid #aaa;text-align:center;background-color:#f9f9f9;cursor:pointer;height:300px;width:300px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .another-file-over-class[_ngcontent-%COMP%]{border-color:#5cb85c}.avatar-picker-container[_ngcontent-%COMP%] .deleteIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:12%;left:41%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .editIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:13%;left:3%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-around}.preview-image[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%}"]})}}return Kt})(),dn=(()=>{class Kt{static{this.\u0275fac=function(Se){return new(Se||Kt)}}static{this.\u0275mod=h.$C({type:Kt})}static{this.\u0275inj=h.G2t({imports:[ne.MD,Ge]})}}return Kt})()},8031:(gn,ct,N)=>{N.d(ct,{pc:()=>zh,p0:()=>_h,YN:()=>_m,Kn:()=>Pf,mO:()=>Mp});var e=N(7705),h=N(5964),ne=N(6354),Z=N(6697),De=N(6977),we=N(3294);function Oe(s){return s<0?Math.ceil(s)||0:Math.floor(s)}function Fe(s){return"string"==typeof s}function Me(s){return s instanceof Date||"[object Date]"===Object.prototype.toString.call(s)}function Ue(s){return s&&s.getTime&&!isNaN(s.getTime())}function Ct(s){return s instanceof Function||"[object Function]"===Object.prototype.toString.call(s)}function _t(s){return"number"==typeof s||"[object Number]"===Object.prototype.toString.call(s)}function bt(s){return s instanceof Array||"[object Array]"===Object.prototype.toString.call(s)}function ft(s,c){return Object.prototype.hasOwnProperty.call(s,c)}function mt(s){return null!=s&&"[object Object]"===Object.prototype.toString.call(s)}function vt(s){return void 0===s}function Pt(s){const c=+s;let r=0;return 0!==c&&isFinite(c)&&(r=Oe(c)),r}const me={},at={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function ot(s,c){const r=s.toLowerCase();let m=s;r in at&&(m=at[r]),me[r]=me[`${r}s`]=me[c]=m}function ht(s){return Fe(s)?me[s]||me[s.toLowerCase()]:void 0}const Tt=0,cn=1,kn=2,dn=3,Kt=4,Ye=5,ye=6,Se=7,Nt=8;function K(s,c,r){const m=`${Math.abs(s)}`;return(s>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,c-m.length)).toString().substr(1)+m}const ge={},je={},le=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function de(s,c,r,m){s&&(je[s]=m),c&&(je[c[0]]=function(){return K(m.apply(null,arguments),c[1],c[2])}),r&&(je[r]=function(D,G){return G.locale.ordinal(m.apply(null,arguments),s)})}function ue(s){return s.match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"")}function He(s,c,r){const m=new Date(Date.UTC.apply(null,arguments));return s<100&&s>=0&&isFinite(m.getUTCFullYear())&&m.setUTCFullYear(s),m}function L(s,c=0,r=1,m=0,D=0,G=0,fe=0){const st=new Date(s,c,r,m,D,G,fe);return s<100&&s>=0&&isFinite(st.getFullYear())&&st.setFullYear(s),st}function q(s,c=!1){return c?s.getUTCHours():s.getHours()}function Be(s,c=!1){return c?s.getUTCMinutes():s.getMinutes()}function pt(s,c=!1){return c?s.getUTCSeconds():s.getSeconds()}function dt(s,c=!1){return c?s.getUTCMilliseconds():s.getMilliseconds()}function Cn(s,c=!1){return c?s.getUTCDay():s.getDay()}function jn(s,c=!1){return c?s.getUTCDate():s.getDate()}function sn(s,c=!1){return c?s.getUTCMonth():s.getMonth()}function Vn(s,c=!1){return c?s.getUTCFullYear():s.getFullYear()}function Ve(s,c){return!(!s||!c)&&ut(s,c)&&sn(s)===sn(c)}function ut(s,c){return!(!s||!c)&&Vn(s)===Vn(c)}function Ft(s,c){return!(!s||!c)&&ut(s,c)&&Ve(s,c)&&jn(s)===jn(c)}const on=/\d/,Ln=/\d\d/,Qt=/\d{3}/,Xt=/\d{4}/,nt=/[+-]?\d{6}/,Mt=/\d\d?/,Dt=/\d\d\d\d?/,Nn=/\d\d\d\d\d\d?/,yn=/\d{1,3}/,$n=/\d{1,4}/,di=/[+-]?\d{1,6}/,ai=/\d+/,Ai=/[+-]?\d+/,Bi=/Z|[+-]\d\d(?::?\d\d)?/gi,As=/[+-]?\d+(\.\d{1,3})?/,Ms=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,to={};function mn(s,c,r){to[s]=Ct(c)?c:function(m,D){return m&&r?r:c}}function Hs(s,c){return ft(to,s)?to[s](!1,c):new RegExp(function rn(s){return xt(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(c,r,m,D,G)=>r||m||D||G))}(s))}function xt(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const ve={};function Ae(s,c){const r=Fe(s)?[s]:s;let m=c;if(_t(c)&&(m=function(D,G,fe){return G[c]=Pt(D),fe}),bt(r)&&Ct(m)){let D;for(D=0;D<r.length;D++)ve[r[D]]=m}}function Ne(s,c){Ae(s,function(r,m,D,G){return D._w=D._w||{},c(r,D._w,D,G)})}function We(s,c,r){return null!=c&&ft(ve,s)&&ve[s](c,r._a,r,s),r}const qt={};function fn(s,c){qt[s]=c}function Ee(s){return null==s._pf&&(s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),s._pf}function Ke(s,c){return c.locale.getFullYear?c.locale.getFullYear(s,c.isUTC).toString():Vn(s,c.isUTC).toString()}function pn(s){return Pt(s)+(Pt(s)>68?1900:2e3)}function Je(s){return $e(s)?366:365}function $e(s){return s%4==0&&s%100!=0||s%400==0}function it(s,c){if(isNaN(s)||isNaN(c))return NaN;const r=function Ie(s,c){return(s%c+c)%c}(c,12);return 1===r?$e(s+(c-r)/12)?29:28:31-r%7%2}const nn={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function un(s,c){const r=Object.assign({},nn,c),m=s.getFullYear()+(r.year||0),D=s.getMonth()+(r.month||0);let G=s.getDate()+(r.day||0);return r.month&&!r.day&&(G=Math.min(G,it(m,D))),L(m,D,G,s.getHours()+(r.hour||0),s.getMinutes()+(r.minute||0),s.getSeconds()+(r.seconds||0))}function li(s,c){return _t(c)?c:s}function Mi(s,c,r){const m=Math.min(jn(s),it(Vn(s),c));return r?s.setUTCMonth(c,m):s.setMonth(c,m),s}function ki(s,c,r){return r?s.setUTCDate(c):s.setDate(c),s}function Rt(s){return new Date(s.getTime())}function oe(s,c,r){const m=Rt(s);switch(c){case"year":Mi(m,0,r);case"quarter":case"month":ki(m,1,r);case"week":case"isoWeek":case"day":case"date":!function bs(s,c,r){r?s.setUTCHours(c):s.setHours(c)}(m,0,r);case"hours":!function ds(s,c,r){r?s.setUTCMinutes(c):s.setMinutes(c)}(m,0,r);case"minutes":!function ps(s,c,r){r?s.setUTCSeconds(c):s.setSeconds(c)}(m,0,r);case"seconds":!function Ts(s,c,r){r?s.setUTCMilliseconds(c):s.setMilliseconds(c)}(m,0,r)}return"week"===c&&function ec(s,c,r={}){Li(s,c-Di(s,r.locale,r.isUTC),"day")}(m,0,{isUTC:r}),"isoWeek"===c&&function ao(s,c,r={}){const m=function Jr(s,c=Ti()){return Fe(s)?c.weekdaysParse(s)%7||7:_t(s)&&isNaN(s)?null:s}(c,r.locale);zo(s,function gs(s,c){return Cn(s,c)}(s)%7?m:m-7)}(m,1),"quarter"===c&&Mi(m,3*Math.floor(sn(m,r)/3),r),m}function _e(s,c,r){let m=c;return"date"===m&&(m="day"),function Yo(s,c,r,m){return as(s,ji(c,r),-1,m)}(Li(oe(s,m,r),1,"isoWeek"===m?"week":m,r),1,"milliseconds",r)}function Vt(s,c){const r=+oe(s,"day",c),m=+oe(s,"year",c);return Math.round((r-m)/864e5)+1}function In(s,c,r){const m=c-r+7;return-(He(s,0,m).getUTCDay()-c+7)%7+m-1}function mi(s,c,r,m){const D=In(Vn(s,m),c,r),G=Math.floor((Vt(s,m)-D-1)/7)+1;let fe,st;return G<1?(st=Vn(s,m)-1,fe=G+Kn(st,c,r)):G>Kn(Vn(s,m),c,r)?(fe=G-Kn(Vn(s,m),c,r),st=Vn(s,m)+1):(st=Vn(s,m),fe=G),{week:fe,year:st}}function Kn(s,c,r){const m=In(s,c,r),D=In(s+1,c,r);return(Je(s)-m+D)/7}const ri=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ki="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ls="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),la="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),os="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},wn=Ms,Ys=Ms;class ms{constructor(c){c&&this.set(c)}set(c){let r;for(r in c){if(!c.hasOwnProperty(r))continue;const m=c[r];this[Ct(m)?r:`_${r}`]=m}this._config=c}calendar(c,r,m){const D=this._calendar[c]||this._calendar.sameElse;return Ct(D)?D.call(null,r,m):D}longDateFormat(c){const r=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return r||!m?r:(this._longDateFormat[c]=m.replace(/MMMM|MM|DD|dddd/g,function(D){return D.slice(1)}),this._longDateFormat[c])}get invalidDate(){return this._invalidDate}set invalidDate(c){this._invalidDate=c}ordinal(c,r){return this._ordinal.replace("%d",c.toString(10))}preparse(c,r){return c}getFullYear(c,r=!1){return Vn(c,r)}postformat(c){return c}relativeTime(c,r,m,D){const G=this._relativeTime[m];return Ct(G)?G(c,r,m,D):G.replace(/%d/i,c.toString(10))}pastFuture(c,r){const m=this._relativeTime[c>0?"future":"past"];return Ct(m)?m(r):m.replace(/%s/i,r)}months(c,r,m=!1){if(!c)return bt(this._months)?this._months:this._months.standalone;if(bt(this._months))return this._months[sn(c,m)];const D=(this._months.isFormat||ri).test(r)?"format":"standalone";return this._months[D][sn(c,m)]}monthsShort(c,r,m=!1){if(!c)return bt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(bt(this._monthsShort))return this._monthsShort[sn(c,m)];const D=ri.test(r)?"format":"standalone";return this._monthsShort[D][sn(c,m)]}monthsParse(c,r,m){let D,G,fe;if(this._monthsParseExact)return this.handleMonthStrictParse(c,r,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),fe=0;fe<12;fe++){if(D=new Date(Date.UTC(2e3,fe)),m&&!this._longMonthsParse[fe]){const st=this.months(D,"",!0).replace(".",""),Yt=this.monthsShort(D,"",!0).replace(".","");this._longMonthsParse[fe]=new RegExp(`^${st}$`,"i"),this._shortMonthsParse[fe]=new RegExp(`^${Yt}$`,"i")}if(!m&&!this._monthsParse[fe]&&(G=`^${this.months(D,"",!0)}|^${this.monthsShort(D,"",!0)}`,this._monthsParse[fe]=new RegExp(G.replace(".",""),"i")),m&&"MMMM"===r&&this._longMonthsParse[fe].test(c)||m&&"MMM"===r&&this._shortMonthsParse[fe].test(c)||!m&&this._monthsParse[fe].test(c))return fe}}monthsRegex(c){return this._monthsParseExact?(ft(this,"_monthsRegex")||this.computeMonthsParse(),c?this._monthsStrictRegex:this._monthsRegex):(ft(this,"_monthsRegex")||(this._monthsRegex=Ys),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(c){return this._monthsParseExact?(ft(this,"_monthsRegex")||this.computeMonthsParse(),c?this._monthsShortStrictRegex:this._monthsShortRegex):(ft(this,"_monthsShortRegex")||(this._monthsShortRegex=wn),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}week(c,r){return mi(c,this._week.dow,this._week.doy,r).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(c,r,m){if(!c)return bt(this._weekdays)?this._weekdays:this._weekdays.standalone;if(bt(this._weekdays))return this._weekdays[Cn(c,m)];const D=this._weekdays.isFormat.test(r)?"format":"standalone";return this._weekdays[D][Cn(c,m)]}weekdaysMin(c,r,m){return c?this._weekdaysMin[Cn(c,m)]:this._weekdaysMin}weekdaysShort(c,r,m){return c?this._weekdaysShort[Cn(c,m)]:this._weekdaysShort}weekdaysParse(c,r,m){let D,G;if(this._weekdaysParseExact)return this.handleWeekStrictParse(c,r,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),D=0;D<7;D++){const fe=zo(new Date(Date.UTC(2e3,1)),D,null,!0);if(m&&!this._fullWeekdaysParse[D]&&(this._fullWeekdaysParse[D]=new RegExp(`^${this.weekdays(fe,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[D]=new RegExp(`^${this.weekdaysShort(fe,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[D]=new RegExp(`^${this.weekdaysMin(fe,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[D]||(G=`^${this.weekdays(fe,"",!0)}|^${this.weekdaysShort(fe,"",!0)}|^${this.weekdaysMin(fe,"",!0)}`,this._weekdaysParse[D]=new RegExp(G.replace(".",""),"i")),!(bt(this._fullWeekdaysParse)&&bt(this._shortWeekdaysParse)&&bt(this._minWeekdaysParse)&&bt(this._weekdaysParse)))return;if(m&&"dddd"===r&&this._fullWeekdaysParse[D].test(c))return D;if(m&&"ddd"===r&&this._shortWeekdaysParse[D].test(c))return D;if(m&&"dd"===r&&this._minWeekdaysParse[D].test(c))return D;if(!m&&this._weekdaysParse[D].test(c))return D}}weekdaysRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysStrictRegex:this._weekdaysRegex):(ft(this,"_weekdaysRegex")||(this._weekdaysRegex=Ms),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ft(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ms),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ft(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ms),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(c){return"p"===c.toLowerCase().charAt(0)}meridiem(c,r,m){return c>11?m?"pm":"PM":m?"am":"AM"}formatLongDate(c){this._longDateFormat=this._longDateFormat?this._longDateFormat:Bs;const r=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return r||!m?r:(this._longDateFormat[c]=m.replace(/MMMM|MM|DD|dddd/g,D=>D.slice(1)),this._longDateFormat[c])}handleMonthStrictParse(c,r,m){const D=c.toLocaleLowerCase();let G,fe,st;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],G=0;G<12;++G)st=new Date(2e3,G),this._shortMonthsParse[G]=this.monthsShort(st,"").toLocaleLowerCase(),this._longMonthsParse[G]=this.months(st,"").toLocaleLowerCase();return m?"MMM"===r?(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:null):(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:null):"MMM"===r?(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:null)):(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:null))}handleWeekStrictParse(c,r,m){let D;const G=c.toLocaleLowerCase();if(!this._weekdaysParse){let fe;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],fe=0;fe<7;++fe){const st=zo(new Date(Date.UTC(2e3,1)),fe,null,!0);this._minWeekdaysParse[fe]=this.weekdaysMin(st).toLocaleLowerCase(),this._shortWeekdaysParse[fe]=this.weekdaysShort(st).toLocaleLowerCase(),this._weekdaysParse[fe]=this.weekdays(st,"").toLocaleLowerCase()}}if(bt(this._weekdaysParse)&&bt(this._shortWeekdaysParse)&&bt(this._minWeekdaysParse))return m?"dddd"===r?(D=this._weekdaysParse.indexOf(G),-1!==D?D:null):"ddd"===r?(D=this._shortWeekdaysParse.indexOf(G),-1!==D?D:null):(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null):"dddd"===r?(D=this._weekdaysParse.indexOf(G),-1!==D||(D=this._shortWeekdaysParse.indexOf(G),-1!==D)?D:(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null)):"ddd"===r?(D=this._shortWeekdaysParse.indexOf(G),-1!==D||(D=this._weekdaysParse.indexOf(G),-1!==D)?D:(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null)):(D=this._minWeekdaysParse.indexOf(G),-1!==D||(D=this._weekdaysParse.indexOf(G),-1!==D)?D:(D=this._shortWeekdaysParse.indexOf(G),-1!==D?D:null))}computeMonthsParse(){const c=[],r=[],m=[];let D,G;for(G=0;G<12;G++)D=new Date(2e3,G),c.push(this.monthsShort(D,"")),r.push(this.months(D,"")),m.push(this.months(D,"")),m.push(this.monthsShort(D,""));for(c.sort(mo),r.sort(mo),m.sort(mo),G=0;G<12;G++)c[G]=xt(c[G]),r[G]=xt(r[G]);for(G=0;G<24;G++)m[G]=xt(m[G]);this._monthsRegex=new RegExp(`^(${m.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${r.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${c.join("|")})`,"i")}computeWeekdaysParse(){const c=[],r=[],m=[],D=[];let G;for(G=0;G<7;G++){const fe=zo(new Date(Date.UTC(2e3,1)),G,null,!0),st=this.weekdaysMin(fe),Yt=this.weekdaysShort(fe),Bn=this.weekdays(fe);c.push(st),r.push(Yt),m.push(Bn),D.push(st),D.push(Yt),D.push(Bn)}for(c.sort(mo),r.sort(mo),m.sort(mo),D.sort(mo),G=0;G<7;G++)r[G]=xt(r[G]),m[G]=xt(m[G]),D[G]=xt(D[G]);this._weekdaysRegex=new RegExp(`^(${D.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${m.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${c.join("|")})`,"i")}}function mo(s,c){return c.length-s.length}const To={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Bs,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ki,monthsShort:Ls,week:{dow:0,doy:6},weekdays:la,weekdaysMin:os,weekdaysShort:er,meridiemParse:/[ap]\.?m?\.?/i};function zs(s,c,r){const m=Math.min(s.length,c.length),D=Math.abs(s.length-c.length);let fe,G=0;for(fe=0;fe<m;fe++)(r&&s[fe]!==c[fe]||!r&&Pt(s[fe])!==Pt(c[fe]))&&G++;return G+D}function Rs(s,c){de(null,[s,s.length,!1],null,c)}function no(s,c){return Vi(s,c.locale).toString()}function Lo(s){return ei(s).toString()}function Vi(s,c=Ti(),r){return mi(s,c.firstDayOfWeek(),c.firstDayOfYear(),r).year}function ei(s,c){return mi(s,1,4,c).year}function Ri(s,c){de(s,null,null,function(r,m){let D=function Es(s,c={}){return c._isUTC?c._offset||0:function Or(s){return 15*-Math.round(s.getTimezoneOffset()/15)}(s)}(r,{_isUTC:m.isUTC,_offset:m.offset}),G="+";return D<0&&(D=-D,G="-"),G+K(~~(D/60),2)+c+K(~~D%60,2)})}const rs=/([\+\-]|\d\d)/gi;const ws={},Bo={};let ir;function Ss(s){return s&&s.toLowerCase().replace("_","-")}function zi(s){return ws[s]||console.error(`Khronos locale error: please load locale "${s}" before using it`),ws[s]}function fr(s,c){let r;return s&&(vt(c)?r=Ti(s):Fe(s)&&(r=Vo(s,c)),r&&(ir=r)),ir&&ir._abbr}function Vo(s,c){if(null===c)return delete ws[s],ir=Ti("en"),null;if(!c)return;let r=To;if(c.abbr=s,null!=c.parentLocale){if(null==ws[c.parentLocale])return Bo[c.parentLocale]||(Bo[c.parentLocale]=[]),Bo[c.parentLocale].push({name:s,config:c}),null;r=ws[c.parentLocale]._config}return ws[s]=new ms(function Ns(s,c){const r=Object.assign({},s);for(const m in c)ft(c,m)&&(mt(s[m])&&mt(c[m])?(r[m]={},Object.assign(r[m],s[m]),Object.assign(r[m],c[m])):null!=c[m]?r[m]=c[m]:delete r[m]);for(const m in s)ft(s,m)&&!ft(c,m)&&mt(s[m])&&(r[m]=Object.assign({},r[m]));return r}(r,c)),Bo[s]&&Bo[s].forEach(function(m){Vo(m.name,m.config)}),fr(s),ws[s]}function Ti(s){return function cl(){ws.en||(fr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(s){const c=s%10;return s+(1===Pt(s%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),function bi(){de("w",["ww",2,!1],"wo",function(s,c){return function Yi(s,c=Ti(),r){return c.week(s,r)}(s,c.locale).toString(10)}),de("W",["WW",2,!1],"Wo",function(s){return function Cs(s,c){return mi(s,1,4,c).week}(s).toString(10)}),ot("week","w"),ot("isoWeek","W"),fn("week",5),fn("isoWeek",5),mn("w",Mt),mn("ww",Mt,Ln),mn("W",Mt),mn("WW",Mt,Ln),Ne(["w","ww","W","WW"],function(s,c,r,m){return c[m.substr(0,1)]=Pt(s),r})}(),function xr(){de(null,["gg",2,!1],null,function(s,c){return(Vi(s,c.locale)%100).toString()}),de(null,["GG",2,!1],null,function(s){return(ei(s)%100).toString()}),Rs("gggg",no),Rs("ggggg",no),Rs("GGGG",Lo),Rs("GGGGG",Lo),ot("weekYear","gg"),ot("isoWeekYear","GG"),fn("weekYear",1),fn("isoWeekYear",1),mn("G",Ai),mn("g",Ai),mn("GG",Mt,Ln),mn("gg",Mt,Ln),mn("GGGG",$n,Xt),mn("gggg",$n,Xt),mn("GGGGG",di,nt),mn("ggggg",di,nt),Ne(["gggg","ggggg","GGGG","GGGGG"],function(s,c,r,m){return c[m.substr(0,2)]=Pt(s),r}),Ne(["gg","GG"],function(s,c,r,m){return c[m]=pn(s),r})}(),function jt(){de("Y",null,null,function(s,c){const r=Vn(s,c.isUTC);return r<=9999?r.toString(10):`+${r}`}),de(null,["YY",2,!1],null,function(s,c){return(Vn(s,c.isUTC)%100).toString(10)}),de(null,["YYYY",4,!1],null,Ke),de(null,["YYYYY",5,!1],null,Ke),de(null,["YYYYYY",6,!0],null,Ke),ot("year","y"),fn("year",1),mn("Y",Ai),mn("YY",Mt,Ln),mn("YYYY",$n,Xt),mn("YYYYY",di,nt),mn("YYYYYY",di,nt),Ae(["YYYYY","YYYYYY"],Tt),Ae("YYYY",function(s,c,r){return c[Tt]=2===s.length?pn(s):Pt(s),r}),Ae("YY",function(s,c,r){return c[Tt]=pn(s),r}),Ae("Y",function(s,c,r){return c[Tt]=parseInt(s,10),r})}(),function Qo(){de("z",null,null,function(s,c){return c.isUTC?"UTC":""}),de("zz",null,null,function(s,c){return c.isUTC?"Coordinated Universal Time":""})}(),function oo(){de("X",null,null,function(s){return function yi(s){return Math.floor(s.valueOf()/1e3)}(s).toString(10)}),de("x",null,null,function(s){return s.valueOf().toString(10)}),mn("x",Ai),mn("X",As),Ae("X",function(s,c,r){return r._d=new Date(1e3*parseFloat(s)),r}),Ae("x",function(s,c,r){return r._d=new Date(Pt(s)),r})}(),function ti(){de("s",["ss",2,!1],null,function(s,c){return pt(s,c.isUTC).toString(10)}),ot("second","s"),fn("second",15),mn("s",Mt),mn("ss",Mt,Ln),Ae(["s","ss"],Ye)}(),function Yr(){de("Q",null,"Qo",function(s,c){return function Aa(s,c=!1){return Math.ceil((sn(s,c)+1)/3)}(s,c.isUTC).toString(10)}),ot("quarter","Q"),fn("quarter",7),mn("Q",on),Ae("Q",function(s,c,r){return c[cn]=3*(Pt(s)-1),r})}(),function zr(){Ri("Z",":"),Ri("ZZ",""),mn("Z",Bi),mn("ZZ",Bi),Ae(["Z","ZZ"],function(s,c,r){return r._useUTC=!0,r._tzm=function So(s,c){const r=(c||"").match(s);if(null===r)return null;const D=r[r.length-1].match(rs)||["-","0","0"],G=60*parseInt(D[1],10)+Pt(D[2]);return 0===G?0:"+"===D[0]?G:-G}(Bi,s),r})}(),function Zt(){de("M",["MM",2,!1],"Mo",function(s,c){return(sn(s,c.isUTC)+1).toString(10)}),de("MMM",null,null,function(s,c){return c.locale.monthsShort(s,c.format,c.isUTC)}),de("MMMM",null,null,function(s,c){return c.locale.months(s,c.format,c.isUTC)}),ot("month","M"),fn("month",8),mn("M",Mt),mn("MM",Mt,Ln),mn("MMM",function(s,c){return c.monthsShortRegex(s)}),mn("MMMM",function(s,c){return c.monthsRegex(s)}),Ae(["M","MM"],function(s,c,r){return c[cn]=Pt(s)-1,r}),Ae(["MMM","MMMM"],function(s,c,r,m){const D=r._locale.monthsParse(s,m,r._strict);return null!=D?c[cn]=D:Ee(r).invalidMonth=!!s,r})}(),function Rr(){de("m",["mm",2,!1],null,function(s,c){return Be(s,c.isUTC).toString(10)}),ot("minute","m"),fn("minute",14),mn("m",Mt),mn("mm",Mt,Ln),Ae(["m","mm"],Kt)}(),function hr(){let s;for(de("S",null,null,function(r,m){return(~~(dt(r,m.isUTC)/100)).toString(10)}),de(null,["SS",2,!1],null,function(r,m){return(~~(dt(r,m.isUTC)/10)).toString(10)}),de(null,["SSS",3,!1],null,function(r,m){return dt(r,m.isUTC).toString(10)}),de(null,["SSSS",4,!1],null,function(r,m){return(10*dt(r,m.isUTC)).toString(10)}),de(null,["SSSSS",5,!1],null,function(r,m){return(100*dt(r,m.isUTC)).toString(10)}),de(null,["SSSSSS",6,!1],null,function(r,m){return(1e3*dt(r,m.isUTC)).toString(10)}),de(null,["SSSSSSS",7,!1],null,function(r,m){return(1e4*dt(r,m.isUTC)).toString(10)}),de(null,["SSSSSSSS",8,!1],null,function(r,m){return(1e5*dt(r,m.isUTC)).toString(10)}),de(null,["SSSSSSSSS",9,!1],null,function(r,m){return(1e6*dt(r,m.isUTC)).toString(10)}),ot("millisecond","ms"),fn("millisecond",16),mn("S",yn,on),mn("SS",yn,Ln),mn("SSS",yn,Qt),s="SSSS";s.length<=9;s+="S")mn(s,ai);function c(r,m,D){return m[ye]=Pt(1e3*parseFloat(`0.${r}`)),D}for(s="S";s.length<=9;s+="S")Ae(s,c)}(),function ro(){function s(D,G){return q(D,G)%12||12}function r(D,G){de(D,null,null,function(fe,st){return st.locale.meridiem(q(fe,st.isUTC),Be(fe,st.isUTC),G)})}function m(D,G){return G._meridiemParse}de("H",["HH",2,!1],null,function(D,G){return q(D,G.isUTC).toString(10)}),de("h",["hh",2,!1],null,function(D,G){return s(D,G.isUTC).toString(10)}),de("k",["kk",2,!1],null,function(D,G){return function c(D,G){return q(D,G)||24}(D,G.isUTC).toString(10)}),de("hmm",null,null,function(D,G){return`${s(D,G.isUTC)}${K(Be(D,G.isUTC),2)}`}),de("hmmss",null,null,function(D,G){return`${s(D,G.isUTC)}${K(Be(D,G.isUTC),2)}${K(pt(D,G.isUTC),2)}`}),de("Hmm",null,null,function(D,G){return`${q(D,G.isUTC)}${K(Be(D,G.isUTC),2)}`}),de("Hmmss",null,null,function(D,G){return`${q(D,G.isUTC)}${K(Be(D,G.isUTC),2)}${K(pt(D,G.isUTC),2)}`}),r("a",!0),r("A",!1),ot("hour","h"),fn("hour",13),mn("a",m),mn("A",m),mn("H",Mt),mn("h",Mt),mn("k",Mt),mn("HH",Mt,Ln),mn("hh",Mt,Ln),mn("kk",Mt,Ln),mn("hmm",Dt),mn("hmmss",Nn),mn("Hmm",Dt),mn("Hmmss",Nn),Ae(["H","HH"],dn),Ae(["k","kk"],function(D,G,fe){const st=Pt(D);return G[dn]=24===st?0:st,fe}),Ae(["a","A"],function(D,G,fe){return fe._isPm=fe._locale.isPM(D),fe._meridiem=D,fe}),Ae(["h","hh"],function(D,G,fe){return G[dn]=Pt(D),Ee(fe).bigHour=!0,fe}),Ae("hmm",function(D,G,fe){const st=D.length-2;return G[dn]=Pt(D.substr(0,st)),G[Kt]=Pt(D.substr(st)),Ee(fe).bigHour=!0,fe}),Ae("hmmss",function(D,G,fe){const st=D.length-4,Yt=D.length-2;return G[dn]=Pt(D.substr(0,st)),G[Kt]=Pt(D.substr(st,2)),G[Ye]=Pt(D.substr(Yt)),Ee(fe).bigHour=!0,fe}),Ae("Hmm",function(D,G,fe){const st=D.length-2;return G[dn]=Pt(D.substr(0,st)),G[Kt]=Pt(D.substr(st)),fe}),Ae("Hmmss",function(D,G,fe){const st=D.length-4,Yt=D.length-2;return G[dn]=Pt(D.substr(0,st)),G[Kt]=Pt(D.substr(st,2)),G[Ye]=Pt(D.substr(Yt)),fe})}(),function et(){de("DDD",["DDDD",3,!1],"DDDo",function(s){return Vt(s).toString(10)}),ot("dayOfYear","DDD"),fn("dayOfYear",4),mn("DDD",yn),mn("DDDD",Qt),Ae(["DDD","DDDD"],function(s,c,r){return r._dayOfYear=Pt(s),r})}(),function Io(){de("d",null,"do",function(s,c){return Cn(s,c.isUTC).toString(10)}),de("dd",null,null,function(s,c){return c.locale.weekdaysMin(s,c.format,c.isUTC)}),de("ddd",null,null,function(s,c){return c.locale.weekdaysShort(s,c.format,c.isUTC)}),de("dddd",null,null,function(s,c){return c.locale.weekdays(s,c.format,c.isUTC)}),de("e",null,null,function(s,c){return Di(s,c.locale,c.isUTC).toString(10)}),de("E",null,null,function(s,c){return function ma(s,c){return Cn(s,c)||7}(s,c.isUTC).toString(10)}),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),fn("day",11),fn("weekday",11),fn("isoWeekday",11),mn("d",Mt),mn("e",Mt),mn("E",Mt),mn("dd",function(s,c){return c.weekdaysMinRegex(s)}),mn("ddd",function(s,c){return c.weekdaysShortRegex(s)}),mn("dddd",function(s,c){return c.weekdaysRegex(s)}),Ne(["dd","ddd","dddd"],function(s,c,r,m){const D=r._locale.weekdaysParse(s,m,r._strict);return null!=D?c.d=D:Ee(r).invalidWeekday=!!s,r}),Ne(["d","e","E"],function(s,c,r,m){return c[m]=Pt(s),r})}(),function gt(){de("D",["DD",2,!1],"Do",function(s,c){return jn(s,c.isUTC).toString(10)}),ot("date","D"),fn("date",9),mn("D",Mt),mn("DD",Mt,Ln),mn("Do",function(s,c){return c._dayOfMonthOrdinalParse||c._ordinalParse}),Ae(["D","DD"],kn),Ae("Do",function(s,c,r){return c[kn]=Pt(s.match(Mt)[0]),r})}())}(),s?function qr(s){let c,r,m=0;for(;m<s.length;){const D=Ss(s[m]).split("-");let G=D.length;for(c=Ss(s[m+1]),c=c?c.split("-"):null;G>0;){if(r=zi(D.slice(0,G).join("-")),r)return r;if(c&&c.length>=G&&zs(D,c,!0)>=G-1)break;G--}m++}return null}(bt(s)?s:[s]):ir}const Ma=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],Rl=Ma.reduce((s,c)=>(s[c]=!0,s),{});function J(s){return s<0?Math.floor(s):Math.ceil(s)}function U(s){return 4800*s/146097}function Ce(s){return 146097*s/4800}let Ze=Math.round;const Yn_ss=44,Yn_s=45,Yn_m=45,Yn_h=22,Yn_d=26,Yn_M=11;function _i(s,c,r,m,D){return D.relativeTime(c||1,!!r,s,m)}class vc{constructor(c,r={}){this._data={},this._locale=Ti(),this._locale=r&&r._locale||Ti();const D=c.year||0,G=c.quarter||0,fe=c.month||0,st=c.week||0,Yt=c.day||0,Bn=c.hours||0,Qn=c.minutes||0,ls=c.seconds||0,Us=c.milliseconds||0;return this._isValid=function sr(s){if(Object.keys(s).some(m=>m in Rl&&null===s[m]||isNaN(s[m])))return!1;let r=!1;for(let m=0;m<Ma.length;++m)if(s[Ma[m]]){if(r)return!1;s[Ma[m]]!==Pt(s[Ma[m]])&&(r=!0)}return!0}(c),this._milliseconds=+Us+1e3*ls+60*Qn*1e3+1e3*Bn*60*60,this._days=+Yt+7*st,this._months=+fe+3*G+12*D,function ee(s){let c=s._milliseconds,r=s._days,m=s._months;const D=s._data;c>=0&&r>=0&&m>=0||c<=0&&r<=0&&m<=0||(c+=864e5*J(Ce(m)+r),r=0,m=0),D.milliseconds=c%1e3;const G=Oe(c/1e3);D.seconds=G%60;const fe=Oe(G/60);D.minutes=fe%60;const st=Oe(fe/60);D.hours=st%24,r+=Oe(st/24);const Yt=Oe(U(r));m+=Yt,r-=J(Ce(Yt));const Bn=Oe(m/12);return m%=12,D.day=r,D.month=m,D.year=Bn,s}(this)}isValid(){return this._isValid}humanize(c){if(!this.isValid())return this.localeData().invalidDate;const r=this.localeData();let m=function wr(s,c,r){const m=ji(s).abs(),D=Ze(m.as("s")),G=Ze(m.as("m")),fe=Ze(m.as("h")),st=Ze(m.as("d")),Yt=Ze(m.as("M")),Bn=Ze(m.as("y")),Qn=D<=Yn_ss&&["s",D]||D<Yn_s&&["ss",D]||G<=1&&["m"]||G<Yn_m&&["mm",G]||fe<=1&&["h"]||fe<Yn_h&&["hh",fe]||st<=1&&["d"]||st<Yn_d&&["dd",st]||Yt<=1&&["M"]||Yt<Yn_M&&["MM",Yt]||Bn<=1&&["y"]||["yy",Bn];return _i.apply(null,[Qn[0],Qn[1],c,+s>0,r])}(this,!c,r);return c&&(m=r.pastFuture(+this,m)),r.postformat(m)}localeData(){return this._locale}locale(c){return c?(this._locale=Ti(c)||this._locale,this):this._locale._abbr}abs(){const c=Math.abs,r=this._data;return this._milliseconds=c(this._milliseconds),this._days=c(this._days),this._months=c(this._months),r.milliseconds=c(r.milliseconds),r.seconds=c(r.seconds),r.minutes=c(r.minutes),r.hours=c(r.hours),r.month=c(r.month),r.year=c(r.year),this}as(c){if(!this.isValid())return NaN;let r,m;const D=this._milliseconds,G=ht(c);if("month"===G||"year"===G)return r=this._days+D/864e5,m=this._months+U(r),"month"===G?m:m/12;switch(r=this._days+Math.round(Ce(this._months)),G){case"week":return r/7+D/6048e5;case"day":return r+D/864e5;case"hours":return 24*r+D/36e5;case"minutes":return 1440*r+D/6e4;case"seconds":return 86400*r+D/1e3;case"milliseconds":return Math.floor(864e5*r)+D;default:throw new Error(`Unknown unit ${G}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Pt(this._months/12):NaN}}function ul(s){if(null==s._isValid){const c=Ee(s),r=Array.prototype.some.call(c.parsedDateParts,function(D){return null!=D});let m=!isNaN(s._d&&s._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&r);if(s._strict&&(m=m&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(s))return m;s._isValid=m}return s._isValid}function el(s,c){return s._d=new Date(NaN),Object.assign(Ee(s),c||{userInvalidated:!0}),s}const yc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ha=/Z|[+-]\d\d(?::?\d\d)?/,jo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Go=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pr=/^\/?Date\((\-?\d+)/i,Nl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},vo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Wr(s){if(!Fe(s._i))return s;const c=s._i,r=yc.exec(c)||hl.exec(c);let m,D,G,fe,st,Yt;if(!r)return s._isValid=!1,s;for(st=0,Yt=jo.length;st<Yt;st++)if(jo[st][1].exec(r[1])){D=jo[st][0],m=!1!==jo[st][2];break}if(null==D)return s._isValid=!1,s;if(r[3]){for(st=0,Yt=Go.length;st<Yt;st++)if(Go[st][1].exec(r[3])){G=(r[2]||" ")+Go[st][0];break}if(null==G)return s._isValid=!1,s}if(!m&&null!=G)return s._isValid=!1,s;if(r[4]){if(!ha.exec(r[4]))return s._isValid=!1,s;fe="Z"}return s._f=D+(G||"")+(fe||""),ks(s)}function Pa(s){const c=parseInt(s,10);return c<=49?c+2e3:c}function ko(s){if(!Fe(s._i))return s;const c=vo.exec(function fl(s){return s.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(s._i));if(!c)return function Ql(s){return s._isValid=!1,s}(s);const r=function $o(s,c,r,m,D,G){const fe=[Pa(s),Ls.indexOf(c),parseInt(r,10),parseInt(m,10),parseInt(D,10)];return G&&fe.push(parseInt(G,10)),fe}(c[4],c[3],c[2],c[5],c[6],c[7]);return function or(s,c,r){return!s||er.indexOf(s)===new Date(c[0],c[1],c[2]).getDay()||(Ee(r).weekdayMismatch=!0,r._isValid=!1,!1)}(c[1],r,s)&&(s._a=r,s._tzm=function La(s,c,r){if(s)return Nl[s];if(c)return 0;{const m=parseInt(r,10),D=m%100;return(m-D)/100*60+D}}(c[8],c[9],c[10]),s._d=He.apply(null,s._a),s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),Ee(s).rfc2822=!0),s}function Uo(s,c,r,m,D=0){const G=Ti(r||"en");if(!G)throw new Error(`Locale "${r}" is not defined, please add it with "defineLocale(...)"`);const st=function Fr(s,c,r,m,D=0){if(!Ue(s))return r.invalidDate;const G=Ta(c,r);return ge[G]=ge[G]||function Le(s){const c=s.match(le),r=c.length,m=new Array(r);for(let D=0;D<r;D++)m[D]=je[c[D]]?je[c[D]]:ue(c[D]);return function(D,G,fe,st=0){let Yt="";for(let Bn=0;Bn<r;Bn++)Yt+=Ct(m[Bn])?m[Bn].call(null,D,{format:s,locale:G,isUTC:fe,offset:st}):m[Bn];return Yt}}(G),ge[G](s,r,m,D)}(s,c||(m?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),G,m,D);return st&&G.postformat(st)}function Ta(s,c){let r=s,m=5;const D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G=fe=>c.formatLongDate(fe)||fe;for(D.lastIndex=0;m>=0&&D.test(r);)r=r.replace(D,G),D.lastIndex=0,m-=1;return r}function Ho(s,c,r){return s??c??r}function rr(s){const c=[];let r,m,D;if(s._d)return s;const G=function pl(s){const c=new Date;return s._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}(s);for(s._w&&null==s._a[kn]&&null==s._a[cn]&&function pa(s){let c,r,m,D,G,fe,st;const Yt=s._w;if(null!=Yt.GG||null!=Yt.W||null!=Yt.E)D=1,G=4,c=Ho(Yt.GG,s._a[Tt],mi(new Date,1,4).year),r=Ho(Yt.W,1),m=Ho(Yt.E,1),(m<1||m>7)&&(st=!0);else{D=s._locale._week.dow,G=s._locale._week.doy;const Bn=mi(new Date,D,G);c=Ho(Yt.gg,s._a[Tt],Bn.year),r=Ho(Yt.w,Bn.week),null!=Yt.d?(m=Yt.d,(m<0||m>6)&&(st=!0)):null!=Yt.e?(m=Yt.e+D,(Yt.e<0||Yt.e>6)&&(st=!0)):m=D}r<1||r>Kn(c,D,G)?Ee(s)._overflowWeeks=!0:null!=st?Ee(s)._overflowWeekday=!0:(fe=function Hn(s,c,r,m,D){const st=1+7*(c-1)+(7+r-m)%7+In(s,m,D);let Yt,Bn;return st<=0?(Yt=s-1,Bn=Je(Yt)+st):st>Je(s)?(Yt=s+1,Bn=st-Je(s)):(Yt=s,Bn=st),{year:Yt,dayOfYear:Bn}}(c,r,m,D,G),s._a[Tt]=fe.year,s._dayOfYear=fe.dayOfYear)}(s),null!=s._dayOfYear&&(D=Ho(s._a[Tt],G[Tt]),(s._dayOfYear>Je(D)||0===s._dayOfYear)&&(Ee(s)._overflowDayOfYear=!0),m=new Date(Date.UTC(D,0,s._dayOfYear)),s._a[cn]=m.getUTCMonth(),s._a[kn]=m.getUTCDate()),r=0;r<3&&null==s._a[r];++r)s._a[r]=c[r]=G[r];for(;r<7;r++)s._a[r]=c[r]=null==s._a[r]?2===r?1:0:s._a[r];24===s._a[dn]&&0===s._a[Kt]&&0===s._a[Ye]&&0===s._a[ye]&&(s._nextDay=!0,s._a[dn]=0),s._d=(s._useUTC?He:L).apply(null,c);const fe=s._useUTC?s._d.getUTCDay():s._d.getDay();return null!=s._tzm&&s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),s._nextDay&&(s._a[dn]=24),s._w&&typeof s._w.d<"u"&&s._w.d!==fe&&(Ee(s).weekdayMismatch=!0),s}function Ei(s){let c;const r=s._a;return r&&-2===Ee(s).overflow&&(c=r[cn]<0||r[cn]>11?cn:r[kn]<1||r[kn]>it(r[Tt],r[cn])?kn:r[dn]<0||r[dn]>24||24===r[dn]&&(0!==r[Kt]||0!==r[Ye]||0!==r[ye])?dn:r[Kt]<0||r[Kt]>59?Kt:r[Ye]<0||r[Ye]>59?Ye:r[ye]<0||r[ye]>999?ye:-1,Ee(s)._overflowDayOfYear&&(c<Tt||c>kn)&&(c=kn),Ee(s)._overflowWeeks&&-1===c&&(c=Se),Ee(s)._overflowWeekday&&-1===c&&(c=Nt),Ee(s).overflow=c),s}const Kr="ISO_8601",Fl="RFC_2822";function ks(s){if(s._f===Kr)return Wr(s);if(s._f===Fl)return ko(s);if(s._a=[],Ee(s).empty=!0,bt(s._f)||!s._i&&0!==s._i)return s;let c=s._i.toString(),r=0;const m=c.length,D=Ta(s._f,s._locale).match(le)||[];let G,fe,st,Yt;for(G=0;G<D.length;G++)fe=D[G],st=(c.match(Hs(fe,s._locale))||[])[0],st&&(Yt=c.substr(0,c.indexOf(st)),Yt.length>0&&Ee(s).unusedInput.push(Yt),c=c.slice(c.indexOf(st)+st.length),r+=st.length),je[fe]?(st?Ee(s).empty=!1:Ee(s).unusedTokens.push(fe),We(fe,st,s)):s._strict&&!st&&Ee(s).unusedTokens.push(fe);return Ee(s).charsLeftOver=m-r,c.length>0&&Ee(s).unusedInput.push(c),s._a[dn]<=12&&!0===Ee(s).bigHour&&s._a[dn]>0&&(Ee(s).bigHour=void 0),Ee(s).parsedDateParts=s._a.slice(0),Ee(s).meridiem=s._meridiem,s._a[dn]=function Ba(s,c,r){let m=c;if(null==r)return m;if(null!=s.meridiemHour)return s.meridiemHour(m,r);if(null==s.isPM)return m;const D=s.isPM(r);return D&&m<12&&(m+=12),!D&&12===m&&(m=0),m}(s._locale,s._a[dn],s._meridiem),rr(s),Ei(s)}function Jl(s){const c=Ei(function Al(s){let c=s._i;const r=s._f;return s._locale=s._locale||Ti(s._l),null===c||void 0===r&&""===c?el(s,{nullInput:!0}):(Fe(c)&&(s._i=c=s._locale.preparse(c,r)),Me(c)?(s._d=Rt(c),s):(bt(r)?function tl(s){let c,r,m,D,G;if(!s._f||0===s._f.length)return Ee(s).invalidFormat=!0,el(s);for(G=0;G<s._f.length;G++)D=0,c=Object.assign({},s),null!=s._useUTC&&(c._useUTC=s._useUTC),c._f=s._f[G],ks(c),ul(c)&&(D+=Ee(c).charsLeftOver,D+=10*Ee(c).unusedTokens.length,Ee(c).score=D,(null==m||D<m)&&(m=D,r=c));Object.assign(s,r||c)}(s):r?ks(s):function Pi(s){const c=s._i;if(vt(c))s._d=new Date;else if(Me(c))s._d=Rt(c);else if(Fe(c))!function fa(s){if(!Fe(s._i))return s;const c=pr.exec(s._i);null!==c?s._d=new Date(+c[1]):(Wr(s),!1!==s._isValid||(delete s._isValid,ko(s),!1!==s._isValid||(delete s._isValid,el(s))))}(s);else if(bt(c)&&c.length){const r=c.slice(0);s._a=r.map(m=>Fe(m)?parseInt(m,10):m),rr(s)}else if(mt(c))!function Zl(s){if(s._d)return s;const c=s._i;if(mt(c)){const r=function kt(s){const c={};let r,m;for(m in s)ft(s,m)&&(r=ht(m),r&&(c[r]=s[m]));return c}(c);s._a=[r.year,r.month,r.day,r.hours,r.minutes,r.seconds,r.milliseconds].map(m=>Fe(m)?parseInt(m,10):m)}return rr(s)}(s);else{if(!_t(c))return el(s);s._d=new Date(c)}}(s),ul(s)||(s._d=null),s))}(s));return c._d=new Date(null!=c._d?c._d.getTime():NaN),ul(Object.assign({},c,{_isValid:null}))||(c._d=new Date(NaN)),c}function Qr(s,c,r,m,D){return Me(s)?s:function Cc(s,c,r,m,D){const G={};let fe=s;return(mt(fe)&&function tn(s){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(s).length;let c;for(c in s)if(s.hasOwnProperty(c))return!1;return!0}(fe)||bt(fe)&&0===fe.length)&&(fe=void 0),G._useUTC=G._isUTC=D,G._l=r,G._i=fe,G._f=c,G._strict=m,Jl(G)}(s,c,r,m,D)._d}function nl(s){return s instanceof Date?new Date(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()):null}function Zr(s){return s<0?-1*Math.round(-1*s):Math.round(s)}function xo(s,c,r="milliseconds"){return!(!s||!c)&&("milliseconds"===r?s.valueOf()>c.valueOf():c.valueOf()<oe(s,r).valueOf())}function P(s,c,r="milliseconds"){return!(!s||!c)&&("milliseconds"===r?s.valueOf()<c.valueOf():_e(s,r).valueOf()<c.valueOf())}function te(s,c,r="milliseconds"){if(!s||!c)return!1;if("milliseconds"===r)return s.valueOf()===c.valueOf();const m=c.valueOf();return oe(s,r).valueOf()<=m&&m<=_e(s,r).valueOf()}const Gn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ji=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ji(s,c,r={}){const m=function xi(s,c){if(null==s)return{};if(function bc(s){return s instanceof vc}(s))return{milliseconds:s._milliseconds,day:s._days,month:s._months};if(_t(s))return c?{[c]:s}:{milliseconds:s};if(Fe(s)){let r=Gn.exec(s);if(r){const m="-"===r[1]?-1:1;return{year:0,day:Pt(r[kn])*m,hours:Pt(r[dn])*m,minutes:Pt(r[Kt])*m,seconds:Pt(r[Ye])*m,milliseconds:Pt(Zr(1e3*Pt(r[ye])))*m}}if(r=Ji.exec(s),r){const m="-"===r[1]?-1:1;return{year:Zn(r[2],m),month:Zn(r[3],m),week:Zn(r[4],m),day:Zn(r[5],m),hours:Zn(r[6],m),minutes:Zn(r[7],m),seconds:Zn(r[8],m)}}}if(mt(s)&&("from"in s||"to"in s)){const r=function Gi(s,c){if(!Ue(s)||!Ue(c))return{milliseconds:0,months:0};let r;const m=function Zo(s,c,r={}){if(!r._isUTC)return s;const m=Rt(c),D=6e4*(r._offset||0),G=s.valueOf()-m.valueOf()+D;return m.setTime(m.valueOf()+G),m}(c,s,{_offset:s.getTimezoneOffset()});return P(s,m)?r=Ii(s,m):(r=Ii(m,s),r.milliseconds=-r.milliseconds,r.months=-r.months),r}(Qr(s.from),Qr(s.to));return{milliseconds:r.milliseconds,month:r.months}}return s}(s,c);return new vc(m,r)}function Zn(s,c){const r=s&&parseFloat(s.replace(",","."));return(isNaN(r)?0:r)*c}function Ii(s,c){const r={milliseconds:0,months:0};return r.months=sn(c)-sn(s)+12*(Vn(c)-Vn(s)),xo(Li(Rt(s),r.months,"month"),c)&&--r.months,r.milliseconds=+c-+Li(Rt(s),r.months,"month"),r}function Li(s,c,r,m){return as(s,ji(c,r),1,m)}function as(s,c,r,m){const D=c._milliseconds,G=Zr(c._days),fe=Zr(c._months);return fe&&Mi(s,sn(s,m)+fe*r,m),G&&ki(s,jn(s,m)+G*r,m),D&&function Re(s,c){s.setTime(c)}(s,function Gt(s){return s.getTime()}(s)+D*r),Rt(s)}function zo(s,c,r=Ti(),m){const D=Cn(s,m),G=function bo(s,c){if(!Fe(s))return s;const r=parseInt(s,10);if(!isNaN(r))return r;const m=c.weekdaysParse(s);return _t(m)?m:null}(c,r);return Li(s,G-D,"day")}function Di(s,c=Ti(),r){return(Cn(s,r)+7-c.firstDayOfWeek())%7}const ea=function(s){return 0===s?0:1===s?1:2===s?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},lo={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},Oo=function(s){return function(c,r){const m=ea(c);let D=lo[s][ea(c)];return 2===m&&(D=D[r?0:1]),D.replace(/%d/i,c.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),Oo("s"),Oo("s"),Oo("m"),Oo("m"),Oo("h"),Oo("h"),Oo("d"),Oo("d"),Oo("M"),Oo("M"),Oo("y"),Oo("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Sa="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Jn="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(s,c){let r,m=[];for(r=0;r<12;r++)m[r]=new RegExp("^"+s[r]+"$|^"+c[r]+"$","i")})(Sa,Jn),function(s){let c,r=[];for(c=0;c<12;c++)r[c]=new RegExp("^"+s[c]+"$","i")}(Jn),function(s){let c,r=[];for(c=0;c<12;c++)r[c]=new RegExp("^"+s[c]+"$","i")}(Sa),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const Ml={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:s=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===s,meridiem:(s,c,r)=>s<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(s,c){const r=Ml.longDateFormat[c]?Ml.longDateFormat[c]:c;return-1!==r.indexOf("YYYY",r.length-4)?s.substr(0,s.length-4)+(parseInt(s.substr(s.length-4),10)-543):s},getFullYear:(s,c=!1)=>543+(c?s.getUTCFullYear():s.getFullYear())};function br(s){return function(c){return s+"\u043e"+(11===q(c)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),br("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),br("[\u0417\u0430\u0432\u0442\u0440\u0430 "),br("[\u0412\u0447\u043e\u0440\u0430 "),br("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");class Tl{constructor(c,r){this.open=c,this.close=r||c}isManual(){return"manual"===this.open||"manual"===this.close}}const Ul={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Fo(s,c=Ul){const r=(s||"").trim();if(0===r.length)return[];const m=r.split(/\s+/).map(G=>G.split(":")).map(G=>{const fe=c[G[0]]||G;return new Tl(fe[0],fe[1])}),D=m.filter(G=>G.isManual());if(D.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===D.length&&m.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return m}const eo=typeof window<"u"&&window||{};let Si;function si(){const s=eo.document.createElement("span");s.innerText="testing bs version",s.classList.add("d-none"),s.classList.add("pl-1"),eo.document.head.appendChild(s);const c=eo.getComputedStyle(s).paddingLeft;return c&&parseFloat(c)?(eo.document.head.removeChild(s),"bs4"):(eo.document.head.removeChild(s),"bs5")}function jr(){return{isBs4:(Si||(Si=si()),"bs4"===Si),isBs5:(Si||(Si=si()),"bs5"===Si)}}function lc(){const s="Change";return function(r,m){const D=` __${m}Value`;Object.defineProperty(r,m,{get(){return this[D]},set(G){const fe=this[D];this[D]=G,fe!==G&&this[m+s]&&this[m+s].emit(G)}})}}const sa={},El=typeof console>"u"||!("warn"in console);function lr(s){!(0,e.naY)()||El||s in sa||(sa[s]=!0,console.warn(s))}var qi=N(177),Er=N(1413),Id=N(7786),mu=N(3726),gu=N(7673),Dh=N(536),wa=function(s){return s.top="top",s.bottom="bottom",s.left="left",s.right="right",s.auto="auto",s.end="right",s.start="left",s["top left"]="top left",s["top right"]="top right",s["right top"]="right top",s["right bottom"]="right bottom",s["bottom right"]="bottom right",s["bottom left"]="bottom left",s["left bottom"]="left bottom",s["left top"]="left top",s["top start"]="top left",s["top end"]="top right",s["end top"]="right top",s["end bottom"]="right bottom",s["bottom end"]="bottom right",s["bottom start"]="bottom left",s["start bottom"]="start bottom",s["start top"]="left top",s}(wa||{}),zc=function(s){return s.top="top",s.bottom="bottom",s.left="start",s.right="end",s.auto="auto",s.end="end",s.start="start",s["top left"]="top start",s["top right"]="top end",s["right top"]="end top",s["right bottom"]="end bottom",s["bottom right"]="bottom end",s["bottom left"]="bottom start",s["left bottom"]="start bottom",s["left top"]="start top",s["top start"]="top start",s["top end"]="top end",s["end top"]="end top",s["end bottom"]="end bottom",s["bottom end"]="bottom end",s["bottom start"]="bottom start",s["start bottom"]="start bottom",s["start top"]="start top",s}(zc||{});function za(s,c){if(1!==s.nodeType)return[];const m=s.ownerDocument.defaultView?.getComputedStyle(s,null);return c?m&&m[c]:m}function _u(s){if(!s)return document.documentElement;let m,r=s?.offsetParent;for(;null===r&&s.nextElementSibling&&m!==s.nextElementSibling;)m=s.nextElementSibling,r=m.offsetParent;const D=r&&r.nodeName;return D&&"BODY"!==D&&"HTML"!==D?r&&-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===za(r,"position")?_u(r):r:m?m.ownerDocument.documentElement:document.documentElement}function nu(s){return null!==s.parentNode?nu(s.parentNode):s}function Od(s,c){if(!(s&&s.nodeType&&c&&c.nodeType))return document.documentElement;const r=s.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING,m=r?s:c,D=r?c:s,G=document.createRange();G.setStart(m,0),G.setEnd(D,0);const fe=G.commonAncestorContainer;if(s!==fe&&c!==fe||m.contains(D))return function tu(s){const{nodeName:c}=s;return"BODY"!==c&&("HTML"===c||_u(s.firstElementChild)===s)}(fe)?fe:_u(fe);const st=nu(s);return st.host?Od(st.host,c):Od(s,nu(c).host)}function vu(s){if(!s||!s.parentElement)return document.documentElement;let c=s.parentElement;for(;c?.parentElement&&"none"===za(c,"transform");)c=c.parentElement;return c||document.documentElement}function bu(s,c){const r="x"===c?"Left":"Top",m="Left"===r?"Right":"Bottom";return parseFloat(s[`border${r}Width`])+parseFloat(s[`border${m}Width`])}function yu(s,c,r,m){return Math.max(c[`offset${s}`],c[`scroll${s}`],r[`client${s}`],r[`offset${s}`],r[`scroll${s}`],0)}function Cu(s){const c=s.body,r=s.documentElement;return{height:yu("Height",c,r),width:yu("Width",c,r)}}function Sl(s){return{...s,right:(s.left||0)+s.width,bottom:(s.top||0)+s.height}}function ts(s){return"number"==typeof s||"[object Number]"===Object.prototype.toString.call(s)}function xs(s){const c=s.getBoundingClientRect();if(!(c&&ts(c.top)&&ts(c.left)&&ts(c.bottom)&&ts(c.right)))return c;const r={left:c.left,top:c.top,width:c.right-c.left,height:c.bottom-c.top},m="HTML"===s.nodeName?Cu(s.ownerDocument):void 0,D=m?.width||s.clientWidth||ts(c.right)&&ts(r.left)&&c.right-r.left||0,G=m?.height||s.clientHeight||ts(c.bottom)&&ts(r.top)&&c.bottom-r.top||0;let fe=s.offsetWidth-D,st=s.offsetHeight-G;if(fe||st){const Yt=za(s);fe-=bu(Yt,"x"),st-=bu(Yt,"y"),r.width-=fe,r.height-=st}return Sl(r)}function qc(s){return"HTML"===s.nodeName?s:s.parentNode||s.host}function cc(s){if(!s)return document.body;switch(s.nodeName){case"HTML":case"BODY":return s.ownerDocument.body;case"#document":return s.body}const{overflow:c,overflowX:r,overflowY:m}=za(s);return/(auto|scroll|overlay)/.test(String(c)+String(m)+String(r))?s:cc(qc(s))}function Xc(s,c,r=!1){const m="HTML"===c.nodeName,D=xs(s),G=xs(c),st=(cc(s),za(c)),Yt=parseFloat(st.borderTopWidth),Bn=parseFloat(st.borderLeftWidth);r&&m&&(G.top=Math.max(G.top??0,0),G.left=Math.max(G.left??0,0));const Qn=Sl({top:(D.top??0)-(G.top??0)-Yt,left:(D.left??0)-(G.left??0)-Bn,width:D.width,height:D.height});if(Qn.marginTop=0,Qn.marginLeft=0,m){const ls=parseFloat(st.marginTop),Us=parseFloat(st.marginLeft);ts(Qn.top)&&(Qn.top-=Yt-ls),ts(Qn.bottom)&&(Qn.bottom-=Yt-ls),ts(Qn.left)&&(Qn.left-=Bn-Us),ts(Qn.right)&&(Qn.right-=Bn-Us),Qn.marginTop=ls,Qn.marginLeft=Us}return Qn}function Rd(s,c="top"){const r="top"===c?"scrollTop":"scrollLeft",m=s.nodeName;return"BODY"===m||"HTML"===m?(s.ownerDocument.scrollingElement||s.ownerDocument.documentElement)[r]:s[r]}function dc(s){const c=s.nodeName;return"BODY"!==c&&"HTML"!==c&&("fixed"===za(s,"position")||dc(qc(s)))}function Fd(s,c,r=0,m,D=!1){let G={top:0,left:0};const fe=D?vu(s):Od(s,c);if("viewport"===m)G=function Nd(s,c=!1){const r=s.ownerDocument.documentElement,m=Xc(s,r),D=Math.max(r.clientWidth,window.innerWidth||0),G=Math.max(r.clientHeight,window.innerHeight||0),fe=c?0:Rd(r),st=c?0:Rd(r,"left");return Sl({top:fe-Number(m?.top)+Number(m?.marginTop),left:st-Number(m?.left)+Number(m?.marginLeft),width:D,height:G})}(fe,D);else{let st;"scrollParent"===m?(st=cc(qc(c)),"BODY"===st.nodeName&&(st=s.ownerDocument.documentElement)):st="window"===m?s.ownerDocument.documentElement:m;const Yt=Xc(st,fe,D);if(Yt&&"HTML"===st.nodeName&&!dc(fe)){const{height:Bn,width:Qn}=Cu(s.ownerDocument);ts(G.top)&&ts(Yt.top)&&ts(Yt.marginTop)&&(G.top+=Yt.top-Yt.marginTop),ts(G.top)&&(G.bottom=Number(Bn)+Number(Yt.top)),ts(G.left)&&ts(Yt.left)&&ts(Yt.marginLeft)&&(G.left+=Yt.left-Yt.marginLeft),ts(G.top)&&(G.right=Number(Qn)+Number(Yt.left))}else Yt&&(G=Yt)}return ts(G.left)&&(G.left+=r),ts(G.top)&&(G.top+=r),ts(G.right)&&(G.right-=r),ts(G.bottom)&&(G.bottom-=r),G}function Wc({width:s,height:c}){return s*c}function Kc(s,c,r,m,D=["top","bottom","right","left"],G="viewport",fe=0){if(-1===s.indexOf("auto"))return s;const st=Fd(r,m,fe,G),Yt={top:{width:st?.width??0,height:(c?.top??0)-(st?.top??0)},right:{width:(st?.right??0)-(c?.right??0),height:st?.height??0},bottom:{width:st?.width??0,height:(st?.bottom??0)-(c?.bottom??0)},left:{width:(c.left??0)-(st?.left??0),height:st?.height??0}},Bn=Object.keys(Yt).map(Wo=>({position:Wo,...Yt[Wo],area:Wc(Yt[Wo])})).sort((Wo,al)=>al.area-Wo.area);let Qn=Bn.filter(({width:Wo,height:al})=>Wo>=r.clientWidth&&al>=r.clientHeight);Qn=Qn.filter(({position:Wo})=>D.some(al=>al===Wo));const ls=Qn.length>0?Qn[0].position:Bn[0].position,Us=s.split(" ")[1];return r.className=r.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${jr().isBs5?zc[ls]:ls}`),ls+(Us?`-${Us}`:"")}const Rc=(s,c=0)=>s?parseFloat(s):c;function Zc(s){const r=s.ownerDocument.defaultView?.getComputedStyle(s),m=Rc(r?.marginTop)+Rc(r?.marginBottom),D=Rc(r?.marginLeft)+Rc(r?.marginRight);return{width:Number(s.offsetWidth)+D,height:Number(s.offsetHeight)+m}}function hc(s,c,r){return Xc(c,r?vu(s):Od(s,c),r)}function Hl(s,c,r){const m=r.split(" ")[0],D=Zc(s),G={width:D.width,height:D.height},fe=-1!==["right","left"].indexOf(m),st=fe?"top":"left",Yt=fe?"left":"top",Bn=fe?"height":"width",Qn=fe?"width":"height";return G[st]=(c[st]??0)+c[Bn]/2-D[Bn]/2,G[Yt]=m===Yt?(c[Yt]??0)-D[Qn]:c[function Qc(s){const c={left:"right",right:"left",bottom:"top",top:"bottom"};return s.replace(/left|right|bottom|top/g,r=>c[r])}(Yt)]??0,G}function fc(s,c){return!!s.modifiers[c]?.enabled}const pd={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Jc(s,c){return!!jr().isBs5&&pd[c].includes(s)}function Ad(s,c,r){!s||!c||Object.keys(c).forEach(m=>{let D="";-1!==["width","height","top","right","bottom","left"].indexOf(m)&&function fd(s){return""!==s&&!isNaN(parseFloat(s))&&isFinite(Number(s))}(c[m])&&(D="px"),r?r.setStyle(s,m,`${String(c[m])}${D}`):s.style[m]=String(c[m])+D})}function Du(s){let c=s.offsets.target;const r=s.instance.target.querySelector(".arrow");if(!r)return s;const m=-1!==["left","right"].indexOf(s.placement.split(" ")[0]),D=m?"height":"width",G=m?"Top":"Left",fe=G.toLowerCase(),st=m?"left":"top",Yt=m?"bottom":"right",Bn=Zc(r)[D],Qn=s.placement.split(" ")[1];(s.offsets.host[Yt]??0)-Bn<(c[fe]??0)&&(c[fe]-=(c[fe]??0)-((s.offsets.host[Yt]??0)-Bn)),Number(s.offsets.host[fe])+Number(Bn)>(c[Yt]??0)&&(c[fe]+=Number(s.offsets.host[fe])+Number(Bn)-Number(c[Yt])),c=Sl(c);const ls=za(s.instance.target),Us=parseFloat(ls[`margin${G}`])||0,Wo=parseFloat(ls[`border${G}Width`])||0;let al;if(Qn){const ll=parseFloat(ls.borderRadius)||0,aa=Number(Us+Wo+ll);al=fe===Qn?Number(s.offsets.host[fe])+aa:Number(s.offsets.host[fe])+Number(s.offsets.host[D]-aa)}else al=Number(s.offsets.host[fe])+Number(s.offsets.host[D]/2-Bn/2);let qd=al-(c[fe]??0)-Us-Wo;return qd=Math.max(Math.min(c[D]-(Bn+5),qd),0),s.offsets.arrow={[fe]:Math.round(qd),[st]:""},s.instance.arrow=r,s}function Mh(s){if(s.offsets.target=Sl(s.offsets.target),!fc(s.options,"flip"))return s.offsets.target={...s.offsets.target,...Hl(s.instance.target,s.offsets.host,s.placement)},s;const c=Fd(s.instance.target,s.instance.host,0,"viewport",!1);let r=s.placement.split(" ")[0],m=s.placement.split(" ")[1]||"";const st=Kc("auto",s.offsets.host,s.instance.target,s.instance.host,s.options.allowedPositions),Yt=[r,st];return Yt.forEach((Bn,Qn)=>{if(r!==Bn||Yt.length===Qn+1)return;r=s.placement.split(" ")[0];const ls="left"===r&&Math.floor(s.offsets.target.right??0)>Math.floor(s.offsets.host.left??0)||"right"===r&&Math.floor(s.offsets.target.left??0)<Math.floor(s.offsets.host.right??0)||"top"===r&&Math.floor(s.offsets.target.bottom??0)>Math.floor(s.offsets.host.top??0)||"bottom"===r&&Math.floor(s.offsets.target.top??0)<Math.floor(s.offsets.host.bottom??0),Us=Math.floor(s.offsets.target.left??0)<Math.floor(c.left??0),Wo=Math.floor(s.offsets.target.right??0)>Math.floor(c.right??0),al=Math.floor(s.offsets.target.top??0)<Math.floor(c.top??0),qd=Math.floor(s.offsets.target.bottom??0)>Math.floor(c.bottom??0),ll="left"===r&&Us||"right"===r&&Wo||"top"===r&&al||"bottom"===r&&qd,aa=-1!==["top","bottom"].indexOf(r),qu=aa&&"left"===m&&Us||aa&&"right"===m&&Wo||!aa&&"left"===m&&al||!aa&&"right"===m&&qd;(ls||ll||qu)&&((ls||ll)&&(r=Yt[Qn+1]),qu&&(m=function wu(s){return"right"===s?"left":"left"===s?"right":s}(m)),s.placement=r+(m?` ${m}`:""),s.offsets.target={...s.offsets.target,...Hl(s.instance.target,s.offsets.host,s.placement)})}),s}function Th(s){if(!fc(s.options,"preventOverflow"))return s;const c="transform",r=s.instance.target.style,{top:m,left:D,[c]:G}=r;r.top="",r.left="",r[c]="";const fe=Fd(s.instance.target,s.instance.host,0,s.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);r.top=m,r.left=D,r[c]=G;const Yt={primary(Bn){let Qn=s.offsets.target[Bn];return(s.offsets.target[Bn]??0)<(fe[Bn]??0)&&(Qn=Math.max(s.offsets.target[Bn]??0,fe[Bn]??0)),{[Bn]:Qn}},secondary(Bn){const Qn="right"===Bn,ls=Qn?"left":"top";let Wo=s.offsets.target[ls];return(s.offsets.target[Bn]??0)>(fe[Bn]??0)&&(Wo=Math.min(s.offsets.target[ls]??0,(fe[Bn]??0)-s.offsets.target[Qn?"width":"height"])),{[ls]:Wo}}};return["left","right","top","bottom"].forEach(Bn=>{const Qn=-1!==["left","top","start"].indexOf(Bn)?Yt.primary:Yt.secondary;s.offsets.target={...s.offsets.target,...Qn(Bn)}}),s}function Qu(s){const c=s.placement,r=c.split(" ")[0],m=c.split(" ")[1];if(m){const{host:D,target:G}=s.offsets,fe=-1!==["bottom","top"].indexOf(r),st=fe?"left":"top",Yt=fe?"width":"height",Bn={start:{[st]:D[st]},end:{[st]:(D[st]??0)+D[Yt]-G[Yt]}};s.offsets.target={...G,[st]:st===m?Bn.start[st]:Bn.end[st]}}return s}const iu=new class Zu{position(c,r){return this.offset(c,r)}offset(c,r){return hc(r,c)}positionElements(c,r,m,D,G){const fe=[Mh,Qu,Th,Du],Yt=function Mu(s,c,r,m){if(!s||!c)return;const D=hc(s,c);!r.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!r.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(r="auto");const G=!!r.match(/auto/g);let fe=r.match(/auto\s(left|right|top|bottom|start|end)/)?r.split(" ")[1]||"auto":r;const st=fe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return st&&(fe=st[1]+(st[2]?` ${st[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(fe)&&(fe="auto"),fe=Kc(fe,D,s,c,m?m.allowedPositions:void 0),{options:m||{modifiers:{}},instance:{target:s,host:c,arrow:void 0},offsets:{target:Hl(s,D,fe),host:D,arrow:void 0},positionFixed:!1,placement:fe,placementAuto:G}}(r,c,wa[m],G);if(Yt)return fe.reduce((Bn,Qn)=>Qn(Bn),Yt)}};function Eh(s,c,r,m,D,G){const fe=iu.positionElements(s,c,r,m,D);if(!fe)return;const st=function uc(s){return{width:s.offsets.target.width,height:s.offsets.target.height,left:Math.floor(s.offsets.target.left??0),top:Math.round(s.offsets.target.top??0),bottom:Math.round(s.offsets.target.bottom??0),right:Math.floor(s.offsets.target.right??0)}}(fe);Ad(c,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${st.left}px, ${st.top}px, 0px)`},G),fe.instance.arrow&&Ad(fe.instance.arrow,fe.offsets.arrow,G),function Yl(s,c){const r=s.instance.target;let m=r.className;const D=jr().isBs5?zc[s.placement]:s.placement;s.placementAuto&&(m=m.replace(/bs-popover-auto/g,`bs-popover-${D}`),m=m.replace(/ms-2|me-2|mb-2|mt-2/g,""),m=m.replace(/bs-tooltip-auto/g,`bs-tooltip-${D}`),m=m.replace(/\sauto/g,` ${D}`),-1!==m.indexOf("popover")&&(m=m+" "+function pc(s){return jr().isBs5?Jc(s,"end")?"ms-2":Jc(s,"start")?"me-2":Jc(s,"top")?"mb-2":Jc(s,"bottom")?"mt-2":"":""}(D)),-1!==m.indexOf("popover")&&-1===m.indexOf("popover-auto")&&(m+=" popover-auto"),-1!==m.indexOf("tooltip")&&-1===m.indexOf("tooltip-auto")&&(m+=" tooltip-auto")),m=m.replace(/left|right|top|bottom|end|start/g,`${D.split(" ")[0]}`),c?c.setAttribute(r,"class",m):r.className=m}(fe,G)}let md=(()=>{class s{constructor(r,m,D){this.update$$=new Er.B,this.positionElements=new Map,this.isDisabled=!1,(0,qi.UE)(D)&&r.runOutsideAngular(()=>{this.triggerEvent$=(0,Id.h)((0,mu.R)(window,"scroll",{passive:!0}),(0,mu.R)(window,"resize",{passive:!0}),(0,gu.of)(0,Dh.X),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(G=>{Eh(ed(G.target),ed(G.element),G.attachment,G.appendToBody,this.options,m.createRenderer(null,null))})})})}position(r){this.addPositionElement(r)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(r){this.positionElements.set(ed(r.element),r)}calcPosition(){this.update$$.next(null)}deletePositionElement(r){this.positionElements.delete(ed(r))}setOptions(r){this.options=r}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(e.SKi),e.KVO(e._9s),e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function ed(s){return"string"==typeof s?document.querySelector(s):s instanceof e.aKT?s.nativeElement:s??null}var Pd=N(9417),gd=N(4412),Sh=N(6780),ie=N(9687);const k=new class l extends ie.q{}(class _ extends Sh.R{constructor(c,r){super(c,r),this.scheduler=c,this.work=r}schedule(c,r=0){return r>0?super.schedule(c,r):(this.delay=r,this.state=c,this.scheduler.flush(this),this)}execute(c,r){return r>0||this.closed?super.execute(c,r):this._execute(c,r)}requestAsyncId(c,r,m=0){return null!=m&&m>0||null==m&&this.delay>0?super.requestAsyncId(c,r,m):(c.flush(this),0)}});var H=N(1985),be=N(941),St=N(2816);class En extends gd.t{constructor(c,r,m){super(c),r.pipe((0,be.Q)(k)).pipe((0,St.S)((fe,st)=>st?m(fe,st):fe,c)).subscribe(fe=>this.next(fe))}}class xn extends H.c{constructor(c,r,m){super(),this._dispatcher=c,this._reducer=r,this.source=m}select(c){return(this.source?.pipe((0,ne.T)(c))||(new H.c).pipe((0,ne.T)(c))).pipe((0,we.F)())}lift(c){const r=new xn(this._dispatcher,this._reducer,this);return r.operator=c,r}dispatch(c){this._dispatcher.next(c)}next(c){this._dispatcher.next(c)}error(c){this._dispatcher.error(c)}complete(){}}function fi(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function vs(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(D.minuteStep))}),e.nrm(2,"span",2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canIncrementMinutes||!r.isEditable)}}function Sr(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0"),e.k0s())}function wo(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(D.secondsStep))}),e.nrm(2,"span",2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canIncrementSeconds||!r.isEditable)}}function Nc(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function Tu(s,c){1&s&&e.nrm(0,"td")}function Ld(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0:\xa0"),e.k0s())}function Eu(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4)(1,"input",5),e.bIt("wheel",function(D){e.eBV(r);const G=e.XpG();return G.prevDef(D),e.Njj(G.changeMinutes(G.minuteStep*G.wheelSign(D),"wheel"))})("keydown.ArrowUp",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(D.minuteStep,"key"))})("keydown.ArrowDown",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(-D.minuteStep,"key"))})("change",function(D){e.eBV(r);const G=e.XpG();return e.Njj(G.updateMinutes(D.target))}),e.k0s()()}if(2&s){const r=e.XpG();e.AVh("has-error",r.invalidMinutes),e.R7$(1),e.AVh("is-invalid",r.invalidMinutes),e.Y8G("placeholder",r.minutesPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.minutes),e.BMQ("aria-label",r.labelMinutes)}}function Bd(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0:\xa0"),e.k0s())}function Su(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4)(1,"input",5),e.bIt("wheel",function(D){e.eBV(r);const G=e.XpG();return G.prevDef(D),e.Njj(G.changeSeconds(G.secondsStep*G.wheelSign(D),"wheel"))})("keydown.ArrowUp",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(D.secondsStep,"key"))})("keydown.ArrowDown",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(-D.secondsStep,"key"))})("change",function(D){e.eBV(r);const G=e.XpG();return e.Njj(G.updateSeconds(D.target))}),e.k0s()()}if(2&s){const r=e.XpG();e.AVh("has-error",r.invalidSeconds),e.R7$(1),e.AVh("is-invalid",r.invalidSeconds),e.Y8G("placeholder",r.secondsPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.seconds),e.BMQ("aria-label",r.labelSeconds)}}function su(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function Ju(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"button",8),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.toggleMeridian())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.isEditable||!r.canToggleMeridian),e.Y8G("disabled",!r.isEditable||!r.canToggleMeridian),e.R7$(1),e.SpI("",r.meridian," ")}}function ku(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function eh(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(-D.minuteStep))}),e.nrm(2,"span",7),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canDecrementMinutes||!r.isEditable)}}function th(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0"),e.k0s())}function Gr(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(-D.secondsStep))}),e.nrm(2,"span",7),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canDecrementSeconds||!r.isEditable)}}function Vd(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function xu(s,c){1&s&&e.nrm(0,"td")}let qa=(()=>{class s{static{this.WRITE_VALUE="[timepicker] write value from ng model"}static{this.CHANGE_HOURS="[timepicker] change hours"}static{this.CHANGE_MINUTES="[timepicker] change minutes"}static{this.CHANGE_SECONDS="[timepicker] change seconds"}static{this.SET_TIME_UNIT="[timepicker] set time unit"}static{this.UPDATE_CONTROLS="[timepicker] update controls"}writeValue(r){return{type:s.WRITE_VALUE,payload:r}}changeHours(r){return{type:s.CHANGE_HOURS,payload:r}}changeMinutes(r){return{type:s.CHANGE_MINUTES,payload:r}}changeSeconds(r){return{type:s.CHANGE_SECONDS,payload:r}}setTime(r){return{type:s.SET_TIME_UNIT,payload:r}}updateControls(r){return{type:s.UPDATE_CONTROLS,payload:r}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const C=10,v=24,u=12,w=60,F=60;function $(s){return!(!s||s instanceof Date&&isNaN(s.getHours()))&&("string"!=typeof s||$(new Date(s)))}function pe(s,c){return!(s.min&&c<s.min||s.max&&c>s.max)}function Pe(s){return typeof s>"u"?NaN:"number"==typeof s?s:parseInt(s,C)}function Ot(s,c=!1){const r=Pe(s);return isNaN(r)||r<0||r>(c?u:v)?NaN:r}function an(s){const c=Pe(s);return isNaN(c)||c<0||c>w?NaN:c}function en(s){const c=Pe(s);return isNaN(c)||c<0||c>F?NaN:c}function Un(s){return"string"==typeof s?new Date(s):s}function Dn(s,c){if(!s)return Dn(zn(new Date,0,0,0),c);if(!c)return s;let r=s.getHours(),m=s.getMinutes(),D=s.getSeconds();return c.hour&&(r+=Pe(c.hour)),c.minute&&(m+=Pe(c.minute)),c.seconds&&(D+=Pe(c.seconds)),zn(s,r,m,D)}function An(s,c){let r=Ot(c.hour);const m=an(c.minute),D=en(c.seconds)||0;return c.isPM&&12!==r&&(r+=u),s?isNaN(r)||isNaN(m)?s:zn(s,r,m,D):isNaN(r)||isNaN(m)?s:zn(new Date,r,m,D)}function zn(s,c,r,m){const D=new Date(s.getFullYear(),s.getMonth(),s.getDate(),c,r,m,s.getMilliseconds());return D.setFullYear(s.getFullYear()),D.setMonth(s.getMonth()),D.setDate(s.getDate()),D}function $i(s){const c=s.toString();return c.length>1?c:`0${c}`}function Xi(s,c){return!isNaN(Ot(s,c))}function ho(s){return!isNaN(an(s))}function Ks(s){return!isNaN(en(s))}function oa(s,c="0",r="0",m){return Xi(s,m)&&ho(c)&&Ks(r)}function yr(s,c){return!(s.readonlyInput||s.disabled||c&&("wheel"===c.source&&!s.mousewheel||"key"===c.source&&!s.arrowkeys))}function Iu(s){const{hourStep:c,minuteStep:r,secondsStep:m,readonlyInput:D,disabled:G,mousewheel:fe,arrowkeys:st,showSpinners:Yt,showMeridian:Bn,showSeconds:Qn,meridians:ls,min:Us,max:Wo}=s;return{hourStep:c,minuteStep:r,secondsStep:m,readonlyInput:D,disabled:G,mousewheel:fe,arrowkeys:st,showSpinners:Yt,showMeridian:Bn,showSeconds:Qn,meridians:ls,min:Us,max:Wo}}let Fc=(()=>{class s{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const Ou={value:void 0,config:new Fc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function Ru(s=Ou,c){switch(c.type){case qa.WRITE_VALUE:return Object.assign({},s,{value:c.payload});case qa.CHANGE_HOURS:{if(!yr(s.config,c.payload)||!function Xa(s,c){return!(!s.step||s.step>0&&!c.canIncrementHours||s.step<0&&!c.canDecrementHours)}(c.payload,s.controls))return s;const r=Dn(s.value,{hour:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.CHANGE_MINUTES:{if(!yr(s.config,c.payload)||!function Wa(s,c){return!(!s.step||s.step>0&&!c.canIncrementMinutes||s.step<0&&!c.canDecrementMinutes)}(c.payload,s.controls))return s;const r=Dn(s.value,{minute:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.CHANGE_SECONDS:{if(!yr(s.config,c.payload)||!function zl(s,c){return!(!s.step||s.step>0&&!c.canIncrementSeconds||s.step<0&&!c.canDecrementSeconds)}(c.payload,s.controls))return s;const r=Dn(s.value,{seconds:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.SET_TIME_UNIT:{if(!yr(s.config))return s;const r=An(s.value,c.payload);return Object.assign({},s,{value:r})}case qa.UPDATE_CONTROLS:{const r=function jd(s,c){const{min:D,max:G,hourStep:fe,minuteStep:st,secondsStep:Yt,showSeconds:Bn}=c,Qn={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!s)return Qn;if(G){const ls=Dn(s,{hour:fe});if(Qn.canIncrementHours=G>ls&&s.getHours()+fe<24,!Qn.canIncrementHours){const Us=Dn(s,{minute:st});Qn.canIncrementMinutes=Bn?G>Us:G>=Us}if(!Qn.canIncrementMinutes){const Us=Dn(s,{seconds:Yt});Qn.canIncrementSeconds=G>=Us}s.getHours()<12&&(Qn.canToggleMeridian=Dn(s,{hour:12})<G)}if(D){const ls=Dn(s,{hour:-fe});if(Qn.canDecrementHours=D<ls,!Qn.canDecrementHours){const Us=Dn(s,{minute:-st});Qn.canDecrementMinutes=Bn?D<Us:D<=Us}if(!Qn.canDecrementMinutes){const Us=Dn(s,{seconds:-Yt});Qn.canDecrementSeconds=D<=Us}s.getHours()>=12&&(Qn.canToggleMeridian=Dn(s,{hour:-12})>D)}return Qn}(s.value,c.payload),m={value:s.value,config:c.payload,controls:r};return s.config.showMeridian!==m.config.showMeridian&&s.value&&(m.value=new Date(s.value)),Object.assign({},s,m)}default:return s}}let Wn=(()=>{class s extends xn{constructor(){const r=new gd.t({type:"[mini-ngrx] dispatcher init"});super(r,Ru,new En(Ou,r,Ru))}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const ci={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>vi),multi:!0};let vi=(()=>{class s{constructor(r,m,D,G){this._cd=m,this._store=D,this._timepickerActions=G,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.bkB,this.meridianChange=new e.bkB,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=r,Object.assign(this,this.config),this.timepickerSub=D.select(fe=>fe.value).subscribe(fe=>{this._renderTime(fe),this.onChange(fe),this._store.dispatch(this._timepickerActions.updateControls(Iu(this)))}),D.select(fe=>fe.controls).subscribe(fe=>{const st=oa(this.hours,this.minutes,this.seconds,this.isPM()),Yt=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||st;this.isValid.emit(Yt),Object.assign(this,fe),m.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(r){r.preventDefault()}wheelSign(r){return-1*Math.sign(r.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Iu(this)))}changeHours(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:r,source:m}))}changeMinutes(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:r,source:m}))}changeSeconds(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:r,source:m}))}updateHours(r){this.resetValidation(),this.hours=r.value;const m=Xi(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(r){this.resetValidation(),this.minutes=r.value;const m=ho(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(r){this.resetValidation(),this.seconds=r.value;const m=Ks(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Xo(s,c,r){const m=An(new Date,s);return!(!m||c&&m>c||r&&m<r)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function cr(s,c,r){return 0===s.length||0===c.length||0===r.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const D=oa(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||D))return this.isValid.emit(!1),void this.onChange(null);this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){this.showMeridian&&this.isEditable&&this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(r){$(r)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(Un(r)))):null==r&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.disabled=r,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(r){if(!r||!$(r))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const m=Un(r);if(!m)return;let G=m.getHours();this.showMeridian&&(this.meridian=this.meridians[G>=12?1:0],this.meridianChange.emit(this.meridian),G%=12,0===G&&(G=12)),this.hours=$i(G),this.minutes=$i(m.getMinutes()),this.seconds=$i(m.getUTCSeconds())}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Fc),e.rXU(e.gRc),e.rXU(Wn),e.rXU(qa))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e.Jv_([ci,Wn]),e.OA$],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(m,D){1&m&&(e.j41(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.bIt("click",function(){return D.changeHours(D.hourStep)}),e.nrm(5,"span",2),e.k0s()(),e.DNE(6,fi,2,0,"td",3),e.DNE(7,vs,3,2,"td",3),e.DNE(8,Sr,2,0,"td",3),e.DNE(9,wo,3,2,"td",3),e.DNE(10,Nc,2,0,"td",3),e.DNE(11,Tu,1,0,"td",3),e.k0s(),e.j41(12,"tr")(13,"td",4)(14,"input",5),e.bIt("wheel",function(fe){return D.prevDef(fe),D.changeHours(D.hourStep*D.wheelSign(fe),"wheel")})("keydown.ArrowUp",function(){return D.changeHours(D.hourStep,"key")})("keydown.ArrowDown",function(){return D.changeHours(-D.hourStep,"key")})("change",function(fe){return D.updateHours(fe.target)}),e.k0s()(),e.DNE(15,Ld,2,0,"td",3),e.DNE(16,Eu,2,9,"td",6),e.DNE(17,Bd,2,0,"td",3),e.DNE(18,Su,2,9,"td",6),e.DNE(19,su,2,0,"td",3),e.DNE(20,Ju,3,4,"td",3),e.k0s(),e.j41(21,"tr",0)(22,"td")(23,"a",1),e.bIt("click",function(){return D.changeHours(-D.hourStep)}),e.nrm(24,"span",7),e.k0s()(),e.DNE(25,ku,2,0,"td",3),e.DNE(26,eh,3,2,"td",3),e.DNE(27,th,2,0,"td",3),e.DNE(28,Gr,3,2,"td",3),e.DNE(29,Vd,2,0,"td",3),e.DNE(30,xu,1,0,"td",3),e.k0s()()()),2&m&&(e.R7$(2),e.Y8G("hidden",!D.showSpinners),e.R7$(2),e.AVh("disabled",!D.canIncrementHours||!D.isEditable),e.R7$(2),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(2),e.AVh("has-error",D.invalidHours),e.R7$(1),e.AVh("is-invalid",D.invalidHours),e.Y8G("placeholder",D.hoursPlaceholder)("readonly",D.readonlyInput)("disabled",D.disabled)("value",D.hours),e.BMQ("aria-label",D.labelHours),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("hidden",!D.showSpinners),e.R7$(2),e.AVh("disabled",!D.canDecrementHours||!D.isEditable),e.R7$(2),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian))},dependencies:[qi.bT],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}}return s})(),ns=(()=>{class s{static forRoot(){return{ngModule:s,providers:[qa,Wn]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({providers:[Wn],imports:[qi.MD]})}}return s})();var Is=N(9969),Ka=N(8359),$r=N(4572),kl=N(1635);class td{constructor(c,r,m){this.nodes=c,this.viewRef=r,this.componentRef=m}}class nh{constructor(c,r,m,D,G,fe,st,Yt,Bn){this._viewContainerRef=c,this._renderer=r,this._elementRef=m,this._injector=D,this._componentFactoryResolver=G,this._ngZone=fe,this._applicationRef=st,this._posService=Yt,this._document=Bn,this.onBeforeShow=new e.bkB,this.onShown=new e.bkB,this.onBeforeHide=new e.bkB,this.onHidden=new e.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(c){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(c),this}to(c){return this.container=c||this.container,this}position(c){return c?(this.attachment=c.attachment||this.attachment,this._elementRef=c.target||this._elementRef,this):this}provide(c){return this._providers.push(c),this}show(c={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(c.content,c.context,c.initialState);const r=e.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(r,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,c),this.container instanceof e.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const m=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!m)return;m.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(c.id?{id:c.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(c){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const r=this._componentRef.location.nativeElement;return r.parentNode?.removeChild(r),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(c?{id:c}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(c){this.triggers=c.triggers||this.triggers,this._listenOpts.outsideClick=c.outsideClick,this._listenOpts.outsideEsc=c.outsideEsc,c.target=c.target||this._elementRef?.nativeElement;const r=this._listenOpts.hide=()=>c.hide?c.hide():void this.hide(),m=this._listenOpts.show=G=>{c.show?c.show(G):this.show(G),G()};return this._renderer&&(this._unregisterListenersFn=function ac(s,c){const r=Fo(c.triggers),m=c.target;if(1===r.length&&r[0].isManual())return Function.prototype;const D=[],G=[],fe=()=>{G.forEach(st=>D.push(st())),G.length=0};return r.forEach(st=>{const Yt=st.open===st.close,Bn=Yt?c.toggle:c.show;if(!Yt&&st.close&&c.hide){const Qn=st.close,ls=c.hide;G.push(()=>s.listen(m,Qn,ls))}Bn&&D.push(s.listen(m,st.open,()=>Bn(fe)))}),()=>{D.forEach(st=>st())}}(this._renderer,{target:c.target,triggers:c.triggers,show:m,hide:r,toggle:G=>{this.isShown?r():m(G)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(c,r){return c&&r&&(this._inlineViewRef=c.createEmbeddedView(r)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const c=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function Yc(s,c){return c.outsideClick?s.listen("document","click",r=>{c.target&&c.target.contains(r.target)||c.targets&&c.targets.some(m=>m.contains(r.target))||c.hide&&c.hide()}):Function.prototype}(this._renderer,{targets:[c,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function ud(s,c){return c.outsideEsc?s.listen("document","keyup.esc",r=>{c.target&&c.target.contains(r.target)||c.targets&&c.targets.some(m=>m.contains(r.target))||c.hide&&c.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(c,r,m){if(!c)return new td([]);if(c instanceof e.C4Q){if(this._viewContainerRef){const fe=this._viewContainerRef.createEmbeddedView(c,r);return fe.markForCheck(),new td([fe.rootNodes],fe)}const G=c.createEmbeddedView({});return this._applicationRef.attachView(G),new td([G.rootNodes],G)}if("function"==typeof c){const G=this._componentFactoryResolver.resolveComponentFactory(c),fe=e.zZn.create({providers:this._providers,parent:this._injector}),st=G.create(fe);return Object.assign(st.instance,m),this._applicationRef.attachView(st.hostView),new td([[st.location.nativeElement]],st.hostView,st)}const D=this._renderer?[this._renderer.createText(`${c}`)]:[];return new td([D])}}let dr=(()=>{class s{constructor(r,m,D,G,fe,st){this._componentFactoryResolver=r,this._ngZone=m,this._injector=D,this._posService=G,this._applicationRef=fe,this._document=st}createLoader(r,m,D){return new nh(m,D,r,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(e.OM3),e.KVO(e.SKi),e.KVO(e.zZn),e.KVO(md),e.KVO(e.o8S),e.KVO(qi.qQ))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var _d=N(1584);const Da=["*"];let vd=(()=>{class s{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),ou=(()=>{class s{get _bsVersions(){return jr()}constructor(r){Object.assign(this,r)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=zc[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(vd))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(m,D){2&m&&(e.BMQ("id",D.id),e.HbH("show tooltip in tooltip-"+D.placement+" bs-tooltip-"+D.placement+" "+D.placement+" "+D.containerClass))},ngContentSelectors:Da,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(m,D){1&m&&(e.NAR(),e.nrm(0,"div",0),e.j41(1,"div",1),e.SdG(2),e.k0s())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return s})(),_f=0,ih=(()=>{class s{get isOpen(){return this._tooltip.isShown}set isOpen(r){r?this.show():this.hide()}set htmlContent(r){lr("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=r}set _placement(r){lr("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=r}set _isOpen(r){lr("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=r}get _isOpen(){return lr("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(r){lr("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!r}get _enable(){return lr("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(r){lr('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=r?"body":this.container}get _appendToBody(){return lr('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(r){lr("tooltipClass deprecated")}set _tooltipContext(r){lr("tooltipContext deprecated")}set _tooltipPopupDelay(r){lr("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=r}get _tooltipTrigger(){return lr("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(r){lr("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(r||"").toString()}constructor(r,m,D,G,fe,st){this._elementRef=G,this._renderer=fe,this._positionService=st,this.tooltipId=_f++,this.adaptivePosition=!0,this.tooltipChange=new e.bkB,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.bkB,this._tooltip=m.createLoader(this._elementRef,r,this._renderer).provide({provide:vd,useValue:D}),Object.assign(this,D),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(r=>{r||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const r=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(ou).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},m=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,_d.O)(this.delay).subscribe(()=>{r(),m()}),this.triggers&&Fo(this.triggers).forEach(D=>{D.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,D.close,()=>{this._delaySubscription?.unsubscribe(),m()}))})):r()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.c1b),e.rXU(dr),e.rXU(vd),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(md))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}}return(0,kl.Cg)([lc(),(0,kl.Sn)("design:type",Object)],s.prototype,"tooltip",void 0),s})(),kh=(()=>{class s{static forRoot(){return{ngModule:s,providers:[dr,md]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({imports:[qi.MD]})}}return s})();function vf(s,c){if(1&s){const r=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG();return e.Njj(fe.selectFromRanges(G))}),e.EFF(1),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG();e.AVh("selected",r.value===m.selectedRange),e.R7$(1),e.SpI(" ",r.label," ")}}function sh(s,c){1&s&&e.nrm(0,"bs-current-date",4)}function Nu(s,c){1&s&&e.nrm(0,"bs-timepicker")}const xh=[[["bs-datepicker-navigation-view"]],"*"],Ih=["bs-datepicker-navigation-view","*"],oh=["bsDatepickerDayDecorator",""];function Oh(s,c){if(1&s){const r=e.RV6();e.qex(0),e.EFF(1," \u200b "),e.j41(2,"button",2),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.view("month"))}),e.j41(3,"span"),e.EFF(4),e.k0s()(),e.bVm()}if(2&s){const r=e.XpG();e.R7$(2),e.Y8G("disabled",r.isDisabled),e.R7$(2),e.JRh(r.calendar.monthTitle)}}function Rh(s,c){1&s&&e.nrm(0,"th")}function Fu(s,c){if(1&s&&(e.j41(0,"th",5),e.EFF(1),e.k0s()),2&s){const r=c.index,m=e.XpG();e.R7$(1),e.SpI("",m.calendar.weekdays[r]," ")}}function Nh(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",11),e.bIt("click",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.selectWeek(D))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG(2).index,m=e.XpG();e.R7$(1),e.JRh(m.calendar.weekNumbers[r])}}function bf(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",12),e.bIt("click",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.selectWeek(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.weekHoverHandler(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.weekHoverHandler(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG(2).index,m=e.XpG();e.R7$(1),e.JRh(m.calendar.weekNumbers[r])}}function sp(s,c){if(1&s&&(e.j41(0,"td",8),e.DNE(1,Nh,2,1,"span",9),e.DNE(2,bf,2,1,"span",10),e.k0s()),2&s){const r=e.XpG(2);e.AVh("active-week",r.isWeekHovered),e.R7$(1),e.Y8G("ngIf",r.isiOS),e.R7$(1),e.Y8G("ngIf",!r.isiOS)}}function op(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",17),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.FS9("tooltip",r.tooltipText),e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 3")}}function rp(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",18),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 2")}}function yf(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",19),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 1")}}function rh(s,c){if(1&s&&(e.j41(0,"td",13),e.DNE(1,op,2,3,"span",14),e.DNE(2,rp,2,2,"span",15),e.DNE(3,yf,2,2,"span",16),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!r.isiOS&&r.isShowTooltip),e.R7$(1),e.Y8G("ngIf",!r.isiOS&&!r.isShowTooltip),e.R7$(1),e.Y8G("ngIf",r.isiOS)}}function ah(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,sp,3,4,"td",6),e.DNE(2,rh,4,3,"td",7),e.k0s()),2&s){const r=c.$implicit,m=e.XpG();e.R7$(1),e.Y8G("ngIf",m.options&&m.options.showWeekNumbers),e.R7$(1),e.Y8G("ngForOf",r.days)}}function Fh(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.viewMonth(G))})("mouseenter",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverMonth(G,!0))})("mouseleave",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverMonth(G,!1))}),e.j41(1,"span"),e.EFF(2),e.k0s()()}if(2&s){const r=c.$implicit;e.AVh("disabled",r.isDisabled)("is-highlighted",r.isHovered),e.R7$(1),e.AVh("selected",r.isSelected),e.R7$(1),e.JRh(r.label)}}function ru(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,Fh,3,7,"td",3),e.k0s()),2&s){const r=c.$implicit;e.R7$(1),e.Y8G("ngForOf",r)}}function ap(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.viewYear(G))})("mouseenter",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverYear(G,!0))})("mouseleave",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverYear(G,!1))}),e.j41(1,"span"),e.EFF(2),e.k0s()()}if(2&s){const r=c.$implicit;e.AVh("disabled",r.isDisabled)("is-highlighted",r.isHovered),e.R7$(1),e.AVh("selected",r.isSelected),e.R7$(1),e.JRh(r.label)}}function Ah(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,ap,3,7,"td",3),e.k0s()),2&s){const r=c.$implicit;e.R7$(1),e.Y8G("ngForOf",r)}}const lp=["startTP"];function cp(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-days-calendar-view",11),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.dayHoverHandler(D))})("onHoverWeek",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.weekHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.daySelectHandler(D))}),e.nI1(1,"async"),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)("isDisabled",m.isDatePickerDisabled)("options",e.bMT(1,5,m.options$))}}function Ph(s,c){if(1&s&&e.nrm(0,"timepicker",13,16),2&s){const r=e.XpG(4);e.Y8G("disabled",r.isDatePickerDisabled)}}function dp(s,c){if(1&s&&(e.j41(0,"div",12),e.nrm(1,"timepicker",13,14),e.DNE(3,Ph,2,1,"timepicker",15),e.k0s()),2&s){const r=e.XpG(3);e.R7$(1),e.Y8G("disabled",r.isDatePickerDisabled),e.R7$(2),e.Y8G("ngIf",r.isRangePicker)}}function Gd(s,c){if(1&s&&(e.qex(0),e.j41(1,"div",8),e.DNE(2,cp,2,7,"bs-days-calendar-view",9),e.nI1(3,"async"),e.k0s(),e.DNE(4,dp,4,2,"div",10),e.bVm()),2&s){const r=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,r.daysCalendar$)),e.R7$(2),e.Y8G("ngIf",r.withTimepicker)}}function lh(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-month-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function Lh(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,lh,1,3,"bs-month-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.monthsCalendar))}}function Cf(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-years-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function wf(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,Cf,1,3,"bs-years-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.yearsCalendar))}}function ch(s,c){1&s&&(e.j41(0,"div",19)(1,"button",20),e.EFF(2,"Apply"),e.k0s(),e.j41(3,"button",21),e.EFF(4,"Cancel"),e.k0s()())}function $d(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",24)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.setToday())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("today-left","left"===r.todayPos)("today-right","right"===r.todayPos)("today-center","center"===r.todayPos),e.R7$(2),e.JRh(r.todayBtnLbl)}}function up(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",26)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.clearDate())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("clear-left","left"===r.clearPos)("clear-right","right"===r.clearPos)("clear-center","center"===r.clearPos),e.R7$(2),e.JRh(r.clearBtnLbl)}}function Df(s,c){if(1&s&&(e.j41(0,"div",19),e.DNE(1,$d,3,7,"div",22),e.DNE(2,up,3,7,"div",23),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",r.showTodayBtn),e.R7$(1),e.Y8G("ngIf",r.showClearBtn)}}function hp(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",27)(1,"bs-custom-date-view",28),e.bIt("onSelect",function(D){e.eBV(r);const G=e.XpG(2);return e.Njj(G.setRangeOnCalendar(D))}),e.k0s()()}if(2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("selectedRange",r.chosenRange)("ranges",r.customRanges)("customRangeLabel",r.customRangeBtnLbl)}}function fp(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",1)(1,"div",2),e.bIt("@datepickerAnimation.done",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.positionServiceEnable())}),e.j41(2,"div",3),e.nI1(3,"async"),e.DNE(4,Gd,5,4,"ng-container",4),e.DNE(5,Lh,3,3,"div",5),e.DNE(6,wf,3,3,"div",5),e.k0s(),e.DNE(7,ch,5,0,"div",6),e.DNE(8,Df,3,2,"div",6),e.k0s(),e.DNE(9,hp,2,3,"div",7),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("ngClass",r.containerClass),e.R7$(1),e.Y8G("@datepickerAnimation",r.animationState),e.R7$(1),e.Y8G("ngSwitch",e.bMT(3,9,r.viewMode)),e.R7$(2),e.Y8G("ngSwitchCase","day"),e.R7$(1),e.Y8G("ngSwitchCase","month"),e.R7$(1),e.Y8G("ngSwitchCase","year"),e.R7$(1),e.Y8G("ngIf",!1),e.R7$(1),e.Y8G("ngIf",r.showTodayBtn||r.showClearBtn),e.R7$(1),e.Y8G("ngIf",r.customRanges&&r.customRanges.length>0)}}const Et=["endTP"];function $t(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-days-calendar-view",11),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.dayHoverHandler(D))})("onHoverWeek",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.weekHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.daySelectHandler(D))}),e.nI1(1,"async"),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)("isDisabled",m.isDatePickerDisabled)("options",e.bMT(1,5,m.options$))}}function Ut(s,c){if(1&s&&e.nrm(0,"timepicker",13,16),2&s){const r=e.XpG(4);e.Y8G("disabled",r.isDatePickerDisabled)}}function Fn(s,c){if(1&s&&(e.j41(0,"div",12),e.nrm(1,"timepicker",13,14),e.DNE(3,Ut,2,1,"timepicker",15),e.k0s()),2&s){const r=e.XpG(3);e.R7$(1),e.Y8G("disabled",r.isDatePickerDisabled),e.R7$(2),e.Y8G("ngIf",r.isRangePicker)}}function Mn(s,c){if(1&s&&(e.qex(0),e.j41(1,"div",8),e.DNE(2,$t,2,7,"bs-days-calendar-view",9),e.nI1(3,"async"),e.k0s(),e.DNE(4,Fn,4,2,"div",10),e.bVm()),2&s){const r=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,r.daysCalendar$)),e.R7$(2),e.Y8G("ngIf",r.withTimepicker)}}function On(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-month-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function Oi(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,On,1,3,"bs-month-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.monthsCalendar))}}function Ui(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-years-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function hi(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,Ui,1,3,"bs-years-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.yearsCalendar))}}function is(s,c){1&s&&(e.j41(0,"div",19)(1,"button",20),e.EFF(2,"Apply"),e.k0s(),e.j41(3,"button",21),e.EFF(4,"Cancel"),e.k0s()())}function Wi(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",24)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.setToday())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("today-left","left"===r.todayPos)("today-right","right"===r.todayPos)("today-center","center"===r.todayPos),e.R7$(2),e.JRh(r.todayBtnLbl)}}function Ao(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",26)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.clearDate())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("clear-left","left"===r.clearPos)("clear-right","right"===r.clearPos)("clear-center","center"===r.clearPos),e.R7$(2),e.JRh(r.clearBtnLbl)}}function ss(s,c){if(1&s&&(e.j41(0,"div",19),e.DNE(1,Wi,3,7,"div",22),e.DNE(2,Ao,3,7,"div",23),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",r.showTodayBtn),e.R7$(1),e.Y8G("ngIf",r.showClearBtn)}}function fs(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",27)(1,"bs-custom-date-view",28),e.bIt("onSelect",function(D){e.eBV(r);const G=e.XpG(2);return e.Njj(G.setRangeOnCalendar(D))}),e.k0s()()}if(2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("selectedRange",r.chosenRange)("ranges",r.customRanges)("customRangeLabel",r.customRangeBtnLbl)}}function Os(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",1)(1,"div",2),e.bIt("@datepickerAnimation.done",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.positionServiceEnable())}),e.j41(2,"div",3),e.nI1(3,"async"),e.DNE(4,Mn,5,4,"ng-container",4),e.DNE(5,Oi,3,3,"div",5),e.DNE(6,hi,3,3,"div",5),e.k0s(),e.DNE(7,is,5,0,"div",6),e.DNE(8,ss,3,2,"div",6),e.k0s(),e.DNE(9,fs,2,3,"div",7),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("ngClass",r.containerClass),e.R7$(1),e.Y8G("@datepickerAnimation",r.animationState),e.R7$(1),e.Y8G("ngSwitch",e.bMT(3,9,r.viewMode)),e.R7$(2),e.Y8G("ngSwitchCase","day"),e.R7$(1),e.Y8G("ngSwitchCase","month"),e.R7$(1),e.Y8G("ngSwitchCase","year"),e.R7$(1),e.Y8G("ngIf",!1),e.R7$(1),e.Y8G("ngIf",r.showTodayBtn||r.showClearBtn),e.R7$(1),e.Y8G("ngIf",r.customRanges&&r.customRanges.length>0)}}let Xl=(()=>{class s{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const Hd="220ms cubic-bezier(0, 0, 0.2, 1)",lu=(0,Is.hZ)("datepickerAnimation",[(0,Is.wk)("animated-down",(0,Is.iF)({height:"*",overflow:"hidden"})),(0,Is.kY)("* => animated-down",[(0,Is.iF)({height:0,overflow:"hidden"}),(0,Is.i0)(Hd)]),(0,Is.wk)("animated-up",(0,Is.iF)({height:"*",overflow:"hidden"})),(0,Is.kY)("* => animated-up",[(0,Is.iF)({height:"*",overflow:"hidden"}),(0,Is.i0)(Hd)]),(0,Is.kY)("* => unanimated",(0,Is.i0)("0s"))]);class sd{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Ka.yU,this.selectedTimeSub=new Ka.yU}set minDate(c){this._effects?.setMinDate(c)}set maxDate(c){this._effects?.setMaxDate(c)}set daysDisabled(c){this._effects?.setDaysDisabled(c)}set datesDisabled(c){this._effects?.setDatesDisabled(c)}set datesEnabled(c){this._effects?.setDatesEnabled(c)}set isDisabled(c){this._effects?.setDisabled(c)}set dateCustomClasses(c){this._effects?.setDateCustomClasses(c)}set dateTooltipTexts(c){this._effects?.setDateTooltipTexts(c)}set daysCalendar$(c){this._daysCalendar$=c,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(r=>{this.multipleCalendars=!!r&&r.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(c){}navigateTo(c){}dayHoverHandler(c){}weekHoverHandler(c){}monthHoverHandler(c){}yearHoverHandler(c){}timeSelectHandler(c,r){}daySelectHandler(c){}monthSelectHandler(c){}yearSelectHandler(c){}setRangeOnCalendar(c){}setToday(){}clearDate(){}_stopPropagation(c){c.stopPropagation()}}let po=(()=>{class s{static{this.CALCULATE="[datepicker] calculate dates matrix"}static{this.FORMAT="[datepicker] format datepicker values"}static{this.FLAG="[datepicker] set flags"}static{this.SELECT="[datepicker] select date"}static{this.NAVIGATE_OFFSET="[datepicker] shift view date"}static{this.NAVIGATE_TO="[datepicker] change view date"}static{this.SET_OPTIONS="[datepicker] update render options"}static{this.HOVER="[datepicker] hover date"}static{this.CHANGE_VIEWMODE="[datepicker] switch view mode"}static{this.SET_MIN_DATE="[datepicker] set min date"}static{this.SET_MAX_DATE="[datepicker] set max date"}static{this.SET_DAYSDISABLED="[datepicker] set days disabled"}static{this.SET_DATESDISABLED="[datepicker] set dates disabled"}static{this.SET_DATESENABLED="[datepicker] set dates enabled"}static{this.SET_IS_DISABLED="[datepicker] set is disabled"}static{this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes"}static{this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts"}static{this.SET_LOCALE="[datepicker] set datepicker locale"}static{this.SELECT_TIME="[datepicker] select time"}static{this.SELECT_RANGE="[daterangepicker] select dates range"}calculate(){return{type:s.CALCULATE}}format(){return{type:s.FORMAT}}flag(){return{type:s.FLAG}}select(r){return{type:s.SELECT,payload:r}}selectTime(r,m){return{type:s.SELECT_TIME,payload:{date:r,index:m}}}changeViewMode(r){return{type:s.CHANGE_VIEWMODE,payload:r}}navigateTo(r){return{type:s.NAVIGATE_TO,payload:r}}navigateStep(r){return{type:s.NAVIGATE_OFFSET,payload:r}}setOptions(r){return{type:s.SET_OPTIONS,payload:r}}selectRange(r){return{type:s.SELECT_RANGE,payload:r}}hoverDay(r){return{type:s.HOVER,payload:r.isHovered?r.cell.date:null}}minDate(r){return{type:s.SET_MIN_DATE,payload:r}}maxDate(r){return{type:s.SET_MAX_DATE,payload:r}}daysDisabled(r){return{type:s.SET_DAYSDISABLED,payload:r}}datesDisabled(r){return{type:s.SET_DATESDISABLED,payload:r}}datesEnabled(r){return{type:s.SET_DATESENABLED,payload:r}}isDisabled(r){return{type:s.SET_IS_DISABLED,payload:r}}setDateCustomClasses(r){return{type:s.SET_DATE_CUSTOM_CLASSES,payload:r}}setDateTooltipTexts(r){return{type:s.SET_DATE_TOOLTIP_TEXTS,payload:r}}setLocale(r){return{type:s.SET_LOCALE,payload:r}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),yd=(()=>{class s{constructor(){this._defaultLocale="en",this._locale=new gd.t(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(r){r!==this.currentLocale&&this._locale.next(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),Il=(()=>{class s{constructor(r,m){this._actions=r,this._localeService=m,this._subs=[]}init(r){return this._store=r,this}setValue(r){this._store?.dispatch(this._actions.select(r))}setRangeValue(r){this._store?.dispatch(this._actions.selectRange(r))}setMinDate(r){return this._store?.dispatch(this._actions.minDate(r)),this}setMaxDate(r){return this._store?.dispatch(this._actions.maxDate(r)),this}setDaysDisabled(r){return this._store?.dispatch(this._actions.daysDisabled(r)),this}setDatesDisabled(r){return this._store?.dispatch(this._actions.datesDisabled(r)),this}setDatesEnabled(r){return this._store?.dispatch(this._actions.datesEnabled(r)),this}setDisabled(r){return this._store?.dispatch(this._actions.isDisabled(r)),this}setDateCustomClasses(r){return this._store?.dispatch(this._actions.setDateCustomClasses(r)),this}setDateTooltipTexts(r){return this._store?.dispatch(this._actions.setDateTooltipTexts(r)),this}setOptions(r){const m=Object.assign({locale:this._localeService.currentLocale},r);return this._store?.dispatch(this._actions.setOptions(m)),this}setBindings(r){return this._store?(r.selectedTime=this._store.select(m=>m.selectedTime).pipe((0,h.p)(m=>!!m)),r.daysCalendar$=this._store.select(m=>m.flaggedMonths).pipe((0,h.p)(m=>!!m)),r.monthsCalendar=this._store.select(m=>m.flaggedMonthsCalendar).pipe((0,h.p)(m=>!!m)),r.yearsCalendar=this._store.select(m=>m.yearsCalendarFlagged).pipe((0,h.p)(m=>!!m)),r.viewMode=this._store.select(m=>m.view?.mode),r.options$=(0,$r.z)([this._store.select(m=>m.showWeekNumbers),this._store.select(m=>m.displayMonths)]).pipe((0,ne.T)(m=>({showWeekNumbers:m[0],displayMonths:m[1]}))),this):this}setEventHandlers(r){return r.setViewMode=m=>{this._store?.dispatch(this._actions.changeViewMode(m))},r.navigateTo=m=>{this._store?.dispatch(this._actions.navigateStep(m.step))},r.dayHoverHandler=m=>{const D=m.cell;D.isOtherMonth||D.isDisabled||(this._store?.dispatch(this._actions.hoverDay(m)),D.isHovered=m.isHovered)},r.monthHoverHandler=m=>{m.cell.isHovered=m.isHovered},r.yearHoverHandler=m=>{m.cell.isHovered=m.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(r=>r.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(r=>r.monthsModel).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(r=>r.formattedMonths).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.selectedDate).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.selectedRange).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.yearsCalendarModel).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.hoveredDate).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.dateCustomClasses).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.dateTooltipTexts).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(r=>this._store?.dispatch(this._actions.setLocale(r)))),this):this}destroy(){for(const r of this._subs)r.unsubscribe()}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(po),e.KVO(yd))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const cu={date:new Date,mode:"day"},Pu=Object.assign(new Xl,{locale:"en",view:cu,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function Lu(s,c,r){const m=c&&P(_e(s,"month"),c,"day"),D=r&&xo(oe(s,"month"),r,"day");return m||D||!1}function Ac(s,c,r){const m=c&&P(_e(s,"year"),c,"day"),D=r&&xo(oe(s,"year"),r,"day");return m||D||!1}function uh(s,c,r){return!!(c&&bt(c)&&c.length)&&(r&&"year"===r&&!c[0].getDate()?c.some(m=>te(s,m,"year")):c.some(m=>te(s,m,"date")))}function du(s,c,r){return!!(c&&bt(c)&&c.length)&&!c.some(m=>te(s,m,r||"date"))}function Gh(s,c=0){const r=s&&s.yearsCalendarModel&&s.yearsCalendarModel[c];return r?.years[0]&&r.years[0][0]&&r.years[0][0].date}function Pc(s,c){return!s||!c||!s.length&&!s[0].value||s.forEach(r=>(!r||!r.value||r.value instanceof Date||!(r.value instanceof Array&&r.value.length)||(r.value=Bu(r.value,c)),s)),s}function Yd(s,c){return!s||!c||s instanceof Array&&!s.length||s instanceof Date?s:Bu(s,c)}function Bu(s,c){return s instanceof Array?s.map(m=>m&&(xo(m,c,"date")&&(m=c),m)):s}function Lc(s){return s&&uu(s)}function Vu(s){return s?.length&&s.map(c=>c&&uu(c)),s}function uu(s){const c=new Date;return s.setMilliseconds(c.getMilliseconds()),s.setSeconds(c.getSeconds()),s.setMinutes(c.getMinutes()),s.setHours(c.getHours()),s}function Cd(s,c){let r=s.initialDate;const m=new Array(s.height);for(let D=0;D<s.height;D++){m[D]=new Array(s.width);for(let G=0;G<s.width;G++)m[D][G]=c(r),r=un(r,s.shift)}return m}function ju(s,c){const r=function It(s){return L(s.getFullYear(),s.getMonth(),1,s.getHours(),s.getMinutes(),s.getSeconds())}(s),m=function Vh(s,c){if(function xe(s,c){return s.getDay()===Number(c)}(s,c.firstDayOfWeek))return s;const m=function jh(s,c){const r=Number(c);if(isNaN(r))return 0;if(0===r)return s;const m=s-r%7;return m<0?m+7:m}(Cn(s),c.firstDayOfWeek);return un(s,{day:-m})}(r,c);return{daysMatrix:Cd({width:c.width||0,height:c.height||0,initialDate:m,shift:{day:1}},fe=>fe),month:r}}function $h(s,c,r){return s.map(m=>m[0]?Uo(m[0],c,r):"")}function od(s){const c=Ti(s),r=c.weekdaysShort(),m=c.firstDayOfWeek();return[...r.slice(m),...r.slice(0,m)]}function mp(s,c){return!c||s>=c}const rm=4,gp=3,Uu={month:1};function _p(s,c){const r=oe(s,"year");return{months:Cd({width:gp,height:rm,initialDate:r,shift:Uu},G=>({date:G,label:Uo(G,c.monthLabel,c.locale)})),monthTitle:"",yearTitle:Uo(s,c.yearTitle,c.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const kf=4,hh=4,fh=kf*hh,vp=-1*(Math.floor(fh/2)-1),bp={year:1};function Uh(s,c,r){const m=function Vg(s,c){return c&&s.getFullYear()>=c.getFullYear()&&s.getFullYear()<c.getFullYear()+fh?c:un(s,{year:vp})}(s,r),G=Cd({width:hh,height:kf,initialDate:m,shift:bp},st=>({date:st,label:Uo(st,c.yearLabel,c.locale)})),fe=function lm(s,c){return`${Uo(s[0][0].date,c.yearTitle,c.locale)} - ${Uo(s[kf-1][hh-1].date,c.yearTitle,c.locale)}`}(G,c);return{years:G,monthTitle:"",yearTitle:fe,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function xf(s,c){!s||!isNaN(s.getTime())||(s.setHours(c.getHours()),s.setMinutes(c.getMinutes()),s.setSeconds(c.getSeconds()),s.setMilliseconds(c.getMilliseconds()))}function dm(s=Pu,c){switch(c.type){case po.CALCULATE:return function jg(s){if(!s.view)return s;let c;c=s.displayOneMonthRange&&Yh(s.view.date,s.minDate,s.maxDate)?1:s.displayMonths||1;let r=s.view.date;if("day"===s.view.mode&&s.monthViewOptions){s.showPreviousMonth&&s.selectedRange&&0===s.selectedRange.length&&(r=un(r,{month:-1})),s.monthViewOptions.firstDayOfWeek=Ti(s.locale).firstDayOfWeek();let m=new Array(c);for(let D=0;D<c;D++)m[D]=ju(r,s.monthViewOptions),r=un(r,{month:1});if(s.preventChangeToNextMonth&&s.flaggedMonths&&s.hoveredDate){const D=ju(s.view.date,s.monthViewOptions);s.flaggedMonths.length&&s.flaggedMonths[1].month.getMonth()===D.month.getMonth()&&(m=s.flaggedMonths.map(G=>s.monthViewOptions?ju(G.month,s.monthViewOptions):null).filter(G=>null!==G))}return Object.assign({},s,{monthsModel:m})}if("month"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=_p(r,rd(s)),r=un(r,{year:1});return Object.assign({},s,{monthsCalendar:m})}if("year"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=Uh(r,rd(s),"year"===s.minMode?Gh(s,D):void 0),r=un(r,{year:fh});return Object.assign({},s,{yearsCalendarModel:m})}return s}(s);case po.FORMAT:return function Hh(s){if(!s.view)return s;if("day"===s.view.mode&&s.monthsModel){const m=s.monthsModel.map((D,G)=>function Gu(s,c,r){return{month:s.month,monthTitle:Uo(s.month,c.monthTitle,c.locale),yearTitle:Uo(s.month,c.yearTitle,c.locale),weekNumbers:$h(s.daysMatrix,c.weekNumbers,c.locale),weekdays:od(c.locale),weeks:s.daysMatrix.map((m,D)=>({days:m.map((G,fe)=>({date:G,label:Uo(G,c.dayLabel,c.locale),monthIndex:r,weekIndex:D,dayIndex:fe}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(D,rd(s),G));return Object.assign({},s,{formattedMonths:m})}const c=s.displayMonths||1;let r=s.view.date;if("month"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=_p(r,rd(s)),r=un(r,{year:1});return Object.assign({},s,{monthsCalendar:m})}if("year"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=Uh(r,rd(s)),r=un(r,{year:16});return Object.assign({},s,{yearsCalendarModel:m})}return s}(s);case po.FLAG:return function um(s){if(!s.view)return s;const c=Yh(s.view.date,s.minDate,s.maxDate)?1:s.displayMonths;if(s.formattedMonths&&"day"===s.view.mode){const r=s.formattedMonths.map((m,D)=>function $u(s,c){return s.weeks.forEach(r=>{r.days.forEach((m,D)=>{const G=!Ve(m.date,s.month),fe=!G&&Ft(m.date,c.hoveredDate),st=!G&&c.selectedRange&&Ft(m.date,c.selectedRange[0]),Yt=!G&&c.selectedRange&&Ft(m.date,c.selectedRange[1]),Bn=!G&&Ft(m.date,c.selectedDate)||st||Yt,Qn=!G&&c.selectedRange&&function Sf(s,c,r){return!!(s&&c&&c[0])&&(c[1]?s>c[0]&&s<=c[1]:!!r&&s>c[0]&&s<=r)}(m.date,c.selectedRange,c.hoveredDate),ls=c.isDisabled||P(m.date,c.minDate,"day")||xo(m.date,c.maxDate,"day")||function ae(s,c){return!(typeof c>"u"||!c||!c.length)&&c.some(r=>r===s.getDay())}(m.date,c.daysDisabled)||uh(m.date,c.datesDisabled)||du(m.date,c.datesEnabled),Wo=!G&&Ft(m.date,new Date),al=c.dateCustomClasses&&c.dateCustomClasses.map(aa=>Ft(m.date,aa.date)?aa.classes:[]).reduce((aa,qu)=>aa.concat(qu),[]).join(" ")||"",qd=c.dateTooltipTexts&&c.dateTooltipTexts.map(aa=>Ft(m.date,aa.date)?aa.tooltipText:"").reduce((aa,qu)=>(aa.push(qu),aa),[]).join(" ")||"",ll=Object.assign({},m,{isOtherMonth:G,isHovered:fe,isSelected:Bn,isSelectionStart:st,isSelectionEnd:Yt,isInRange:Qn,isDisabled:ls,isToday:Wo,customClasses:al,tooltipText:qd});(m.isOtherMonth!==ll.isOtherMonth||m.isHovered!==ll.isHovered||m.isSelected!==ll.isSelected||m.isSelectionStart!==ll.isSelectionStart||m.isSelectionEnd!==ll.isSelectionEnd||m.isDisabled!==ll.isDisabled||m.isInRange!==ll.isInRange||m.customClasses!==ll.customClasses||m.tooltipText!==ll.tooltipText)&&(r.days[D]=ll)})}),s.hideLeftArrow=c.isDisabled||!!c.monthIndex&&c.monthIndex>0&&c.monthIndex!==c.displayMonths,s.hideRightArrow=c.isDisabled||(!!c.monthIndex||0===c.monthIndex)&&!!c.displayMonths&&c.monthIndex<c.displayMonths&&c.monthIndex+1!==c.displayMonths,s.disableLeftArrow=Lu(un(s.month,{month:-1}),c.minDate,c.maxDate),s.disableRightArrow=Lu(un(s.month,{month:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,daysDisabled:s.daysDisabled,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,hoveredDate:s.hoveredDate,selectedDate:s.selectedDate,selectedRange:s.selectedRange,displayMonths:c,dateCustomClasses:s.dateCustomClasses,dateTooltipTexts:s.dateTooltipTexts,monthIndex:D}));return Object.assign({},s,{flaggedMonths:r})}if("month"===s.view.mode&&s.monthsCalendar){const r=s.monthsCalendar.map((m,D)=>function am(s,c){return s.months.forEach((r,m)=>{r.forEach((D,G)=>{let fe;const st=Ve(D.date,c.hoveredMonth),Yt=c.isDisabled||uh(D.date,c.datesDisabled)||du(D.date,c.datesEnabled,"month")||Lu(D.date,c.minDate,c.maxDate);!c.selectedDate&&c.selectedRange?(fe=Ve(D.date,c.selectedRange[0]),fe||(fe=Ve(D.date,c.selectedRange[1]))):fe=Ve(D.date,c.selectedDate);const Bn=Object.assign(D,{isHovered:st,isDisabled:Yt,isSelected:fe});(D.isHovered!==Bn.isHovered||D.isDisabled!==Bn.isDisabled||D.isSelected!==Bn.isSelected)&&(s.months[m][G]=Bn)})}),s.hideLeftArrow=!!c.monthIndex&&c.monthIndex>0&&c.monthIndex!==c.displayMonths,s.hideRightArrow=(!!c.monthIndex||0===c.monthIndex)&&(!!c.displayMonths||0===c.displayMonths)&&c.monthIndex<c.displayMonths&&c.monthIndex+1!==c.displayMonths,s.disableLeftArrow=Ac(un(s.months[0][0].date,{year:-1}),c.minDate,c.maxDate),s.disableRightArrow=Ac(un(s.months[0][0].date,{year:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,hoveredMonth:s.hoveredMonth,selectedDate:s.selectedDate,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,selectedRange:s.selectedRange,displayMonths:c,monthIndex:D}));return Object.assign({},s,{flaggedMonthsCalendar:r})}if("year"===s.view.mode&&s.yearsCalendarModel){const r=s.yearsCalendarModel.map((m,D)=>function cm(s,c){s.years.forEach((D,G)=>{D.forEach((fe,st)=>{let Yt;const Bn=ut(fe.date,c.hoveredYear),Qn=c.isDisabled||uh(fe.date,c.datesDisabled,"year")||du(fe.date,c.datesEnabled,"year")||Ac(fe.date,c.minDate,c.maxDate);!c.selectedDate&&c.selectedRange?(Yt=ut(fe.date,c.selectedRange[0]),Yt||(Yt=ut(fe.date,c.selectedRange[1]))):Yt=ut(fe.date,c.selectedDate);const ls=Object.assign(fe,{isHovered:Bn,isDisabled:Qn,isSelected:Yt});(fe.isHovered!==ls.isHovered||fe.isDisabled!==ls.isDisabled||fe.isSelected!==ls.isSelected)&&(s.years[G][st]=ls)})}),s.hideLeftArrow=!!c.yearIndex&&c.yearIndex>0&&c.yearIndex!==c.displayMonths,s.hideRightArrow=!!c.yearIndex&&!!c.displayMonths&&c.yearIndex<c.displayMonths&&c.yearIndex+1!==c.displayMonths,s.disableLeftArrow=Ac(un(s.years[0][0].date,{year:-1}),c.minDate,c.maxDate);const r=s.years.length-1;return s.disableRightArrow=Ac(un(s.years[r][s.years[r].length-1].date,{year:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,hoveredYear:s.hoveredYear,selectedDate:s.selectedDate,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,selectedRange:s.selectedRange,displayMonths:c,yearIndex:D}));return Object.assign({},s,{yearsCalendarFlagged:r})}return s}(s);case po.NAVIGATE_OFFSET:return function If(s,c){if(!s.view)return s;const r=function Of(s,c){if(s.view){if("year"===s.view.mode&&"year"===s.minMode){const r=Gh(s,0);if(r){const m=un(r,{year:-vp});return un(m,c.payload)}}return un(oe(s.view.date,"month"),c.payload)}}(s,c);if(!r)return s;return Object.assign({},s,{view:{mode:s.view.mode,date:r}})}(s,c);case po.NAVIGATE_TO:{const r=c.payload;if(!s.view||!r.unit)return s;const m=function Tn(s,c){return L(li(s.getFullYear(),c.year),li(s.getMonth(),c.month),1,li(s.getHours(),c.hour),li(s.getMinutes(),c.minute),li(s.getSeconds(),c.seconds),li(s.getMilliseconds(),c.milliseconds))}(s.view.date,r.unit);let D,G;return mp(r.viewMode,s.minMode)?(G=r.viewMode,D={view:{date:m,mode:G}}):(G=s.view.mode,D={selectedDate:m,view:{date:m,mode:G}}),Object.assign({},s,D)}case po.CHANGE_VIEWMODE:return mp(c.payload,s.minMode)&&s.view?Object.assign({},s,{view:{date:s.view.date,mode:c.payload}}):s;case po.HOVER:return Object.assign({},s,{hoveredDate:c.payload});case po.SELECT:{if(!s.view)return s;const r={selectedDate:c.payload,view:s.view};if(Array.isArray(s.selectedTime)){const fe=s.selectedTime[0];r.selectedDate&&fe&&xf(r.selectedDate,fe)}const m=s.view.mode,G=ph(c.payload||s.view.date,s.minDate,s.maxDate);return r.view={mode:m,date:G},Object.assign({},s,r)}case po.SELECT_TIME:{const{date:r,index:m}=c.payload,D=s.selectedTime?[...s.selectedTime]:[];return D[m]=r,Object.assign({},s,{selectedTime:D})}case po.SET_OPTIONS:{if(!s.view)return s;const r=c.payload,m=r.minMode?r.minMode:s.view.mode,G=ph(Ue(r.value)&&r.value||bt(r.value)&&Ue(r.value[0])&&r.value[0]||s.view.date,r.minDate,r.maxDate);return r.view={mode:m,date:G},r.value&&(bt(r.value)&&(r.selectedRange=r.value,r.selectedTime=r.value.map(fe=>fe)),r.value instanceof Date&&(r.selectedDate=r.value,r.selectedTime=[r.value])),Object.assign({},s,r)}case po.SELECT_RANGE:{if(!s.view)return s;const r={selectedRange:c.payload,view:s.view};r.selectedRange?.forEach((fe,st)=>{if(Array.isArray(s.selectedTime)){const Yt=s.selectedTime[st];Yt&&xf(fe,Yt)}});const m=s.view.mode,G=ph(c.payload&&c.payload[0]||s.view.date,s.minDate,s.maxDate);return r.view={mode:m,date:G},Object.assign({},s,r)}case po.SET_MIN_DATE:return Object.assign({},s,{minDate:c.payload});case po.SET_MAX_DATE:return Object.assign({},s,{maxDate:c.payload});case po.SET_IS_DISABLED:return Object.assign({},s,{isDisabled:c.payload});case po.SET_DATE_CUSTOM_CLASSES:return Object.assign({},s,{dateCustomClasses:c.payload});case po.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},s,{dateTooltipTexts:c.payload});default:return s}}function rd(s){return{locale:s.locale,monthTitle:s.monthTitle,yearTitle:s.yearTitle,dayLabel:s.dayLabel,monthLabel:s.monthLabel,yearLabel:s.yearLabel,weekNumbers:s.weekNumbers}}function ph(s,c,r){const m=Array.isArray(s)?s[0]:s;return c&&xo(c,m,"day")?c:r&&P(r,m,"day")?r:m}function Yh(s,c,r){return!(!r||!te(r,s,"day"))||c&&r&&c.getMonth()===r.getMonth()}let wd=(()=>{class s extends xn{constructor(){const r=new gd.t({type:"[datepicker] dispatcher init"});super(r,dm,new En(Pu,r,dm))}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),mh=(()=>{class s{constructor(){this.onSelect=new e.bkB}selectFromRanges(r){this.onSelect.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(m,D){1&m&&(e.j41(0,"div",0),e.DNE(1,vf,2,3,"button",1),e.k0s()),2&m&&(e.R7$(1),e.Y8G("ngForOf",D.ranges))},dependencies:[qi.Sq],encapsulation:2,changeDetection:0})}}return s})();var Bc=function(s){return s[s.UP=0]="UP",s[s.DOWN=1]="DOWN",s}(Bc||{});let zu,Rf=(()=>{class s{static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(m,D){1&m&&(e.j41(0,"div",0)(1,"span"),e.EFF(2),e.k0s()()),2&m&&(e.R7$(2),e.JRh(D.title))},encapsulation:2})}}return s})(),Nf=(()=>{class s{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(m,D){1&m&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.EFF(3,"-"),e.k0s(),e.nrm(4,"input",3),e.j41(5,"button",4),e.EFF(6,"+"),e.k0s()(),e.j41(7,"div",1)(8,"button",2),e.EFF(9,"-"),e.k0s(),e.nrm(10,"input",3),e.j41(11,"button",4),e.EFF(12,"+"),e.k0s()(),e.j41(13,"button",5),e.EFF(14),e.nrm(15,"img",6),e.k0s()()),2&m&&(e.R7$(4),e.Y8G("value",D.hours),e.R7$(6),e.Y8G("value",D.minutes),e.R7$(4),e.SpI("",D.ampm," "))},encapsulation:2})}}return s})(),Hu=(()=>{class s{static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-calendar-layout"]],ngContentSelectors:Ih,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(m,D){1&m&&(e.NAR(xh),e.DNE(0,sh,1,0,"bs-current-date",0),e.j41(1,"div",1),e.SdG(2),e.k0s(),e.j41(3,"div",2),e.SdG(4,1),e.k0s(),e.DNE(5,Nu,1,0,"bs-timepicker",3)),2&m&&(e.Y8G("ngIf",!1),e.R7$(5),e.Y8G("ngIf",!1))},dependencies:[qi.bT,Rf,Nf],encapsulation:2})}}return s})(),Gg=(()=>{class s{constructor(r,m,D){this._config=r,this._elRef=m,this._renderer=D,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(r=>r).forEach(r=>{this._renderer.addClass(this._elRef.nativeElement,r)})}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl),e.rXU(e.aKT),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(m,D){2&m&&e.AVh("disabled",D.day.isDisabled)("is-highlighted",D.day.isHovered)("is-other-month",D.day.isOtherMonth)("is-active-other-month",D.day.isOtherMonthHovered)("in-range",D.day.isInRange)("select-start",D.day.isSelectionStart)("select-end",D.day.isSelectionEnd)("selected",D.day.isSelected)},inputs:{day:"day"},attrs:oh,decls:1,vars:1,template:function(m,D){1&m&&e.EFF(0),2&m&&e.JRh(D.day&&D.day.label||"")},encapsulation:2,changeDetection:0})}}return s})(),gh=(()=>{class s{constructor(){this.isDisabled=!1,this.onNavigate=new e.bkB,this.onViewMode=new e.bkB}navTo(r){this.onNavigate.emit(r?Bc.DOWN:Bc.UP)}view(r){this.isDisabled||this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(m,D){1&m&&(e.j41(0,"button",0),e.bIt("click",function(){return D.navTo(!0)}),e.j41(1,"span"),e.EFF(2,"\u2039"),e.k0s()(),e.DNE(3,Oh,5,2,"ng-container",1),e.EFF(4," \u200b "),e.j41(5,"button",2),e.bIt("click",function(){return D.view("year")}),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.EFF(8," \u200b "),e.j41(9,"button",3),e.bIt("click",function(){return D.navTo(!1)}),e.j41(10,"span"),e.EFF(11,"\u203a"),e.k0s()()),2&m&&(e.xc7("visibility",D.calendar.hideLeftArrow?"hidden":"visible"),e.Y8G("disabled",D.calendar.disableLeftArrow),e.R7$(3),e.Y8G("ngIf",D.calendar&&D.calendar.monthTitle),e.R7$(2),e.Y8G("disabled",D.isDisabled),e.R7$(2),e.JRh(D.calendar.yearTitle),e.R7$(2),e.xc7("visibility",D.calendar.hideRightArrow?"hidden":"visible"),e.Y8G("disabled",D.calendar.disableRightArrow))},dependencies:[qi.bT],encapsulation:2,changeDetection:0})}}return s})(),Yu=(()=>{class s{constructor(r){this._config=r,this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB,this.onHoverWeek=new e.bkB,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(r){this.onNavigate.emit({step:{month:Bc.DOWN===r?-1:1}})}changeViewMode(r){this.onViewMode.emit(r)}selectDay(r){this.onSelect.emit(r)}selectWeek(r){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===r.days.length)return;if(this._config.selectWeek&&r.days[0]&&!r.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(r.days[0]);const m=r.days.find(D=>(this._config.selectFromOtherMonth||!D.isOtherMonth)&&!D.isDisabled);if(this.onSelect.emit(m),this._config.selectWeekDateRange){const G=r.days.slice(0).reverse().find(fe=>(this._config.selectFromOtherMonth||!fe.isOtherMonth)&&!fe.isDisabled);this.onSelect.emit(G)}}weekHoverHandler(r,m){(this._config.selectWeek||this._config.selectWeekDateRange)&&r.days.find(G=>(this._config.selectFromOtherMonth||!G.isOtherMonth)&&!G.isDisabled)&&(r.isHovered=m,this.isWeekHovered=m,this.onHoverWeek.emit(r))}hoverDay(r,m){this._config.selectFromOtherMonth&&r.isOtherMonth&&(r.isOtherMonthHovered=m),this._config.dateTooltipTexts&&(r.tooltipText="",this._config.dateTooltipTexts.forEach(D=>{Ft(D.date,r.date)&&(r.tooltipText=D.tooltipText)})),this.onHover.emit({cell:r,isHovered:m})}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"thead")(4,"tr"),e.DNE(5,Rh,1,0,"th",2),e.DNE(6,Fu,2,1,"th",3),e.k0s()(),e.j41(7,"tbody"),e.DNE(8,ah,3,2,"tr",4),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar)("isDisabled",!!D.isDisabled),e.R7$(4),e.Y8G("ngIf",D.options&&D.options.showWeekNumbers),e.R7$(1),e.Y8G("ngForOf",D.calendar.weekdays),e.R7$(2),e.Y8G("ngForOf",D.calendar.weeks))},dependencies:[qi.Sq,qi.bT,ih,Hu,Gg,gh],encapsulation:2})}}return s})(),yp=(()=>{class s{constructor(){this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB}navigateTo(r){this.onNavigate.emit({step:{year:Bc.DOWN===r?-1:1}})}viewMonth(r){this.onSelect.emit(r)}hoverMonth(r,m){this.onHover.emit({cell:r,isHovered:m})}changeViewMode(r){this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"tbody"),e.DNE(4,ru,2,1,"tr",2),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar),e.R7$(3),e.Y8G("ngForOf",null==D.calendar?null:D.calendar.months))},dependencies:[qi.Sq,Hu,gh],encapsulation:2})}}return s})(),Ff=(()=>{class s{constructor(){this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB}navigateTo(r){this.onNavigate.emit({step:{year:(Bc.DOWN===r?-1:1)*fh}})}viewYear(r){this.onSelect.emit(r)}hoverYear(r,m){this.onHover.emit({cell:r,isHovered:m})}changeViewMode(r){this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"tbody"),e.DNE(4,Ah,2,1,"tr",2),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar),e.R7$(3),e.Y8G("ngForOf",null==D.calendar?null:D.calendar.years))},dependencies:[qi.Sq,Hu,gh],encapsulation:2})}}return s})(),hm=(()=>{class s extends sd{set value(r){this._effects?.setValue(r)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(r,m,D,G,fe,st,Yt){super(),this._config=m,this._store=D,this._element=G,this._actions=fe,this._positionService=Yt,this.valueChange=new e.bkB,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=st,r.setStyle(G.nativeElement,"display","block"),r.setStyle(G.nativeElement,"position","absolute")}ngOnInit(){let r;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Z.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(m=>m.selectedDate).subscribe(m=>{r=m,this.valueChange.emit(m)})),this._subs.push(this._store.select(m=>m.selectedTime).subscribe(m=>{!m[0]||!(m[0]instanceof Date)||m[0]===r||this.valueChange.emit(m[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(r=>{Array.isArray(r)&&r.length>=1&&this.startTimepicker?.writeValue(r[0])})),this.startTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(r,m){this._store.dispatch(this._actions.selectTime(r,m))}daySelectHandler(r){!r||(this.isOtherMonthsActive?r.isDisabled:r.isOtherMonth||r.isDisabled)||this._store.dispatch(this._actions.select(r.date))}monthSelectHandler(r){!r||r.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:sn(r.date),year:Vn(r.date)},viewMode:"day"}))}yearSelectHandler(r){!r||r.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:Vn(r.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const r of this._subs)r.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.sFG),e.rXU(Xl),e.rXU(wd),e.rXU(e.aKT),e.rXU(po),e.rXU(Il),e.rXU(md))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-datepicker-container"]],viewQuery:function(m,D){if(1&m&&e.GBs(lp,5),2&m){let G;e.mGM(G=e.lsd())&&(D.startTimepicker=G.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(m,D){1&m&&e.bIt("click",function(fe){return D._stopPropagation(fe)}),2&m&&e.BMQ("disabled",D.isDatepickerDisabled)("readonly",D.isDatepickerReadonly)},features:[e.Jv_([wd,Il]),e.Vt3],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(m,D){1&m&&(e.DNE(0,fp,10,11,"div",0),e.nI1(1,"async")),2&m&&e.Y8G("ngIf",e.bMT(1,1,D.viewMode))},dependencies:[qi.YU,qi.Sq,qi.bT,qi.ux,qi.e1,vi,mh,Yu,yp,Ff,qi.Jj],encapsulation:2,data:{animation:[lu]}})}}return s})(),zh=(()=>{class s{get readonlyValue(){return this.isDisabled?"":null}constructor(r,m,D,G,fe){this._config=r,this._elementRef=m,this._renderer=D,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Er.B,this.isDisabled=!1,this.bsValueChange=new e.bkB,this._subs=[],this._dateInputFormat$=new Er.B,Object.assign(this,this._config),this._datepicker=fe.createLoader(m,G,D),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new gd.t(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(r){this.isOpen$.next(r)}set bsValue(r){this._bsValue&&r&&this._bsValue.getTime()===r.getTime()||(!this._bsValue&&r&&!this._config.withTimepicker&&xf(r,new Date),r&&this.bsConfig?.initCurrentTime&&(r=Lc(r)),this.initPreviousValue(),this._bsValue=r,this.bsValueChange.emit(r))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){zu=this._bsValue}ngOnChanges(r){r.bsConfig&&(r.bsConfig.currentValue?.initCurrentTime&&r.bsConfig.currentValue?.initCurrentTime!==r.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Lc(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(r.minDate&&(this._datepickerRef.instance.minDate=this.minDate),r.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),r.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),r.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),r.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),r.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),r.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),r.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(r=>{this._datepickerRef&&(this._datepickerRef.instance.value=r)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(r=>{this.initPreviousValue(),this.bsValue=r,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(zu&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return zu instanceof Date&&this._bsValue?.getDate()===zu?.getDate()&&this._bsValue?.getMonth()===zu?.getMonth()&&this._bsValue?.getFullYear()===zu?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,h.p)(r=>r!==this.isOpen),(0,De.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xl,useValue:this._config}).attach(hm).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const r of this._subs)r.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:Yd(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(r=>r.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(dr))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(m,D){2&m&&e.BMQ("readonly",D.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.OA$]})}}return s})(),pm=(()=>{class s extends sd{set value(r){this._effects?.setRangeValue(r)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(r,m,D,G,fe,st,Yt){super(),this._config=m,this._store=D,this._element=G,this._actions=fe,this._positionService=Yt,this.valueChange=new e.bkB,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=st,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,r.setStyle(G.nativeElement,"display","block"),r.setStyle(G.nativeElement,"position","absolute")}ngOnInit(){let r;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Z.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(m=>m.selectedRange).subscribe(m=>{r=m,this.valueChange.emit(m),this.chosenRange=m||[]})),this._subs.push(this._store.select(m=>m.selectedTime).subscribe(m=>{!m[0]||!m[1]||!(m[0]instanceof Date)||!(m[1]instanceof Date)||r&&m[0]===r[0]&&m[1]===r[1]||(this.valueChange.emit(m),this.chosenRange=m||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(r=>{Array.isArray(r)&&r.length>=2&&(this.startTimepicker?.writeValue(r[0]),this.endTimepicker?.writeValue(r[1]))})),this.startTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,0)}),this.endTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(r,m){this._store.dispatch(this._actions.selectTime(r,m))}daySelectHandler(r){!r||(this.isOtherMonthsActive?r.isDisabled:r.isOtherMonth||r.isDisabled)||this.rangesProcessing(r)}monthSelectHandler(r){if(r&&!r.isDisabled){if(r.isSelected=!0,"month"!==this._config.minMode){if(r.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:sn(r.date),year:Vn(r.date)},viewMode:"day"}))}this.rangesProcessing(r)}}yearSelectHandler(r){if(r&&!r.isDisabled){if(r.isSelected=!0,"year"!==this._config.minMode){if(r.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:Vn(r.date)},viewMode:"month"}))}this.rangesProcessing(r)}}rangesProcessing(r){1===this._rangeStack.length&&(this._rangeStack=r.date>=this._rangeStack[0]?[this._rangeStack[0],r.date]:[r.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(r.date),0===this._rangeStack.length&&(this._rangeStack=[r.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(r.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const r of this._subs)r.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(r){r&&(this._rangeStack=r.value instanceof Date?[r.value]:r.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(r){let m=new Date(r);if(this._config.maxDate){const D=this._config.maxDate.getTime(),G=r.getTime()+864e5*(this._config.maxDateRange||0);m=G>D?new Date(this._config.maxDate):new Date(G)}else m.setDate(r.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(m)}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.sFG),e.rXU(Xl),e.rXU(wd),e.rXU(e.aKT),e.rXU(po),e.rXU(Il),e.rXU(md))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-daterangepicker-container"]],viewQuery:function(m,D){if(1&m&&(e.GBs(lp,5),e.GBs(Et,5)),2&m){let G;e.mGM(G=e.lsd())&&(D.startTimepicker=G.first),e.mGM(G=e.lsd())&&(D.endTimepicker=G.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(m,D){1&m&&e.bIt("click",function(fe){return D._stopPropagation(fe)}),2&m&&e.BMQ("disabled",D.isDatepickerDisabled)("readonly",D.isDatepickerReadonly)},features:[e.Jv_([wd,Il]),e.Vt3],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(m,D){1&m&&(e.DNE(0,Os,10,11,"div",0),e.nI1(1,"async")),2&m&&e.Y8G("ngIf",e.bMT(1,1,D.viewMode))},dependencies:[qi.YU,qi.Sq,qi.bT,qi.ux,qi.e1,vi,mh,Yu,yp,Ff,qi.Jj],encapsulation:2,data:{animation:[lu]}})}}return s})();const mm={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>_h),multi:!0},wp={provide:Pd.cz,useExisting:(0,e.Rfq)(()=>_h),multi:!0};let zd,_h=(()=>{class s{constructor(r,m,D,G,fe){this._picker=r,this._localeService=m,this._renderer=D,this._elRef=G,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ka.yU}ngOnInit(){const r=m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&r(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(r)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,we.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(r){(13===r.keyCode||"Enter"===r.code)&&this.hide()}_setInputValue(r){const m=r?Uo(r,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",m)}onChange(r){this.writeValue(r.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(r){const m=r.value;if(null==m||""===m)return null;if(Me(m)){if(!Ue(m))return{bsDate:{invalid:m}};if(this._picker&&this._picker.minDate&&P(m,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&xo(m,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(r){this._validatorChange=r}writeValue(r){if(r){const m=this._localeService.currentLocale;if(!Ti(m))throw new Error(`Locale "${m}" is not defined, please add it with "defineLocale(...)"`);this._value=Qr(r,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=nl(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(r){this._picker.isDisabled=r,r?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(zh,1),e.rXU(yd),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["input","bsDatepicker",""]],hostBindings:function(m,D){1&m&&e.bIt("change",function(fe){return D.onChange(fe)})("keyup.esc",function(){return D.hide()})("keydown",function(fe){return D.onKeydownEvent(fe)})("blur",function(){return D.onBlur()})},features:[e.Jv_([mm,wp])]})}}return s})(),qh=(()=>{class s extends Xl{constructor(){super(...arguments),this.displayMonths=2}static{this.\u0275fac=function(){let r;return function(D){return(r||(r=e.xGo(s)))(D||s)}}()}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),Pf=(()=>{class s{get isOpen(){return this._datepicker.isShown}set isOpen(r){this.isOpen$.next(r)}set bsValue(r){this._bsValue!==r&&(r&&this.bsConfig?.initCurrentTime&&(r=Vu(r)),this.initPreviousValue(),this._bsValue=r,this.bsValueChange.emit(r))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(r,m,D,G,fe){this._config=r,this._elementRef=m,this._renderer=D,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Er.B,this.isDisabled=!1,this.bsValueChange=new e.bkB,this._subs=[],this._rangeInputFormat$=new Er.B,this._datepicker=fe.createLoader(m,G,D),Object.assign(this,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new gd.t(this.isOpen)}ngOnInit(){this.isDestroy$=new Er.B,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(r){r.bsConfig&&(r.bsConfig.currentValue?.initCurrentTime&&r.bsConfig.currentValue?.initCurrentTime!==r.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Vu(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(r.bsConfig.currentValue&&r.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(r.minDate&&(this._datepickerRef.instance.minDate=this.minDate),r.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),r.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),r.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),r.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),r.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),r.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,h.p)(r=>r!==this.isOpen),(0,De.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xl,useValue:this._config}).attach(pm).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(r=>{this._datepickerRef&&(this._datepickerRef.instance.value=r)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,h.p)(r=>r&&r[0]&&!!r[1])).subscribe(r=>{this.initPreviousValue(),this.bsValue=r,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){zd=this._bsValue}keepDatepickerModalOpened(){return!!(zd&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===zd?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===zd?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===zd?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===zd?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===zd?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===zd?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:Yd(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Pc(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const r of this._subs)r.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(r=>r.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(qh),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(dr))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(m,D){2&m&&e.BMQ("readonly",D.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.OA$]})}}return s})();const gm={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>Mp),multi:!0},Dp={provide:Pd.cz,useExisting:(0,e.Rfq)(()=>Mp),multi:!0};let Mp=(()=>{class s{constructor(r,m,D,G,fe){this._picker=r,this._localeService=m,this._renderer=D,this._elRef=G,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ka.yU}ngOnInit(){this._picker._bsValue&&(m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,we.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(r){(13===r.keyCode||"Enter"===r.code)&&this.hide()}_setInputValue(r){let m="";if(r){const D=r[0]?Uo(r[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",G=r[1]?Uo(r[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";m=D&&G?D+this._picker._config.rangeSeparator+G:""}this._renderer.setProperty(this._elRef.nativeElement,"value",m)}onChange(r){this.writeValue(r.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(r){let m=r.value;const D=[];if(null==m||!bt(m))return null;m=m.slice().sort((st,Yt)=>st.getTime()-Yt.getTime());const G=Ue(m[0]),fe=Ue(m[1]);return G?fe?(this._picker&&this._picker.minDate&&P(m[0],this._picker.minDate,"date")&&(m[0]=this._picker.minDate,D.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&xo(m[1],this._picker.maxDate,"date")&&(m[1]=this._picker.maxDate,D.push({bsDate:{maxDate:this._picker.maxDate}})),D.length>0?(this.writeValue(m),D):null):{bsDate:{invalid:m[1]}}:{bsDate:{invalid:m[0]}}}registerOnValidatorChange(r){this._validatorChange=r}writeValue(r){if(r){const m=this._localeService.currentLocale;if(!Ti(m))throw new Error(`Locale "${m}" is not defined, please add it with "defineLocale(...)"`);let G=[];if("string"==typeof r){const fe=this._picker._config.rangeSeparator.trim();G=r.replace(/[^-]/g,"").length>1?r.split(this._picker._config.rangeSeparator):r.split(fe.length>0?fe:this._picker._config.rangeSeparator).map(st=>st.trim())}Array.isArray(r)&&(G=r),this._value=G.map(fe=>this._picker._config.useUtc?nl(Qr(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):Qr(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(fe=>isNaN(fe.valueOf())?void 0:fe)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(r){this._picker.isDisabled=r,r?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Pf,1),e.rXU(yd),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(m,D){1&m&&e.bIt("change",function(fe){return D.onChange(fe)})("keyup.esc",function(){return D.hide()})("keydown",function(fe){return D.onKeydownEvent(fe)})("blur",function(){return D.onBlur()})},features:[e.Jv_([gm,Dp])]})}}return s})(),_m=(()=>{class s{static forRoot(){return{ngModule:s,providers:[dr,md,wd,po,Il,yd,qa]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({imports:[qi.MD,kh,ns]})}}return s})()},8466:(gn,ct,N)=>{N.d(ct,{i9:()=>ye,Qs:()=>K});var e=N(467),h=N(7705);const ne={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},Z=new h.nKC("config",{providedIn:"root",factory:()=>({modules:ne})});var Ie=N(177),Oe=N(345),Fe=N(9030),Me=N(4402),Ge=N(9350),Ue=N(7707);function Ct(ge,je){const le="object"==typeof je;return new Promise((de,Le)=>{const ue=new Ue.Ms({next:He=>{de(He),ue.unsubscribe()},error:Le,complete:()=>{le?de(je.defaultValue):Le(new Ge.G)}});ge.subscribe(ue)})}var _t=N(8359),bt=N(3726),ft=N(4668),mt=N(1397),tn=N(152),vt=N(9417);function Pt(ge,je){1&ge&&h.nrm(0,"pre",3)}function me(ge,je){if(1&ge&&h.DNE(0,Pt,1,0,"pre",2),2&ge){const le=h.XpG(),de=h.sdS(6);h.Y8G("ngIf",le.preserve)("ngIfElse",de)}}function at(ge,je){1&ge&&h.nrm(0,"pre",3)}function ot(ge,je){if(1&ge&&h.DNE(0,at,1,0,"pre",2),2&ge){const le=h.XpG(),de=h.sdS(6);h.Y8G("ngIf",le.preserve)("ngIfElse",de)}}function ht(ge,je){1&ge&&h.nrm(0,"div",3)}const kt=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],Tt=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function cn(ge,je){1&ge&&h.nrm(0,"div",1)}function kn(ge,je){1&ge&&h.nrm(0,"pre",1)}const dn=(ge,je)=>ge||je||"html";let Kt=(()=>{class ge{constructor(le,de){var Le=this;this.config=de,this.quill$=(0,Fe.v)((0,e.A)(function*(){if(!Le.Quill){const ue=Le.document.addEventListener;Le.document.addEventListener=Le.document.__zone_symbol__addEventListener||Le.document.addEventListener;const He=yield N.e(58).then(N.t.bind(N,7436,19));Le.document.addEventListener=ue,Le.Quill=He.default?He.default:He}return Le.config.customOptions?.forEach(ue=>{const He=Le.Quill.import(ue.import);He.whitelist=ue.whitelist,Le.Quill.register(He,!0,Le.config.suppressGlobalRegisterWarning)}),yield Le.registerCustomModules(Le.Quill,Le.config.customModules,Le.config.suppressGlobalRegisterWarning)})).pipe((0,ft.t)({bufferSize:1,refCount:!0})),this.document=le.get(Ie.qQ),this.config||(this.config={modules:ne})}getQuill(){return this.quill$}registerCustomModules(le,de,Le){return(0,e.A)(function*(){if(Array.isArray(de))for(let{implementation:ue,path:He}of de)(0,Me.A)(ue)&&(ue=yield Ct(ue)),le.register(He,ue,Le);return le})()}static{this.\u0275fac=function(de){return new(de||ge)(h.KVO(h.zZn),h.KVO(Z,8))}}static{this.\u0275prov=h.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})(),Ye=(()=>{class ge{constructor(){this.required=!1,this.customToolbarPosition="top",this.styles=null,this.strict=!0,this.customOptions=[],this.customModules=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.compareValues=!1,this.filterNull=!1,this.defaultEmptyValue=null,this.onEditorCreated=new h.bkB,this.onEditorChanged=new h.bkB,this.onContentChanged=new h.bkB,this.onSelectionChanged=new h.bkB,this.onFocus=new h.bkB,this.onBlur=new h.bkB,this.onNativeFocus=new h.bkB,this.onNativeBlur=new h.bkB,this.disabled=!1,this.preserve=!1,this.toolbarPosition="top",this.subscription=null,this.quillSubscription=null,this.elementRef=(0,h.WQX)(h.aKT),this.document=(0,h.WQX)(Ie.qQ),this.cd=(0,h.WQX)(h.gRc),this.domSanitizer=(0,h.WQX)(Oe.up),this.platformId=(0,h.WQX)(h.Agw),this.renderer=(0,h.WQX)(h.sFG),this.zone=(0,h.WQX)(h.SKi),this.service=(0,h.WQX)(Kt),this.valueGetter=(le,de)=>{let Le=de.querySelector(".ql-editor").innerHTML;("<p><br></p>"===Le||"<div><br></div>"===Le)&&(Le=this.defaultEmptyValue);let ue=Le;const He=dn(this.format,this.service.config.format);if("text"===He)ue=le.getText();else if("object"===He)ue=le.getContents();else if("json"===He)try{ue=JSON.stringify(le.getContents())}catch{ue=le.getText()}return ue},this.valueSetter=(le,de)=>{const Le=dn(this.format,this.service.config.format);if("html"===Le)return([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(de=this.domSanitizer.sanitize(h.WPN.HTML,de)),le.clipboard.convert(de);if("json"===Le)try{return JSON.parse(de)}catch{return[{insert:de}]}return de},this.selectionChangeHandler=(le,de,Le)=>{const ue=this.trackChanges||this.service.config.trackChanges,He=!le&&!!this.onModelTouched&&("user"===Le||ue&&"all"===ue);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!He||this.zone.run(()=>{null===le?this.onBlur.emit({editor:this.quillEditor,source:Le}):null===de&&this.onFocus.emit({editor:this.quillEditor,source:Le}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:de,range:le,source:Le}),He&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(le,de,Le)=>{const ue=this.quillEditor.getText(),He=this.quillEditor.getContents();let L=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===L||"<div><br></div>"===L)&&(L=this.defaultEmptyValue);const q=this.trackChanges||this.service.config.trackChanges,Be=("user"===Le||q&&"all"===q)&&!!this.onModelChange;!this.onContentChanged.observed&&!Be||this.zone.run(()=>{Be&&this.onModelChange(this.valueGetter(this.quillEditor,this.editorElem)),this.onContentChanged.emit({content:He,delta:le,editor:this.quillEditor,html:L,oldDelta:de,source:Le,text:ue}),this.cd.markForCheck()})},this.editorChangeHandler=(le,de,Le,ue)=>{if(this.onEditorChanged.observed)if("text-change"===le){const He=this.quillEditor.getText(),L=this.quillEditor.getContents();let q=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===q||"<div><br></div>"===q)&&(q=this.defaultEmptyValue),this.zone.run(()=>{this.onEditorChanged.emit({content:L,delta:de,editor:this.quillEditor,event:le,html:q,oldDelta:Le,source:ue,text:He}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:le,oldRange:Le,range:de,source:ue}),this.cd.markForCheck()})}}static normalizeClassNames(le){return le.trim().split(" ").reduce((Le,ue)=>{const He=ue.trim();return He&&Le.push(He),Le},[])}ngOnInit(){this.preserve=this.preserveWhitespace,this.toolbarPosition=this.customToolbarPosition}ngAfterViewInit(){(0,Ie.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,mt.Z)(le=>{const de=[this.service.registerCustomModules(le,this.customModules)],Le=this.beforeRender??this.service.config.beforeRender;return Le&&de.push(Le()),Promise.all(de).then(()=>le)})).subscribe(le=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const de=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),Le=Object.assign({},this.modules||this.service.config.modules);de?Le.toolbar=de:void 0===Le.toolbar&&(Le.toolbar=ne.toolbar);let ue=void 0!==this.placeholder?this.placeholder:this.service.config.placeholder;void 0===ue&&(ue="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach(Gt=>{this.renderer.setStyle(this.editorElem,Gt,this.styles[Gt])}),this.classes&&this.addClasses(this.classes),this.customOptions.forEach(Gt=>{const Cn=le.import(Gt.import);Cn.whitelist=Gt.whitelist,le.register(Cn,!0)});let He=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;He||(He=this.service.config.bounds?this.service.config.bounds:this.document.body);let L=this.debug;!L&&!1!==L&&this.service.config.debug&&(L=this.service.config.debug);let q=this.readOnly;!q&&!1!==this.readOnly&&(q=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let Be=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(Be=this.service.config.defaultEmptyValue);let pt=this.scrollingContainer;!pt&&null!==this.scrollingContainer&&(pt=null===this.service.config.scrollingContainer||this.service.config.scrollingContainer?this.service.config.scrollingContainer:null);let dt=this.formats;if(!dt&&void 0===dt&&(dt=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new le(this.editorElem,{bounds:He,debug:L,formats:dt,modules:Le,placeholder:ue,readOnly:q,defaultEmptyValue:Be,scrollingContainer:pt,strict:this.strict,theme:this.theme||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container.addEventListener("mousedown",Gt=>Gt.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder){const Cn=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");Cn?.dataset&&(Cn.dataset.link=this.linkPlaceholder)}}),this.content){if("text"===dn(this.format,this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const Cn=this.valueSetter(this.quillEditor,this.content);this.quillEditor.setContents(Cn,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&requestAnimationFrame(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(le){if(this.quillEditor){if(le.readOnly&&this.quillEditor.enable(!le.readOnly.currentValue),le.placeholder&&(this.quillEditor.root.dataset.placeholder=le.placeholder.currentValue),le.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=le.defaultEmptyValue.currentValue),le.styles){const de=le.styles.currentValue,Le=le.styles.previousValue;Le&&Object.keys(Le).forEach(ue=>{this.renderer.removeStyle(this.editorElem,ue)}),de&&Object.keys(de).forEach(ue=>{this.renderer.setStyle(this.editorElem,ue,this.styles[ue])})}if(le.classes){const de=le.classes.currentValue,Le=le.classes.previousValue;Le&&this.removeClasses(Le),de&&this.addClasses(de)}le.debounceTime&&this.addQuillEventListeners()}}addClasses(le){ge.normalizeClassNames(le).forEach(de=>{this.renderer.addClass(this.editorElem,de)})}removeClasses(le){ge.normalizeClassNames(le).forEach(de=>{this.renderer.removeClass(this.editorElem,de)})}writeValue(le){if(this.filterNull&&null===le||(this.content=le,!this.quillEditor))return;const de=dn(this.format,this.service.config.format),Le=this.valueSetter(this.quillEditor,le);if(this.compareValues){const ue=this.quillEditor.getContents();if(JSON.stringify(ue)===JSON.stringify(Le))return}le?"text"===de?this.quillEditor.setText(le):this.quillEditor.setContents(Le):this.quillEditor.setText("")}setDisabledState(le=this.disabled){this.disabled=le,this.quillEditor&&(le?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(le){this.onModelChange=le}registerOnTouched(le){this.onModelTouched=le}registerOnValidatorChange(le){this.onValidatorChanged=le}validate(){if(!this.quillEditor)return null;const le={};let de=!0;const Le=this.quillEditor.getText(),ue=this.trimOnValidation?Le.trim().length:1===Le.length&&0===Le.trim().length?0:Le.length-1,He=this.quillEditor.getContents().ops,L=He&&1===He.length&&["\n",""].includes(He[0].insert);return this.minLength&&ue&&ue<this.minLength&&(le.minLengthError={given:ue,minLength:this.minLength},de=!1),this.maxLength&&ue>this.maxLength&&(le.maxLengthError={given:ue,maxLength:this.maxLength},de=!1),this.required&&!ue&&L&&(le.requiredError={empty:!0},de=!1),de?null:le}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new _t.yU,this.subscription.add((0,bt.R)(this.quillEditor,"selection-change").subscribe(([Le,ue,He])=>{this.selectionChangeHandler(Le,ue,He)}));let le=(0,bt.R)(this.quillEditor,"text-change"),de=(0,bt.R)(this.quillEditor,"editor-change");"number"==typeof this.debounceTime&&(le=le.pipe((0,tn.B)(this.debounceTime)),de=de.pipe((0,tn.B)(this.debounceTime))),this.subscription.add(le.subscribe(([Le,ue,He])=>{this.textChangeHandler(Le,ue,He)})),this.subscription.add(de.subscribe(([Le,ue,He,L])=>{this.editorChangeHandler(Le,ue,He,L)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static{this.\u0275fac=function(de){return new(de||ge)}}static{this.\u0275dir=h.FsC({type:ge,inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",readOnly:"readOnly",placeholder:"placeholder",maxLength:"maxLength",minLength:"minLength",required:"required",formats:"formats",customToolbarPosition:"customToolbarPosition",sanitize:"sanitize",beforeRender:"beforeRender",styles:"styles",strict:"strict",scrollingContainer:"scrollingContainer",bounds:"bounds",customOptions:"customOptions",customModules:"customModules",trackChanges:"trackChanges",preserveWhitespace:"preserveWhitespace",classes:"classes",trimOnValidation:"trimOnValidation",linkPlaceholder:"linkPlaceholder",compareValues:"compareValues",filterNull:"filterNull",debounceTime:"debounceTime",defaultEmptyValue:"defaultEmptyValue",valueGetter:"valueGetter",valueSetter:"valueSetter"},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[h.OA$]})}}return ge})(),ye=(()=>{class ge extends Ye{static{this.\u0275fac=function(){let le;return function(Le){return(le||(le=h.xGo(ge)))(Le||ge)}}()}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-editor"]],standalone:!0,features:[h.Jv_([{multi:!0,provide:vt.kq,useExisting:(0,h.Rfq)(()=>ge)},{multi:!0,provide:vt.cz,useExisting:(0,h.Rfq)(()=>ge)}]),h.Vt3,h.aNF],ngContentSelectors:Tt,decls:7,vars:2,consts:[[3,"ngIf"],["noPreserveTpl",""],["quill-editor-element","",4,"ngIf","ngIfElse"],["quill-editor-element",""]],template:function(de,Le){1&de&&(h.NAR(kt),h.DNE(0,me,1,2,"ng-template",0),h.SdG(1),h.SdG(2,1),h.SdG(3,2),h.DNE(4,ot,1,2,"ng-template",0),h.DNE(5,ht,1,0,"ng-template",null,1,h.C5r)),2&de&&(h.Y8G("ngIf","top"!==Le.toolbarPosition),h.R7$(4),h.Y8G("ngIf","top"===Le.toolbarPosition))},dependencies:[Ie.MD,Ie.bT],styles:["[_nghost-%COMP%]{display:inline-block}"]})}}return ge})(),Se=(()=>{class ge{constructor(le,de){this.sanitizer=le,this.service=de,this.content="",this.innerHTML="",this.themeClass="ql-snow"}ngOnChanges(le){if(le.theme?this.themeClass=`ql-${le.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow")} ngx-quill-view-html`:this.theme||(this.themeClass=`ql-${this.service.config.theme?this.service.config.theme:"snow"} ngx-quill-view-html`),le.content){const de=le.content.currentValue,Le=[!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1;this.innerHTML=Le?de:this.sanitizer.bypassSecurityTrustHtml(de)}}static{this.\u0275fac=function(de){return new(de||ge)(h.rXU(Oe.up),h.rXU(Kt))}}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-view-html"]],inputs:{content:"content",theme:"theme",sanitize:"sanitize"},standalone:!0,features:[h.OA$,h.aNF],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(de,Le){1&de&&(h.j41(0,"div",0),h.nrm(1,"div",1),h.k0s()),2&de&&(h.Y8G("ngClass",Le.themeClass),h.R7$(1),h.Y8G("innerHTML",Le.innerHTML,h.npT))},dependencies:[Ie.MD,Ie.YU],styles:[".ql-container.ngx-quill-view-html{border:0}\n"],encapsulation:2})}}return ge})(),Nt=(()=>{class ge{constructor(le,de,Le,ue,He,L){this.elementRef=le,this.renderer=de,this.zone=Le,this.service=ue,this.domSanitizer=He,this.platformId=L,this.strict=!0,this.customModules=[],this.customOptions=[],this.preserveWhitespace=!1,this.onEditorCreated=new h.bkB,this.preserve=!1,this.quillSubscription=null,this.valueSetter=(q,Be)=>{const pt=dn(this.format,this.service.config.format);let dt=Be;if("text"===pt)q.setText(dt);else{if("html"===pt)([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(Be=this.domSanitizer.sanitize(h.WPN.HTML,Be)),dt=q.clipboard.convert(Be);else if("json"===pt)try{dt=JSON.parse(Be)}catch{dt=[{insert:Be}]}q.setContents(dt)}}}ngOnInit(){this.preserve=this.preserveWhitespace}ngOnChanges(le){this.quillEditor&&le.content&&this.valueSetter(this.quillEditor,le.content.currentValue)}ngAfterViewInit(){(0,Ie.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,mt.Z)(le=>{const de=[this.service.registerCustomModules(le,this.customModules)],Le=this.beforeRender??this.service.config.beforeRender;return Le&&de.push(Le()),Promise.all(de).then(()=>le)})).subscribe(le=>{const de=Object.assign({},this.modules||this.service.config.modules);de.toolbar=!1,this.customOptions.forEach(L=>{const q=le.import(L.import);q.whitelist=L.whitelist,le.register(q,!0)});let Le=this.debug;!Le&&!1!==Le&&this.service.config.debug&&(Le=this.service.config.debug);let ue=this.formats;!ue&&void 0===ue&&(ue=this.service.config.formats?Object.assign({},this.service.config.formats):null===this.service.config.formats?null:void 0);const He=this.theme||(this.service.config.theme?this.service.config.theme:"snow");this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular(()=>{this.quillEditor=new le(this.editorElem,{debug:Le,formats:ue,modules:de,readOnly:!0,strict:this.strict,theme:He})}),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content),this.onEditorCreated.observers.length&&requestAnimationFrame(()=>{this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.quillSubscription?.unsubscribe(),this.quillSubscription=null}static{this.\u0275fac=function(de){return new(de||ge)(h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(h.SKi),h.rXU(Kt),h.rXU(Oe.up),h.rXU(h.Agw))}}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-view"]],inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",formats:"formats",sanitize:"sanitize",beforeRender:"beforeRender",strict:"strict",content:"content",customModules:"customModules",customOptions:"customOptions",preserveWhitespace:"preserveWhitespace"},outputs:{onEditorCreated:"onEditorCreated"},standalone:!0,features:[h.OA$,h.aNF],decls:2,vars:2,consts:[["quill-view-element","",4,"ngIf"],["quill-view-element",""]],template:function(de,Le){1&de&&(h.DNE(0,cn,1,0,"div",0),h.DNE(1,kn,1,0,"pre",0)),2&de&&(h.Y8G("ngIf",!Le.preserve),h.R7$(1),h.Y8G("ngIf",Le.preserve))},dependencies:[Ie.MD,Ie.bT],styles:[".ql-container.ngx-quill-view{border:0}\n"],encapsulation:2})}}return ge})(),K=(()=>{class ge{static forRoot(le){return{ngModule:ge,providers:[{provide:Z,useValue:le}]}}static{this.\u0275fac=function(de){return new(de||ge)}}static{this.\u0275mod=h.$C({type:ge})}static{this.\u0275inj=h.G2t({imports:[ye,Nt,Se]})}}return ge})()},467:(gn,ct,N)=>{function e(ne,Z,De,we,Ie,Oe,Fe){try{var Me=ne[Oe](Fe),Ge=Me.value}catch(Ue){return void De(Ue)}Me.done?Z(Ge):Promise.resolve(Ge).then(we,Ie)}function h(ne){return function(){var Z=this,De=arguments;return new Promise(function(we,Ie){var Oe=ne.apply(Z,De);function Fe(Ge){e(Oe,we,Ie,Fe,Me,"next",Ge)}function Me(Ge){e(Oe,we,Ie,Fe,Me,"throw",Ge)}Fe(void 0)})}}N.d(ct,{A:()=>h})},1635:(gn,ct,N)=>{function De(le,de,Le,ue){var q,He=arguments.length,L=He<3?de:null===ue?ue=Object.getOwnPropertyDescriptor(de,Le):ue;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)L=Reflect.decorate(le,de,Le,ue);else for(var Be=le.length-1;Be>=0;Be--)(q=le[Be])&&(L=(He<3?q(L):He>3?q(de,Le,L):q(de,Le))||L);return He>3&&L&&Object.defineProperty(de,Le,L),L}function Ge(le,de){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(le,de)}function Ue(le,de,Le,ue){return new(Le||(Le=Promise))(function(L,q){function Be(Gt){try{dt(ue.next(Gt))}catch(Cn){q(Cn)}}function pt(Gt){try{dt(ue.throw(Gt))}catch(Cn){q(Cn)}}function dt(Gt){Gt.done?L(Gt.value):function He(L){return L instanceof Le?L:new Le(function(q){q(L)})}(Gt.value).then(Be,pt)}dt((ue=ue.apply(le,de||[])).next())})}function me(le){return this instanceof me?(this.v=le,this):new me(le)}function at(le,de,Le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var He,ue=Le.apply(le,de||[]),L=[];return He=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Be("next"),Be("throw"),Be("return",function q(sn){return function(Vn){return Promise.resolve(Vn).then(sn,Cn)}}),He[Symbol.asyncIterator]=function(){return this},He;function Be(sn,Vn){ue[sn]&&(He[sn]=function(oi){return new Promise(function(yi,It){L.push([sn,oi,yi,It])>1||pt(sn,oi)})},Vn&&(He[sn]=Vn(He[sn])))}function pt(sn,Vn){try{!function dt(sn){sn.value instanceof me?Promise.resolve(sn.value.v).then(Gt,Cn):jn(L[0][2],sn)}(ue[sn](Vn))}catch(oi){jn(L[0][3],oi)}}function Gt(sn){pt("next",sn)}function Cn(sn){pt("throw",sn)}function jn(sn,Vn){sn(Vn),L.shift(),L.length&&pt(L[0][0],L[0][1])}}function ht(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Le,de=le[Symbol.asyncIterator];return de?de.call(le):(le=function ft(le){var de="function"==typeof Symbol&&Symbol.iterator,Le=de&&le[de],ue=0;if(Le)return Le.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&ue>=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(de?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),Le={},ue("next"),ue("throw"),ue("return"),Le[Symbol.asyncIterator]=function(){return this},Le);function ue(L){Le[L]=le[L]&&function(q){return new Promise(function(Be,pt){!function He(L,q,Be,pt){Promise.resolve(pt).then(function(dt){L({value:dt,done:Be})},q)}(Be,pt,(q=le[L](q)).done,q.value)})}}}N.d(ct,{AQ:()=>at,Cg:()=>De,N3:()=>me,Sn:()=>Ge,sH:()=>Ue,xN:()=>ht}),"function"==typeof SuppressedError&&SuppressedError}},gn=>{gn(gn.s=3624)}]);
|