@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
5 lines • 286 kB
HTML
<script>
(()=>{"use strict";var e,v={},i={};function n(e){var a=i[e];if(void 0!==a)return a.exports;var r=i[e]={exports:{}};return v[e](r,r.exports,n),r.exports}n.m=v,e=[],n.O=(a,r,t,f)=>{if(!r){var o=1/0;for(u=0;u<e.length;u++){for(var[r,t,f]=e[u],s=!0,l=0;l<r.length;l++)(!1&f||o>=f)&&Object.keys(n.O).every(b=>n.O[b](r[l]))?r.splice(l--,1):(s=!1,f<o&&(o=f));if(s){e.splice(u--,1);var c=t();void 0!==c&&(a=c)}}return a}f=f||0;for(var u=e.length;u>0&&e[u-1][2]>f;u--)e[u]=e[u-1];e[u]=[r,t,f]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=t=>0===e[t];var a=(t,f)=>{var l,c,[u,o,s]=f,_=0;if(u.some(d=>0!==e[d])){for(l in o)n.o(o,l)&&(n.m[l]=o[l]);if(s)var p=s(n)}for(t&&t(f);_<u.length;_++)n.o(e,c=u[_])&&e[c]&&e[c][0](),e[c]=0;return n.O(p)},r=self.webpackChunkau_preview_mockup_slider=self.webpackChunkau_preview_mockup_slider||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkau_preview_mockup_slider=self.webpackChunkau_preview_mockup_slider||[]).push([[429],{435:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}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 M{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)}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=M.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,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}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||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),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(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,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(j,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||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);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 M.__symbol__=a,M})();const P={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,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:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,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(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=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:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,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=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?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 L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const K={name:"NO ZONE"},x="notScheduled",X="scheduling",j="scheduled",p="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}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=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 A=Zone.__symbol__,Pe="undefined"!=typeof window,Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;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 Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("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 P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(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++)qe(e,o[c],i)}}const ne=A("originalInstance");function ve(e){const n=Y[e];if(!n)return;Y[A(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.")}},ue(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)}:Ee(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),ue(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 le(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=de(o);!o&&e[n]&&(o=e);const c=A(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&ie(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},ue(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=le(e,n,a=>function(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");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 Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;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))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)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(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<b.length;)ee(l,b[T++],b[T++],b[T++],b[T++]);if(0==b.length&&u==G){l[q]=0;let T=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(D){T=D}P&&(T.throwOriginal=!0),T.rejection=s,T.promise=l,T.zone=n.current,T.task=n.currentTask,d.push(T),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}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 b=l[q],T=b?"function"==typeof f?f:H:"function"==typeof g?g:J;u.scheduleMicroTask("Promise.then",()=>{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,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 E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O<s.length;O++)s[O].then(S=>{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);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,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}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,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(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=A("OriginalDelegate"),o=A("Promise"),c=A("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 ye=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G<p.length&&(!_||!0!==_[Ke]);G++){const h=Z(p[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let p=0;p<j.length;p++){const G=j[p];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?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=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;T<b.length;T++)if(b[T]===s){b.splice(T,1),s.isRemoved=!0,0===b.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[A("UNPATCHED_EVENTS")],l=e[A("PASSIVE_EVENTS")],u=function(s,f,g,b,T=!1,D=!1){return function(){const O=this||e;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)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,O,arguments))return;const fe=ye&&!!l&&-1!==l.indexOf(S),se=U(arguments[2],fe);if($)for(let _e=0;_e<$.length;_e++)if(S===$[_e])return fe?s.call(O,S,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),nt=!(!se||"object"!=typeof se)&&se.once,gt=Zone.current;let Ge=te[S];Ge||(Je(S,G),Ge=te[S]);const rt=Ge[xe?ce:ae];let De,me=O[rt],ot=!1;if(me){if(ot=!0,X)for(let _e=0;_e<me.length;_e++)if(C(me[_e],V))return}else me=O[rt]=[];const st=O.constructor.name,it=Ye[st];it&&(De=it[S]),De||(De=st+f+(G?G(S):S)),h.options=se,nt&&(h.options.once=!1),h.target=O,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=K?ht:void 0;be&&(be.taskData=h);const he=gt.scheduleEventTask(De,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(se.once=!0),!ye&&"boolean"==typeof he.options||(he.options=se),he.target=O,he.capture=xe,he.eventName=S,F&&(he.originalDelegate=V),D?me.unshift(he):me.push(he),T?O:void 0}};return p[c]=u(I,v,t,r,j),z&&(p.prependListener=u(z,".prependListener:",function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),p[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return w.apply(this,arguments);if(x&&!x(w,T,s,arguments))return;const D=te[f];let O;D&&(O=D[b?ce:ae]);const S=O&&s[O];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,T))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[O]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),j?s:void 0}return w.apply(this,arguments)},p[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let T=0;T<b.length;T++){const D=b[T];g.push(D.originalDelegate?D.originalDelegate:D.callback)}return g},p[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const D=s[g[ae]],O=s[g[ce]];if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const D=$e.exec(g[b]);let O=D&&D[1];O&&"removeListener"!==O&&this[d].call(this,O)}this[d].call(this,"removeListener")}if(j)return this},ue(p[c],I),ue(p[a],w),oe&&ue(p[d],oe),Q&&ue(p[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=J(i[R],o);return q}function Qe(e,n){if(!n){const a=[];for(let y in e){const d=$e.exec(y);let P=d&&d[1];if(P&&(!n||P===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[ae]],c=e[i[ce]];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[Ke]=!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,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(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 tt(e,n,i,o){e&&Xe(e,et(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=Xe,i.patchMethod=le,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=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(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 P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=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,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)le(e,i[o],(a,y,d)=>function(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(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 P=0;P<i.length;P++){const v=i[P],Z=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=Z,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)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(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&&tt(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function yt(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 P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],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===J){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===J&&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),p.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 K=le(L,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.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===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(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=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("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(!Fe(ie(e,c)))continue;e[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=435)}]);
"use strict";(self.webpackChunkau_preview_mockup_slider=self.webpackChunkau_preview_mockup_slider||[]).push([[179],{630:()=>{function pe(r){return"function"==typeof r}function cn(r){const e=r(s=>{Error.call(s),s.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const us=cn(r=>function(e){r(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((s,o)=>`${o+1}) ${s.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function fn(r,n){if(r){const e=r.indexOf(n);0<=e&&r.splice(e,1)}}class gt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:s}=this;if(pe(s))try{s()}catch(i){n=i instanceof us?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{yp(i)}catch(t){n=null!=n?n:[],t instanceof us?n=[...n,...t.errors]:n.push(t)}}if(n)throw new us(n)}}add(n){var e;if(n&&n!==this)if(this.closed)yp(n);else{if(n instanceof gt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&fn(e,n)}remove(n){const{_finalizers:e}=this;e&&fn(e,n),n instanceof gt&&n._removeParent(this)}}gt.EMPTY=(()=>{const r=new gt;return r.closed=!0,r})();const Tp=gt.EMPTY;function xp(r){return r instanceof gt||r&&"closed"in r&&pe(r.remove)&&pe(r.add)&&pe(r.unsubscribe)}function yp(r){pe(r)?r():r.unsubscribe()}const sr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ds={setTimeout(r,n,...e){const{delegate:s}=ds;return(null==s?void 0:s.setTimeout)?s.setTimeout(r,n,...e):setTimeout(r,n,...e)},clearTimeout(r){const{delegate:n}=ds;return((null==n?void 0:n.clearTimeout)||clearTimeout)(r)},delegate:void 0};function wp(r){ds.setTimeout(()=>{const{onUnhandledError:n}=sr;if(!n)throw r;n(r)})}function vp(){}const Bm=Jo("C",void 0,void 0);function Jo(r,n,e){return{kind:r,value:n,error:e}}let or=null;function cs(r){if(sr.useDeprecatedSynchronousErrorHandling){const n=!or;if(n&&(or={errorThrown:!1,error:null}),r(),n){const{errorThrown:e,error:s}=or;if(or=null,e)throw s}}else r()}class $o extends gt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,xp(n)&&n.add(this)):this.destination=Fm}static create(n,e,s){return new hn(n,e,s)}next(n){this.isStopped?Go(function Sm(r){return Jo("N",r,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Go(function Dm(r){return Jo("E",void 0,r)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Go(Bm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Am=Function.prototype.bind;function Vo(r,n){return Am.call(r,n)}class Nm{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(s){fs(s)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(s){fs(s)}else fs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){fs(e)}}}class hn extends $o{constructor(n,e,s){let o;if(super(),pe(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=s?s:void 0};else{let i;this&&sr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Vo(n.next,i),error:n.error&&Vo(n.error,i),complete:n.complete&&Vo(n.complete,i)}):o=n}this.destination=new Nm(o)}}function fs(r){sr.useDeprecatedSynchronousErrorHandling?function Om(r){sr.useDeprecatedSynchronousErrorHandling&&or&&(or.errorThrown=!0,or.error=r)}(r):wp(r)}function Go(r,n){const{onStoppedNotification:e}=sr;e&&ds.setTimeout(()=>e(r,n))}const Fm={closed:!0,next:vp,error:function km(r){throw r},complete:vp},zo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ip(r){return r}let be=(()=>{class r{constructor(e){e&&(this._subscribe=e)}lift(e){const s=new r;return s.source=this,s.operator=e,s}subscribe(e,s,o){const i=function Um(r){return r&&r instanceof $o||function Pm(r){return r&&pe(r.next)&&pe(r.error)&&pe(r.complete)}(r)&&xp(r)}(e)?e:new hn(e,s,o);return cs(()=>{const{operator:t,source:a}=this;i.add(t?t.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(s){e.error(s)}}forEach(e,s){return new(s=Cp(s))((o,i)=>{const t=new hn({next:a=>{try{e(a)}catch(l){i(l),t.unsubscribe()}},error:i,complete:o});this.subscribe(t)})}_subscribe(e){var s;return null===(s=this.source)||void 0===s?void 0:s.subscribe(e)}[zo](){return this}pipe(...e){return function Ep(r){return 0===r.length?Ip:1===r.length?r[0]:function(e){return r.reduce((s,o)=>o(s),e)}}(e)(this)}toPromise(e){return new(e=Cp(e))((s,o)=>{let i;this.subscribe(t=>i=t,t=>o(t),()=>s(i))})}}return r.create=n=>new r(n),r})();function Cp(r){var n;return null!==(n=null!=r?r:sr.Promise)&&void 0!==n?n:Promise}const Hm=cn(r=>function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let hs=(()=>{class r extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const s=new Rp(this,this);return s.operator=e,s}_throwIfClosed(){if(this.closed)throw new Hm}next(e){cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const s of this.currentObservers)s.next(e)}})}error(e){cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:s}=this;for(;s.length;)s.shift().error(e)}})}complete(){cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:s,isStopped:o,observers:i}=this;return s||o?Tp:(this.currentObservers=null,i.push(e),new gt(()=>{this.currentObservers=null,fn(i,e)}))}_checkFinalizedStatuses(e){const{hasError:s,thrownError:o,isStopped:i}=this;s?e.error(o):i&&e.complete()}asObservable(){const e=new be;return e.source=this,e}}return r.create=(n,e)=>new Rp(n,e),r})();class Rp extends hs{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,s;null===(s=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===s||s.call(e,n)}error(n){var e,s;null===(s=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===s||s.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,s;return null!==(s=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==s?s:Tp}}function Ot(r){return n=>{if(function jm(r){return pe(null==r?void 0:r.lift)}(n))return n.lift(function(e){try{return r(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function Tt(r,n,e,s,o){return new Lm(r,n,e,s,o)}class Lm extends $o{constructor(n,e,s,o,i,t){super(n),this.onFinalize=i,this.shouldUnsubscribe=t,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=s?function(){try{s()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function $t(r,n){return Ot((e,s)=>{let o=0;e.subscribe(Tt(s,i=>{s.next(r.call(n,i,o++))}))})}function ir(r,n,e,s){return new(e||(e=Promise))(function(i,t){function a(u){try{p(s.next(u))}catch(c){t(c)}}function l(u){try{p(s.throw(u))}catch(c){t(c)}}function p(u){u.done?i(u.value):function o(i){return i instanceof e?i:new e(function(t){t(i)})}(u.value).then(a,l)}p((s=s.apply(r,n||[])).next())})}function ar(r){return this instanceof ar?(this.v=r,this):new ar(r)}function $m(r,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,s=e.apply(r,n||[]),i=[];return o={},t("next"),t("throw"),t("return"),o[Symbol.asyncIterator]=function(){return this},o;function t(f){s[f]&&(o[f]=function(h){return new Promise(function(_,m){i.push([f,h,_,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof ar?Promise.resolve(f.value.v).then(p,u):c(i[0][2],f)}(s[f](h))}catch(_){c(i[0][3],_)}}function p(f){a("next",f)}function u(f){a("throw",f)}function c(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Vm(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=r[Symbol.asyncIterator];return n?n.call(r):(r=function Dp(r){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&r[n],s=0;if(e)return e.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&s>=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(i){e[i]=r[i]&&function(t){return new Promise(function(a,l){!function o(i,t,a,l){Promise.resolve(l).then(function(p){i({value:p,done:a})},t)}(a,l,(t=r[i](t)).done,t.value)})}}}const Sp=r=>r&&"number"==typeof r.length&&"function"!=typeof r;function Op(r){return pe(null==r?void 0:r.then)}function Ap(r){return pe(r[zo])}function Np(r){return Symbol.asyncIterator&&pe(null==r?void 0:r[Symbol.asyncIterator])}function kp(r){return new TypeError(`You provided ${null!==r&&"object"==typeof r?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Fp=function zm(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Pp(r){return pe(null==r?void 0:r[Fp])}function Up(r){return $m(this,arguments,function*(){const e=r.getReader();try{for(;;){const{value:s,done:o}=yield ar(e.read());if(o)return yield ar(void 0);yield yield ar(s)}}finally{e.releaseLock()}})}function Hp(r){return pe(null==r?void 0:r.getReader)}function At(r){if(r instanceof be)return r;if(null!=r){if(Ap(r))return function qm(r){return new be(n=>{const e=r[zo]();if(pe(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(r);if(Sp(r))return function Wm(r){return new be(n=>{for(let e=0;e<r.length&&!n.closed;e++)n.next(r[e]);n.complete()})}(r);if(Op(r))return function Km(r){return new be(n=>{r.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,wp)})}(r);if(Np(r))return jp(r);if(Pp(r))return function Qm(r){return new be(n=>{for(const e of r)if(n.next(e),n.closed)return;n.complete()})}(r);if(Hp(r))return function Zm(r){return jp(Up(r))}(r)}throw kp(r)}function jp(r){return new be(n=>{(function Ym(r,n){var e,s,o,i;return ir(this,void 0,void 0,function*(){try{for(e=Vm(r);!(s=yield e.next()).done;)if(n.next(s.value),n.closed)return}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})})(r,n).catch(e=>n.error(e))})}function Vt(r,n,e,s=0,o=!1){const i=n.schedule(function(){e(),o?r.add(this.schedule(null,s)):this.unsubscribe()},s);if(r.add(i),!o)return i}function d(r,n,e=1/0){return pe(n)?d((s,o)=>$t((i,t)=>n(s,i,o,t))(At(r(s,o))),e):("number"==typeof n&&(e=n),Ot((s,o)=>function Xm(r,n,e,s,o,i,t,a){const l=[];let p=0,u=0,c=!1;const f=()=>{c&&!l.length&&!p&&n.complete()},h=m=>p<s?_(m):l.push(m),_=m=>{i&&n.next(m),p++;let g=!1;At(e(m,u++)).subscribe(Tt(n,T=>{null==o||o(T),i?h(T):n.next(T)},()=>{g=!0},void 0,()=>{if(g)try{for(p--;l.length&&p<s;){const T=l.shift();t?Vt(n,t,()=>_(T)):_(T)}f()}catch(T){n.error(T)}}))};return r.subscribe(Tt(n,h,()=>{c=!0,f()})),()=>{null==a||a()}}(s,o,r,e)))}const Wo=new be(r=>r.complete());function Ko(r){return r[r.length-1]}function Lp(r){return function rb(r){return r&&pe(r.schedule)}(Ko(r))?r.pop():void 0}function Jp(r,n=0){return Ot((e,s)=>{e.subscribe(Tt(s,o=>Vt(s,r,()=>s.next(o),n),()=>Vt(s,r,()=>s.complete(),n),o=>Vt(s,r,()=>s.error(o),n)))})}function $p(r,n=0){return Ot((e,s)=>{s.add(r.schedule(()=>e.subscribe(s),n))})}function Vp(r,n){if(!r)throw new Error("Iterable cannot be null");return new be(e=>{Vt(e,n,()=>{const s=r[Symbol.asyncIterator]();Vt(e,n,()=>{s.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function D(r,n){return n?function ub(r,n){if(null!=r){if(Ap(r))return function ob(r,n){return At(r).pipe($p(n),Jp(n))}(r,n);if(Sp(r))return function ab(r,n){return new be(e=>{let s=0;return n.schedule(function(){s===r.length?e.complete():(e.next(r[s++]),e.closed||this.schedule())})})}(r,n);if(Op(r))return function ib(r,n){return At(r).pipe($p(n),Jp(n))}(r,n);if(Np(r))return Vp(r,n);if(Pp(r))return function lb(r,n){return new be(e=>{let s;return Vt(e,n,()=>{s=r[Fp](),Vt(e,n,()=>{let o,i;try{({value:o,done:i}=s.next())}catch(t){return void e.error(t)}i?e.complete():e.next(o)},0,!0)}),()=>pe(null==s?void 0:s.return)&&s.return()})}(r,n);if(Hp(r))return function pb(r,n){return Vp(Up(r),n)}(r,n)}throw kp(r)}(r,n):At(r)}function Gp(...r){const n=Lp(r),e=function sb(r,n){return"number"==typeof Ko(r)?r.pop():n}(r,1/0),s=r;return s.length?1===s.length?At(s[0]):function eb(r=1/0){return d(Ip,r)}(e)(D(s,n)):Wo}function Qo(r,n,...e){return!0===n?(r(),null):!1===n?null:n(...e).pipe(function db(r){return r<=0?()=>Wo:Ot((n,e)=>{let s=0;n.subscribe(Tt(e,o=>{++s<=r&&(e.next(o),r<=s&&e.complete())}))})}(1)).subscribe(()=>r())}function se(r){for(let n in r)if(r[n]===se)return n;throw Error("Could not find renamed property on target object.")}function re(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(re).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const n=r.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Yo(r,n){return null==r||""===r?null===n?"":n:null==n||""===n?r:r+" "+n}const fb=se({__forward_ref__:se});function Xo(r){return r.__forward_ref__=Xo,r.toString=function(){return re(this())},r}function G(r){return function zp(r){return"function"==typeof r&&r.hasOwnProperty(fb)&&r.__forward_ref__===Xo}(r)?r():r}class te extends Error{constructor(n,e){super(function ei(r,n){return`NG0${Math.abs(r)}${n?": "+n:""}`}(n,e)),this.code=n}}function L(r){return"string"==typeof r?r:null==r?"":String(r)}function Be(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():L(r)}function _s(r,n){const e=n?` in ${n}`:"";throw new te(-201,`No provider for ${Be(r)} found${e}`)}function Ve(r,n){null==r&&function oe(r,n,e,s){throw new Error(`ASSERTION ERROR: ${r}`+(null==s?"":` [Expected=> ${e} ${s} ${n} <=Actual]`))}(n,r,null,"!=")}function ee(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function Gt(r){return{providers:r.providers||[],imports:r.imports||[]}}function ti(r){return qp(r,ms)||qp(r,Kp)}function qp(r,n){return r.hasOwnProperty(n)?r[n]:null}function Wp(r){return r&&(r.hasOwnProperty(ri)||r.hasOwnProperty(xb))?r[ri]:null}const ms=se({\u0275prov:se}),ri=se({\u0275inj:se}),Kp=se({ngInjectableDef:se}),xb=se({ngInjectorDef:se});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let ni;function zt(r){const n=ni;return ni=r,n}function Qp(r,n,e){const s=ti(r);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:e&V.Optional?null:void 0!==n?n:void _s(re(r),"Injector")}function qt(r){return{toString:r}.toString()}var it=(()=>((it=it||{})[it.OnPush=0]="OnPush",it[it.Default=1]="Default",it))(),xt=(()=>{return(r=xt||(xt={}))[r.Emulated=0]="Emulated",r[r.None=2]="None",r[r.ShadowDom=3]="ShadowDom",xt;var r})();const wb="undefined"!=typeof globalThis&&globalThis,vb="undefined"!=typeof window&&window,Ib="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne=wb||"undefined"!=typeof global&&global||vb||Ib,yr={},ie=[],bs=se({\u0275cmp:se}),si=se({\u0275dir:se}),oi=se({\u0275pipe:se}),Zp=se({\u0275mod:se}),kt=se({\u0275fac:se}),_n=se({__NG_ELEMENT_ID__:se});let Eb=0;function ii(r){return qt(()=>{const e={},s={type:r.type,providersResolver:null,decls:r.decls,vars:r.vars,factory:null,template:r.template||null,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:r.exportAs||null,onPush:r.changeDetection===it.OnPush,directiveDefs:null,pipeDefs:null,selectors:r.selectors||ie,viewQuery:r.viewQuery||null,features:r.features||null,data:r.data||{},encapsulation:r.encapsulation||xt.Emulated,id:"c",styles:r.styles||ie,_:null,setInput:null,schemas:r.schemas||null,tView:null},o=r.directives,i=r.features,t=r.pipes;return s.id+=Eb++,s.inputs=tu(r.inputs,e),s.outputs=tu(r.outputs),i&&i.forEach(a=>a(s)),s.directiveDefs=o?()=>("function"==typeof o?o():o).map(Yp):null,s.pipeDefs=t?()=>("function"==typeof t?t():t).map(Xp):null,s})}function Yp(r){return De(r)||function Wt(r){return r[si]||null}(r)}function Xp(r){return function pr(r){return r[oi]||null}(r)}const eu={};function lr(r){return qt(()=>{const n={type:r.type,bootstrap:r.bootstrap||ie,declarations:r.declarations||ie,imports:r.imports||ie,exports:r.exports||ie,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null};return null!=r.id&&(eu[r.id]=r.type),n})}function tu(r,n){if(null==r)return yr;const e={};for(const s in r)if(r.hasOwnProperty(s)){let o=r[s],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),e[o]=s,n&&(n[o]=i)}return e}const Ze=ii;function Ne(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,onDestroy:r.type.prototype.ngOnDestroy||null}}function De(r){return r[bs]||null}function Ye(r,n){const e=r[Zp]||null;if(!e&&!0===n)throw new Error(`Type ${re(r)} does not have '\u0275mod' property.`);return e}const z=11;function yt(r){return Array.isArray(r)&&"object"==typeof r[1]}function lt(r){return Array.isArray(r)&&!0===r[1]}function pi(r){return 0!=(8&r.flags)}function ys(r){return 2==(2&r.flags)}function ws(r){return 1==(1&r.flags)}function pt(r){return null!==r.template}function Sb(r){return 0!=(512&r[2])}function fr(r,n){return r.hasOwnProperty(kt)?r[kt]:null}class nu{constructor(n,e,s){this.previousValue=n,this.currentValue=e,this.firstChange=s}isFirstChange(){return this.firstChange}}function su(r){return r.type.prototype.ngOnChanges&&(r.setInput=kb),Nb}function Nb(){const r=iu(this),n=null==r?void 0:r.current;if(n){const e=r.previous;if(e===yr)r.previous=n;else for(let s in n)e[s]=n[s];r.current=null,this.ngOnChanges(n)}}function kb(r,n,e,s){const o=iu(r)||function Fb(r,n){return r[ou]=n}(r,{previous:yr,current:null}),i=o.current||(o.current={}),t=o.previous,a=this.declaredInputs[e],l=t[a];i[a]=new nu(l&&l.currentValue,n,t===yr),r[s]=n}const ou="__ngSimpleChanges__";function iu(r){return r[ou]||null}let hi;function ce(r){return!!r.listen}const au={createRenderer:(r,n)=>function _i(){return void 0!==hi?hi:"undefined"!=typeof document?document:void 0}()};function ge(r){for(;Array.isArray(r);)r=r[0];return r}function tt(r,n){return ge(n[r.index])}function mi(r,n){return r.data[n]}function ze(r,n){const e=n[r];return yt(e)?e:e[0]}function bi(r){return 128==(128&r[2])}function Kt(r,n){return null==n?null:r[n]}function pu(r){r[18]=0}function gi(r,n){r[5]+=n;let e=r,s=r[3];for(;null!==s&&(1===n&&1===e[5]||-1===n&&0===e[5]);)s[5]+=n,e=s,s=s[3]}const J={lFrame:gu(null),bindingsEnabled:!0};function du(){return J.bindingsEnabled}function C(){return J.lFrame.lView}function X(){return J.lFrame.tView}function ve(){let r=cu();for(;null!==r&&64===r.type;)r=r.parent;return r}function cu(){return J.lFrame.currentTNode}function wt(r,n){const e=J.lFrame;e.currentTNode=r,e.isParent=n}function Ti(){return J.lFrame.isParent}function xi(){J.lFrame.isParent=!1}function eg(r,n){const e=J.lFrame;e.bindingIndex=e.bindingRootIndex=r,yi(n)}function yi(r){J.lFrame.currentDirectiveIndex=r}function vi(r){J.lFrame.currentQueryIndex=r}function rg(r){const n=r[1];return 2===n.type?n.declTNode:1===n.type?r[6]:null}function mu(r,n,e){if(e&V.SkipSelf){let o=n,i=r;for(;!(o=o.parent,null!==o||e&V.Host||(o=rg(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;n=o,r=i}const s=J.lFrame=bu();return s.currentTNode=n,s.lView=r,!0}function Cs(r){const n=bu(),e=r[1];J.lFrame=n,n.currentTNode=e.firstChild,n.lView=r,n.tView=e,n.contextLView=r,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function bu(){const r=J.lFrame,n=null===r?null:r.child;return null===n?gu(r):n}function gu(r){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:r,child:null,inI18n:!1};return null!==r&&(r.child=n),n}function Tu(){const r=J.lFrame;return J.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const xu=Tu;function Rs(){const r=Tu();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function Fe(){return J.lFrame.selectedIndex}function Qt(r){J.lFrame.selectedIndex=r}function Ms(r,n){for(let e=n.directiveStart,s=n.directiveEnd;e<s;e++){const i=r.data[e].type.prototype,{ngAfterContentInit:t,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:p,ngOnDestroy:u}=i;t&&(r.contentHooks||(r.contentHooks=[])).push(-e,t),a&&((r.contentHooks||(r.contentHooks=[])).push(e,a),(r.contentCheckHooks||(r.contentCheckHooks=[])).push(e,a)),l&&(r.viewHooks||(r.viewHooks=[])).push(-e,l),p&&((r.viewHooks||(r.viewHooks=[])).push(e,p),(r.viewCheckHooks||(r.viewCheckHooks=[])).push(e,p)),null!=u&&(r.destroyHooks||(r.destroyHooks=[])).push(e,u)}}function Bs(r,n,e){yu(r,n,3,e)}function Ds(r,n,e,s){(3&r[2])===e&&yu(r,n,e,s)}function Ii(r,n){let e=r[2];(3&e)===n&&(e&=2047,e+=1,r[2]=e)}function yu(r,n,e,s){const i=null!=s?s:-1,t=n.length-1;let a=0;for(let l=void 0!==s?65535&r[18]:0;l<t;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=s&&a>=s)break}else n[l]<0&&(r[18]+=65536),(a<i||-1==i)&&(dg(r,e,n,l),r[18]=(4294901760&r[18])+l+2),l++}function dg(r,n,e,s){const o=e[s]<0,i=e[s+1],a=r[o?-e[s]:e[s]];if(o){if(r[2]>>11<r[18]>>16&&(3&r[2])===n){r[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class xn{constructor(n,e,s){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=s}}function Ss(r,n,e){const s=ce(r);let o=0;for(;o<e.length;){const i=e[o];if("number"==typeof i){if(0!==i)break;o++;const t=e[o++],a=e[o++],l=e[o++];s?r.setAttribute(n,a,l,t):n.setAttributeNS(t,a,l)}else{const t=i,a=e[++o];Ci(t)?s&&r.setProperty(n,t,a):s?r.setAttribute(n,t,a):n.setAttribute(t,a),o++}}return o}function wu(r){return 3===r||4===r||6===r}function Ci(r){return 64===r.charCodeAt(0)}function Os(r,n){if(null!==n&&0!==n.length)if(null===r||0===r.length)r=n.slice();else{let e=-1;for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?e=o:0===e||vu(r,e,o,null,-1===e||2===e?n[++s]:null)}}return r}function vu(r,n,e,s,o){let i=0,t=r.length;if(-1===n)t=-1;else for(;i<r.length;){const a=r[i++];if("number"==typeof a){if(a===n){t=-1;break}if(a>n){t=i-1;break}}}for(;i<r.length;){const a=r[i];if("number"==typeof a)break;if(a===e){if(null===s)return void(null!==o&&(r[i+1]=o));if(s===r[i+1])return void(r[i+2]=o)}i++,null!==s&&i++,null!==o&&i++}-1!==t&&(r.splice(t,0,n),i=t+1),r.splice(i++,0,e),null!==s&&r.splice(i++,0,s),null!==o&&r.splice(i++,0,o)}function Iu(r){return-1!==r}function Mr(r){return 32767&r}function Br(r,n){let e=function mg(r){return r>>16}(r),s=n;for(;e>0;)s=s[15],e--;return s}let Ri=!0;function As(r){const n=Ri;return Ri=r,n}let bg=0;function wn(r,n){const e=Bi(r,n);if(-1!==e)return e;const s=n[1];s.firstCreatePass&&(r.injectorIndex=n.length,Mi(s.data,r),Mi(n,null),Mi(s.blueprint,null));const o=Ns(r,n),i=r.injectorIndex;if(Iu(o)){const t=Mr(o),a=Br(o,n),l=a[1].data;for(let p=0;p<8;p++)n[i+p]=a[t+p]|l[t+p]}return n[i+8]=o,i}function Mi(r,n){r.push(0,0,0,0,0,0,0,0,n)}function Bi(r,n){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===n[r.injectorIndex+8]?-1:r.injectorIndex}function Ns(r,n){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let e=0,s=null,o=n;for(;null!==o;){const i=o[1],t=i.type;if(s=2===t?i.declTNode:1===t?o[6]:null,null===s)return-1;if(e++,o=o[15],-1!==s.injectorIndex)return s.injectorIndex|e<<16}return-1}function ks(r,n,e){!function gg(r,n,e){let s;"string"==typeof e?s=e.charCodeAt(0)||0:e.hasOwnProperty(_n)&&(s=e[_n]),null==s&&(s=e[_n]=bg++);const o=255&s;n.data[r+(o>>5)]|=1<<o}(r,n,e)}function Ru(r,n,e){if(e&V.Optional)return r;_s(n,"NodeInjector")}function Mu(r,n,e,s){if(e&V.Optional&&void 0===s&&(s=null),0==(e&(V.Self|V.Host))){const o=r[9],i=zt(void 0);try{return o?o.get(n,s,e&V.Optional):Qp(n,s,e&V.Optional)}finally{zt(i)}}return Ru(s,n,e)}function Bu(r,n,e,s=V.Default,o){if(null!==r){const i=function wg(r){if("string"==typeof r)return r.charCodeAt(0)||0;const n=r.hasOwnProperty(_n)?r[_n]:void 0;return"number"==typeof n?n>=0?255&n:xg:n}(e);if("function"==typeof i){if(!mu(n,r,s))return s&V.Host?Ru(o,e,s):Mu(n,e,s,o);try{const t=i(s);if(null!=t||s&V.Optional)return t;_s(e)}finally{xu()}}else if("number"==typeof i){let t=null,a=Bi(r,n),l=-1,p=s&V.Host?n[16][6]:null;for((-1===a||s&V.SkipSelf)&&(l=-1===a?Ns(r,n):n[a+8],-1!==l&&Ou(s,!1)?(t=n[1],a=Mr(l),n=Br(l,n)):a=-1);-1!==a;){const u=n[1];if(Su(i,a,u.data)){const c=yg(a,n,e,t,s,p);if(c!==Du)return c}l=n[a+8],-1!==l&&Ou(s,n[1].data[a+8]===p)&&Su(i,a,n)?(t=u,a=Mr(l),n=Br(l,n)):a=-1}}}return Mu(n,e,s,o)}const Du={};function xg(){return new Dr(ve(),C())}function yg(r,n,e,s,o,i){const t=n[1],a=t.data[r+8],u=function Fs(r,n,e,s,o){const i=r.providerIndexes,t=n.data,a=1048575&i,l=r.directiveStart,u=i>>20,f=o?a+u:r.directiveEnd;for(let h=s?a:a+u;h<f;h++){const _=t[h];if(h<l&&e===_||h>=l&&_.type===e)return h}if(o){const h=t[l];if(h&&pt(h)&&h.type===e)return l}return null}(a,t,e,null==s?ys(a)&&Ri:s!=t&&0!=(3&a.type),o&V.Host&&i===a);return null!==u?vn(n,t,u,a):Du}function vn(r,n,e,s){let o=r[e];const i=n.data;if(function cg(r){return r instanceof xn}(o)){const t=o;t.resolving&&function hb(r,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${r}`:"";throw new te(-200,`Circular dependency in DI detected for ${r}${e}`)}(Be(i[e]));const a=As(t.canSeeViewProviders);t.resolving=!0;const l=t.injectImpl?zt(t.injectImpl):null;mu(r,s,V.Default);try{o=r[e]=t.factory(void 0,i,r,s),n.firstCreatePass&&e>=s.directiveStart&&function ug(r,n,e){const{ngOnChanges:s,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(s){const t=su(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(r,t),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(r,t)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-r,o),i&&((e.preOrderHooks||(e.preOrderHooks=[])).push(r,i),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(r,i))}(e,i[e],n)}finally{null!==l&&zt(l),As(a),t.resolving=!1,xu()}}return o}function Su(r,n,e){return!!(e[n+(r>>5)]&1<<r)}function Ou(r,n){return!(r&V.Self||r&V.Host&&n)}class Dr{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,s){return Bu(this._tNode,this._lView,n,s,e)}}const Or="__parameters__";function Nr(r,n,e){return qt(()=>{const s=function Oi(r){return function(...e){if(r){const s=r(...e);for(const o in s)this[o]=s[o]}}}(n);function o(...i){if(this instanceof o)return s.apply(this,i),this;const t=new o(...i);return a.annotation=t,a;function a(l,p,u){const c=l.hasOwnProperty(Or)?l[Or]:Object.defineProperty(l,Or,{value:[]})[Or];for(;c.length<=u;)c.push(null);return(c[u]=c[u]||[]).push(t),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=r,o.annotationCls=o,o})}class Y{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ee({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function vt(r,n){r.forEach(e=>Array.isArray(e)?vt(e,n):n(e))}function Nu(r,n,e){n>=r.length?r.push(e):r.splice(n,0,e)}function Ps(r,n){return n>=r.length-1?r.pop():r.splice(n,1)[0]}function qe(r,n,e){let s=kr(r,n);return s>=0?r[1|s]=e:(s=~s,function Rg(r,n,e,s){let o=r.length;if(o==n)r.push(e,s);else if(1===o)r.push(s,r[0]),r[0]=e;else{for(o--,r.push(r[o-1],r[o]);o>n;)r[o]=r[o-2],o--;r[n]=e,r[n+1]=s}}(r,s,n,e)),s}function Ni(r,n){const e=kr(r,n);if(e>=0)return r[1|e]}function kr(r,n){return function Pu(r,n,e){let s=0,o=r.length>>e;for(;o!==s;){const i=s+(o-s>>1),t=r[i<<e];if(n===t)return i<<e;t>n?o=i:s=i+1}return~(o<<e)}(r,n,1)}const Rn={},Fi="__NG_DI_FLAG__",Hs="ngTempTokenPath",Ng=/\n/gm,Hu="__source",Fg=se({provide:String,useValue:se});let Mn;function ju(r){const n=Mn;return Mn=r,n}function Pg(r,n=V.Default){if(void 0===Mn)throw new te(203,"");return null===Mn?Qp(r,void 0,n):Mn.get(r,n&V.Optional?null:void 0,n)}function k(r,n=V.Default){return(function yb(){return ni}()||Pg)(G(r),n)}const Ug=k;function Pi(r){const n=[];for(let e=0;e<r.length;e++){const s=G(r[e]);if(Array.isArray(s)){if(0===s.length)throw new te(900,"");let o,i=V.Default;for(let t=0;t<s.length;t++){const a=s[t],l=Hg(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}n.push(k(o,i))}else n.push(k(s))}return n}function Bn(r,n){return r[Fi]=n,r.prototype[Fi]=n,r}function Hg(r){return r[Fi]}const js=Bn(Nr("Optional"),8),Ls=Bn(Nr("SkipSelf"),4);class Ku{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Yt(r){return r instanceof Ku?r.changingThisBreaksApplicationSecurity:r}const aT=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,lT=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function zi(r){const n=function An(){const r=C();return r&&r[12]}();return n?n.sanitize(Te.URL,r)||"":function Sn(r,n){const e=function nT(r){return r instanceof Ku&&r.getTypeName()||null}(r);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}(r,"URL")?Yt(r):function Gs(r){return(r=String(r)).match(aT)||r.match(lT)?r:"unsafe:"+r}(L(r))}const od="__ngContext__";function Oe(r,n){r[od]=n}function Wi(r){const n=function Nn(r){return r[od]||null}(r);return n?Array.isArray(n)?n:n.lView:null}function Qi(r){return r.ngOriginalError}function ST(r,...n){r.error(...n)}class kn{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),s=function DT(r){return r&&r.ngErrorLogger||ST}(n);s(this._console,"ERROR",n),e&&s(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Qi(n);for(;e&&Qi(e);)e=Qi(e);return e||null}}const LT=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ne))();function Et(r){return r instanceof Function?r():r}var We=(()=>((We=We||{})[We.Important=1]="Important",We[We.DashCase=2]="DashCase",We))();function Yi(r,n){return undefined(r,n)}function Fn(r){const n=r[3];return lt(n)?n[3]:n}function Xi(r){return hd(r[13])}function ea(r){return hd(r[4])}function hd(r){for(;null!==r&&!lt(r);)r=r[4];return r}function Hr(r,n,e,s,o){if(null!=s){let i,t=!1;lt(s)?i=s:yt(s)&&(t=!0,s=s[0]);const a=ge(s);0===r&&null!==e?null==o?xd(n,e,a):hr(n,e,a,o||null,!0):1===r&&null!==e?hr(n,e,a,o||null,!0):2===r?function Rd(r,n,e){const s=qs(r,n);s&&function tx(r,n,e,s){ce(r)?r.removeChild(n,e,s):n.removeChild(e)}(r,s,n,e)}(n,a,t):3===r&&n.destroyNode(a),null!=i&&function sx(r,n,e,s,o){const i=e[7];i!==ge(e)&&Hr(n,r,s,i,o);for(let a=10;a<e.length;a++){const l=e[a];Pn(l[1],l,r,n,s,i)}}(n,r,i,e,o)}}function ra(r,n,e){if(ce(r))return r.createElement(n,e);{const s=null!==e?function jb(r){const n=r.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===s?r.createElement(n):r.createElementNS(s,n)}}function md(r,n){const e=r[9],s=e.indexOf(n),o=n[3];1024&n[2]&&(n[2]&=-1025,gi(o,-1)),e.splice(s,1)}function na(r,n){if(r.length<=10)return;const e=10+n,s=r[e];if(s){const o=s[17];null!==o&&o!==r&&md(o,s),n>0&&(r[e-1][4]=s[4]);const i=Ps(r,10+n);!function qT(r,n){Pn(r,n,n[z],2,null,null),n[0]=null,n[6]=null}(s[1],s);const t=i[19];null!==t&&t.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function bd(r,n){if(!(256&n[2])){const e=n[z];ce(e)&&e.destroyNode&&Pn(r,n,e,3,null,null),function QT(r){let n=r[13];if(!n)return sa(r[1],r);for(;n;){let e=null;if(yt(n))e=n[13];else{const s=n[10];s&&(e=s)}if(!e){for(;n&&!n[4]&&n!==r;)yt(n)&&sa(n[1],n),n=n[3];null===n&&(n=r),yt(n)&&sa(n[1],n),e=n&&n[4]}n=e}}(n)}}function sa(r,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function ex(r,n){let e;if(null!=r&&null!=(e=r.destroyHooks))for(let s=0;s<e.length;s+=2){const o=n[e[s]];if(!(o instanceof xn)){const i=e[s+1];if(Array.isArray(i))for(let t=0;t<i.length;t+=2){const a=o[i[t]],l=i[t+1];try{l.call(a)}finally{}}else try{i.call(o)}finally{}}}}(r,n),function XT(r,n){const e=r.cleanup,s=n[7];let o=-1;if(null!==e)for(let i=0;i<e.length-1;i+=2)if("string"==typeof e[i]){const t=e[i+1],a="function"==typeof t?t(n):ge(n[t]),l=s[o=e[i+2]],p=e[i+3];"boolean"==typeof p?a.removeEventListener(e[i],l,p):p>=0?s[o=p]():s[o=-p].unsubscribe(),i+=2}else{const t=s[o=e[i+1]];e[i].call(t)}if(null!==s){for(let i=o+1;i<s.length;i++)s[i]();n[7]=null}}(r,n),1===n[1].type&&ce(n[z])&&n[z].destroy();const e=n[17];if(null!==e&<(n[3])){e!==n[3]&&md(e,n);const s=n[19];null!==s&&s.detachView(r)}}}function gd(r,n,e){return function Td(r,n,e){let s=n;for(;null!==s&&40&s.type;)s=(n=s).parent;if(null===s)return e[0];if(2&s.flags){const o=r.data[s.directiveStart].encapsulation;if(o===xt.None||o===xt.Emulated)return null}return tt(s,e)}(r,n.parent,e)}function hr(r,n,e,s,o){ce(r)?r.insertBefore(n,e,s,o):n.insertBefore(e,s,o)}function xd(r,n,e){ce(r)?r.appendChild(n,e):n.appendChild(e)}function yd(r,n,e,s,o){null!==s?hr(r,n,e,s,o):xd(r,n,e)}function qs(r,n){return ce(r)?r.parentNode(n):n.parentNode}let Id=function vd(r,n,e){return 40&r.type?tt(r,e):null};function Ws(r,n,e,s){const o=gd(r,s,n),i=n[z],a=function wd(r,n,e){return Id(r,n,e)}(s.parent||n[6],s,n);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)yd(i,o,e[l],a,!1);else yd(i,o,e,a,!1)}function Ks(r,n){if(null!==n){const e=n.type;if(3&e)return tt(n,r);if(4&e)return ia(-1,r[n.index]);if(8&e){const s=n.child;if(null!==s)return Ks(r,s);{const o=r[n.index];return lt(o)?ia(-1,o):ge(o)}}if(32&e)return Yi(n,r)()||ge(r[n.index]);{const s=Cd(r,n);return null!==s?Array.isArray(s)?s[0]:Ks(Fn(r[16]),s):Ks(r,n.next)}}return null}function Cd(r,n){return null!==n?r[16][6].projection[n.projection]:null}function ia(r,n){const e=10+r+1;if(e<n.length){const s=n[e],o=s[1].firstChild;if(null!==o)return Ks(s,o)}return n[7]}function aa(r,n,e,s,o,i,t){for(;null!=e;){const a=s[e.index],l=e.type;if(t&&0===n&&(a&&Oe(ge(a),s),e.flags|=4),64!=(64&e.flags))if(8&l)aa(r,n,e.child,s,o,i,!1),Hr(n,r,o,a,i);else if(32&l){const p=Yi(e,s);let u;for(;u=p();)Hr(n,r,o,u,i);Hr(n,r,o,a,i)}else 16&l?Md(r,n,s,e,o,i):Hr(n,r,o,a,i);e=t?e.projectionNext:e.next}}function Pn(r,n,e,s,o,i){aa(e,s,r.firstChild,n,o,i,!1)}function Md(r,n,e,s,o,i){const t=e[16],l=t[6].projection[s.projection];if(Array.isArray(l))for(let p=0;p<l.length;p++)Hr(n,r,o,l[p],i);else aa(r,n,l,t[3],o,i,!0)}function Bd(r,n,e){ce(r)?r.setAttribute(n,"style",e):n.style.cssText=e}function la(r,n,e){ce(r)?""===e?r.removeAttribute(n,"class"):r.setAttribute(n,"class",e):n.className=e}function Dd(r,n,e){let s=r.length;for(;;){const o=r.indexOf(n,e);if(-1===o)return o;if(0===o||r.charCodeAt(o-1)<=32){const i=n.length;if(o+i===s||r.charCodeAt(o+i)<=32)return o}e=o+1}}const Sd="ng-template";function ix(r,n,e){let s=0;for(;s<r.length;){let o=r[s++];if(e&&"class"===o){if(o=r[s],-1!==Dd(o.toLowerCase(),n,0))return!0}else if(1===o){for(;s<r.length&&"string"==typeof(o=r[s++]);)if(o.toLowerCase()===n)return!0;return!1}}return!1}function Od(r){return 4===r.type&&r.value!==Sd}function ax(r,n,e){return n===(4!==r.type||e?r.value:Sd)}function lx(r,n,e){let s=4;const o=r.attrs||[],i=function dx(r){for(let n=0;n<r.length;n++)if(wu(r[n]))return n;return r.length}(o);let t=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!t)if(4&s){if(s=2|1&s,""!==l&&!ax(r,l,e)||""===l&&1===n.length){if(ut(s))return!1;t=!0}}else{const p=8&s?l:n[++a];if(8&s&&null!==r.attrs){if(!ix(r.attrs,p,e)){if(ut(s))return!1;t=!0}continue}const c=px(8&s?"class":l,o,Od(r),e);if(-1===c){if(ut(s))return!1;t=!0;continue}if(""!==p){let f;f=c>i?"":o[c+1].toLowerCase();const h=8&s?f:null;if(h&&-1!==Dd(h,p,0)||2&s&&p!==f){if(ut(s))return!1;t=!0}}}}else{if(!t&&!ut(s)&&!ut(l))return!1;if(t&&ut(l))continue;t=!1,s=l|1&s}}return ut(s)||t}function ut(r){return 0==(1&r)}function px(r,n,e,s){if(null===n)return-1;let o=0;if(s||!e){let i=!1;for(;o<n.length;){const t=n[o];if(t===r)return o;if(3===t||6===t)i=!0;else{if(1===t||2===t){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===t)break;if(0===t){o+=4;continue}}o+=i?1:2}return-1}return function cx(r,n){let e=r.indexOf(4);if(e>-1)for(e++;e<r.length;){const s=r[e];if("number"==typeof s)return-1;if(s===n)return e;e++}return-1}(n,r)}function Ad(r,n,e=!1){for(let s=0;s<n.length;s++)if(lx(r,n[s],e))return!0;return!1}function Nd(r,n){return r?":not("+n.trim()+")":n}function hx(r){let n=r[0],e=1,s=2,o="",i=!1;for(;e<r.length;){let t=r[e];if("string"==typeof t)if(2&s){const a=r[++e];o+="["+t+(a.length>0?'="'+a+'"':"")+"]"}else 8&s?o+="."+t:4&s&&(o+=" "+t);else""!==o&&!ut(t)&&(n+=Nd(i,o),o=""),s=t,i=i||!ut(s);e++}return""!==o&&(n+=Nd(i,o)),n}const $={};function Qs(r){kd(X(),C(),Fe()+r,!1)}function kd(r,n,e,s){if(!s)if(3==(3&n[2])){const i=r.preOrderCheckHooks;null!==i&&Bs(n,i,e)}else{const i=r.preOrderHooks;null!==i&&Ds(n,i,0,e)}Qt(e)}function Zs(r,n){return r<<17|n<<2}function dt(r){return r>>17&32767}function pa(r){return 2|r}function Ut(r){return(131068&r)>>2}function ua(r,n){return-131069&r|n<<2}function da(r){return 1|r}function zd(r,n){const e=r.contentQueries;if(null!==e)for(let s=0;s<e.length;s+=2){const o=e[s],i=e[s+1];if(-1!==i){const t=r.data[i];vi(o),t.contentQueries(2,n[i],i)}}}function Un(r,n,e,s,o,i,t,a,l,p){const u=n.blueprint.slice();return u[0]=o,u[2]=140|s,pu(u),u[3]=u[15]=r,u[8]=e,u[10]=t||r&&r[10],u[z]=a||r&&r[z],u[12]=l||r&&r[12]||null,u[9]=p||r&&r[9]||null,u[6]=i,u[16]=2==n.type?r[16]:u,u}function jr(r,n,e,s,o){let i=r.data[n];if(null===i)i=function xa(r,n,e,s,o){const i=cu(),t=Ti(),l=r.data[n]=function Ox(r,n,e,s,o,i){return{type:e,index:s,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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?i:i&&i.parent,e,n,s,o);return null===r.firstChild&&(r.firstChild=l),null!==i&&(t?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l)),l}(r,n,e,s,o),function Xb(){return J.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=e,i.value=s,i.attrs=o;const t=function Tn(){const r=J.lFrame,n=r.currentTNode;return r.isParent?n:n.parent}();i.injectorIndex=null===t?-1:t.injectorIndex}return wt(i,!0),i}function Lr(r,n,e,s){if(0===e)return-1;const o=n.length;for(let i=0;i<e;i++)n.push(s),r.blueprint.push(s),r.data.push(null);return o}function Hn(r,n,e){Cs(n);try{const s=r.viewQuery;null!==s&&Ba(1,s,e);const o=r.template;null!==o&&qd(r,n,o,1,e),r.firstCreatePass&&(r.firstCreatePass=!1),r.staticContentQueries&&zd(r,n),r.staticViewQueries&&Ba(2,r.viewQuery,e);const i=r.components;null!==i&&function Bx(r,n){for(let e=0;e<n.length;e++)Qx(r,n[e])}(n,i)}catch(s){throw r.firstCreatePass&&(r.incompleteFirstPass=!0,r.firstCreatePass=!1),s}finally{n[2]&=-5,Rs()}}function Jr(r,n,e,s){const o=n[2];if(256!=(256&o)){Cs(n);try{pu(n),function fu(r){return J.lFrame.bindingIndex=r}(r.bindingStartIndex),null!==e&&qd(r,n,e,2,s);const t=3==(3&o);if(t){const p=r.preOrderCheckHooks;null!==p&&Bs(n,p,null)}else{const p=r.preOrderHooks;null!==p&&Ds(n,p,0,null),Ii(n,0)}if(function Wx(r){for(let n=Xi(r);null!==n;n=ea(n)){if(!n[2])continue;const e=n[9];for(let s=0;s<e.length;s++){const o=e[s],i=o[3];0==(1024&o[2])&&gi(i,1),o[2]|=1024}}}(n),function qx(r){for(let n=Xi(r);null!==n;n=ea(n))for(let e=10;e<n.length;e++){const s=n[e],o=s[1];bi(s)&&Jr(o,s,o.template,s[8])}}(n),null!==r.contentQueries&&zd(r,n),t){const p=r.contentCheckHooks;null!==p&&Bs(n,p)}else{const p=r.contentHooks;null!==p&&Ds(n,p,1),Ii(n,1)}!function Rx(r,n){const e=r.hostBindingOpCodes;if(null!==e)try{for(let s=0;s<e.length;s++){const o=e[s];if(o<0)Qt(~o);else{const i=o,t=e[++s],a=e[++s];eg(t,i),a(2,n[i])}}}finally{Qt(-1)}}(r,n);const a=r.components;null!==a&&function Mx(r,n){for(let e=0;e<n.length;e++)Kx(r,n[e])}(n,a);const l=r.viewQuery;if(null!==l&&Ba(2,l,s),t){const p=r.viewCheckHooks;null!==p&&Bs(n,p)}else{const p=r.viewHooks;null!==p&&Ds(n,p,2),Ii(n,2)}!0===r.firstUpdatePass&&(r.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,gi(n[3],-1))}finally{Rs()}}}function Dx(r,n,e,s){const o=n[10],t=function lu(r){return 4==(4&r[2])}(n);try{!t&&o.begin&&o.begin(),t&&Hn(r,n,s),Jr(r,n,e,s)}finally{!t&&o.end&&o.end()}}function qd(r,n,e,s,o){const i=Fe(),t=2&s;try{Qt(-1),t&&n.length>20&&kd(r,n,20,!1),e(s,o)}finally{Qt(i)}}function Wd(r,n,e){if(pi(n)){const o=n.directiveEnd;for(let i=n.directiveStart;i<o;i++){const t=r.data[i];t.contentQueries&&t.contentQueries(1,e[i],i)}}}function ya(r,n,e){!du()||(function Hx(r,n,e,s){const o=e.directiveStart,i=e.directiveEnd;r.firstCreatePass||wn(e,n),Oe(s,n);const t=e.initialInputs;for(let a=o;a<i;a++){const l=r.data[a],p=pt(l);p&&Vx(n,e,l);const u=vn(n,r,a,e);Oe(u,n),null!==t&&Gx(0,a-o,u,l,0,t),p&&(ze(e.index,n)[8]=u)}}(r,n,e,tt(e,n)),128==(128&e.flags)&&function jx(r,n,e){const s=e.directiveStart,o=e.directiveEnd,t=e.index,a=function tg(){return J.lFrame.currentDirectiveIndex}();try{Qt(t);for(let l=s;l<o;l++){const p=r.data[l],u=n[l];yi(l),(null!==p.hostBindings||0!==p.hostVars||null!==p.hostAttrs)&&rc(p,u)}}finally{Qt(-1),yi(a)}}(r,n,e))}function wa(r,n,e=tt){const s=n.localNames;if(null!==s){let o=n.index+1;for(let i=0;i<s.length;i+=2){const t=s[i+1],a=-1===t?e(n,r):r[t];r[o++]=a}}}function Kd(r){const n=r.tView;return null===n||n.incompleteFirstPass?r.tView=eo(1,null,r.template,r.decls,r.vars,r.directiveDefs,r.pipeDefs,r.viewQuery,r.schemas,r.consts):n}function eo(r,n,e,s,o,i,t,a,l,p){const u=20+s,c=u+o,f=function Sx(r,n){const e=[];for(let s=0;s<n;s++)e.push(s<r?null:$);return e}(u,c),h="function"==typeof p?p():p;return f[1]={type:r,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:c,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 i?i():i,pipeRegistry:"function"==typeof t?t():t,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Xd(r,n,e){for(let s in r)if(r.hasOwnProperty(s)){const o=r[s];(e=null===e?{}:e).hasOwnProperty(s)?e[s].push(n,o):e[s]=[n,o]}return e}function va(r,n,e,s){let o=!1;if(du()){const i=function Lx(r,n,e){const s=r.directiveRegistry;let o=null;if(s)for(let i=0;i<s.length;i++){const t=s[i];Ad(e,t.selectors,!1)&&(o||(o=[]),ks(wn(e,n),r,t.type),pt(t)?(nc(r,e),o.unshift(t)):o.push(t))}return o}(r,n,e),t=null===s?null:{"":-1};if(null!==i){o=!0,sc(e,r.data.length,i.length);for(let u=0;u<i.length;u++){const c=i[u];c.providersResolver&&c.providersResolver(c)}let a=!1,l=!1,p=Lr(r,n,i.length,null);for(let u=0;u<i.length;u++){const c=i[u];e.mergedAttrs=Os(e.mergedAttrs,c.hostAttrs),oc(r,e,n,p,c),$x(p,c,t),null!==c.contentQueries&&(e.flags|=8),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(e.flags|=128);const f=c.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((r.preOrderHooks||(r.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(e.index),l=!0),p++}!function Ax(r,n){const s=n.directiveEnd,o=r.data,i=n.attrs,t=[];let a=null,l=null;for(let p=n.directiveStart;p<s;p++){const u=o[p],c=u.inputs,f=null===i||Od(n)?null:zx(c,i);t.push(f),a=Xd(c,p,a),l=Xd(u.outputs,p,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=t,n.inputs=a,n.outputs=l}(r,e)}t&&function Jx(r,n,e){if(n){const s=r.localNames=[];for(let o=0;o<n.length;o+=2){const i=e[n[o+1]];if(null==i)throw new te(-301,!1);s.push(n[o],i)}}}(e,s,t)}return e.mergedAttrs=Os(e.mergedAttrs,e.attrs),o}function tc(r,n,e,s,o,i){const t=i.hostBindings;if(t){let a=r.hostBindingOpCodes;null===a&&(a=r.hostBindingOpCodes=[]);const l=~n.index;(function Ux(r){let n=r.length;for(;n>0;){const e=r[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(s,o,t)}}function rc(r,n){null!==r.hostBindings&&r.hostBindings(1,n)}function nc(r,n){n.flags|=2,(r.components||(r.components=[])).push(n.index)}function $x(r,n,e){if(e){if(n.exportAs)for(let s=0;s<n.exportAs.length;s++)e[n.exportAs[s]]=r;pt(n)&&(e[""]=r)}}function sc(r,n,e){r.flags|=1,r.directiveStart=n,r.directiveEnd=n+e,r.providerIndexes=n}function oc(r,n,e,s,o){r.data[s]=o;const i=o.factory||(o.factory=fr(o.type)),t=new xn(i,pt(o),null);r.blueprint[s]=t,e[s]=t,tc(r,n,0,s,Lr(r,e,o.hostVars,$),o)}function Vx(r,n,e){const s=tt(n,r),o=Kd(e),i=r[10],t=to(r,Un(r,o,null,e.onPush?64:16,s,n,i,i.createRenderer(s,e),null,null));r[n.index]=t}function Gx(r,n,e,s,o,i){const t=i[n];if(null!==t){const a=s.setInput;for(let l=0;l<t.length;){const p=t[l++],u=t[l++],c=t[l++];null!==a?s.setInput(e,c,p,u):e[u]=c}}}function zx(r,n){let e=null,s=0;for(;s<n.length;){const o=n[s];if(0!==o)if(5!==o){if("number"==typeof o)break;r.hasOwnProperty(o)&&(null===e&&(e=[]),e.push(o,r[o],n[s+1])),s+=2}else s+=2;else s+=4}return e}function ic(r,n,e,s){return new Array(r,!0,!1,n,null,0,s,e,null,null)}function Kx(r,n){const e=ze(n,r);if(bi(e)){const s=e[1];80&e[2]?Jr(s,e,s.template,e[8]):e[5]>0&&Ea(e)}}function Ea(r){for(let s=Xi(r);null!==s;s=ea(s))for(let o=10;o<s.length;o++){const i=s[o];if(1024&i[2]){const t=i[1];Jr(t,i,t.template,i[8])}else i[5]>0&&Ea(i)}const e=r[1].components;if(null!==e)for(let s=0;s<e.length;s++){const o=ze(e[s],r);bi(o)&&o[5]>0&&Ea(o)}}function Qx(r,n){const e=ze(n,r),s=e[1];(function Zx(r,n){for(let e=n.length;e<r.blueprint.length;e++)n.push(r.blueprint[e])})(s,e),Hn(s,e,e[8])}function to(r,n){return r[13]?r[14][4]=n:r[13]=n,r[14]=n,n}function Ma(r,n,e){const s=n[10];s.begin&&s.begin();try{Jr(r,n,r.template,e)}catch(o){throw function dc(r,n){const e=r[9],s=e?e.get(kn,null):null;s&&s.handleError(n)}(n,o),o}finally{s.end&&s.end()}}function ac(r){!function Ra(r){for(let n=0;n<r.components.length;n++){const e=r.components[n],s=Wi(e),o=s[1];Dx(o,s,o.template,e)}}(r[8])}function Ba(r,n,e){vi(0),n(r,e)}const Xx=(()=>Promise.resolve(null))();function cc(r,n,e,s,o){for(let i=0;i<e.length;){const t=e[i++],a=e[i++],l=n[t],p=r.data[t];null!==p.setInput?p.setInput(l,o,s,a):l[a]=o}}function ro(r,n,e){let s=e?r.styles:null,o=e?r.classes:null,i=0;if(null!==n)for(let t=0;t<n.length;t++){const a=n[t];"number"==typeof a?i=a:1==i?o=Yo(o,a):2==i&&(s=Yo(s,a+": "+n[++t]+";"))}e?r.styles=s:r.stylesWithoutHost=s,e?r.classes=o:r.classesWithoutHost=o}const Da=new Y("INJECTOR",-1);class fc{get(n,e=Rn){if(e===Rn){const s=new Error(`NullInjectorError: No provider for ${re(n)}!`);throw s.name="NullInjectorError",s}return e}}const Sa=new Y("Set Injector scope."),jn={},r0={};let Oa;function hc(){return void 0===Oa&&(Oa=new fc),Oa}function _c(r,n=null,e=null,s){const o=mc(r,n,e,s);return o._resolveInjectorDefTypes(),o}function mc(r,n=null,e=null,s){return new n0(r,e,n||hc(),s)}class n0{constructor(n,e,s,o=null){this.parent=s,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&vt(e,a=>this.processProvider(a,n,e)),vt([n],a=>this.processInjectorType(a,[],i)),this.records.set(Da,$r(void 0,this));const t=this.records.get(Sa);this.scope=null!=t?t.value:null,this.source=o||("object"==typeof n?null:re(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=Rn,s=V.Default){this.assertNotDestroyed();const o=ju(this),i=zt(void 0);try{if(!(s&V.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function c0(r){return"function"==typeof r||"object"==typeof r&&r instanceof Y}(n)&&ti(n);a=l&&this.injectableDefInScope(l)?$r(Aa(n),jn):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(s&V.Self?hc():this.parent).get(n,e=s&V.Optional&&e===Rn?null:e)}catch(t){if("NullInjectorError"===t.name){if((t[Hs]=t[Hs]||[]).unshift(re(n)),o)throw t;return function jg(r,n,e,s){const o=r[Hs];throw n[Hu]&&o.unshift(n[Hu]),r.message=function Lg(r,n,e,s=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.substr(2):r;let o=re(n);if(Array.isArray(n))o=n.map(re).join(" -> ");else if("object"==typeof n){let i=[];for(let t in n)if(n.hasOwnProperty(t)){let a=n[t];i.push(t+":"+("string"==typeof a?JSON.stringify(a):re(a)))}o=`{${i.join(", ")}}`}return`${e}${s?"("+s+")":""}[${o}]: ${r.replace(Ng,"\n ")}`}("\n"+r.message,o,e,s),r.ngTokenPath=o,r[Hs]=null,r}(t,n,"R3InjectorError",this.source)}throw t}finally{zt(i),ju(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((s,o)=>n.push(re(o))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processInjectorType(n,e,s){if(!(n=G(n)))return!1;let o=Wp(n);const i=null==o&&n.ngModule||void 0,t=void 0===i?n:i,a=-1!==s.indexOf(t);if(void 0!==i&&(o=Wp(i)),null==o)return!1;if(null!=o.imports&&!a){let u;s.push(t);try{vt(o.imports,c=>{this.processInjectorType(c,e,s)&&(void 0===u&&(u=[]),u.push(c))})}finally{}if(void 0!==u)for(let c=0;c<u.length;c++){const{ngModule:f,providers:h}=u[c];vt(h,_=>this.processProvider(_,f,h||ie))}}this.injectorDefTypes.add(t);const l=fr(t)||(()=>new t);this.records.set(t,$r(l,jn));const p=o.providers;if(null!=p&&!a){const u=n;vt(p,c=>this.processProvider(c,u,p))}return void 0!==i&&void 0!==n.providers}processProvider(n,e,s){let o=Vr(n=G(n))?n:G(n&&n.provide);const i=function o0(r,n,e){return gc(r)?$r(void 0,r.useValue):$r(function bc(r,n,e){let s;if(Vr(r)){const o=G(r);return fr(o)||Aa(o)}if(gc(r))s=()=>G(r.useValue);else if(function l0(r){return!(!r||!r.useFactory)}(r))s=()=>r.useFactory(...Pi(r.deps||[]));else if(function a0(r){return!(!r||!r.useExisting)}(r))s=()=>k(G(r.useExisting));else{const o=G(r&&(r.useClass||r.provide));if(!function u0(r){return!!r.deps}(r))return fr(o)||Aa(o);s=()=>new o(...Pi(r.deps))}return s}(r),jn)}(n);if(Vr(n)||!0!==n.multi)this.records.get(o);else{let t=this.records.get(o);t||(t=$r(void 0,jn,!0),t.factory=()=>Pi(t.multi),this.records.set(o,t)),o=n,t.multi.push(n)}this.records.set(o,i)}hydrate(n,e){return e.value===jn&&(e.value=r0,e.value=e.factory()),"object"==typeof e.value&&e.value&&function d0(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=G(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Aa(r){const n=ti(r),e=null!==n?n.factory:fr(r);if(null!==e)return e;if(r instanceof Y)throw new te(204,!1);if(r instanceof Function)return function s0(r){const n=r.length;if(n>0)throw function Cn(r,n){const e=[];for(let s=0;s<r;s++)e.push(n);return e}(n,"?"),new te(204,!1);const e=function gb(r){const n=r&&(r[ms]||r[Kp]);if(n){const e=function Tb(r){if(r.hasOwnProperty("name"))return r.name;const n=(""+r).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(r);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(r);return null!==e?()=>e.factory(r):()=>new r}(r);throw new te(204,!1)}function $r(r,n,e=!1){return{factory:r,value:n,multi:e?[]:void 0}}function gc(r){return null!==r&&"object"==typeof r&&Fg in r}function Vr(r){return"function"==typeof r}let Qe=(()=>{class r{static create(e,s){var o;if(Array.isArray(e))return _c({name:""},s,e,"");{const i=null!==(o=e.name)&&void 0!==o?o:"";return _c({name:i},e.parent,e.providers,i)}}}return r.THROW_IF_NOT_FOUND=Rn,r.NULL=new fc,r.\u0275prov=ee({token:r,providedIn:"any",factory:()=>k(Da)}),r.__NG_ELEMENT_ID__=-1,r})();function x0(r,n){Ms(Wi(r)[1],ve())}let no=null;function Gr(){if(!no){const r=ne.Symbol;if(r&&r.iterator)no=r.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const s=n[e];"entries"!==s&&"size"!==s&&Map.prototype[s]===Map.prototype.entries&&(no=s)}}}return no}function Ln(r){return!!function Pa(r){return null!==r&&("function"==typeof r||"object"==typeof r)}(r)&&(Array.isArray(r)||!(r instanceof Map)&&Gr()in r)}function Ae(r,n,e){return!Object.is(r[n],e)&&(r[n]=e,!0)}function $n(r,n,e,s,o,i,t,a){const l=C(),p=X(),u=r+20,c=p.firstCreatePass?function S0(r,n,e,s,o,i,t,a,l){const p=n.consts,u=jr(n,r,4,t||null,Kt(p,a));va(n,e,u,Kt(p,l)),Ms(n,u);const c=u.tViews=eo(2,u,s,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,p);return null!==n.queries&&(n.queries.template(n,u),c.queries=n.queries.embeddedTView(u)),u}(u,p,l,n,e,s,o,i,t):p.data[u];wt(c,!1);const f=l[z].createComment("");Ws(p,l,f,c),Oe(f,l),to(l,l[u]=ic(f,l,f,c)),ws(c)&&ya(p,l,c),null!=t&&wa(l,c,a)}function Q(r,n=V.Default){const e=C();return null===e?k(r,n):Bu(ve(),e,G(r),n)}function mr(r,n,e){const s=C();return Ae(s,function Rr(){return J.lFrame.bindingIndex++}(),n)&&function Ke(r,n,e,s,o,i,t,a){const l=tt(n,e);let u,p=n.inputs;!a&&null!=p&&(u=p[s])?(cc(r,e,u,s,o),ys(n)&&function kx(r,n){const e=ze(n,r);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(s=function Nx(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(s),o=null!=t?t(o,n.value||"",s):o,ce(i)?i.setProperty(l,s,o):Ci(s)||(l.setProperty?l.setProperty(s,o):l[s]=o))}(X(),function fe(){const r=J.lFrame;return mi(r.tView,r.selectedIndex)}(),s,r,n,s[z],e,!1),mr}function Ja(r,n,e,s,o){const t=o?"class":"style";cc(r,e,n.inputs[t],t,s)}function $a(r,n,e,s){const o=C(),i=X(),t=20+r,a=o[z],l=o[t]=ra(a,n,function pg(){return J.lFrame.currentNamespace}()),p=i.firstCreatePass?function ey(r,n,e,s,o,i,t){const a=n.consts,p=jr(n,r,2,o,Kt(a,i));return va(n,e,p,Kt(a,t)),null!==p.attrs&&ro(p,p.attrs,!1),null!==p.mergedAttrs&&ro(p,p.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,p),p}(t,i,o,0,n,e,s):i.data[t];wt(p,!0);const u=p.mergedAttrs;null!==u&&Ss(a,l,u);const c=p.classes;null!==c&&la(a,l,c);const f=p.styles;return null!==f&&Bd(a,l,f),64!=(64&p.flags)&&Ws(i,o,l,p),0===function zb(){return J.lFrame.elementDepthCount}()&&Oe(l,o),function qb(){J.lFrame.elementDepthCount++}(),ws(p)&&(ya(i,o,p),Wd(i,p,o)),null!==s&&wa(o,p),$a}function Va(){let r=ve();Ti()?xi():(r=r.parent,wt(r,!1));const n=r;!function Wb(){J.lFrame.elementDepthCount--}();const e=X();return e.firstCreatePass&&(Ms(e,r),pi(r)&&e.queries.elementEnd(r)),null!=n.classesWithoutHost&&function hg(r){return 0!=(16&r.flags)}(n)&&Ja(e,n,C(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function _g(r){return 0!=(32&r.flags)}(n)&&Ja(e,n,C(),n.stylesWithoutHost,!1),Va}function io(r,n,e,s){return $a(r,n,e,s),Va(),io}function Vn(r,n,e){const s=C(),o=X(),i=r+20,t=o.firstCreatePass?function ty(r,n,e,s,o){const i=n.consts,t=Kt(i,s),a=jr(n,r,8,"ng-container",t);return null!==t&&ro(a,t,!0),va(n,e,a,Kt(i,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(i,o,s,n,e):o.data[i];wt(t,!0);const a=s[i]=s[z].createComment("");return Ws(o,s,a,t),Oe(a,s),ws(t)&&(ya(o,s,t),Wd(o,t,s)),null!=e&&wa(s,t),Vn}function Gn(){let r=ve();const n=X();return Ti()?xi():(r=r.parent,wt(r,!1)),n.firstCreatePass&&(Ms(n,r),pi(r)&&n.queries.elementEnd(r)),Gn}function Ga(r){return!!r&&"function"==typeof r.then}const ny=function Xc(r){return!!r&&"function"==typeof r.subscribe};function qa(r=1){return function ng(r){return(J.lFrame.contextLView=function sg(r,n){for(;r>0;)n=n[15],r--;return n}(r,J.lFrame.contextLView))[8]}(r)}function _f(r,n,e,s,o){const i=r[e+1],t=null===n;let a=s?dt(i):Ut(i),l=!1;for(;0!==a&&(!1===l||t);){const u=r[a+1];uy(r[a],n)&&(l=!0,r[a+1]=s?da(u):pa(u)),a=s?dt(u):Ut(u)}l&&(r[e+1]=s?pa(i):da(i))}function uy(r,n){return null===r||null==n||(Array.isArray(r)?r[1]:r)===n||!(!Array.isArray(r)||"string"!=typeof n)&&kr(r,n)>=0}function Ka(r,n){return function ft(r,n,e,s){const o=C(),i=X(),t=function Pt(r){const n=J.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+r,e}(2);i.firstUpdatePass&&function If(r,n,e,s){const o=r.data;if(null===o[e+1]){const i=o[Fe()],t=function vf(r,n){return n>=r.expandoStartIndex}(r,e);(function Mf(r,n){return 0!=(r.flags&(n?16:32))})(i,s)&&null===n&&!t&&(n=!1),n=function Ty(r,n,e,s){const o=function wi(r){const n=J.lFrame.currentDirectiveIndex;return-1===n?null:r[n]}(r);let i=s?n.residualClasses:n.residualStyles;if(null===o)0===(s?n.classBindings:n.styleBindings)&&(e=zn(e=Qa(null,r,n,e,s),n.attrs,s),i=null);else{const t=n.directiveStylingLast;if(-1===t||r[t]!==o)if(e=Qa(o,r,n,e,s),null===i){let l=function xy(r,n,e){const s=e?n.classBindings:n.styleBindings;if(0!==Ut(s))return r[dt(s)]}(r,n,s);void 0!==l&&Array.isArray(l)&&(l=Qa(null,r,n,l[1],s),l=zn(l,n.attrs,s),function yy(r,n,e,s){r[dt(e?n.classBindings:n.styleBindings)]=s}(r,n,s,l))}else i=function wy(r,n,e){let s;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i<o;i++)s=zn(s,r[i].hostAttrs,e);return zn(s,n.attrs,e)}(r,n,s)}return void 0!==i&&(s?n.residualClasses=i:n.residualStyles=i),e}(o,i,n,s),function ly(r,n,e,s,o,i){let t=i?n.classBindings:n.styleBindings,a=dt(t),l=Ut(t);r[s]=e;let u,p=!1;if(Array.isArray(e)){const c=e;u=c[1],(null===u||kr(c,u)>0)&&(p=!0)}else u=e;if(o)if(0!==l){const f=dt(r[a+1]);r[s+1]=Zs(f,a),0!==f&&(r[f+1]=ua(r[f+1],s)),r[a+1]=function bx(r,n){return 131071&r|n<<17}(r[a+1],s)}else r[s+1]=Zs(a,0),0!==a&&(r[a+1]=ua(r[a+1],s)),a=s;else r[s+1]=Zs(l,0),0===a?a=s:r[l+1]=ua(r[l+1],s),l=s;p&&(r[s+1]=pa(r[s+1])),_f(r,u,s,!0),_f(r,u,s,!1),function py(r,n,e,s,o){const i=o?r.residualClasses:r.residualStyles;null!=i&&"string"==typeof n&&kr(i,n)>=0&&(e[s+1]=da(e[s+1]))}(n,u,r,s,i),t=Zs(a,l),i?n.classBindings=t:n.styleBindings=t}(o,i,n,e,t,s)}}(i,r,t,s),n!==$&&Ae(o,t,n)&&function Cf(r,n,e,s,o,i,t,a){if(!(3&n.type))return;const l=r.data,p=l[a+1];ao(function Ud(r){return 1==(1&r)}(p)?Rf(l,n,e,o,Ut(p),t):void 0)||(ao(i)||function Pd(r){return 2==(2&r)}(p)&&(i=Rf(l,null,e,o,a,t)),function ox(r,n,e,s,o){const i=ce(r);if(n)o?i?r.addClass(e,s):e.classList.add(s):i?r.removeClass(e,s):e.classList.remove(s);else{let t=-1===s.indexOf("-")?void 0:We.DashCase;if(null==o)i?r.removeStyle(e,s,t):e.style.removeProperty(s);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),t|=We.Important),i?r.setStyle(e,s,o,t):e.style.setProperty(s,o,a?"important":"")}}}(s,t,function Is(r,n){return ge(n[r])}(Fe(),e),o,i))}(i,i.data[Fe()],o,o[z],r,o[t+1]=function Ey(r,n){return null==r||("string"==typeof n?r+=n:"object"==typeof r&&(r=re(Yt(r)))),r}(n,e),s,t)}(r,n,null,!0),Ka}function Qa(r,n,e,s,o){let i=null;const t=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<t&&(i=n[a],s=zn(s,i.hostAttrs,o),i!==r);)a++;return null!==r&&(e.directiveStylingLast=a),s}function zn(r,n,e){const s=e?1:2;let o=-1;if(null!==n)for(let i=0;i<n.length;i++){const t=n[i];"number"==typeof t?o=t:o===s&&(Array.isArray(r)||(r=void 0===r?[]:["",r]),qe(r,t,!!e||n[++i]))}return void 0===r?null:r}function Rf(r,n,e,s,o,i){const t=null===n;let a;for(;o>0;){const l=r[o],p=Array.isArray(l),u=p?l[1]:l,c=null===u;let f=e[o+1];f===$&&(f=c?ie:void 0);let h=c?Ni(f,s):u===s?f:void 0;if(p&&!ao(h)&&(h=Ni(l,s)),ao(h)&&(a=h,t))return a;const _=r[o+1];o=t?dt(_):Ut(_)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Ni(l,s))}return a}function ao(r){return void 0!==r}const lo="en-US";let Zf=lo;class wh{}class Kw{resolveComponentFactory(n){throw function Ww(r){const n=Error(`No component factory found for ${re(r)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=r,n}(n)}}let on=(()=>{class r{}return r.NULL=new Kw,r})();function Qw(){return an(ve(),C())}function an(r,n){return new ln(tt(r,n))}let ln=(()=>{class r{constructor(e){this.nativeElement=e}}return r.__NG_ELEMENT_ID__=Qw,r})();class Ih{}let ev=(()=>{class r{}return r.\u0275prov=ee({token:r,providedIn:"root",factory:()=>null}),r})();class ho{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const tv=new ho("13.3.11"),sl={};function _o(r,n,e,s,o=!1){for(;null!==e;){const i=n[e.index];if(null!==i&&s.push(ge(i)),lt(i))for(let a=10;a<i.length;a++){const l=i[a],p=l[1].firstChild;null!==p&&_o(l[1],l,p,s)}const t=e.type;if(8&t)_o(r,n,e.child,s);else if(32&t){const a=Yi(e,n);let l;for(;l=a();)s.push(l)}else if(16&t){const a=Cd(n,e);if(Array.isArray(a))s.push(...a);else{const l=Fn(n[16]);_o(l[1],l,a,s,!0)}}e=o?e.projectionNext:e.next}return s}class Zn{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return _o(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(lt(n)){const e=n[8],s=e?e.indexOf(this):-1;s>-1&&(na(n,s),Ps(e,s))}this._attachedToViewContainer=!1}bd(this._lView[1],this._lView)}onDestroy(n){!function Yd(r,n,e,s){const o=function lc(r){return r[7]||(r[7]=[])}(n);null===e?o.push(s):(o.push(e),r.firstCreatePass&&function pc(r){return r.cleanup||(r.cleanup=[])}(r).push(s,o.length-1))}(this._lView[1],this._lView,null,n)}markForCheck(){!function Ca(r){for(;r;){r[2]|=64;const n=Fn(r);if(Sb(r)&&!n)return r;r=n}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ma(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function KT(r,n){Pn(r,n,n[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new te(902,"");this._appRef=n}}class rv extends Zn{constructor(n){super(n),this._view=n}detectChanges(){ac(this._view)}checkNoChanges(){}get context(){return null}}class Ch extends on{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=De(n);return new ol(e,this.ngModule)}}function Rh(r){const n=[];for(let e in r)r.hasOwnProperty(e)&&n.push({propName:r[e],templateName:e});return n}class ol extends wh{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _x(r){return r.map(hx).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Rh(this.componentDef.inputs)}get outputs(){return Rh(this.componentDef.outputs)}create(n,e,s,o){const i=(o=o||this.ngModule)?function sv(r,n){return{get:(e,s,o)=>{const i=r.get(e,sl,o);return i!==sl||s===sl?i:n.get(e,s,o)}}}(n,o.injector):n,t=i.get(Ih,au),a=i.get(ev,null),l=t.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",u=s?function Zd(r,n,e){if(ce(r))return r.selectRootElement(n,e===xt.ShadowDom);let s="string"==typeof n?r.querySelector(n):n;return s.textContent="",s}(l,s,this.componentDef.encapsulation):ra(t.createRenderer(null,this.componentDef),p,function nv(r){const n=r.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(p)),c=this.componentDef.onPush?576:528,f=function Bc(r,n){return{components:[],scheduler:r||LT,clean:Xx,playerHandler:n||null,flags:0}}(),h=eo(0,null,null,1,0,null,null,null,null,null),_=Un(null,h,f,c,null,null,t,l,a,i);let m,g;Cs(_);try{const T=function Rc(r,n,e,s,o,i){const t=e[1];e[20]=r;const l=jr(t,20,2,"#host",null),p=l.mergedAttrs=n.hostAttrs;null!==p&&(ro(l,p,!0),null!==r&&(Ss(o,r,p),null!==l.classes&&la(o,r,l.classes),null!==l.styles&&Bd(o,r,l.styles)));const u=s.createRenderer(r,n),c=Un(e,Kd(n),null,n.onPush?64:16,e[20],l,s,u,i||null,null);return t.firstCreatePass&&(ks(wn(l,e),t,n.type),nc(t,l),sc(l,e.length,1)),to(e,c),e[20]=c}(u,this.componentDef,_,t,l);if(u)if(s)Ss(l,u,["ng-version",tv.full]);else{const{attrs:x,classes:E}=function mx(r){const n=[],e=[];let s=1,o=2;for(;s<r.length;){let i=r[s];if("string"==typeof i)2===o?""!==i&&n.push(i,r[++s]):8===o&&e.push(i);else{if(!ut(o))break;o=i}s++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);x&&Ss(l,u,x),E&&E.length>0&&la(l,u,E.join(" "))}if(g=mi(h,20),void 0!==e){const x=g.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const F=e[E];x.push(null!=F?Array.from(F):null)}}m=function Mc(r,n,e,s,o){const i=e[1],t=function Px(r,n,e){const s=ve();r.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),oc(r,s,n,Lr(r,n,1,null),e));const o=vn(n,r,s.directiveStart,s);Oe(o,n);const i=tt(s,n);return i&&Oe(i,n),o}(i,e,n);if(s.components.push(t),r[8]=t,o&&o.forEach(l=>l(t,n)),n.contentQueries){const l=ve();n.contentQueries(1,t,l.directiveStart)}const a=ve();return!i.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Qt(a.index),tc(e[1],a,0,a.directiveStart,a.directiveEnd,n),rc(n,t)),t}(T,this.componentDef,_,f,[x0]),Hn(h,_,null)}finally{Rs()}return new iv(this.componentType,m,an(g,_),_,g)}}class iv extends class qw{}{constructor(n,e,s,o,i){super(),this.location=s,this._rootLView=o,this._tNode=i,this.instance=e,this.hostView=this.changeDetectorRef=new rv(o),this.componentType=n}get injector(){return new Dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class pn{}const un=new Map;class Dh extends pn{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ch(this);const s=Ye(n);this._bootstrapComponents=Et(s.bootstrap),this._r3Injector=mc(n,e,[{provide:pn,useValue:this},{provide:on,useValue:this.componentFactoryResolver}],re(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=Qe.THROW_IF_NOT_FOUND,s=V.Default){return n===Qe||n===pn||n===Da?this:this._r3Injector.get(n,e,s)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class il extends class lv{}{constructor(n){super(),this.moduleType=n,null!==Ye(n)&&function pv(r){const n=new Set;!function e(s){const o=Ye(s,!0),i=o.id;null!==i&&(function Mh(r,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${r} - ${re(n)} vs ${re(n.name)}`)}(i,un.get(i),s),un.set(i,s));const t=Et(o.imports);for(const a of t)n.has(a)||(n.add(a),e(a))}(r)}(n)}create(n){return new Dh(this.moduleType,n)}}function Sh(r,n,e,s,o,i){const t=n+e;return Ae(r,t,o)?function Rt(r,n,e){return r[n]=e}(r,t+1,i?s.call(i,o):s(o)):function Yn(r,n){const e=r[n];return e===$?void 0:e}(r,t+1)}function Ph(r,n,e){const s=r+20,o=C(),i=function Cr(r,n){return r[n]}(o,s);return function Xn(r,n){return r[1].data[n].pure}(o,s)?Sh(o,function ke(){const r=J.lFrame;let n=r.bindingRootIndex;return-1===n&&(n=r.bindingRootIndex=r.tView.bindingStartIndex),n}(),n,i.transform,e,i):i.transform(e)}function al(r){return n=>{setTimeout(r,void 0,n)}}const jt=class Ev extends hs{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,s){var o,i,t;let a=n,l=e||(()=>null),p=s;if(n&&"object"==typeof n){const c=n;a=null===(o=c.next)||void 0===o?void 0:o.bind(c),l=null===(i=c.error)||void 0===i?void 0:i.bind(c),p=null===(t=c.complete)||void 0===t?void 0:t.bind(c)}this.__isAsync&&(l=al(l),a&&(a=al(a)),p&&(p=al(p)));const u=super.subscribe({next:a,error:l,complete:p});return n instanceof gt&&n.add(u),u}};Symbol;let Lt=(()=>{class r{}return r.__NG_ELEMENT_ID__=Bv,r})();const Rv=Lt,Mv=class extends Rv{constructor(n,e,s){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=s}createEmbeddedView(n){const e=this._declarationTContainer.tViews,s=Un(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);s[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(s[19]=i.createEmbeddedView(e)),Hn(e,s,n),new Zn(s)}};function Bv(){return function mo(r,n){return 4&r.type?new Mv(n,r,an(r,n)):null}(ve(),C())}let Dt=(()=>{class r{}return r.__NG_ELEMENT_ID__=Dv,r})();function Dv(){return function jh(r,n){let e;const s=n[r.index];if(lt(s))e=s;else{let o;if(8&r.type)o=ge(s);else{const i=n[z];o=i.createComment("");const t=tt(r,n);hr(i,qs(i,t),o,function rx(r,n){return ce(r)?r.nextSibling(n):n.nextSibling}(i,t),!1)}n[r.index]=e=ic(s,n,o,r),to(n,e)}return new Uh(e,r,n)}(ve(),C())}const Sv=Dt,Uh=class extends Sv{constructor(n,e,s){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=s}get element(){return an(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ns(this._hostTNode,this._hostLView);if(Iu(n)){const e=Br(n,this._hostLView),s=Mr(n);return new Dr(e[1].data[s+8],e)}return new Dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Hh(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,s){const o=n.createEmbeddedView(e||{});return this.insert(o,s),o}createComponent(n,e,s,o,i){const t=n&&!function En(r){return"function"==typeof r}(n);let a;if(t)a=e;else{const c=e||{};a=c.index,s=c.injector,o=c.projectableNodes,i=c.ngModuleRef}const l=t?n:new ol(De(n)),p=s||this.parentInjector;if(!i&&null==l.ngModule){const f=(t?p:this.parentInjector).get(pn,null);f&&(i=f)}const u=l.create(p,o,void 0,i);return this.insert(u.hostView,a),u}insert(n,e){const s=n._lView,o=s[1];if(function Gb(r){return lt(r[3])}(s)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=s[3],f=new Uh(c,c[6],c[3]);f.detach(f.indexOf(n))}}const i=this._adjustIndex(e),t=this._lContainer;!function ZT(r,n,e,s){const o=10+s,i=e.length;s>0&&(e[o-1][4]=n),s<i-10?(n[4]=e[o],Nu(e,10+s,n)):(e.push(n),n[4]=null),n[3]=e;const t=n[17];null!==t&&e!==t&&function YT(r,n){const e=r[9];n[16]!==n[3][3][16]&&(r[2]=!0),null===e?r[9]=[n]:e.push(n)}(t,n);const a=n[19];null!==a&&a.insertView(r),n[2]|=128}(o,s,t,i);const a=ia(i,t),l=s[z],p=qs(l,t[7]);return null!==p&&function WT(r,n,e,s,o,i){s[0]=o,s[6]=n,Pn(r,s,e,1,o,i)}(o,t[6],l,s,p,a),n.attachToViewContainerRef(),Nu(pl(t),i,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Hh(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),s=na(this._lContainer,e);s&&(Ps(pl(this._lContainer),e),bd(s[1],s))}detach(n){const e=this._adjustIndex(n,-1),s=na(this._lContainer,e);return s&&null!=Ps(pl(this._lContainer),e)?new Zn(s):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function Hh(r){return r[8]}function pl(r){return r[8]||(r[8]=[])}function To(...r){}const l_=new Y("Application Initializer");let xl=(()=>{class r{constructor(e){this.appInits=e,this.resolve=To,this.reject=To,this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,o)=>{this.resolve=s,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],s=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Ga(i))e.push(i);else if(ny(i)){const t=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});e.push(t)}}Promise.all(e).then(()=>{s()}).catch(o=>{this.reject(o)}),0===e.length&&s(),this.initialized=!0}}return r.\u0275fac=function(e){return new(e||r)(k(l_,8))},r.\u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ts=new Y("AppId",{providedIn:"root",factory:function p_(){return`${yl()}${yl()}${yl()}`}});function yl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const u_=new Y("Platform Initializer"),wl=new Y("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),aI=new Y("appBootstrapListener"),tr=new Y("LocaleId",{providedIn:"root",factory:()=>Ug(tr,V.Optional|V.SkipSelf)||function lI(){return"undefined"!=typeof $localize&&$localize.locale||lo}()}),cI=(()=>Promise.resolve(0))();function vl(r){"undefined"==typeof Zone?cI.then(()=>{r&&r.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",r)}class je{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jt(!1),this.onMicrotaskEmpty=new jt(!1),this.onStable=new jt(!1),this.onError=new jt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!s&&e,o.shouldCoalesceRunChangeDetection=s,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function fI(){let r=ne.requestAnimationFrame,n=ne.cancelAnimationFrame;if("undefined"!=typeof Zone&&r&&n){const e=r[Zone.__symbol__("OriginalDelegate")];e&&(r=e);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function mI(r){const n=()=>{!function _I(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(ne,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,El(r),r.isCheckStableRunning=!0,Il(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),El(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,s,o,i,t,a)=>{try{return d_(r),e.invokeTask(o,i,t,a)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||r.shouldCoalesceRunChangeDetection)&&n(),c_(r)}},onInvoke:(e,s,o,i,t,a,l)=>{try{return d_(r),e.invoke(o,i,t,a,l)}finally{r.shouldCoalesceRunChangeDetection&&n(),c_(r)}},onHasTask:(e,s,o,i)=>{e.hasTask(o,i),s===o&&("microTask"==i.change?(r._hasPendingMicrotasks=i.microTask,El(r),Il(r)):"macroTask"==i.change&&(r.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,s,o,i)=>(e.handleError(o,i),r.runOutsideAngular(()=>r.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(je.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,s){return this._inner.run(n,e,s)}runTask(n,e,s,o){const i=this._inner,t=i.scheduleEventTask("NgZoneEvent: "+o,n,hI,To,To);try{return i.runTask(t,e,s)}finally{i.cancelTask(t)}}runGuarded(n,e,s){return this._inner.runGuarded(n,e,s)}runOutsideAngular(n){return this._outer.run(n)}}const hI={};function Il(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function El(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function d_(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function c_(r){r._nesting--,Il(r)}class bI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jt,this.onMicrotaskEmpty=new jt,this.onStable=new jt,this.onError=new jt}run(n,e,s){return n.apply(e,s)}runGuarded(n,e,s){return n.apply(e,s)}runOutsideAngular(n){return n()}runTask(n,e,s,o){return n.apply(e,s)}}let Cl=(()=>{class r{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{je.assertNotInAngularZone(),vl(()=>{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())vl(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(e)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,s,o){let i=-1;s&&s>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),e(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,s,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,s,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,s,o){return[]}}return r.\u0275fac=function(e){return new(e||r)(k(je))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})(),gI=(()=>{class r{constructor(){this._applications=new Map,Rl.addToWindow(this)}registerApplication(e,s){this._applications.set(e,s)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,s=!0){return Rl.findTestabilityInTree(this,e,s)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();class TI{addToWindow(n){}findTestabilityInTree(n,e,s){return null}}let Rl=new TI,gr=null;const f_=new Y("AllowMultipleToken"),h_=new Y("PlatformOnDestroy");function __(r,n,e=[]){const s=`Platform: ${n}`,o=new Y(s);return(i=[])=>{let t=Ml();if(!t||t.injector.get(f_,!1)){const a=[...e,...i,{provide:o,useValue:!0}];r?r(a):function vI(r){if(gr&&!gr.get(f_,!1))throw new te(400,"");gr=r;const n=r.get(m_),e=r.get(u_,null);e&&e.forEach(s=>s())}(function EI(r=[],n){return Qe.create({name:n,providers:[{provide:Sa,useValue:"platform"},{provide:h_,useValue:()=>gr=null},...r]})}(a,s))}return function II(r){const n=Ml();if(!n)throw new te(401,"");return n}()}}function Ml(){var r;return null!==(r=null==gr?void 0:gr.get(m_))&&void 0!==r?r:null}let m_=(()=>{class r{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,s){const a=function CI(r,n){let e;return e="noop"===r?new bI:("zone.js"===r?void 0:r)||new je({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(s?s.ngZone:void 0,{ngZoneEventCoalescing:s&&s.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:s&&s.ngZoneRunCoalescing||!1}),l=[{provide:je,useValue:a}];return a.run(()=>{const p=Qe.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(p),c=u.injector.get(kn,null);if(!c)throw new te(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{c.handleError(h)}});u.onDestroy(()=>{Dl(this._modules,u),f.unsubscribe()})}),function RI(r,n,e){try{const s=e();return Ga(s)?s.catch(o=>{throw n.runOutsideAngular(()=>r.handleError(o)),o}):s}catch(s){throw n.runOutsideAngular(()=>r.handleError(s)),s}}(c,a,()=>{const f=u.injector.get(xl);return f.runInitializers(),f.donePromise.then(()=>(function Zy(r){Ve(r,"Expected localeId to be defined"),"string"==typeof r&&(Zf=r.toLowerCase().replace(/_/g,"-"))}(u.injector.get(tr,lo)||lo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,s=[]){const o=b_({},s);return function yI(r,n,e){const s=new il(e);return Promise.resolve(s)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(e){const s=e.injector.get(Bl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>s.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new te(403,"");e.instance.ngDoBootstrap(s)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,"");this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const e=this._injector.get(h_,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return r.\u0275fac=function(e){return new(e||r)(k(Qe))},r.\u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"platform"}),r})();function b_(r,n){return Array.isArray(n)?n.reduce(b_,r):Object.assign(Object.assign({},r),n)}let Bl=(()=>{class r{constructor(e,s,o,i){this._zone=e,this._injector=s,this._exceptionHandler=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const t=new be(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new be(l=>{let p;this._zone.runOutsideAngular(()=>{p=this._zone.onStable.subscribe(()=>{je.assertNotInAngularZone(),vl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{je.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{p.unsubscribe(),u.unsubscribe()}});this.isStable=Gp(t,a.pipe(function cb(r={}){const{connector:n=(()=>new hs),resetOnError:e=!0,resetOnComplete:s=!0,resetOnRefCountZero:o=!0}=r;return i=>{let t=null,a=null,l=null,p=0,u=!1,c=!1;const f=()=>{null==a||a.unsubscribe(),a=null},h=()=>{f(),t=l=null,u=c=!1},_=()=>{const m=t;h(),null==m||m.unsubscribe()};return Ot((m,g)=>{p++,!c&&!u&&f();const T=l=null!=l?l:n();g.add(()=>{p--,0===p&&!c&&!u&&(a=Qo(_,o))}),T.subscribe(g),t||(t=new hn({next:x=>T.next(x),error:x=>{c=!0,f(),a=Qo(h,e,x),T.error(x)},complete:()=>{u=!0,f(),a=Qo(h,s),T.complete()}}),D(m).subscribe(t))})(i)}}()))}bootstrap(e,s){if(!this._initStatus.done)throw new te(405,"");let o;o=e instanceof wh?e:this._injector.get(on).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const i=function wI(r){return r.isBoundToModule}(o)?void 0:this._injector.get(pn),a=o.create(Qe.NULL,[],s||o.selector,i),l=a.location.nativeElement,p=a.injector.get(Cl,null),u=p&&a.injector.get(gI);return p&&u&&u.registerApplication(l,p),a.onDestroy(()=>{this.detachView(a.hostView),Dl(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new te(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const s=e;this._views.push(s),s.attachToAppRef(this)}detachView(e){const s=e;Dl(this._views,s),s.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(aI,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return r.\u0275fac=function(e){return new(e||r)(k(je),k(Qe),k(kn),k(xl))},r.\u0275prov=ee({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Dl(r,n){const e=r.indexOf(n);e>-1&&r.splice(e,1)}let T_=!0,w_=(()=>{class r{}return r.__NG_ELEMENT_ID__=DI,r})();function DI(r){return function SI(r,n,e){if(ys(r)&&!e){const s=ze(r.index,n);return new Zn(s,s)}return 47&r.type?new Zn(n[16],n):null}(ve(),C(),16==(16&r))}class E_{constructor(){}supports(n){return Ln(n)}create(n){return new PI(n)}}const FI=(r,n)=>n;class PI{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||FI}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,s=this._removalsHead,o=0,i=null;for(;e||s;){const t=!s||e&&e.currentIndex<R_(s,o,i)?e:s,a=R_(t,o,i),l=t.currentIndex;if(t===s)o--,s=s._nextRemoved;else if(e=e._next,null==t.previousIndex)o++;else{i||(i=[]);const p=a-o,u=l-o;if(p!=u){for(let f=0;f<p;f++){const h=f<i.length?i[f]:i[f]=0,_=h+f;u<=_&&_<p&&(i[f]=h+1)}i[t.previousIndex]=u-p}}a!==l&&n(t,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Ln(n))throw new te(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,i,t,e=this._itHead,s=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)i=n[a],t=this._trackByFn(a,i),null!==e&&Object.is(e.trackById,t)?(s&&(e=this._verifyReinsertion(e,i,t,a)),Object.is(e.item,i)||this._addIdentityChange(e,i)):(e=this._mismatch(e,i,t,a),s=!0),e=e._next}else o=0,function D0(r,n){if(Array.isArray(r))for(let e=0;e<r.length;e++)n(r[e]);else{const e=r[Gr()]();let s;for(;!(s=e.next()).done;)n(s.value)}}(n,a=>{t=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,t)?(s&&(e=this._verifyReinsertion(e,a,t,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,t,o),s=!0),e=e._next,o++}),this.length=o;return this._truncate(e),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,e,s,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(s,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new UI(e,s),i,o),n}_verifyReinsertion(n,e,s,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,e,s),this._addToMoves(n,s),n}_moveAfter(n,e,s){return this._unlink(n),this._insertAfter(n,e,s),this._addToMoves(n,s),n}_addAfter(n,e,s){return this._insertAfter(n,e,s),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,s){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new C_),this._linkedRecords.put(n),n.currentIndex=s,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,s=n._next;return null===e?this._itHead=s:e._next=s,null===s?this._itTail=e:s._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new C_),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class UI{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class HI{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,e){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===e||e<=s.currentIndex)&&Object.is(s.trackById,n))return s;return null}remove(n){const e=n._prevDup,s=n._nextDup;return null===e?this._head=s:e._nextDup=s,null===s?this._tail=e:s._prevDup=e,null===this._head}}class C_{constructor(){this.map=new Map}put(n){const e=n.trackById;let s=this.map.get(e);s||(s=new HI,this.map.set(e,s)),s.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function R_(r,n,e){const s=r.previousIndex;if(null===s)return s;let o=0;return e&&s<e.length&&(o=e[s]),s+n+o}function B_(){return new wo([new E_])}let wo=(()=>{class r{constructor(e){this.factories=e}static create(e,s){if(null!=s){const o=s.factories.slice();e=e.concat(o)}return new r(e)}static extend(e){return{provide:r,useFactory:s=>r.create(e,s||B_()),deps:[[r,new Ls,new js]]}}find(e){const s=this.factories.find(o=>o.supports(e));if(null!=s)return s;throw new te(901,"")}}return r.\u0275prov=ee({token:r,providedIn:"root",factory:B_}),r})();const VI=__(null,"core",[]);let GI=(()=>{class r{constructor(e){}}return r.\u0275fac=function(e){return new(e||r)(k(Bl))},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({}),r})(),vo=null;function ns(){return vo}const _t=new Y("DocumentToken");function L_(r,n){n=encodeURIComponent(n);for(const e of r.split(";")){const s=e.indexOf("="),[o,i]=-1==s?[e,""]:[e.slice(0,s),e.slice(s+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class FE{constructor(n,e,s,o){this.$implicit=n,this.ngForOf=e,this.index=s,this.count=o}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 J_=(()=>{class r{constructor(e,s,o){this._viewContainer=e,this._template=s,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const s=this._viewContainer;e.forEachOperation((o,i,t)=>{if(null==o.previousIndex)s.createEmbeddedView(this._template,new FE(o.item,this._ngForOf,-1,-1),null===t?void 0:t);else if(null==t)s.remove(null===i?void 0:i);else if(null!==i){const a=s.get(i);s.move(a,t),$_(a,o)}});for(let o=0,i=s.length;o<i;o++){const a=s.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{$_(s.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,s){return!0}}return r.\u0275fac=function(e){return new(e||r)(Q(Dt),Q(Lt),Q(wo))},r.\u0275dir=Ze({type:r,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),r})();function $_(r,n){r.context.$implicit=n.item}let V_=(()=>{class r{constructor(e,s){this._viewContainer=e,this._context=new PE,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=s}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){G_("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){G_("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,s){return!0}}return r.\u0275fac=function(e){return new(e||r)(Q(Dt),Q(Lt))},r.\u0275dir=Ze({type:r,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),r})();class PE{constructor(){this.$implicit=null,this.ngIf=null}}function G_(r,n){if(n&&!n.createEmbeddedView)throw new Error(`${r} must be a TemplateRef, but received '${re(n)}'.`)}let uC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({}),r})();class Q_{}class Wl extends class _C extends class WI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function qI(r){vo||(vo=r)}(new Wl)}onAndCancel(n,e,s){return n.addEventListener(e,s,!1),()=>{n.removeEventListener(e,s,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function mC(){return is=is||document.querySelector("base"),is?is.getAttribute("href"):null}();return null==e?null:function bC(r){Ao=Ao||document.createElement("a"),Ao.setAttribute("href",r);const n=Ao.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){is=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return L_(document.cookie,n)}}let Ao,is=null;const Z_=new Y("TRANSITION_ID"),TC=[{provide:l_,useFactory:function gC(r,n,e){return()=>{e.get(xl).donePromise.then(()=>{const s=ns(),o=n.querySelectorAll(`style[ng-transition="${r}"]`);for(let i=0;i<o.length;i++)s.remove(o[i])})}},deps:[Z_,_t,Qe],multi:!0}];class Kl{static init(){!function xI(r){Rl=r}(new Kl)}addToWindow(n){ne.getAngularTestability=(s,o=!0)=>{const i=n.findTestabilityInTree(s,o);if(null==i)throw new Error("Could not find testability for element.");return i},ne.getAllAngularTestabilities=()=>n.getAllTestabilities(),ne.getAllAngularRootElements=()=>n.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(s=>{const o=ne.getAllAngularTestabilities();let i=o.length,t=!1;const a=function(l){t=t||l,i--,0==i&&s(t)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,s){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:s?ns().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let xC=(()=>{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();const No=new Y("EventManagerPlugins");let ko=(()=>{class r{constructor(e,s){this._zone=s,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,s,o){return this._findPluginFor(s).addEventListener(e,s,o)}addGlobalEventListener(e,s,o){return this._findPluginFor(s).addGlobalEventListener(e,s,o)}getZone(){return this._zone}_findPluginFor(e){const s=this._eventNameToPlugin.get(e);if(s)return s;const o=this._plugins;for(let i=0;i<o.length;i++){const t=o[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return r.\u0275fac=function(e){return new(e||r)(k(No),k(je))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();class Y_{constructor(n){this._doc=n}addGlobalEventListener(n,e,s){const o=ns().getGlobalEventTarget(this._doc,n);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,s)}}let X_=(()=>{class r{constructor(){this._stylesSet=new Set}addStyles(e){const s=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),s.add(o))}),this.onStylesAdded(s)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})(),as=(()=>{class r extends X_{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,s,o){e.forEach(i=>{const t=this._doc.createElement("style");t.textContent=i,o.push(s.appendChild(t))})}addHost(e){const s=[];this._addStylesToHost(this._stylesSet,e,s),this._hostNodes.set(e,s)}removeHost(e){const s=this._hostNodes.get(e);s&&s.forEach(em),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((s,o)=>{this._addStylesToHost(e,o,s)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(em))}}return r.\u0275fac=function(e){return new(e||r)(k(_t))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();function em(r){ns().remove(r)}const Ql={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/"},Zl=/%COMP%/g;function Fo(r,n,e){for(let s=0;s<n.length;s++){let o=n[s];Array.isArray(o)?Fo(r,o,e):(o=o.replace(Zl,r),e.push(o))}return e}function nm(r){return n=>{if("__ngUnwrap__"===n)return r;!1===r(n)&&(n.preventDefault(),n.returnValue=!1)}}let Yl=(()=>{class r{constructor(e,s,o){this.eventManager=e,this.sharedStylesHost=s,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Xl(e)}createRenderer(e,s){if(!e||!s)return this.defaultRenderer;switch(s.encapsulation){case xt.Emulated:{let o=this.rendererByCompId.get(s.id);return o||(o=new CC(this.eventManager,this.sharedStylesHost,s,this.appId),this.rendererByCompId.set(s.id,o)),o.applyToHost(e),o}case 1:case xt.ShadowDom:return new RC(this.eventManager,this.sharedStylesHost,e,s);default:if(!this.rendererByCompId.has(s.id)){const o=Fo(s.id,s.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(s.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(k(ko),k(as),k(ts))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();class Xl{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Ql[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,s){n&&n.insertBefore(e,s)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let s="string"==typeof n?document.querySelector(n):n;if(!s)throw new Error(`The selector "${n}" did not match any elements`);return e||(s.textContent=""),s}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,s,o){if(o){e=o+":"+e;const i=Ql[o];i?n.setAttributeNS(i,e,s):n.setAttribute(e,s)}else n.setAttribute(e,s)}removeAttribute(n,e,s){if(s){const o=Ql[s];o?n.removeAttributeNS(o,e):n.removeAttribute(`${s}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,s,o){o&(We.DashCase|We.Important)?n.style.setProperty(e,s,o&We.Important?"important":""):n.style[e]=s}removeStyle(n,e,s){s&We.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,s){n[e]=s}setValue(n,e){n.nodeValue=e}listen(n,e,s){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,nm(s)):this.eventManager.addEventListener(n,e,nm(s))}}class CC extends Xl{constructor(n,e,s,o){super(n),this.component=s;const i=Fo(o+"-"+s.id,s.styles,[]);e.addStyles(i),this.contentAttr=function vC(r){return"_ngcontent-%COMP%".replace(Zl,r)}(o+"-"+s.id),this.hostAttr=function IC(r){return"_nghost-%COMP%".replace(Zl,r)}(o+"-"+s.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const s=super.createElement(n,e);return super.setAttribute(s,this.contentAttr,""),s}}class RC extends Xl{constructor(n,e,s,o){super(n),this.sharedStylesHost=e,this.hostEl=s,this.shadowRoot=s.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Fo(o.id,o.styles,[]);for(let t=0;t<i.length;t++){const a=document.createElement("style");a.textContent=i[t],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,s){return super.insertBefore(this.nodeOrShadowRoot(n),e,s)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let MC=(()=>{class r extends Y_{constructor(e){super(e)}supports(e){return!0}addEventListener(e,s,o){return e.addEventListener(s,o,!1),()=>this.removeEventListener(e,s,o)}removeEventListener(e,s,o){return e.removeEventListener(s,o)}}return r.\u0275fac=function(e){return new(e||r)(k(_t))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();const om=["alt","control","meta","shift"],DC={"\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"},im={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},SC={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let OC=(()=>{class r extends Y_{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,s,o){const i=r.parseEventName(s),t=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,i.domEventName,t))}static parseEventName(e){const s=e.toLowerCase().split("."),o=s.shift();if(0===s.length||"keydown"!==o&&"keyup"!==o)return null;const i=r._normalizeKey(s.pop());let t="";if(om.forEach(l=>{const p=s.indexOf(l);p>-1&&(s.splice(p,1),t+=l+".")}),t+=i,0!=s.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=t,a}static getEventFullKey(e){let s="",o=function AC(r){let n=r.key;if(null==n){if(n=r.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===r.location&&im.hasOwnProperty(n)&&(n=im[n]))}return DC[n]||n}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),om.forEach(i=>{i!=o&&SC[i](e)&&(s+=i+".")}),s+=o,s}static eventCallback(e,s,o){return i=>{r.getEventFullKey(i)===e&&o.runGuarded(()=>s(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(k(_t))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();const PC=__(VI,"browser",[{provide:wl,useValue:"browser"},{provide:u_,useValue:function NC(){Wl.makeCurrent(),Kl.init()},multi:!0},{provide:_t,useFactory:function FC(){return function Lb(r){hi=r}(document),document},deps:[]}]),UC=[{provide:Sa,useValue:"root"},{provide:kn,useFactory:function kC(){return new kn},deps:[]},{provide:No,useClass:MC,multi:!0,deps:[_t,je,wl]},{provide:No,useClass:OC,multi:!0,deps:[_t]},{provide:Yl,useClass:Yl,deps:[ko,as,ts]},{provide:Ih,useExisting:Yl},{provide:X_,useExisting:as},{provide:as,useClass:as,deps:[_t]},{provide:Cl,useClass:Cl,deps:[je]},{provide:ko,useClass:ko,deps:[No,je]},{provide:Q_,useClass:xC,deps:[]}];let HC=(()=>{class r{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:r,providers:[{provide:ts,useValue:e.appId},{provide:Z_,useExisting:ts},TC]}}}return r.\u0275fac=function(e){return new(e||r)(k(r,12))},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({providers:UC,imports:[uC,GI]}),r})();function v(...r){return D(r,Lp(r))}"undefined"!=typeof window&&window;class pm{}class um{}class M{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const s=e.indexOf(":");if(s>0){const o=e.slice(0,s),i=o.toLowerCase(),t=e.slice(s+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(t):this.headers.set(i,[t])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let s=n[e];const o=e.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(o,s),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof M?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new M;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof M?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let s=n.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...s),this.headers.set(e,o);break;case"d":const i=n.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(a=>-1===i.indexOf(a)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class YC{encodeKey(n){return dm(n)}encodeValue(n){return dm(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const eR=/%(\d[a-f0-9])/gi,tR={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function dm(r){return encodeURIComponent(r).replace(eR,(n,e)=>{var s;return null!==(s=tR[e])&&void 0!==s?s:n})}function cm(r){return`${r}`}class nr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new YC,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function XC(r,n){const e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[t,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=e.get(t)||[];l.push(a),e.set(t,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const s=n.fromObject[e];this.map.set(e,Array.isArray(s)?s:[s])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(s=>{const o=n[s];Array.isArray(o)?o.forEach(i=>{e.push({param:s,value:i,op:"a"})}):e.push({param:s,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(s=>e+"="+this.encoder.encodeValue(s)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new nr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(cm(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let s=this.map.get(n.param)||[];const o=s.indexOf(cm(n.value));-1!==o&&s.splice(o,1),s.length>0?this.map.set(n.param,s):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class rR{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function fm(r){return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer}function hm(r){return"undefined"!=typeof Blob&&r instanceof Blob}function _m(r){return"undefined"!=typeof FormData&&r instanceof FormData}class ls{constructor(n,e,s,o){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function nR(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==s?s:null,i=o):i=s,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new M),this.context||(this.context=new rR),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+t}}else this.params=new nr,this.urlWithParams=e}serializeBody(){return null===this.body?null:fm(this.body)||hm(this.body)||_m(this.body)||function sR(r){return"undefined"!=typeof URLSearchParams&&r instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof nr?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||_m(this.body)?null:hm(this.body)?this.body.type||null:fm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof nr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const s=n.method||this.method,o=n.url||this.url,i=n.responseType||this.responseType,t=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let p=n.headers||this.headers,u=n.params||this.params;const c=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(p=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),p)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new ls(s,o,t,{params:u,headers:p,context:c,reportProgress:l,responseType:i,withCredentials:a})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class S{constructor(n,e=200,s="OK"){this.headers=n.headers||new M,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||s,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class tp extends S{constructor(n={}){super(n),this.type=we.ResponseHeader}clone(n={}){return new tp({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class B extends S{constructor(n={}){super(n),this.type=we.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new B({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class mm extends S{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function rp(r,n){return{body:n,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials}}let St=(()=>{class r{constructor(e){this.handler=e}request(e,s,o={}){let i;if(e instanceof ls)i=e;else{let l,p;l=o.headers instanceof M?o.headers:new M(o.headers),o.params&&(p=o.params instanceof nr?o.params:new nr({fromObject:o.params})),i=new ls(e,s,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:p,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const t=v(i).pipe(function QC(r,n){return pe(n)?d(r,n,1):d(r,1)}(l=>this.handler.handle(l)));if(e instanceof ls||"events"===o.observe)return t;const a=t.pipe(function ZC(r,n){return Ot((e,s)=>{let o=0;e.subscribe(Tt(s,i=>r.call(n,i,o++)&&s.next(i)))})}(l=>l instanceof B));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($t(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($t(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,s={}){return this.request("DELETE",e,s)}get(e,s={}){return this.request("GET",e,s)}head(e,s={}){return this.request("HEAD",e,s)}jsonp(e,s){return this.request("JSONP",e,{params:(new nr).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,s={}){return this.request("OPTIONS",e,s)}patch(e,s,o={}){return this.request("PATCH",e,rp(o,s))}post(e,s,o={}){return this.request("POST",e,rp(o,s))}put(e,s,o={}){return this.request("PUT",e,rp(o,s))}}return r.\u0275fac=function(e){return new(e||r)(k(pm))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();class bm{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const gm=new Y("HTTP_INTERCEPTORS");let oR=(()=>{class r{intercept(e,s){return s.handle(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();const iR=/^\)\]\}',?\n/;let Tm=(()=>{class r{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new be(s=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((h,_)=>o.setRequestHeader(h,_.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const h=e.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(e.responseType){const h=e.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=e.serializeBody();let t=null;const a=()=>{if(null!==t)return t;const h=o.statusText||"OK",_=new M(o.getAllResponseHeaders()),m=function aR(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}(o)||e.url;return t=new tp({headers:_,status:o.status,statusText:h,url:m}),t},l=()=>{let{headers:h,status:_,statusText:m,url:g}=a(),T=null;204!==_&&(T=void 0===o.response?o.responseText:o.response),0===_&&(_=T?200:0);let x=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof T){const E=T;T=T.replace(iR,"");try{T=""!==T?JSON.parse(T):null}catch(F){T=E,x&&(x=!1,T={error:F,text:T})}}x?(s.next(new B({body:T,headers:h,status:_,statusText:m,url:g||void 0})),s.complete()):s.error(new mm({error:T,headers:h,status:_,statusText:m,url:g||void 0}))},p=h=>{const{url:_}=a(),m=new mm({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:_||void 0});s.error(m)};let u=!1;const c=h=>{u||(s.next(a()),u=!0);let _={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(_.total=h.total),"text"===e.responseType&&!!o.responseText&&(_.partialText=o.responseText),s.next(_)},f=h=>{let _={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(_.total=h.total),s.next(_)};return o.addEventListener("load",l),o.addEventListener("error",p),o.addEventListener("timeout",p),o.addEventListener("abort",p),e.reportProgress&&(o.addEventListener("progress",c),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),s.next({type:we.Sent}),()=>{o.removeEventListener("error",p),o.removeEventListener("abort",p),o.removeEventListener("load",l),o.removeEventListener("timeout",p),e.reportProgress&&(o.removeEventListener("progress",c),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return r.\u0275fac=function(e){return new(e||r)(k(Q_))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})();const np=new Y("XSRF_COOKIE_NAME"),sp=new Y("XSRF_HEADER_NAME");class xm{}let lR=(()=>{class r{constructor(e,s,o){this.doc=e,this.platform=s,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=L_(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return r.\u0275fac=function(e){return new(e||r)(k(_t),k(wl),k(np))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})(),op=(()=>{class r{constructor(e,s){this.tokenService=e,this.headerName=s}intercept(e,s){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return s.handle(e);const i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),s.handle(e)}}return r.\u0275fac=function(e){return new(e||r)(k(xm),k(sp))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})(),pR=(()=>{class r{constructor(e,s){this.backend=e,this.injector=s,this.chain=null}handle(e){if(null===this.chain){const s=this.injector.get(gm,[]);this.chain=s.reduceRight((o,i)=>new bm(o,i),this.backend)}return this.chain.handle(e)}}return r.\u0275fac=function(e){return new(e||r)(k(um),k(Qe))},r.\u0275prov=ee({token:r,factory:r.\u0275fac}),r})(),uR=(()=>{class r{static disable(){return{ngModule:r,providers:[{provide:op,useClass:oR}]}}static withOptions(e={}){return{ngModule:r,providers:[e.cookieName?{provide:np,useValue:e.cookieName}:[],e.headerName?{provide:sp,useValue:e.headerName}:[]]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({providers:[op,{provide:gm,useExisting:op,multi:!0},{provide:xm,useClass:lR},{provide:np,useValue:"XSRF-TOKEN"},{provide:sp,useValue:"X-XSRF-TOKEN"}]}),r})(),dR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({providers:[St,{provide:pm,useClass:pR},Tm,{provide:um,useExisting:Tm}],imports:[[uR.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),r})();const ym={now:()=>(ym.delegate||Date).now(),delegate:void 0};class cR extends hs{constructor(n=1/0,e=1/0,s=ym){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=s,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:s,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:t}=this;e||(s.push(n),!o&&s.push(i.now()+t)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:s,_buffer:o}=this,i=o.slice();for(let t=0;t<i.length&&!n.closed;t+=s?1:2)n.next(i[t]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:s,_infiniteTimeWindow:o}=this,i=(o?1:2)*n;if(n<1/0&&i<s.length&&s.splice(0,s.length-i),!o){const t=e.now();let a=0;for(let l=1;l<s.length&&s[l]<=t;l+=2)a=l;a&&s.splice(0,a+1)}}}function ip(r,n){return Ot((e,s)=>{let o=null,i=0,t=!1;const a=()=>t&&!o&&s.complete();e.subscribe(Tt(s,l=>{null==o||o.unsubscribe();let p=0;const u=i++;At(r(l,u)).subscribe(o=Tt(s,c=>s.next(n?n(l,c,u,p++):c),()=>{o=null,a()}))},()=>{t=!0,a()}))})}const Po={schedule(r,n){const e=setTimeout(r,n);return()=>clearTimeout(e)},scheduleBeforeRender(r){if("undefined"==typeof window)return Po.schedule(r,0);if(void 0===window.requestAnimationFrame)return Po.schedule(r,16);const n=window.requestAnimationFrame(r);return()=>window.cancelAnimationFrame(n)}};let ap;function yR(r,n,e){let s=e;return function hR(r){return!!r&&r.nodeType===Node.ELEMENT_NODE}(r)&&n.some((o,i)=>!("*"===o||!function mR(r,n){if(!ap){const e=Element.prototype;ap=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return r.nodeType===Node.ELEMENT_NODE&&ap.call(r,n)}(r,o)||(s=i,0))),s}class vR{constructor(n,e){this.componentFactory=e.get(on).resolveComponentFactory(n)}create(n){return new IR(this.componentFactory,n)}}class IR{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new cR(1),this.events=this.eventEmitters.pipe(ip(s=>Gp(...s))),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:s})=>s)),this.ngZone=this.injector.get(je),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Po.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function bR(r,n){return r===n||r!=r&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=Qe.create({providers:[],parent:this.injector}),s=function xR(r,n){const e=r.childNodes,s=n.map(()=>[]);let o=-1;n.some((i,t)=>"*"===i&&(o=t,!0));for(let i=0,t=e.length;i<t;++i){const a=e[i],l=yR(a,n,o);-1!==l&&s[l].push(a)}return s}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,s,n),this.viewChangeDetectorRef=this.componentRef.injector.get(w_),this.implementsOnChanges=function _R(r){return"function"==typeof r}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Bl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:s,templateName:o})=>n.instance[s].pipe($t(t=>({name:o,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Po.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const s=this.inputChanges[n];if(s)return void(s.currentValue=e);const o=this.unchangedInputs.has(n),i=o?void 0:this.getInputValue(n);this.inputChanges[n]=new nu(i,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class ER extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function wm(r,n,e,s,o,i,t){try{var a=r[i](t),l=a.value}catch(p){return void e(p)}a.done?n(l):Promise.resolve(l).then(s,o)}function vm(r){return function(){var n=this,e=arguments;return new Promise(function(s,o){var i=r.apply(n,e);function t(l){wm(i,s,o,t,a,"next",l)}function a(l){wm(i,s,o,t,a,"throw",l)}t(void 0)})}}function N(r){return Ot((n,e)=>{let i,s=null,o=!1;s=n.subscribe(Tt(e,void 0,void 0,t=>{i=At(r(t,N(r)(n))),s?(s.unsubscribe(),s=null,i.subscribe(e)):o=!0})),o&&(s.unsubscribe(),s=null,i.subscribe(e))})}function w(r,n){const e=pe(r)?r:()=>r,s=o=>o.error(e());return new be(n?o=>n.schedule(s,0,o):s)}const Uo=new Y("API_BASE_URL");class ps{constructor(){this.apiUrl="http://localhost:56416",this.apiKey="ApiKey",this.authorizationToken=null}getAuthorizationToken(){return ir(this,void 0,void 0,function*(){return this.authorizationToken})}setAuthorizationToken(n){this.authorizationToken=n}}class Im{constructor(n){this.configuration=n}transformOptions(n){return ir(this,void 0,void 0,function*(){const e=yield this.configuration.getAuthorizationToken();return n.headers=null!=e?n.headers.append("authorization","Bearer "+e):n.headers.append("X-API-Key",this.configuration.apiKey),n})}getBaseUrl(n){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl}transformResult(n,e,s){return s(e)}}let RR=(()=>{class r extends Im{constructor(e,s,o){super(e),this.jsonParseReviver=void 0,this.http=s,this.baseUrl=null!=o?o:this.getBaseUrl("")}getAll(e,s,o,i,t,a,l,p,u,c,f){let h=this.baseUrl+"/api/storage/v1/private-designs?";if(null!=e&&(h+="dataSchemaId="+encodeURIComponent(""+e)+"&"),null!=s&&(h+="fontPostScriptName="+encodeURIComponent(""+s)+"&"),null!=o&&(h+="path="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'includeSubfolders' cannot be null.");if(void 0!==i&&(h+="includeSubfolders="+encodeURIComponent(""+i)+"&"),null!=t&&(h+="skip="+encodeURIComponent(""+t)+"&"),null!=a&&(h+="take="+encodeURIComponent(""+a)+"&"),null!=l&&(h+="sorting="+encodeURIComponent(""+l)+"&"),null!=p&&(h+="search="+encodeURIComponent(""+p)+"&"),null!=u&&(h+="customFields="+encodeURIComponent(""+u)+"&"),null===c)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==c&&(h+="tenantId="+encodeURIComponent(""+c)+"&"),null!=f&&(h+="ownerId="+encodeURIComponent(""+f)+"&"),h=h.replace(/[?&]$/,"");let _={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(_)).pipe(d(m=>this.http.request("get",h,m))).pipe(d(m=>this.transformResult(h,m,g=>this.processGetAll(g)))).pipe(N(m=>{if(!(m instanceof S))return w(m);try{return this.transformResult(h,m,g=>this.processGetAll(g))}catch(g){return w(g)}}))}processGetAll(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}create(e,s,o,i,t,a,l,p,u,c,f,h,_,m){let g=this.baseUrl+"/api/storage/v1/private-designs?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(g+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(g+="ownerId="+encodeURIComponent(""+s)+"&"),g=g.replace(/[?&]$/,"");const T=new FormData;if(null!=o&&T.append("id",o.toString()),null!=i&&i.forEach(E=>T.append("metadata.fonts",E.toString())),null!=t&&t.forEach(E=>T.append("metadata.surfaces",E.toString())),null!=a&&a.forEach(E=>T.append("metadata.printAreas",E.toString())),null!=l&&T.append("metadata.hasDataSchema",l.toString()),null!=p&&T.append("metadata.dataSchemaId",p.toString()),null!=u&&T.append("metadata.dataSchemaName",u.toString()),null!=c&&T.append("hasProblems",c.toString()),null!=f&&T.append("file",f.data,f.fileName?f.fileName:"file"),null==h)throw new Error("The parameter 'path' cannot be null.");if(T.append("path",h.toString()),null==_)throw new Error("The parameter 'name' cannot be null.");T.append("name",_.toString()),null!=m&&T.append("customFields",JSON.stringify(m));let x={body:T,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(x)).pipe(d(E=>this.http.request("post",g,E))).pipe(d(E=>this.transformResult(g,E,F=>this.processCreate(F)))).pipe(N(E=>{if(!(E instanceof S))return w(E);try{return this.transformResult(g,E,F=>this.processCreate(F))}catch(F){return w(F)}}))}processCreate(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}get(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGet(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGet(l))}catch(l){return w(l)}}))}processGet(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}copy(e,s,o,i,t,a){let l=this.baseUrl+"/api/storage/v1/private-designs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(l=l.replace("{id}",encodeURIComponent(""+e)),null!=s&&(l+="path="+encodeURIComponent(""+s)+"&"),null!=o&&(l+="name="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'strategy' cannot be null.");if(void 0!==i&&(l+="strategy="+encodeURIComponent(""+i)+"&"),null===t)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==t&&(l+="tenantId="+encodeURIComponent(""+t)+"&"),null!=a&&(l+="ownerId="+encodeURIComponent(""+a)+"&"),l=l.replace(/[?&]$/,"");let p={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(p)).pipe(d(u=>this.http.request("post",l,u))).pipe(d(u=>this.transformResult(l,u,c=>this.processCopy(c)))).pipe(N(u=>{if(!(u instanceof S))return w(u);try{return this.transformResult(l,u,c=>this.processCopy(c))}catch(c){return w(c)}}))}processCopy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}update(e,s,o,i,t,a,l,p,u,c,f,h,_,m){let g=this.baseUrl+"/api/storage/v1/private-designs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(g=g.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(g+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(g+="ownerId="+encodeURIComponent(""+o)+"&"),g=g.replace(/[?&]$/,"");const T=new FormData;null!=i&&i.forEach(E=>T.append("metadata.fonts",E.toString())),null!=t&&t.forEach(E=>T.append("metadata.surfaces",E.toString())),null!=a&&a.forEach(E=>T.append("metadata.printAreas",E.toString())),null!=l&&T.append("metadata.hasDataSchema",l.toString()),null!=p&&T.append("metadata.dataSchemaId",p.toString()),null!=u&&T.append("metadata.dataSchemaName",u.toString()),null!=c&&T.append("hasProblems",c.toString()),null!=f&&T.append("file",f.data,f.fileName?f.fileName:"file"),null!=h&&T.append("path",h.toString()),null!=_&&T.append("name",_.toString()),null!=m&&T.append("customFields",JSON.stringify(m));let x={body:T,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(x)).pipe(d(E=>this.http.request("put",g,E))).pipe(d(E=>this.transformResult(g,E,F=>this.processUpdate(F)))).pipe(N(E=>{if(!(E instanceof S))return w(E);try{return this.transformResult(g,E,F=>this.processUpdate(F))}catch(F){return w(F)}}))}processUpdate(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}delete(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("delete",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processDelete(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processDelete(l))}catch(l){return w(l)}}))}processDelete(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFile(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-designs/{id}/file?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="attachment="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==o&&(t+="tenantId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="ownerId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processGetFile(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processGetFile(p))}catch(p){return w(p)}}))}processGetFile(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}addPreview(e,s,o,i,t,a,l,p,u){let c=this.baseUrl+"/api/storage/v1/private-designs/{id}/preview?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(c=c.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(c+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(c+="ownerId="+encodeURIComponent(""+o)+"&"),c=c.replace(/[?&]$/,"");const f=new FormData;if(null==i)throw new Error("The parameter 'name' cannot be null.");if(f.append("name",i.toString()),null==t)throw new Error("The parameter 'namespace' cannot be null.");if(f.append("namespace",t.toString()),null==a)throw new Error("The parameter 'width' cannot be null.");if(f.append("width",a.toString()),null==l)throw new Error("The parameter 'height' cannot be null.");f.append("height",l.toString()),null!=p&&f.append("format",p.toString()),null!=u&&f.append("file",u.data,u.fileName?u.fileName:"file");let h={body:f,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(h)).pipe(d(_=>this.http.request("put",c,_))).pipe(d(_=>this.transformResult(c,_,m=>this.processAddPreview(m)))).pipe(N(_=>{if(!(_ instanceof S))return w(_);try{return this.transformResult(c,_,m=>this.processAddPreview(m))}catch(m){return w(m)}}))}processAddPreview(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getRetentionPolicy(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/{id}/retention-policy?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetRetentionPolicy(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetRetentionPolicy(l))}catch(l){return w(l)}}))}processGetRetentionPolicy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}setRetentionPolicy(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-designs/{id}/retention-policy?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'policy' cannot be null.");if(void 0!==s&&(t+="policy="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==o&&(t+="tenantId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="ownerId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processSetRetentionPolicy(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processSetRetentionPolicy(p))}catch(p){return w(p)}}))}processSetRetentionPolicy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchCopy(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/batchCopy?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchCopy(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchCopy(p))}catch(p){return w(p)}}))}processBatchCopy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchDelete(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/batchDelete?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchDelete(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchDelete(p))}catch(p){return w(p)}}))}processBatchDelete(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchUpdateCustomFields(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/batchUpdateCustomFields?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchUpdateCustomFields(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchUpdateCustomFields(p))}catch(p){return w(p)}}))}processBatchUpdateCustomFields(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchUpdateOwner(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-designs/batchUpdateOwner?";if(null!=e&&(t+="oldOwnerId="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(t+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="ownerId="+encodeURIComponent(""+o)+"&"),t=t.replace(/[?&]$/,"");let l={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("post",t,p))).pipe(d(p=>this.transformResult(t,p,u=>this.processBatchUpdateOwner(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(t,p,u=>this.processBatchUpdateOwner(u))}catch(u){return w(u)}}))}processBatchUpdateOwner(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchUpdateParentFolder(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/batchUpdateParentFolder?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchUpdateParentFolder(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchUpdateParentFolder(p))}catch(p){return w(p)}}))}processBatchUpdateParentFolder(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getAllCollections(e,s){let o=this.baseUrl+"/api/storage/v1/private-designs/collections?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(o+="ownerId="+encodeURIComponent(""+s)+"&"),o=o.replace(/[?&]$/,"");let i={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(i)).pipe(d(t=>this.http.request("get",o,t))).pipe(d(t=>this.transformResult(o,t,a=>this.processGetAllCollections(a)))).pipe(N(t=>{if(!(t instanceof S))return w(t);try{return this.transformResult(o,t,a=>this.processGetAllCollections(a))}catch(a){return w(a)}}))}processGetAllCollections(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}createCollection(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/collections?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processCreateCollection(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processCreateCollection(p))}catch(p){return w(p)}}))}processCreateCollection(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getCollection(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/collections/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetCollection(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetCollection(l))}catch(l){return w(l)}}))}processGetCollection(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}updateCollection(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-designs/collections/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(t+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="ownerId="+encodeURIComponent(""+o)+"&"),t=t.replace(/[?&]$/,"");let l={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("put",t,p))).pipe(d(p=>this.transformResult(t,p,u=>this.processUpdateCollection(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(t,p,u=>this.processUpdateCollection(u))}catch(u){return w(u)}}))}processUpdateCollection(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}deleteCollection(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/collections/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("delete",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processDeleteCollection(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processDeleteCollection(l))}catch(l){return w(l)}}))}processDeleteCollection(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFileStorageInfo(e,s){let o=this.baseUrl+"/api/storage/v1/private-designs/file-storage-info?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(o+="ownerId="+encodeURIComponent(""+s)+"&"),o=o.replace(/[?&]$/,"");let i={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(i)).pipe(d(t=>this.http.request("get",o,t))).pipe(d(t=>this.transformResult(o,t,a=>this.processGetFileStorageInfo(a)))).pipe(N(t=>{if(!(t instanceof S))return w(t);try{return this.transformResult(o,t,a=>this.processGetFileStorageInfo(a))}catch(a){return w(a)}}))}processGetFileStorageInfo(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFolder(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/folders?";if(null!=e&&(i+="fullPath="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetFolder(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetFolder(l))}catch(l){return w(l)}}))}processGetFolder(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}createFolder(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/folders?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processCreateFolder(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processCreateFolder(p))}catch(p){return w(p)}}))}processCreateFolder(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}deleteFolder(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/folders?";if(null!=e&&(i+="fullPath="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("delete",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processDeleteFolder(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processDeleteFolder(l))}catch(l){return w(l)}}))}processDeleteFolder(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}updateFolder(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-designs/folders/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(t+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="ownerId="+encodeURIComponent(""+o)+"&"),t=t.replace(/[?&]$/,"");let l={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("put",t,p))).pipe(d(p=>this.transformResult(t,p,u=>this.processUpdateFolder(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(t,p,u=>this.processUpdateFolder(u))}catch(u){return w(u)}}))}processUpdateFolder(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFolderInfo(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-designs/folders/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetFolderInfo(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetFolderInfo(l))}catch(l){return w(l)}}))}processGetFolderInfo(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getAllFolders(e,s){let o=this.baseUrl+"/api/storage/v1/private-designs/folders/all?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(o+="ownerId="+encodeURIComponent(""+s)+"&"),o=o.replace(/[?&]$/,"");let i={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(i)).pipe(d(t=>this.http.request("get",o,t))).pipe(d(t=>this.transformResult(o,t,a=>this.processGetAllFolders(a)))).pipe(N(t=>{if(!(t instanceof S))return w(t);try{return this.transformResult(o,t,a=>this.processGetAllFolders(a))}catch(a){return w(a)}}))}processGetAllFolders(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}}return r.\u0275fac=function(e){return new(e||r)(k(ps),k(St),k(Uo,8))},r.\u0275prov=ee({factory:function(){return new r(k(ps),k(St),k(Uo,8))},token:r,providedIn:"root"}),r})(),MR=(()=>{class r extends Im{constructor(e,s,o){super(e),this.jsonParseReviver=void 0,this.http=s,this.baseUrl=null!=o?o:this.getBaseUrl("")}getAll(e,s,o,i,t,a,l,p,u,c){let f=this.baseUrl+"/api/storage/v1/private-resources?";if(null!=e&&(f+="namespace="+encodeURIComponent(""+e)+"&"),null!=s&&(f+="sourceId="+encodeURIComponent(""+s)+"&"),null!=o&&(f+="type="+encodeURIComponent(""+o)+"&"),null!=i&&(f+="skip="+encodeURIComponent(""+i)+"&"),null!=t&&(f+="take="+encodeURIComponent(""+t)+"&"),null!=a&&(f+="sorting="+encodeURIComponent(""+a)+"&"),null!=l&&(f+="search="+encodeURIComponent(""+l)+"&"),null!=p&&(f+="customFields="+encodeURIComponent(""+p)+"&"),null===u)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==u&&(f+="tenantId="+encodeURIComponent(""+u)+"&"),null!=c&&(f+="ownerId="+encodeURIComponent(""+c)+"&"),f=f.replace(/[?&]$/,"");let h={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(h)).pipe(d(_=>this.http.request("get",f,_))).pipe(d(_=>this.transformResult(f,_,m=>this.processGetAll(m)))).pipe(N(_=>{if(!(_ instanceof S))return w(_);try{return this.transformResult(f,_,m=>this.processGetAll(m))}catch(m){return w(m)}}))}processGetAll(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}create(e,s,o,i,t,a,l,p,u,c,f){let h=this.baseUrl+"/api/storage/v1/private-resources?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(h+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(h+="ownerId="+encodeURIComponent(""+s)+"&"),h=h.replace(/[?&]$/,"");const _=new FormData;if(null!=o&&_.append("file",o.data,o.fileName?o.fileName:"file"),null!=i&&_.append("id",i.toString()),null!=t&&_.append("namespace",t.toString()),null!=a&&_.append("sourceId",a.toString()),null!=l&&_.append("type",l.toString()),null!=p&&_.append("format",p.toString()),null!=u&&_.append("anonymousAccess",u.toString()),null==c)throw new Error("The parameter 'name' cannot be null.");_.append("name",c.toString()),null!=f&&_.append("customFields",JSON.stringify(f));let m={body:_,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(m)).pipe(d(g=>this.http.request("post",h,g))).pipe(d(g=>this.transformResult(h,g,T=>this.processCreate(T)))).pipe(N(g=>{if(!(g instanceof S))return w(g);try{return this.transformResult(h,g,T=>this.processCreate(T))}catch(T){return w(T)}}))}processCreate(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}get(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-resources/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGet(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGet(l))}catch(l){return w(l)}}))}processGet(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}update(e,s,o,i,t,a,l,p,u,c,f){let h=this.baseUrl+"/api/storage/v1/private-resources/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(h=h.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(h+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(h+="ownerId="+encodeURIComponent(""+o)+"&"),h=h.replace(/[?&]$/,"");const _=new FormData;null!=i&&_.append("file",i.data,i.fileName?i.fileName:"file"),null!=t&&_.append("namespace",t.toString()),null!=a&&_.append("sourceId",a.toString()),null!=l&&_.append("type",l.toString()),null!=p&&_.append("format",p.toString()),null!=u&&_.append("anonymousAccess",u.toString()),null!=c&&_.append("name",c.toString()),null!=f&&_.append("customFields",JSON.stringify(f));let m={body:_,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(m)).pipe(d(g=>this.http.request("put",h,g))).pipe(d(g=>this.transformResult(h,g,T=>this.processUpdate(T)))).pipe(N(g=>{if(!(g instanceof S))return w(g);try{return this.transformResult(h,g,T=>this.processUpdate(T))}catch(T){return w(T)}}))}processUpdate(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}delete(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-resources/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("delete",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processDelete(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processDelete(l))}catch(l){return w(l)}}))}processDelete(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFile(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-resources/{id}/file?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="attachment="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==o&&(t+="tenantId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="ownerId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processGetFile(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processGetFile(p))}catch(p){return w(p)}}))}processGetFile(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getRetentionPolicy(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-resources/{id}/retention-policy?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="ownerId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetRetentionPolicy(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetRetentionPolicy(l))}catch(l){return w(l)}}))}processGetRetentionPolicy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}setRetentionPolicy(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-resources/{id}/retention-policy?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null===s)throw new Error("The parameter 'policy' cannot be null.");if(void 0!==s&&(t+="policy="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==o&&(t+="tenantId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="ownerId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processSetRetentionPolicy(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processSetRetentionPolicy(p))}catch(p){return w(p)}}))}processSetRetentionPolicy(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchDelete(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-resources/batchDelete?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchDelete(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchDelete(p))}catch(p){return w(p)}}))}processBatchDelete(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchUpdateCustomFields(e,s,o){let i=this.baseUrl+"/api/storage/v1/private-resources/batchUpdateCustomFields?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(i+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(i+="ownerId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processBatchUpdateCustomFields(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processBatchUpdateCustomFields(p))}catch(p){return w(p)}}))}processBatchUpdateCustomFields(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}batchUpdateOwner(e,s,o,i){let t=this.baseUrl+"/api/storage/v1/private-resources/batchUpdateOwner?";if(null!=e&&(t+="oldOwnerId="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(t+="tenantId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="ownerId="+encodeURIComponent(""+o)+"&"),t=t.replace(/[?&]$/,"");let l={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("post",t,p))).pipe(d(p=>this.transformResult(t,p,u=>this.processBatchUpdateOwner(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(t,p,u=>this.processBatchUpdateOwner(u))}catch(u){return w(u)}}))}processBatchUpdateOwner(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>v(null))):409===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Conflict",s,t,i,a)})):404===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),y("Not Found",s,t,i,a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}getFileStorageInfo(e,s){let o=this.baseUrl+"/api/storage/v1/private-resources/file-storage-info?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),null!=s&&(o+="ownerId="+encodeURIComponent(""+s)+"&"),o=o.replace(/[?&]$/,"");let i={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(i)).pipe(d(t=>this.http.request("get",o,t))).pipe(d(t=>this.transformResult(o,t,a=>this.processGetFileStorageInfo(a)))).pipe(N(t=>{if(!(t instanceof S))return w(t);try{return this.transformResult(o,t,a=>this.processGetFileStorageInfo(a))}catch(a){return w(a)}}))}processGetFileStorageInfo(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?b(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?b(o).pipe(d(t=>y("Unauthorized",s,t,i))):403===s?b(o).pipe(d(t=>y("Forbidden",s,t,i))):200!==s&&204!==s?b(o).pipe(d(t=>y("An unexpected server error occurred.",s,t,i))):v(null)}}return r.\u0275fac=function(e){return new(e||r)(k(ps),k(St),k(Uo,8))},r.\u0275prov=ee({factory:function(){return new r(k(ps),k(St),k(Uo,8))},token:r,providedIn:"root"}),r})();class BR extends Error{constructor(n,e,s,o,i){super(),this.isApiException=!0,this.message=n,this.status=e,this.response=s,this.headers=o,this.result=i}static isApiException(n){return!0===n.isApiException}}function y(r,n,e,s,o){return w(null!=o?o:new BR(r,n,e,s,null))}function b(r){return new be(n=>{if(r){let e=new FileReader;e.onload=s=>{n.next(s.target.result),n.complete()},e.readAsText(r)}else n.next(""),n.complete()})}function Em(r,n,e="ApiKey"){const s=new ps;return s.apiKey=e,s.apiUrl=n,s.setAuthorizationToken(r),s}const Cm=new Y("API_BASE_URL");class lp{constructor(){this.apiUrl="http://localhost:54220",this.apiKey="ApiKey",this.authorizationToken=null}getAuthorizationToken(){return ir(this,void 0,void 0,function*(){return this.authorizationToken})}setAuthorizationToken(n){this.authorizationToken=n}}let SR=(()=>{class r extends class DR{constructor(n){this.configuration=n}transformOptions(n){return ir(this,void 0,void 0,function*(){const e=yield this.configuration.getAuthorizationToken();return n.headers=null!=e?n.headers.append("authorization","Bearer "+e):n.headers.append("X-API-Key",this.configuration.apiKey),n})}getBaseUrl(n){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl}transformResult(n,e,s){return s(e)}}{constructor(e,s,o){super(e),this.jsonParseReviver=void 0,this.http=s,this.baseUrl=null!=o?o:this.getBaseUrl("")}convertColors(e,s){let o=this.baseUrl+"/api/atoms/v1/colorConverter?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),o=o.replace(/[?&]$/,"");let t={body:JSON.stringify(s),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("post",o,a))).pipe(d(a=>this.transformResult(o,a,l=>this.processConvertColors(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(o,a,l=>this.processConvertColors(l))}catch(l){return w(l)}}))}processConvertColors(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}createDesign(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs?";if(null!=e&&(t+="privateStorage="+encodeURIComponent(""+e)+"&"),null!=s&&(t+="privateStorageOwner="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==o&&(t+="tenantId="+encodeURIComponent(""+o)+"&"),t=t.replace(/[?&]$/,"");let l={body:JSON.stringify(i),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("post",t,p))).pipe(d(p=>this.transformResult(t,p,u=>this.processCreateDesign(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(t,p,u=>this.processCreateDesign(u))}catch(u){return w(u)}}))}processCreateDesign(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}extractBackground(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/background?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="surfaceIndex="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processExtractBackground(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processExtractBackground(p))}catch(p){return w(p)}}))}processExtractBackground(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):422===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Client Error",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}loadProduct(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processLoadProduct(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processLoadProduct(p))}catch(p){return w(p)}}))}processLoadProduct(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}saveProduct(e,s,o,i,t){let a=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null!=s&&(a+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(a+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(a+="tenantId="+encodeURIComponent(""+i)+"&"),a=a.replace(/[?&]$/,"");let p={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(p)).pipe(d(u=>this.http.request("put",a,u))).pipe(d(u=>this.transformResult(a,u,c=>this.processSaveProduct(c)))).pipe(N(u=>{if(!(u instanceof S))return w(u);try{return this.transformResult(a,u,c=>this.processSaveProduct(c))}catch(c){return w(c)}}))}processSaveProduct(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>v(null))):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}patchProduct(e,s,o,i,t,a,l,p,u,c){let f=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(f=f.replace("{id}",encodeURIComponent(""+e)),null!=s&&(f+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(f+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(f+="tenantId="+encodeURIComponent(""+i)+"&"),f=f.replace(/[?&]$/,"");const h=new FormData;if(null==t)throw new Error("The parameter 'patchType' cannot be null.");if(h.append("patchType",t.toString()),null!=a&&h.append("replaceImageItemFileInfo.itemName",a.toString()),null!=l&&h.append("replaceImageItemFileInfo.sourceFile",l.data,l.fileName?l.fileName:"replaceImageItemFileInfo.sourceFile"),null!=p&&h.append("replacePlaceholderItemContentInfo.placeholderItemName",p.toString()),null==u)throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");h.append("replacePlaceholderItemContentInfo.newContentType",u.toString()),null!=c&&h.append("replacePlaceholderItemContentInfo.sourceFile",c.data,c.fileName?c.fileName:"replacePlaceholderItemContentInfo.sourceFile");let _={body:h,observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(_)).pipe(d(m=>this.http.request("patch",f,m))).pipe(d(m=>this.transformResult(f,m,g=>this.processPatchProduct(g)))).pipe(N(m=>{if(!(m instanceof S))return w(m);try{return this.transformResult(f,m,g=>this.processPatchProduct(g))}catch(g){return w(g)}}))}processPatchProduct(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>v(null))):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}loadDataSchema(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/schema?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processLoadDataSchema(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processLoadDataSchema(p))}catch(p){return w(p)}}))}processLoadDataSchema(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):409===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Conflict",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}getVariables(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processGetVariables(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processGetVariables(p))}catch(p){return w(p)}}))}processGetVariables(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}setVariables(e,s,o,i,t){let a=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null!=s&&(a+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(a+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(a+="tenantId="+encodeURIComponent(""+i)+"&"),a=a.replace(/[?&]$/,"");let p={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(p)).pipe(d(u=>this.http.request("put",a,u))).pipe(d(u=>this.transformResult(a,u,c=>this.processSetVariables(c)))).pipe(N(u=>{if(!(u instanceof S))return w(u);try{return this.transformResult(a,u,c=>this.processSetVariables(c))}catch(c){return w(c)}}))}processSetVariables(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>v(null))):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):409===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Conflict",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}loadVdpData(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processLoadVdpData(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processLoadVdpData(p))}catch(p){return w(p)}}))}processLoadVdpData(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):409===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Conflict",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}saveVdpData(e,s,o,i,t){let a=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(a=a.replace("{id}",encodeURIComponent(""+e)),null!=s&&(a+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(a+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(a+="tenantId="+encodeURIComponent(""+i)+"&"),a=a.replace(/[?&]$/,"");let p={body:JSON.stringify(t),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json"})};return D(this.transformOptions(p)).pipe(d(u=>this.http.request("put",a,u))).pipe(d(u=>this.transformResult(a,u,c=>this.processSaveVdpData(c)))).pipe(N(u=>{if(!(u instanceof S))return w(u);try{return this.transformResult(a,u,c=>this.processSaveVdpData(c))}catch(c){return w(c)}}))}processSaveVdpData(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>v(null))):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}deleteVdpData(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("delete",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processDeleteVdpData(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processDeleteVdpData(p))}catch(p){return w(p)}}))}processDeleteVdpData(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>v(null))):409===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Conflict",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}flattenItems(e,s){let o=this.baseUrl+"/api/atoms/v1/flatten?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(o+="tenantId="+encodeURIComponent(""+e)+"&"),o=o.replace(/[?&]$/,"");let t={body:JSON.stringify(s),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/json"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("post",o,a))).pipe(d(a=>this.transformResult(o,a,l=>this.processFlattenItems(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(o,a,l=>this.processFlattenItems(l))}catch(l){return w(l)}}))}processFlattenItems(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}createItem(e,s,o,i,t,a){let l=this.baseUrl+"/api/atoms/v1/itemCreator?";if(null!=e&&(l+="itemType="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(l+="tenantId="+encodeURIComponent(""+s)+"&"),l=l.replace(/[?&]$/,"");const p=new FormData;null!=o&&p.append("sourceType",o.toString()),null!=i&&p.append("sourceId",i.toString()),null!=t&&p.append("sourceOwnerId",t.toString()),null!=a&&p.append("sourceFile",a.data,a.fileName?a.fileName:"sourceFile");let u={body:p,observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(u)).pipe(d(c=>this.http.request("post",l,c))).pipe(d(c=>this.transformResult(l,c,f=>this.processCreateItem(f)))).pipe(N(c=>{if(!(c instanceof S))return w(c);try{return this.transformResult(l,c,f=>this.processCreateItem(f))}catch(f){return w(f)}}))}processCreateItem(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}createPrivateDesignFromDesign(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/private-designs/from-design?";if(null!=e&&(t+="designId="+encodeURIComponent(""+e)+"&"),null!=s&&(t+="privateDesignId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processCreatePrivateDesignFromDesign(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processCreatePrivateDesignFromDesign(p))}catch(p){return w(p)}}))}processCreatePrivateDesignFromDesign(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?I(o).pipe(d(t=>v(null))):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}createPrivateDesignFromResource(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/private-designs/from-resource?";if(null!=e&&(t+="resourceId="+encodeURIComponent(""+e)+"&"),null!=s&&(t+="privateDesignId="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processCreatePrivateDesignFromResource(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processCreatePrivateDesignFromResource(p))}catch(p){return w(p)}}))}processCreatePrivateDesignFromResource(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 201===s?I(o).pipe(d(t=>v(null))):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}renderDesignPreview(e,s,o){let i=this.baseUrl+"/api/atoms/v1/render-design-preview?";if(null!=e&&(i+="attachment="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processRenderDesignPreview(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processRenderDesignPreview(p))}catch(p){return w(p)}}))}processRenderDesignPreview(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}renderDesignProof(e,s,o){let i=this.baseUrl+"/api/atoms/v1/render-design-proof?";if(null!=e&&(i+="attachment="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processRenderDesignProof(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processRenderDesignProof(p))}catch(p){return w(p)}}))}processRenderDesignProof(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}renderProduct(e,s,o){let i=this.baseUrl+"/api/atoms/v1/renderer?";if(null!=e&&(i+="attachment="+encodeURIComponent(""+e)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let a={body:JSON.stringify(o),observe:"response",responseType:"blob",headers:new M({"Content-Type":"application/json",Accept:"application/octet-stream"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("post",i,l))).pipe(d(l=>this.transformResult(i,l,p=>this.processRenderProduct(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(i,l,p=>this.processRenderProduct(p))}catch(p){return w(p)}}))}processRenderProduct(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);if(200===s||206===s){const t=e.headers?e.headers.get("content-disposition"):void 0,a=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0;return v({fileName:a&&a.length>1?a[1]:void 0,data:o,status:s,headers:i})}return 401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}loadProductFromResource(e,s,o,i){let t=this.baseUrl+"/api/atoms/v1/resources/{id}/as-design/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null!=s&&(t+="privateStorage="+encodeURIComponent(""+s)+"&"),null!=o&&(t+="privateStorageOwner="+encodeURIComponent(""+o)+"&"),null===i)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"application/json"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processLoadProductFromResource(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processLoadProductFromResource(p))}catch(p){return w(p)}}))}processLoadProductFromResource(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Not Found",s,t,i,a)})):422===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Client Error",s,t,i,a)})):401===s?I(o).pipe(d(t=>R("Unauthorized",s,t,i))):403===s?I(o).pipe(d(t=>R("Forbidden",s,t,i))):500===s?I(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),R("Internal server error",s,t,i,a)})):200!==s&&204!==s?I(o).pipe(d(t=>R("An unexpected server error occurred.",s,t,i))):v(null)}}return r.\u0275fac=function(e){return new(e||r)(k(lp),k(St),k(Cm,8))},r.\u0275prov=ee({factory:function(){return new r(k(lp),k(St),k(Cm,8))},token:r,providedIn:"root"}),r})();var Ho=(()=>{return(r=Ho||(Ho={})).Jpeg="Jpeg",r.Png="Png",r.Tiff="Tiff",r.Pdf="Pdf",Ho;var r})();class OR extends Error{constructor(n,e,s,o,i){super(),this.isApiException=!0,this.message=n,this.status=e,this.response=s,this.headers=o,this.result=i}static isApiException(n){return!0===n.isApiException}}function R(r,n,e,s,o){return w(null!=o?o:new OR(r,n,e,s,null))}function I(r){return new be(n=>{if(r){let e=new FileReader;e.onload=s=>{n.next(s.target.result),n.complete()},e.readAsText(r)}else n.next(""),n.complete()})}const Rm=new Y("API_BASE_URL");class pp{constructor(){this.apiKey="",this.authorizationToken=null}getAuthorizationToken(){return ir(this,void 0,void 0,function*(){return this.authorizationToken})}setAuthorizationToken(n){this.authorizationToken=n}}let kR=(()=>{class r extends class NR{constructor(n){this.configuration=n}transformOptions(n){return ir(this,void 0,void 0,function*(){const e=yield this.configuration.getAuthorizationToken();return n.headers=""!=e&&null!=e?n.headers.append("authorization","Bearer "+e):n.headers.append("X-API-Key",this.configuration.apiKey),n})}getBaseUrl(n){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl}transformResult(n,e,s){return s(e)}}{constructor(e,s,o){super(e),this.jsonParseReviver=void 0,this.http=s,this.baseUrl=null!=o?o:this.getBaseUrl("")}getAllProducts(e,s,o,i,t){let a=this.baseUrl+"/api/storefront/v1/products?";null!=e&&(a+="skip="+encodeURIComponent(""+e)+"&"),null!=s&&(a+="take="+encodeURIComponent(""+s)+"&"),null!=o&&(a+="sorting="+encodeURIComponent(""+o)+"&"),null!=i&&(a+="search="+encodeURIComponent(""+i)+"&"),null!=t&&(a+="tenantId="+encodeURIComponent(""+t)+"&"),a=a.replace(/[?&]$/,"");let l={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(l)).pipe(d(p=>this.http.request("get",a,p))).pipe(d(p=>this.transformResult(a,p,u=>this.processGetAllProducts(u)))).pipe(N(p=>{if(!(p instanceof S))return w(p);try{return this.transformResult(a,p,u=>this.processGetAllProducts(u))}catch(u){return w(u)}}))}processGetAllProducts(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProduct(e,s,o){let i=this.baseUrl+"/api/storefront/v1/products/{id}?";if(null==e)throw new Error("The parameter 'id' must be defined.");i=i.replace("{id}",encodeURIComponent(""+e)),null!=s&&(i+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="tenantId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetProduct(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetProduct(l))}catch(l){return w(l)}}))}processGetProduct(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductOptions(e,s,o){let i=this.baseUrl+"/api/storefront/v1/products/{id}/options?";if(null==e)throw new Error("The parameter 'id' must be defined.");i=i.replace("{id}",encodeURIComponent(""+e)),null!=s&&(i+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="tenantId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("get",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processGetProductOptions(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processGetProductOptions(l))}catch(l){return w(l)}}))}processGetProductOptions(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getAllProductOptions(e){let s=this.baseUrl+"/api/storefront/v1/products/options?";null!=e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");let o={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(o)).pipe(d(i=>this.http.request("get",s,i))).pipe(d(i=>this.transformResult(s,i,t=>this.processGetAllProductOptions(t)))).pipe(N(i=>{if(!(i instanceof S))return w(i);try{return this.transformResult(s,i,t=>this.processGetAllProductOptions(t))}catch(t){return w(t)}}))}processGetAllProductOptions(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductLinks(e,s,o,i,t,a,l){let p=this.baseUrl+"/api/storefront/v1/products/{id}/links?";if(null==e)throw new Error("The parameter 'id' must be defined.");p=p.replace("{id}",encodeURIComponent(""+e)),null!=s&&(p+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(p+="skip="+encodeURIComponent(""+o)+"&"),null!=i&&(p+="take="+encodeURIComponent(""+i)+"&"),null!=t&&(p+="sorting="+encodeURIComponent(""+t)+"&"),null!=a&&(p+="search="+encodeURIComponent(""+a)+"&"),null!=l&&(p+="tenantId="+encodeURIComponent(""+l)+"&"),p=p.replace(/[?&]$/,"");let u={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(u)).pipe(d(c=>this.http.request("get",p,c))).pipe(d(c=>this.transformResult(p,c,f=>this.processGetProductLinks(f)))).pipe(N(c=>{if(!(c instanceof S))return w(c);try{return this.transformResult(p,c,f=>this.processGetProductLinks(f))}catch(f){return w(f)}}))}processGetProductLinks(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductLink(e,s,o,i){let t=this.baseUrl+"/api/storefront/v1/products/{id}/links/{productLinkId}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null==s)throw new Error("The parameter 'productLinkId' must be defined.");t=t.replace("{productLinkId}",encodeURIComponent(""+s)),null!=o&&(t+="productVersionId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processGetProductLink(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processGetProductLink(p))}catch(p){return w(p)}}))}processGetProductLink(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductFilters(e,s,o,i,t,a,l,p){let u=this.baseUrl+"/api/storefront/v1/products/{id}/filters?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=s&&(u+="productVersionId="+encodeURIComponent(""+s)+"&"),null===o)throw new Error("The parameter 'filterType' cannot be null.");void 0!==o&&(u+="filterType="+encodeURIComponent(""+o)+"&"),null!=i&&(u+="skip="+encodeURIComponent(""+i)+"&"),null!=t&&(u+="take="+encodeURIComponent(""+t)+"&"),null!=a&&(u+="sorting="+encodeURIComponent(""+a)+"&"),null!=l&&(u+="search="+encodeURIComponent(""+l)+"&"),null!=p&&(u+="tenantId="+encodeURIComponent(""+p)+"&"),u=u.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(c)).pipe(d(f=>this.http.request("get",u,f))).pipe(d(f=>this.transformResult(u,f,h=>this.processGetProductFilters(h)))).pipe(N(f=>{if(!(f instanceof S))return w(f);try{return this.transformResult(u,f,h=>this.processGetProductFilters(h))}catch(h){return w(h)}}))}processGetProductFilters(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductFilter(e,s,o,i){let t=this.baseUrl+"/api/storefront/v1/products/{id}/filters/{productFilterId}?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+e)),null==s)throw new Error("The parameter 'productFilterId' must be defined.");t=t.replace("{productFilterId}",encodeURIComponent(""+s)),null!=o&&(t+="productVersionId="+encodeURIComponent(""+o)+"&"),null!=i&&(t+="tenantId="+encodeURIComponent(""+i)+"&"),t=t.replace(/[?&]$/,"");let a={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(a)).pipe(d(l=>this.http.request("get",t,l))).pipe(d(l=>this.transformResult(t,l,p=>this.processGetProductFilter(p)))).pipe(N(l=>{if(!(l instanceof S))return w(l);try{return this.transformResult(t,l,p=>this.processGetProductFilter(p))}catch(p){return w(p)}}))}processGetProductFilter(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductVariants(e,s,o,i,t,a,l){let p=this.baseUrl+"/api/storefront/v1/products/{id}/variants?";if(null==e)throw new Error("The parameter 'id' must be defined.");p=p.replace("{id}",encodeURIComponent(""+e)),null!=s&&(p+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(p+="skip="+encodeURIComponent(""+o)+"&"),null!=i&&(p+="take="+encodeURIComponent(""+i)+"&"),null!=t&&(p+="options="+encodeURIComponent(""+t)+"&"),null!=a&&(p+="productFilterId="+encodeURIComponent(""+a)+"&"),null!=l&&(p+="tenantId="+encodeURIComponent(""+l)+"&"),p=p.replace(/[?&]$/,"");let u={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(u)).pipe(d(c=>this.http.request("get",p,c))).pipe(d(c=>this.transformResult(p,c,f=>this.processGetProductVariants(f)))).pipe(N(c=>{if(!(c instanceof S))return w(c);try{return this.transformResult(p,c,f=>this.processGetProductVariants(f))}catch(f){return w(f)}}))}processGetProductVariants(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductVariantDesigns(e,s,o,i,t,a,l,p){let u=this.baseUrl+"/api/storefront/v1/products/{id}/variant-designs?";if(null==e)throw new Error("The parameter 'id' must be defined.");u=u.replace("{id}",encodeURIComponent(""+e)),null!=s&&(u+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(u+="productVariantId="+encodeURIComponent(""+o)+"&"),null!=i&&(u+="skip="+encodeURIComponent(""+i)+"&"),null!=t&&(u+="take="+encodeURIComponent(""+t)+"&"),null!=a&&(u+="options="+encodeURIComponent(""+a)+"&"),null!=l&&(u+="productFilterId="+encodeURIComponent(""+l)+"&"),null!=p&&(u+="tenantId="+encodeURIComponent(""+p)+"&"),u=u.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(c)).pipe(d(f=>this.http.request("get",u,f))).pipe(d(f=>this.transformResult(u,f,h=>this.processGetProductVariantDesigns(h)))).pipe(N(f=>{if(!(f instanceof S))return w(f);try{return this.transformResult(u,f,h=>this.processGetProductVariantDesigns(h))}catch(h){return w(h)}}))}processGetProductVariantDesigns(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}getProductVariantMockups(e,s,o,i,t,a,l,p){let u=this.baseUrl+"/api/storefront/v1/products/{id}/variant-mockups?";if(null==e)throw new Error("The parameter 'id' must be defined.");u=u.replace("{id}",encodeURIComponent(""+e)),null!=s&&(u+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(u+="productVariantId="+encodeURIComponent(""+o)+"&"),null!=i&&(u+="skip="+encodeURIComponent(""+i)+"&"),null!=t&&(u+="take="+encodeURIComponent(""+t)+"&"),null!=a&&(u+="options="+encodeURIComponent(""+a)+"&"),null!=l&&(u+="productFilterId="+encodeURIComponent(""+l)+"&"),null!=p&&(u+="tenantId="+encodeURIComponent(""+p)+"&"),u=u.replace(/[?&]$/,"");let c={observe:"response",responseType:"blob",headers:new M({Accept:"text/plain"})};return D(this.transformOptions(c)).pipe(d(f=>this.http.request("get",u,f))).pipe(d(f=>this.transformResult(u,f,h=>this.processGetProductVariantMockups(h)))).pipe(N(f=>{if(!(f instanceof S))return w(f);try{return this.transformResult(u,f,h=>this.processGetProductVariantMockups(h))}catch(h){return w(h)}}))}processGetProductVariantMockups(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),v(a)})):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}updateProductVariantResources(e,s,o){let i=this.baseUrl+"/api/storefront/v1/products/{id}/update-variant-resources?";if(null==e)throw new Error("The parameter 'id' must be defined.");i=i.replace("{id}",encodeURIComponent(""+e)),null!=s&&(i+="productVersionId="+encodeURIComponent(""+s)+"&"),null!=o&&(i+="tenantId="+encodeURIComponent(""+o)+"&"),i=i.replace(/[?&]$/,"");let t={observe:"response",responseType:"blob",headers:new M({})};return D(this.transformOptions(t)).pipe(d(a=>this.http.request("post",i,a))).pipe(d(a=>this.transformResult(i,a,l=>this.processUpdateProductVariantResources(l)))).pipe(N(a=>{if(!(a instanceof S))return w(a);try{return this.transformResult(i,a,l=>this.processUpdateProductVariantResources(l))}catch(l){return w(l)}}))}processUpdateProductVariantResources(e){const s=e.status,o=e instanceof B?e.body:e.error instanceof Blob?e.error:void 0;let i={};if(e.headers)for(let t of e.headers.keys())i[t]=e.headers.get(t);return 200===s?P(o).pipe(d(t=>v(null))):404===s?P(o).pipe(d(t=>{let a=null;return a=""===t?null:JSON.parse(t,this.jsonParseReviver),j("Not Found",s,t,i,a)})):401===s?P(o).pipe(d(t=>j("Unauthorized",s,t,i))):403===s?P(o).pipe(d(t=>j("Forbidden",s,t,i))):200!==s&&204!==s?P(o).pipe(d(t=>j("An unexpected server error occurred.",s,t,i))):v(null)}}return r.\u0275fac=function(e){return new(e||r)(k(pp),k(St),k(Rm,8))},r.\u0275prov=ee({factory:function(){return new r(k(pp),k(St),k(Rm,8))},token:r,providedIn:"root"}),r})();var jo=(()=>{return(r=jo||(jo={})).Thumbnail="Thumbnail",r.Editor="Editor",r.Preview="Preview",jo;var r})(),Lo=(()=>{return(r=Lo||(Lo={})).Individual="Individual",r.Custom="Custom",r.All="All",Lo;var r})();class FR extends Error{constructor(n,e,s,o,i){super(),this.isApiException=!0,this.message=n,this.status=e,this.response=s,this.headers=o,this.result=i}static isApiException(n){return!0===n.isApiException}}function j(r,n,e,s,o){return w(null!=o?o:new FR(r,n,e,s,null))}function P(r){return new be(n=>{if(r){let e=new FileReader;e.onload=s=>{n.next(s.target.result),n.complete()},e.readAsText(r)}else n.next(""),n.complete()})}const UR=cn(r=>function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:jR}=Array,{getPrototypeOf:LR,prototype:JR,keys:$R}=Object;const{isArray:zR}=Array;function KR(r,n){return r.reduce((e,s,o)=>(e[s]=n[o],e),{})}function Mm(...r){const n=function nb(r){return pe(Ko(r))?r.pop():void 0}(r),{args:e,keys:s}=function VR(r){if(1===r.length){const n=r[0];if(jR(n))return{args:n,keys:null};if(function GR(r){return r&&"object"==typeof r&&LR(r)===JR}(n)){const e=$R(n);return{args:e.map(s=>n[s]),keys:e}}}return{args:r,keys:null}}(r),o=new be(i=>{const{length:t}=e;if(!t)return void i.complete();const a=new Array(t);let l=t,p=t;for(let u=0;u<t;u++){let c=!1;At(e[u]).subscribe(Tt(i,f=>{c||(c=!0,p--),a[u]=f},()=>l--,void 0,()=>{(!l||!c)&&(p||i.next(s?KR(s,a):a),i.complete())}))}});return n?o.pipe(function WR(r){return $t(n=>function qR(r,n){return zR(n)?r(...n):r(n)}(r,n))}(n)):o}let QR=(()=>{class r{transform(e){return{*[Symbol.iterator](){let s=0;for(;s<e;)yield++s}}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=Ne({name:"times",type:r,pure:!0}),r})();function ZR(r,n){1&r&&io(0,"div",2)}function YR(r,n){if(1&r&&(Vn(0),$n(1,ZR,1,0,"div",1),function Fh(r,n){const e=X();let s;const o=r+20;e.firstCreatePass?(s=function xv(r,n){if(n)for(let e=n.length-1;e>=0;e--){const s=n[e];if(r===s.name)return s}}(n,e.pipeRegistry),e.data[o]=s,s.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,s.onDestroy)):s=e.data[o];const i=s.factory||(s.factory=fr(s.type)),t=zt(Q);try{const a=As(!1),l=i();return As(a),function O0(r,n,e,s){e>=r.data.length&&(r.data[e]=null,r.blueprint[e]=null),n[e]=s}(e,C(),o,l),l}finally{zt(t)}}(2,"times"),Gn()),2&r){const e=qa();Qs(1),mr("ngForOf",Ph(2,1,e.previewCount))}}function XR(r,n){1&r&&io(0,"img",4),2&r&&mr("src",n.$implicit,zi)}function eM(r,n){if(1&r&&(Vn(0),$n(1,XR,1,1,"img",3),Gn()),2&r){const e=qa();Qs(1),mr("ngForOf",e.previewUrls)}}let tM=(()=>{class r{constructor(e){this.httpClient=e,this.previewWidth=800,this.previewHeight=800,this.createPreviewResource=()=>function HR(r,n){const e="object"==typeof n;return new Promise((s,o)=>{const i=new hn({next:t=>{s(t),i.unsubscribe()},error:o,complete:()=>{e?s(n.defaultValue):o(new UR)}});r.subscribe(i)})}(this.privateResourcesApiClient.create(this.tenantId,this.userId,{data:this.files[0].data,fileName:this.files[0].fileName},void 0,"ecommerce",crypto.randomUUID(),void 0,this.previewFormat,!0,"preview").pipe($t(s=>{var o;return this.ensureDoesNotEndWithSlash(null!==(o=this.assetStorageUrl)&&void 0!==o?o:"")+"/api/storage/v1/private-resources/"+s.id+"/file?tenantId="+this.tenantId}))),this.loading=!1,this.previewCount=5,this.previewUrls=[],this.previewFormat=Ho.Jpeg,this.files=[]}ngOnInit(){var e=this;this.token&&this.assetStorageUrl&&this.backOfficeUrl&&this.designAtomsApiUrl&&this.productId&&(this.loading=!0,this.designAtomsApiClient=new SR(function AR(r,n,e="ApiKey"){const s=new lp;return s.apiKey=e,s.apiUrl=n,s.setAuthorizationToken(r),s}(this.token,this.ensureDoesNotEndWithSlash(this.designAtomsApiUrl)),this.httpClient),this.privateDesignsApiClient=new RR(Em(this.token,this.ensureDoesNotEndWithSlash(this.assetStorageUrl)),this.httpClient),this.privateResourcesApiClient=new MR(Em(this.token,this.ensureDoesNotEndWithSlash(this.assetStorageUrl)),this.httpClient),this.productsApiClient=new kR(function PR(r,n,e="ApiKey"){const s=new pp;return s.apiKey=e,s.apiUrl=n,s.setAuthorizationToken(r),s}(this.token,this.ensureDoesNotEndWithSlash(this.backOfficeUrl)),this.httpClient),this.productsApiClient.getProductVariantMockups(this.productId,this.productVersionId,this.productVariantId).pipe(ip(s=>this.filterMockupsAndRenderDesigns(s))).subscribe(function(){var s=vm(function*(o){e.files=o.map(i=>{var t;return{data:i.data,fileName:null!==(t=i.fileName)&&void 0!==t?t:"Untitled"}}),e.previewUrls=yield Promise.all(o.map(function(){var i=vm(function*(t){return yield e.blobToDataURL(t.data)});return function(t){return i.apply(this,arguments)}}())),e.loading=!1});return function(o){return s.apply(this,arguments)}}()))}ensureDoesNotEndWithSlash(e){return e.endsWith("/")?e.slice(0,-1):e}filterMockupsAndRenderDesigns(e){var s;return this.privateDesignsApiClient.get(null!==(s=this.stateId)&&void 0!==s?s:null,this.tenantId,this.userId).pipe(ip(o=>{var i,t,a,l,p,u,c,f;const h=null!==(a=null===(t=null===(i=o.metadata)||void 0===i?void 0:i.surfaces)||void 0===t?void 0:t.length)&&void 0!==a?a:0,_=null!==(p=null===(l=e.items)||void 0===l?void 0:l.filter(m=>this.checkIfMockupMeetsConditions(m,h)))&&void 0!==p?p:[];if(_.length){const m=[];return _.sort((g,T)=>this.sortMockupsBySurfaceIndex(g.surfaceIndex,T.surfaceIndex)).forEach(g=>{if(g.surfaceUsageType===Lo.All)for(let T=0;T<h;T++)m.push(this.renderDesign(g.mockupId,T));else m.push(this.renderDesign(g.mockupId,g.surfaceIndex))}),this.previewCount=m.length,Mm(m)}return this.previewCount=h,Mm(null!==(f=null===(c=null===(u=o.metadata)||void 0===u?void 0:u.surfaces)||void 0===c?void 0:c.map((m,g)=>this.renderDesign(null,g)))&&void 0!==f?f:[])}))}checkIfMockupMeetsConditions(e,s){return!(e.mockupType!==jo.Preview||null!=e.surfaceIndex&&e.surfaceIndex>=s)}sortMockupsBySurfaceIndex(e,s){return null==e&&null==s?0:null==e?1:null==s?-1:e-s}renderDesign(e,s){return this.designAtomsApiClient.renderDesignPreview(!1,this.tenantId,{ownerId:this.userId,designId:this.stateId,mockupId:e,renderingConfig:{surfaceIndex:s,width:this.previewWidth,height:this.previewHeight,fileFormat:this.previewFormat}})}blobToDataURL(e){return new Promise(s=>{const o=new FileReader;o.onloadend=()=>s(o.result),o.readAsDataURL(e)})}}return r.\u0275fac=function(e){return new(e||r)(Q(St))},r.\u0275cmp=ii({type:r,selectors:[["app-root"]],hostVars:2,hostBindings:function(e,s){2&e&&Ka("loading",s.loading)},inputs:{token:"token",assetStorageUrl:"assetStorageUrl",backOfficeUrl:"backOfficeUrl",designAtomsApiUrl:"designAtomsApiUrl",productId:"productId",productVersionId:"productVersionId",productVariantId:"productVariantId",tenantId:"tenantId",userId:"userId",stateId:"stateId",previewWidth:"previewWidth",previewHeight:"previewHeight",createPreviewResource:"createPreviewResource"},decls:2,vars:2,consts:[[4,"ngIf"],["class","preview-stub",4,"ngFor","ngForOf"],[1,"preview-stub"],[3,"src",4,"ngFor","ngForOf"],[3,"src"]],template:function(e,s){1&e&&($n(0,YR,3,3,"ng-container",0),$n(1,eM,2,1,"ng-container",0)),2&e&&(mr("ngIf",s.loading),Qs(1),mr("ngIf",!s.loading))},directives:[V_,J_],pipes:[QR],styles:["@keyframes shimmer{0%{background-position-x:80%}to{background-position-x:-100%}}[_nghost-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,400px);grid-gap:20px;gap:20px;height:100%}.loading[_nghost-%COMP%]{max-height:400px;overflow:hidden}.preview-stub[_ngcontent-%COMP%], img[_ngcontent-%COMP%]{width:400px;height:400px}.preview-stub[_ngcontent-%COMP%]{background:linear-gradient(to right,#f4f6f8 0%,#fcfdfe 20%,#f4f6f8 40%,#f4f6f8 100%);background-size:200% 100%;background-repeat:repeat!important;animation:shimmer 1.8s ease-in-out infinite}img[_ngcontent-%COMP%]{object-fit:scale-down}"]}),r})(),rM=(()=>{class r{constructor(e){this.injector=e}ngDoBootstrap(){const e=function CR(r,n){const e=function TR(r,n){return n.get(on).resolveComponentFactory(r).inputs}(r,n.injector),s=n.strategyFactory||new vR(r,n.injector),o=function gR(r){const n={};return r.forEach(({propName:e,templateName:s})=>{n[function fR(r){return r.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(s)]=e}),n}(e);class i extends ER{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=s.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const p=this[l];delete this[l],a.setInputValue(l,p)})}return this._ngElementStrategy}attributeChangedCallback(a,l,p,u){this.ngElementStrategy.setInputValue(o[a],p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return i.observedAttributes=Object.keys(o),e.forEach(({propName:t})=>{Object.defineProperty(i.prototype,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(a){this.ngElementStrategy.setInputValue(t,a)},configurable:!0,enumerable:!0})}),i}(tM,{injector:this.injector});customElements.define("au-preview-mockup-slider",e)}}return r.\u0275fac=function(e){return new(e||r)(k(Qe))},r.\u0275mod=lr({type:r}),r.\u0275inj=Gt({imports:[[HC,dR]]}),r})();(function BI(){T_=!1})(),PC().bootstrapModule(rM).catch(r=>console.error(r))}},pe=>{pe(pe.s=630)}]);
</script>